/* Layout: one dark "desk" page in the icon's navy; the product is shown on parchment
   panels laid on it, with amber as the single accent (the icon's plot nodes). */
:root {
  color-scheme: dark;
  --desk: #161a2e;        /* icon background */
  --desk-raised: #1f2440;
  --rule: #2e3456;
  --ink-on-desk: #e9e3d3;
  --muted-on-desk: #c9cbdb;
  --parchment: #f3ecd9;   /* icon pages */
  --parchment-edge: #e2d8bd;
  --ink: #2a2a33;
  --ink-soft: #6b6555;
  --amber: #e2a04b;       /* icon nodes */
  --amber-deep: #b9772a;
  --mood-calm: #6fa3c8;
  --mood-tense: #d06a5a;
  --mood-hope: #7fb07a;
  --mood-dread: #9a7bc2;
  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", -apple-system, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.3rem, 5vw, 3.5rem);
  --radius: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  background: var(--desk);
  color: var(--ink-on-desk);
  font: 400 1.0625rem/1.65 var(--body);
}
a { color: var(--amber); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; letter-spacing: 0.005em; }
.eyebrow { font: 500 0.82rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.lede { color: var(--muted-on-desk); font-size: var(--step-1); line-height: 1.5; max-width: 38ch; margin: 0; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--desk) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-on-desk); text-decoration: none; font-family: var(--display); font-size: 1.3rem; }
.brand svg, .brand img { width: 30px; height: 30px; flex: none; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--muted-on-desk); text-decoration: none; font-size: 1rem; }
.nav ul a:hover { color: var(--ink-on-desk); }
@media (max-width: 640px) { .nav ul { gap: 14px; } .nav ul li.optional { display: none; } }

/* ---------- strapline ---------- */
.strapline { margin: 0; padding: 18px 20px; text-align: center; font: 400 var(--step-1)/1.3 var(--display); color: var(--ink-on-desk); border-bottom: 1px solid var(--rule); background: var(--desk-raised); }
.strapline span { color: var(--amber); }

/* ---------- hero ---------- */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: var(--step-4); line-height: 1.04; margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 0.95rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--amber); color: var(--desk); }
.btn-primary:hover { background: #ecb064; }
.btn-ghost { color: var(--ink-on-desk); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--muted-on-desk); }
.meta { margin-top: 18px; font: 400 0.9rem/1.5 var(--mono); color: var(--muted-on-desk); }

/* window mock */
.window { background: var(--parchment); color: var(--ink); border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.06); overflow: hidden; }
.titlebar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--parchment-edge); font: 500 0.75rem/1 var(--mono); color: var(--ink-soft); }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #d9cfb3; display: block; }
.titlebar span { margin-left: 10px; }
.plotline { display: block; width: 100%; height: auto; }
.window figcaption { padding: 10px 14px 12px; font: 400 0.72rem/1.4 var(--mono); color: var(--ink-soft); border-top: 1px solid var(--parchment-edge); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.window figcaption b { font-weight: 500; color: var(--ink); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }

@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero { padding-block: 48px 40px; } }

/* ---------- intro ---------- */
.intro .wrap { max-width: 820px; display: grid; gap: 18px; text-align: center; justify-items: center; }
.intro h2 { font-size: var(--step-3); line-height: 1.12; }
.intro h2 em { font-style: normal; color: var(--amber); }
.intro p { margin: 0; font-size: var(--step-1); line-height: 1.55; color: var(--ink-on-desk); max-width: 60ch; }

/* ---------- stages ---------- */
.section { padding-block: 72px; border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 60ch; }
.section-head h2 { font-size: var(--step-3); line-height: 1.1; }
.section-head p { margin: 0; color: var(--muted-on-desk); }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.stage { padding: 26px 24px 28px; display: grid; gap: 12px; align-content: start; border-left: 1px solid var(--rule); min-width: 0; }
.stage:first-child { border-left: 0; }
.stage .num { font: 500 0.8rem/1 var(--mono); color: var(--amber); display: flex; align-items: center; gap: 10px; }
.stage .num::after { content: ""; height: 1px; flex: 1; background: var(--rule); }
.stage h3 { font-size: var(--step-2); }
.stage p { margin: 0; color: var(--muted-on-desk); font-size: 1.05rem; }
.stage ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 1rem; }
.stage li { padding-left: 16px; position: relative; }
.stage li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.ext { font-size: 0.8em; margin-left: 2px; text-decoration: none; display: inline-block; }
.stage code { font: 400 0.92rem var(--mono); color: var(--ink-on-desk); }
@media (max-width: 960px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stage:nth-child(3) { border-left: 0; } .stage:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 560px) { .stages { grid-template-columns: minmax(0, 1fr); } .stage { border-left: 0; } .stage + .stage { border-top: 1px solid var(--rule); } }
.stages-label { margin: 36px 0 14px; font: 500 0.8rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.stages.minor .stage { padding: 20px 22px 22px; gap: 8px; }
.stages.minor .stage h3 { font-size: var(--step-1); }
.stages.minor .stage p { font-size: 1rem; }

/* ---------- export strip ---------- */
.formats { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted-on-desk); font-size: 1rem; }
.fmt { font: 500 0.88rem/1 var(--mono); padding: 7px 10px; border-radius: 6px; background: var(--desk-raised); color: var(--ink-on-desk); border: 1px solid var(--rule); }

/* ---------- first book ---------- */
.first-book { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.first-book .section-head { margin-bottom: 0; }
.first-book h2 em { font-style: normal; color: var(--amber); }
.checklist ul { list-style: none; margin: 0; padding: 18px 20px; display: grid; gap: 12px; font-size: 0.98rem; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; }
.checklist li.done { color: var(--ink-soft); }
.checklist li.done::before { background: var(--mood-hope); }
.checklist li.done::after { content: ""; position: absolute; left: 5px; top: calc(0.2em + 3px); width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist li.open::before { border: 1.5px solid var(--ink-soft); }
.checklist li span { display: block; font: 400 0.8rem/1.4 var(--mono); color: var(--ink-soft); }
@media (max-width: 860px) { .first-book { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------- promises ---------- */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.promise { display: grid; gap: 10px; align-content: start; min-width: 0; }
.promise h3 { font-size: var(--step-2); }
.promise p { margin: 0; color: var(--muted-on-desk); }
@media (max-width: 760px) { .promises { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- videos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: 500 0.88rem/1 var(--body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--muted-on-desk); cursor: pointer; }
.filter:hover { color: var(--ink-on-desk); border-color: var(--muted-on-desk); }
.filter[aria-pressed="true"] { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }
.filter .n { font: 400 0.75rem var(--mono); opacity: 0.7; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 22px; }
.video { text-decoration: none; color: inherit; display: grid; gap: 10px; align-content: start; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--parchment); color: var(--ink); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s ease; }
.thumb::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 34%; background: var(--c); opacity: 0.9; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.thumb .how { position: relative; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.thumb .what { position: relative; font: 400 1.15rem/1.15 var(--display); max-width: 70%; text-wrap: balance; }
.thumb .dur { position: absolute; right: 10px; bottom: 10px; font: 500 0.7rem/1 var(--mono); background: rgb(22 26 46 / 0.85); color: #f3ecd9; padding: 4px 6px; border-radius: 4px; }
.thumb .play { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgb(22 26 46 / 0.85); display: grid; place-items: center; }
.thumb .play::after { content: ""; border-left: 11px solid #f3ecd9; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.video:hover .thumb { transform: translateY(-3px); }
.video h3 { font: 600 0.98rem/1.35 var(--body); }
.video .cat { font: 400 0.85rem/1 var(--mono); color: var(--muted-on-desk); }
.empty { color: var(--muted-on-desk); }
.soon { display: grid; gap: 12px; justify-items: start; padding: 36px 32px; border: 1px dashed var(--rule); border-radius: var(--radius); background: var(--desk-raised); }
.soon h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
.soon p { margin: 0; color: var(--muted-on-desk); }
.soon ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.soon li { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; }
.soon li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ---------- support / privacy ---------- */
.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font: 400 1.3rem/1 var(--mono); color: var(--amber); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted-on-desk); max-width: 62ch; }
.panel { background: var(--parchment); color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.panel h3 { font-size: var(--step-2); }
.panel p { margin: 0; }
.panel .small { font-size: 1rem; color: var(--ink-soft); }
.contact a { color: var(--ink); }
.contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 0.95rem var(--mono); }
.contact button { font: 500 0.8rem var(--body); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--parchment-edge); background: transparent; color: var(--ink); cursor: pointer; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--rule); padding-block: 40px 56px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.coffee { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; max-width: 52ch; color: var(--muted-on-desk); }
.coffee p { margin: 0; flex: 1 1 260px; }
footer small { color: var(--muted-on-desk); font-size: 0.95rem; }
footer small a { color: var(--ink-on-desk); }

.thumb img.yt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.thumb .play, .thumb .dur { z-index: 2; }

/* ---------- privacy page ---------- */
.policy { padding-block: 56px 72px; }
.policy .wrap { max-width: 720px; display: grid; gap: 18px; }
.policy h1 { font-size: var(--step-3); line-height: 1.1; }
.policy h2 { font-size: var(--step-2); margin-top: 14px; }
.policy p, .policy li { color: var(--muted-on-desk); }
.policy p { margin: 0; }
.policy ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- comments page ---------- */
.comments-page { padding-block: 56px 72px; }
.comments-page .wrap { max-width: 720px; display: grid; gap: 22px; }
.comments-page h1 { font-size: var(--step-3); line-height: 1.1; }
.comments-page .lede { font-size: var(--step-0); max-width: none; }
.notice { margin: 0; padding: 14px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--mood-hope) 18%, var(--desk-raised)); border: 1px solid var(--mood-hope); }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.comment-list > .empty { padding: 18px 20px; border: 1px dashed var(--rule); border-radius: var(--radius); }
.comment { padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--desk-raised); display: grid; gap: 8px; min-width: 0; }
.comment header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.comment .who { font-weight: 600; }
.comment .badge { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.comment .when { font: 400 0.8rem var(--mono); color: var(--muted-on-desk); }
.comment p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment .replies { list-style: none; margin: 6px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--amber); display: grid; gap: 12px; }
.comment .replies .comment { padding: 0; border: 0; background: none; }
.comment-form h2 { font-size: var(--step-2); }
.comment-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.comment-form input, .comment-form textarea { color-scheme: light; font: 400 1rem/1.5 var(--body); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--parchment-edge); background: #fffaf0; color: var(--ink); width: 100%; }
.comment-form textarea { resize: vertical; }
.comment-form input:focus-visible, .comment-form textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.comment-form .hint { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.comment-form .form-foot { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.comment-form .form-foot .hint { flex: 1 1 220px; }
.comment-form a { color: var(--amber-deep); }
.visits { margin: 0; font: 400 0.85rem var(--mono); color: var(--muted-on-desk); }

/* ---------- warmth: a soft amber and blue glow behind the hero and tour ---------- */
.hero { background:
  radial-gradient(60% 70% at 85% 40%, rgb(226 160 75 / 0.16), transparent 70%),
  radial-gradient(50% 60% at 10% 0%, rgb(111 163 200 / 0.12), transparent 70%); }
.tour { background: radial-gradient(70% 60% at 50% 100%, rgb(154 123 194 / 0.12), transparent 70%); }

/* ---------- release pill ---------- */
.release { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--rule); background: var(--desk-raised); color: var(--ink-on-desk); text-decoration: none; font-size: 0.92rem; }
.release b { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--amber); color: var(--desk); padding: 5px 9px; border-radius: 999px; }
.release:hover { border-color: var(--amber); }

/* ---------- real screenshots ---------- */
.shot { margin: 0; display: grid; gap: 12px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.08); background: var(--desk-raised); }
.shot figcaption { font: 400 0.85rem/1.5 var(--mono); color: var(--muted-on-desk); text-align: center; }
.shot figcaption b { color: var(--ink-on-desk); font-weight: 500; margin-right: 6px; }
/* The hero stacks: the words centred, then the app at full width beneath them. */
.hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; justify-items: center; text-align: center; }
.hero .wrap > div { max-width: 780px; display: grid; justify-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero .lede { max-width: 46ch; }
.hero .cta { justify-content: center; }
.hero-shot { width: 100%; gap: 30px; }
.hero-shot img { transform: perspective(2000px) rotateX(6deg); transform-origin: center top; }
@media (max-width: 860px) { .hero-shot img { transform: none; } }

/* ---------- tour ---------- */
.tour .section-head h2 em { font-style: normal; color: var(--amber); }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tour-tabs button { display: inline-flex; align-items: center; gap: 8px; font: 500 0.95rem/1 var(--body); padding: 10px 16px 10px 10px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--muted-on-desk); cursor: pointer; }
.tour-tabs button .n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: var(--desk); font: 500 0.75rem/1 var(--mono); }
.tour-tabs button:hover { color: var(--ink-on-desk); border-color: var(--c); }
.tour-tabs button[aria-selected="true"] { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }
.tour-shot figcaption { text-align: left; font: 400 1.05rem/1.5 var(--body); }
.tour-shot figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--amber); }

/* ---------- what's new ---------- */
.changes { padding-block: 56px 72px; }
.changes .wrap { max-width: 780px; display: grid; gap: 22px; }
.changes h1 { font-size: var(--step-3); line-height: 1.1; }
.release-notes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.version { position: relative; padding: 0 0 40px 34px; border-left: 2px solid var(--rule); margin-left: 8px; }
.version:last-child { border-left-color: transparent; }
.version::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--desk); border: 2px solid var(--amber); }
.version.latest::before { background: var(--amber); box-shadow: 0 0 0 6px rgb(226 160 75 / 0.18); }
.version header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.version h2 { font-size: var(--step-2); }
.version time { font: 400 0.85rem var(--mono); color: var(--muted-on-desk); }
.version .tag { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--desk); background: var(--amber); padding: 4px 8px; border-radius: 999px; }
.version > p { margin: 0 0 16px; color: var(--muted-on-desk); }
.version h3 { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin: 18px 0 10px; color: var(--c, var(--amber)); }
.version h3.new { --c: var(--mood-hope); }
.version h3.improved { --c: var(--mood-calm); }
.version h3.fixed { --c: var(--mood-tense); }
.version ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.version li { padding-left: 18px; position: relative; color: var(--ink-on-desk); }
.version li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--amber)); }
.version ul.new li { --c: var(--mood-hope); }
.version ul.improved li { --c: var(--mood-calm); }
.version ul.fixed li { --c: var(--mood-tense); }
.version li b { font-weight: 600; }
.nav ul a { white-space: nowrap; }
@media (max-width: 480px) { .nav ul { gap: 12px; } .nav ul a { font-size: 0.92rem; } .brand { font-size: 1.15rem; } }
.nav ul a[aria-current="page"] { color: var(--amber); }

/* ---- wishlist ---- */
.wish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wish-list > .empty { padding: 18px 20px; border: 1px dashed var(--rule); border-radius: var(--radius); }
.wish { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--desk-raised); min-width: 0; }
.wish.planned { border-color: color-mix(in srgb, var(--amber) 55%, var(--rule)); }
.wish.pending { border-style: dashed; }
.wish-body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.wish header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.wish h3 { font: 600 1.05rem/1.35 var(--body); margin: 0; overflow-wrap: anywhere; }
.wish p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.wish .credit { font-size: 0.88rem; color: var(--muted-on-desk); }
.wish .badge { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); text-decoration: none; }
.wish.done .badge { color: var(--mood-hope); }
.vote, .wish .votes { flex: none; display: grid; justify-items: center; gap: 2px; width: 52px; padding: 8px 0; border-radius: 8px; border: 1px solid var(--rule); background: var(--desk); color: var(--muted-on-desk); font: 600 1rem/1 var(--body); }
.vote { cursor: pointer; }
.vote .arrow { font-size: 0.8rem; }
.vote:hover { border-color: var(--muted-on-desk); color: var(--ink-on-desk); }
.vote[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--desk); }
.vote:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.vote:disabled { opacity: 0.6; }
.wishlist-page #done-section { display: grid; gap: 14px; }
.wishlist-page #done-section[hidden] { display: none; }
.wishlist-page h2 { font-size: var(--step-2); }
.notice.error { background: color-mix(in srgb, var(--mood-tense) 18%, var(--desk-raised)); border-color: var(--mood-tense); }
.wish .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.btn.small { padding: 7px 12px; font-size: 0.85rem; }
button.btn-ghost { background: transparent; }
.wish .comment-form { margin-top: 8px; padding: 18px; }
.comment-form select { font: 400 1rem/1.5 var(--body); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--parchment-edge); background: #fffaf0; color: var(--ink); width: 100%; }
.comment-form .btn-ghost { color: var(--ink); border-color: var(--parchment-edge); }
.version h3.wished { --c: var(--amber); }
.version ul.wished li { --c: var(--amber); }
/* Phones: the links get a row of their own beneath the name. */
@media (max-width: 560px) {
  .nav .wrap { flex-wrap: wrap; row-gap: 10px; }
  .nav ul { margin: 0; width: 100%; justify-content: space-between; }
}
