/* Layout: suzankamau.com's look (dark sand-to-black hero, huge bold sans, stat row, rounded-3xl cards) wrapped around a roadmap.sh-style spine: sand phase nodes, session cards branching left and right. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f6f2ee;
  --ink: #0b0c0f;
  --muted: #5b606b;
  --line: #e8e2db;
  --sand: #caae9a;
  --sand-deep: #c4b5a0;
  --sand-soft: #efe4db;
  --on-sand: #17110c;
  --slate: #1a202c;
  --hero-ink: #ffffff;
  --done: #2c7a55;
  --done-soft: #e1f1e8;
  --live: #c2410c;
  --paused: #8a6a1f;
  --paused-soft: #f5ecd6;
  --focus: #2563eb;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-xl: 24px;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --surface: #141821; --soft: #1a1f2a; --ink: #f3f1ee; --muted: #a2a8b4; --line: #262c38;
    --sand: #d4b9a4; --sand-deep: #c9b8a2; --sand-soft: #2b241e; --on-sand: #17110c; --slate: #1a202c;
    --done: #5fc792; --done-soft: #12301f; --live: #fb8c55; --paused: #e0bf6a; --paused-soft: #302712; --focus: #8ab4ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --surface: #141821; --soft: #1a1f2a; --ink: #f3f1ee; --muted: #a2a8b4; --line: #262c38;
  --sand: #d4b9a4; --sand-deep: #c9b8a2; --sand-soft: #2b241e; --on-sand: #17110c; --slate: #1a202c;
  --done: #5fc792; --done-soft: #12301f; --live: #fb8c55; --paused: #e0bf6a; --paused-soft: #302712; --focus: #8ab4ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }

/* Hero */
.hero { position: relative; color: var(--hero-ink); background: radial-gradient(120% 90% at 0% 0%, #caae9a 0%, #6d6158 22%, #1a202c 55%, #05060a 100%); padding-block: 26px 44px; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: .02em; text-decoration: none; }
.logo sup { color: var(--sand); font-size: 16px; top: -.35em; }
.topbar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.ghost:hover { background: rgba(255,255,255,.14); }
.hero h1 { font-size: clamp(44px, 9vw, 120px); line-height: .95; letter-spacing: -.045em; font-weight: 700; margin: 64px 0 18px; text-wrap: balance; }
.hero .lede { max-width: 58ch; font-size: 18px; font-weight: 300; color: rgba(255,255,255,.82); margin: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-top: 44px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat b { display: block; font-size: clamp(34px, 5vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.62); font-size: 15px; }
.next { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-xl); padding: 22px; backdrop-filter: blur(8px); min-width: 0; }
.next .eyebrow { color: var(--sand); }
.next h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin: 8px 0 6px; text-wrap: balance; }
.next .when { color: rgba(255,255,255,.78); font-size: 14.5px; }
.next .count { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.btn-sand { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: var(--sand); color: var(--on-sand); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn-sand:hover { background: var(--sand-deep); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.people { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: 14.5px; color: rgba(255,255,255,.72); }
.people strong { color: #fff; font-weight: 600; }

/* Progress */
.progress { padding-block: 44px 8px; }
.progress-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.progress-head h2, .section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.progress-head .meta { color: var(--muted); }
.bar { height: 10px; border-radius: 999px; background: var(--soft); margin-top: 16px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .6s ease; }
.phase-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--soft); border: 1px solid transparent; border-radius: var(--radius); padding: 14px 16px; cursor: pointer; min-width: 0; }
.tile:hover { border-color: var(--sand); }
.tile .eyebrow { color: var(--muted); font-size: 11px; }
.tile strong { font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.tile .dates { color: var(--muted); font-size: 13px; }
.tile .mini { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tile .mini i { display: block; height: 100%; background: var(--done); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; color: var(--muted); font-size: 13.5px; }

/* Roadmap spine */
.roadmap { position: relative; padding-block: 40px 56px; }
.roadmap::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed var(--line); }
.phase { position: relative; margin-bottom: 44px; scroll-margin-top: 20px; }
.node { position: relative; z-index: 1; max-width: 580px; margin: 0 auto 30px; background: var(--sand); color: var(--on-sand); border-radius: var(--radius-xl); padding: 22px 24px; }
.node .eyebrow { opacity: .7; }
.node h3 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin: 6px 0 8px; text-wrap: balance; }
.node p { margin: 0 0 14px; font-size: 15.5px; }
.node .milestone { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14.5px; border-top: 1px solid rgba(23,17,12,.2); padding-top: 12px; }
.node .milestone svg { flex: none; margin-top: 3px; }
.sessions { display: grid; grid-template-columns: 1fr 1fr; column-gap: 88px; }
.slot { position: relative; min-width: 0; }
.slot:nth-child(odd) { grid-column: 1; }
.slot:nth-child(even) { grid-column: 2; margin-top: 56px; }
.sessions { row-gap: 4px; }
.slot::after { content: ""; position: absolute; top: 38px; width: 44px; border-top: 2px solid var(--line); }
.slot:nth-child(odd)::after { right: -44px; }
.slot:nth-child(even)::after { left: -44px; }
.slot::before { content: ""; position: absolute; top: 31px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); z-index: 1; }
.slot:nth-child(odd)::before { right: -52px; }
.slot:nth-child(even)::before { left: -52px; }
.slot[data-status="done"]::before { background: var(--done); border-color: var(--done); }
.slot[data-status="live"]::before { background: var(--live); border-color: var(--live); }
.card { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px 16px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--sand); box-shadow: 0 10px 30px rgba(10, 12, 18, .08); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-top .eyebrow { color: var(--muted); font-size: 11px; }
.card h4 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 6px; text-wrap: balance; }
.card .when { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.card p { margin: 10px 0 12px; font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 12.5px; font-weight: 600; }
.chip.empty { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-weight: 500; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pill.upcoming { background: var(--soft); color: var(--muted); }
.pill.live { background: var(--live); color: #fff; }
.pill.done { background: var(--done-soft); color: var(--done); }
.pill.postponed { background: var(--paused-soft); color: var(--paused); }
.add-session { display: block; margin: 18px auto 0; position: relative; z-index: 1; border: 1px dashed var(--sand); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14px; cursor: pointer; }
.finish { position: relative; z-index: 1; max-width: 400px; margin: 0 auto; text-align: center; background: var(--slate); color: #fff; border-radius: var(--radius-xl); padding: 20px; }
.finish strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.finish span { color: rgba(255,255,255,.7); font-size: 14px; }

/* Design section */
.section { padding-block: 48px; }
.section .sub { color: var(--muted); max-width: 65ch; margin: 10px 0 24px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shot { margin: 0; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.shot figcaption { padding: 10px 14px; font-size: 14px; font-weight: 600; }
.res-list { display: grid; gap: 10px; margin-top: 20px; }
.res { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: var(--radius); padding: 12px 16px; min-width: 0; }
.res .grow { flex: 1; min-width: 0; }
.res a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.res a:hover { text-decoration: underline; }
.res small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding-block: 28px 80px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer a { color: var(--muted); }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5, 6, 10, .5); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(600px, 100%); overflow-y: auto; background: var(--bg); padding-bottom: 110px; box-shadow: -20px 0 60px rgba(0,0,0,.25); }
.drawer-head { position: relative; color: #fff; background: radial-gradient(140% 120% at 0% 0%, #caae9a 0%, #1a202c 60%, #05060a 100%); padding: 24px 24px 26px; }
.drawer-head .eyebrow { color: var(--sand); }
.drawer-head h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin: 8px 44px 10px 0; text-wrap: balance; }
.drawer-head .when { color: rgba(255,255,255,.8); font-size: 15px; }
.close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.drawer-body { display: grid; gap: 26px; padding: 24px; }
.drawer-body h3 { margin: 0 0 8px; color: var(--muted); }
.drawer-body p { margin: 0; }
.drawer-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.callout { background: var(--sand-soft); border-radius: var(--radius); padding: 16px 18px; }
.note { background: var(--soft); border-radius: var(--radius); padding: 14px 16px; white-space: pre-wrap; }
.links { display: grid; gap: 8px; }
.lk { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.lk a { flex: 1; min-width: 0; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.lk a:hover { text-decoration: underline; }
.lk .t { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.empty-links { color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; }
.x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.x:hover { color: var(--live); border-color: var(--live); }

/* Admin */
.adminbar { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--bg); font-size: 14px; }
.adminbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 10px; }
.adminbar a, .adminbar button { color: var(--bg); background: transparent; border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; text-decoration: none; cursor: pointer; }
.edit-box { display: grid; gap: 14px; border: 1px dashed var(--sand); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.edit-box > .eyebrow { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > * { flex: 1 1 130px; min-width: 0; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 15px; font-weight: 400; }
.field textarea { min-height: 84px; resize: vertical; }
.field small { font-weight: 400; }
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.danger { color: var(--live); border-color: var(--live); background: transparent; }
.err { color: var(--live); font-size: 13.5px; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: var(--bg); padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); }
.savebar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.savebar .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.savebar .btn.sand { background: var(--sand); color: var(--on-sand); border-color: var(--sand); }

/* Login */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(120% 90% at 0% 0%, #caae9a 0%, #6d6158 22%, #1a202c 55%, #05060a 100%); }
.login-card { width: min(420px, 100%); background: var(--surface); color: var(--ink); border-radius: var(--radius-xl); padding: 32px 28px; }
.login-card .logo { color: var(--ink); }
.login-card h1 { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; margin: 28px 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 22px; }
.login-card form { display: grid; gap: 14px; }
.login-card .btn { width: 100%; padding-block: 12px; }

.loading { padding: 80px 20px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phase-tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .roadmap::before { left: 14px; }
  .node, .finish { margin-left: 36px; max-width: none; }
  .add-session { margin-left: 36px; }
  .sessions { grid-template-columns: 1fr; row-gap: 14px; padding-left: 36px; }
  .slot:nth-child(n) { grid-column: 1; margin-top: 0; }
  .slot:nth-child(n)::after { left: -22px; right: auto; width: 22px; }
  .slot:nth-child(n)::before { left: -30px; right: auto; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stat span { font-size: 13px; }
  .hero h1 { margin-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
