:root {
  --ink: #070a0b; --ink-2: #0e1417; --ink-3: #141c1f; --ink-line: #233036;
  --on-ink: #fff; --on-ink-2: #ffffffa3;
  --surface: #fdfdfb; --surface-2: #f8f8f4; --surface-3: #f3f3ed;
  --text: #161a1d; --text-2: #343b43; --muted: #6b737c; --line: #e5e5de;
  --cta: #047857; --cta-hover: #065f46; --signal: #fbbf24; --danger: #b91c1c;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font-sans); background: var(--surface); color: var(--text); }
a { color: var(--cta); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px max(16px, calc(50% - 520px)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); letter-spacing: -.03em; }
.brand b { color: var(--cta); }
nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .95rem; }
nav a:hover, nav a.active { background: var(--surface-3); color: var(--text); }
nav a.cta { background: var(--cta); color: #fff; margin-left: 6px; }
nav a.cta:hover { background: var(--cta-hover); }

main { min-height: 70vh; padding-bottom: 56px; }
main > :not(.band) { max-width: 1040px; margin-inline: auto; padding-inline: 16px; }
main > h1 { margin-top: 32px; }
main > article, main > .empty, main > form, main > .tabs, main > .panel { padding-top: 24px; }

/* hero band */
.band { background: var(--ink); color: var(--on-ink); background-image: radial-gradient(60% 80% at 85% 0%, #04785733, transparent), radial-gradient(40% 60% at 0% 100%, #fbbf2414, transparent); }
.band .wrap { max-width: 1040px; margin: 0 auto; padding: 64px 16px 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin: 0 0 12px; }
.band h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 8px; }
.band .sub { color: var(--on-ink-2); font-size: 1.15rem; margin: 0 0 16px; }
.band .bio { color: var(--on-ink-2); max-width: 60ch; }
.avatar { width: 168px; height: 168px; border-radius: 24px; object-fit: cover; background: var(--ink-3); border: 1px solid var(--ink-line); display: grid; place-items: center; font-size: 4rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chip { padding: 8px 14px; border: 1px solid var(--ink-line); border-radius: 999px; text-decoration: none; color: var(--on-ink); background: var(--ink-2); font-size: .9rem; }
.chip:hover { border-color: var(--signal); }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 14px; overflow: hidden; margin-top: 8px; }
.stats div { background: var(--ink-2); padding: 16px; }
.stats b { display: block; font-size: 1.8rem; font-family: var(--font-mono); color: var(--signal); }
.stats span { color: var(--on-ink-2); font-size: .85rem; }

/* sections */
.section-title { display: flex; justify-content: space-between; align-items: end; margin-top: 56px; margin-bottom: 16px; gap: 12px; }
.section-title h2 { margin: 0; font-size: 1.7rem; }
.section-title .eyebrow { color: var(--cta); margin-bottom: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px #0a1a2010; border-color: #cfcfc6; }
.card .thumb { aspect-ratio: 16/9; background: var(--ink-2) center/cover; color: var(--signal); display: grid; place-items: center; font-size: 2.2rem; }
.card .body { padding: 16px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.35; }
.meta { color: var(--muted); font-size: .8rem; font-family: var(--font-mono); }
.excerpt { color: var(--text-2); font-size: .92rem; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bio, .content { white-space: pre-wrap; overflow-wrap: anywhere; }
.cta-band { margin: 64px auto 0; max-width: 1040px; }
.cta-box { background: var(--ink); color: #fff; border-radius: 20px; padding: 40px 24px; text-align: center; margin-inline: 16px; }
.cta-box h2 { margin: 0 0 8px; }
.cta-box p { color: var(--on-ink-2); margin: 0 0 20px; }

/* detail */
.player { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 16px; background: #000; margin: 16px 0; }
video.player { object-fit: contain; }
article h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 12px 0 8px; }
article .content { font-size: 1.05rem; max-width: 70ch; }
article img.cover { width: 100%; border-radius: 16px; margin: 16px 0; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }

/* forms / admin */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
main > form.panel, main > .panel, main > div > .panel { max-width: 720px; }
label { display: block; font-size: .8rem; color: var(--muted); margin: 14px 0 4px; font-family: var(--font-mono); }
input, textarea, select { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
input:focus, textarea:focus { outline: 2px solid var(--cta); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
button, .btn { font: inherit; font-weight: 600; cursor: pointer; padding: 10px 18px; border-radius: 10px; border: 0; background: var(--cta); color: #fff; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: var(--cta-hover); }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.ghost:hover { background: var(--surface-3); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
button:disabled { opacity: .6; cursor: wait; }
.btn.signal { background: var(--signal); color: #1a1300; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.list-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-item span { overflow-wrap: anywhere; }
.msg { color: var(--cta); font-size: .9rem; }
.err { color: var(--danger); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { background: #fff; color: var(--text); border: 1px solid var(--line); }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

footer { background: var(--ink); color: var(--on-ink-2); text-align: center; padding: 28px 16px; font-size: .9rem; font-family: var(--font-mono); }

@media (max-width: 700px) {
  .band .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .avatar { width: 112px; height: 112px; order: -1; font-size: 3rem; }
  .stats b { font-size: 1.3rem; }
  nav a { padding: 8px 9px; font-size: .9rem; }
}
