/* ---------- Theme ---------- */
:root {
  --bg: #0B0F14;
  --surface: #0F141A;
  --elev: #121A23;
  --text: #E8EDF2;
  --muted: #9AA6B2;
  --border: #1F2A37;
  --accent: #F59E0B;     /* warm orange */
  --accent-ink: #0B0F14;
  --wrap: 820px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 24px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(11,15,20,0.75), rgba(11,15,20,0.35));
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
nav a { margin-left: 16px; opacity: 0.9; }
nav a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px; align-items: center;
  padding: 56px 0 28px;
  background:
    radial-gradient(1200px 300px at 20% -50%, rgba(245,158,11,0.10), transparent),
    linear-gradient(180deg, rgba(245,158,11,0.07), transparent);
  border-bottom: 1px solid var(--border);
}
.hero img {
  width: 120px; height: 120px; object-fit: cover;
  border-radius: 20px; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
h1 { font-size: clamp(32px, 5vw, 44px); margin: 0; letter-spacing: .2px; }
.subtitle { color: var(--muted); margin: 8px 0 12px; max-width: 60ch; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.45);
  color: #FCD34D;
  padding: 2px 8px; border-radius: 999px; font-size: 12px;
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--text);
  transition: transform .06s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.05); }

/* ---------- Status row ---------- */
.dash {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 22px 0 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}
.k { font-size: 24px; font-weight: 650; }
.muted { color: var(--muted); }

/* Progress bar */
.progress { height: 8px; background: #0C1117; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width .6s ease; }

/* ---------- Lists & archive ---------- */
.list-tight { padding-left: 18px; }
.bestof li, .archive li { margin: 6px 0; }

/* ---------- Subscribe ---------- */
.subscribe {
  background: var(--elev);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 16px; margin: 18px 0;
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 16px; color: var(--muted); font-size: 14px; }

/* ---------- Heatmap (kept compatible) ---------- */
.heatmap { display: grid; grid-template-columns: repeat(35, 10px); gap: 4px; }
.day { width: 10px; height: 10px; border-radius: 2px; background: #2A3442; }
.day.hit { background: #22C55E; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
