/* Self-hosted fonts (SIL OFL): latin subsets only, variable where the family allows it. No request to Google. */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/fonts/big-shoulders-display-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/instrument-sans-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/fonts/jetbrains-mono-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Layout: a map key. Left rail = legend of categories, right = the night's findings; video pages read like a field note with a timeline scrubber. */
:root {
  /* dark-first: Leonida at night */
  --ink: #0a1a21;
  --surface: #0f242c;
  --raised: #143039;
  --line: #21414b;
  --fg: #e6f0ec;
  --muted: #8ea8a6;
  --coral: #ff6f59;
  --palm: #3cc9a0;
  --sun: #ffc94a;
  --sky: #5ab8f0;
  --orchid: #d58cf0;
  --on-accent: #10161a;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #e7f0ef;
    --surface: #f6faf9;
    --raised: #ffffff;
    --line: #c6d8d5;
    --fg: #0c2228;
    --muted: #4b6a6b;
    --coral: #d9452f;
    --palm: #0f8a66;
    --sun: #a86f00;
    --sky: #1f78b4;
    --orchid: #9b46b8;
    --on-accent: #ffffff;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink: #e7f0ef;
  --surface: #f6faf9;
  --raised: #ffffff;
  --line: #c6d8d5;
  --fg: #0c2228;
  --muted: #4b6a6b;
  --coral: #d9452f;
  --palm: #0f8a66;
  --sun: #a86f00;
  --sky: #1f78b4;
  --orchid: #9b46b8;
  --on-accent: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { background: var(--ink); color: var(--fg); }
body {
  font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.k-sun { --k: var(--sun); }
.k-palm { --k: var(--palm); }
.k-coral { --k: var(--coral); }
.k-sky { --k: var(--sky); }
.k-orchid { --k: var(--orchid); }

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* header: a floating bar inset from the page edges, rounded like the cards; the wordmark carries the brand
   (GTA6 + a tl;dr sticker), category links sit in one quiet group and show their map-key color when hovered or current */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.top {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 20;
  margin-top: 10px;
}
.top-inner {
  display: flex; align-items: center; gap: 20px; height: 60px;
  padding-left: 18px; padding-right: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 6%, transparent) inset, 0 10px 30px -12px rgb(0 0 0 / .45);
}
/* the bar's edges line up with the page content: the gutter goes outside it, so it is as wide as a shell's content box */
.top { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.top .shell.top-inner { max-width: calc(1240px - 32px); }

.brand { display: inline-flex; align-items: flex-start; flex: none; text-decoration: none; color: var(--fg); }
.brand-word { font: 800 30px/1 var(--display); letter-spacing: .01em; }
.brand-stamp {
  margin: -5px 0 0 3px; padding: 3px 7px 4px; border-radius: 5px;
  background: var(--sun); color: var(--on-accent);
  font: 700 12px/1 var(--body); letter-spacing: .01em;
  transform: rotate(-7deg); transform-origin: left bottom;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--sun) 45%, #000);
  transition: transform .2s ease;
}
.brand:hover .brand-stamp, .brand:focus-visible .brand-stamp { transform: rotate(0deg); }

/* Links that do not fit wrap onto a second row that is clipped away, so the header shows whole links only, in map-key order. */
.top-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 2px; min-width: 0; height: 36px; padding: 2px;
  overflow: hidden; border-radius: 12px; background: color-mix(in srgb, var(--ink) 55%, transparent);
}
.top-nav a {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 10px;
  color: var(--muted); font: 500 14px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.top-nav a .dot { opacity: .55; transition: opacity .15s ease, transform .15s ease; }
.top-nav a:hover { color: var(--fg); }
.top-nav a:hover .dot, .top-nav a[aria-current="page"] .dot { opacity: 1; transform: scale(1.15); }
.top-nav a[aria-current="page"] {
  color: var(--fg); background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / .2);
}
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--k, var(--muted)); }

.search { margin-left: auto; position: relative; flex: 0 1 280px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 38px; padding: 0 38px 0 36px; border-radius: 10px;
  border: 1px solid transparent; background: color-mix(in srgb, var(--ink) 55%, transparent);
  color: var(--fg); font: inherit; font-size: 14px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.search input::placeholder { color: var(--muted); }
.search input:hover { border-color: var(--line); }
.search input:focus {
  outline: none; border-color: var(--coral); background: var(--raised);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 22%, transparent);
}
.search:focus-within svg { color: var(--coral); }
/* the "/" shortcut hint: hidden while typing or once the box holds a query */
.search-key {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none;
  min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 11px/1 var(--mono);
}
.search:focus-within .search-key, .search input:not(:placeholder-shown) ~ .search-key { display: none; }
.search input::-webkit-search-cancel-button { margin-right: -24px; }

.theme-btn {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.theme-btn:hover { color: var(--fg); background: color-mix(in srgb, var(--ink) 55%, transparent); }
/* show the theme you would switch to: a sun on dark, a moon on light */
.theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-btn .i-moon { display: block; }
}
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }

/* home layout */
.home { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-block: 32px 56px; }
.legend { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); align-self: start; display: grid; gap: 4px; }
.legend-title, .eyebrow { font: 600 11px/1 var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.legend a {
  display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px;
}
.legend a:hover { background: var(--surface); }
.legend a[aria-current="page"] { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.swatch { width: 12px; height: 12px; background: var(--k, var(--fg)); border-radius: 2px; }
.swatch.all { background: conic-gradient(var(--sun) 0 20%, var(--palm) 0 40%, var(--coral) 0 60%, var(--sky) 0 80%, var(--orchid) 0); }
.count { font: 500 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }

.intro { display: grid; gap: 10px; margin-bottom: 28px; max-width: 720px; }
.intro h1 { font: 800 clamp(40px, 6vw, 72px)/.92 var(--display); text-transform: uppercase; letter-spacing: .3px; margin: 0; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--coral); }
.intro p { margin: 0; color: var(--muted); font-size: 16px; max-width: 60ch; }

/* featured */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); text-decoration: none; }
.feature h2 { font: 800 clamp(28px, 3.4vw, 40px)/1 var(--display); text-transform: uppercase; margin: 6px 0 12px; text-wrap: balance; }
.feature p { margin: 0 0 16px; color: var(--muted); }
.feature:hover h2 { color: var(--coral); }

/* thumbnail: a generated map tile */
.tile {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: 4px;
  background:
    radial-gradient(circle at var(--x) var(--y), color-mix(in srgb, var(--k) 70%, transparent) 0 7%, transparent 7.5%),
    repeating-radial-gradient(circle at var(--x) var(--y), transparent 0 18px, color-mix(in srgb, var(--k) 30%, transparent) 18px 19px),
    linear-gradient(color-mix(in srgb, var(--fg) 6%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 6%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, color-mix(in srgb, var(--k) 22%, var(--raised)), var(--surface));
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 85%, transparent); font: 600 12px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.tile .pin { z-index: 1; position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px; background: var(--k); color: var(--on-accent); font: 700 11px/1.3 var(--mono); letter-spacing: .6px; text-transform: uppercase; }

/* facts row */
.facts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.reward { font: 600 13px/1.3 var(--mono); color: var(--sun); font-variant-numeric: tabular-nums; }
.flag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font: 600 11px/1.5 var(--mono); letter-spacing: .3px; border: 1px solid currentColor; }
.flag.claimed { color: var(--muted); }
.flag.patch { color: var(--coral); }

/* grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.card { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; text-wrap: balance; }
.card:hover h3 { color: var(--coral); }
.card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .by { font-size: 12px; color: var(--muted); }
.empty { padding: 48px 20px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }
.empty button { margin-top: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font: 800 26px/1 var(--display); text-transform: uppercase; }

/* video page */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 22px 8px; font-size: 13px; color: var(--muted); }
.crumbs button { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.vid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-bottom: 56px; }
.vid h1 { font: 800 clamp(32px, 4.6vw, 56px)/.95 var(--display); text-transform: uppercase; margin: 8px 0 14px; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.55; margin: 18px 0; max-width: 65ch; }
.player { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 6px; overflow: hidden; background: #000; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; }

.scrub { margin-top: 14px; }
.track { position: relative; height: 34px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--line); }
.track .done { position: absolute; left: 0; top: 16px; height: 2px; background: var(--coral); transition: width .25s ease; }
.track button {
  position: absolute; top: 9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--muted); cursor: pointer; padding: 0;
}
.track button[aria-pressed="true"] { background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent); }
.track-ends { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--muted); }
.now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.now time { font: 700 15px/1 var(--mono); color: var(--coral); font-variant-numeric: tabular-nums; }
.now a { margin-left: auto; font-size: 13px; color: var(--sky); }

.block { margin-top: 34px; }
.block h2 { font: 800 22px/1 var(--display); text-transform: uppercase; margin: 0 0 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; max-width: 65ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 13px/1 var(--mono); color: var(--coral); }
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.moments button { display: grid; grid-template-columns: 64px 1fr; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.moments button:hover { background: var(--surface); }
.moments button[aria-pressed="true"] { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.moments time { font: 600 13px/1.6 var(--mono); color: var(--sky); font-variant-numeric: tabular-nums; }
.source { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: 65ch; }
.source a { color: var(--sky); }

.side { display: grid; gap: 22px; align-content: start; }
.sheet { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.sheet dl { margin: 0; }
.sheet .row { padding: 12px 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.sheet .row:first-child { border-top: 0; }
.sheet dt { font: 600 11px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.sheet dd { margin: 0; font-size: 14px; }
.sheet dd.big { font: 700 20px/1.2 var(--mono); color: var(--sun); font-variant-numeric: tabular-nums; }
.meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 4px; }
.meter i { height: 8px; border-radius: 1px; background: var(--line); }
.meter i.on { background: var(--palm); }
.related { display: grid; gap: 14px; }
.related a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; text-decoration: none; font-size: 14px; line-height: 1.35; }
.related a:hover span { color: var(--coral); }
.related .tile { border-radius: 3px; }
.related .tile .pin, .related .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .dur { display: none; }


.btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; font-size: 13px; }

/* chips replace the legend on narrow screens */
.chips { display: none; }

@media (max-width: 960px) {
  .home { grid-template-columns: 1fr; gap: 0; padding-top: 22px; }
  .legend { display: none; }
  .chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 18px; margin-bottom: 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 13px; white-space: nowrap; }
  .chips a[aria-current="page"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }
  .feature { grid-template-columns: 1fr; }
  .vid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .search { max-width: none; }
  .now a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .track .done { transition: none; }
}

/* additions for the live site */
.track[hidden] { display: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; padding-top: 36px; color: var(--muted); font-size: 14px; }
.pager a { color: var(--sky); }
.prose { max-width: 70ch; padding-block: 36px 56px; }
.prose h1 { font: 800 clamp(32px, 4.6vw, 52px)/.95 var(--display); text-transform: uppercase; margin: 0 0 16px; }
.prose a { color: var(--sky); }
.source-link { display: inline-flex; align-items: center; gap: 6px; }
/* grid children must be allowed to shrink, or the chip row widens the page on phones */
.home > main, .feature > *, .vid > * { min-width: 0; }
[hidden] { display: none !important; }

/* footer: quiet, three columns; the brand repeats small */
.site-foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-block: 48px 40px; }
.foot-about { display: grid; gap: 14px; align-content: start; }
.foot-about .brand-word { font-size: 28px; }
.foot-about p { margin: 0; max-width: 46ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.foot-col h2 { margin: 4px 0 14px; font: 600 15px/1.2 var(--body); color: var(--fg); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-links a { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--fg); }
.foot-links a:not([class*="k-"]) .dot { display: none; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding-block: 20px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.foot-base p { margin: 0; max-width: 72ch; }

@media (max-width: 1080px) {
  .top-nav a { padding: 0 10px; }
  .top-inner { gap: 14px; }
}
@media (max-width: 900px) {
  .top-nav { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .top { margin-top: 8px; top: calc(env(safe-area-inset-top, 0px) + 8px); }
  .top-inner { gap: 10px; height: 54px; padding-left: 14px; padding-right: 8px; border-radius: 14px; }
  .brand-word { font-size: 26px; }
  .search { flex: 1 1 auto; }
  .search-key { display: none; } /* no hardware keyboard to press it with */
  .foot-grid { padding-block: 36px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-stamp, .search input, .top-nav a, .top-nav a .dot, .theme-btn { transition: none; }
}

/* cookie consent: a floating card bottom-left; on phones a bar across the bottom. Accept and Reject look identical. */
.consent {
  position: fixed; z-index: 40;
  left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 40px));
  display: grid; gap: 14px; padding: 18px 18px 16px;
  background: var(--raised); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 50px -12px color-mix(in srgb, #000 55%, transparent);
}
.consent p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent p a { color: var(--sky); }
.consent-actions { display: flex; gap: 10px; }
.consent-btn {
  flex: 1; height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 14px/1 var(--body);
}
.consent-btn:hover { background: var(--ink); }
.consent:focus { outline: none; }
.consent:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.prose h2 { font: 800 24px/1.1 var(--display); text-transform: uppercase; margin: 32px 0 10px; scroll-margin-top: 90px; }
@media (max-width: 560px) {
  .consent {
    left: 0; right: 0; bottom: 0; width: auto; border-radius: 14px 14px 0 0; border-width: 1px 0 0;
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
}
.not-found ul { padding-left: 20px; display: grid; gap: 6px; }
.not-found a { color: var(--sky); }

/* category introduction below the grid: plain reading text */
.cat-intro { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 68ch; }
.cat-intro h2 { margin: 0 0 12px; font: 800 26px/1.05 var(--display); text-transform: uppercase; }
.cat-intro p { margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* hidden from sight, still read by screen readers (form legends, the honeypot field) */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* feedback tab: docked mid-left on wide screens, bottom-left corner below 1480px, icon only on a phone.
   It steps aside while the cookie banner (same corner) is open. */
.fbtab {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 39;
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px;
  border: 0; border-radius: 0 999px 999px 0; background: var(--coral); color: var(--on-accent);
  font: 700 13px/1 var(--mono); letter-spacing: .3px; cursor: pointer;
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--coral) 70%, transparent), 0 2px 6px rgba(0, 0, 0, .25);
  transition: padding .15s, filter .15s;
}
.fbtab svg { flex: none; }
.fbtab:hover, .fbtab:focus-visible { padding-right: 20px; filter: brightness(1.08); }
.fbtab:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
body:has(#consent:not([hidden])) .fbtab { display: none; }
@media (max-width: 1480px) { .fbtab { top: auto; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: none; } }
@media (max-width: 600px) { .fbtab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); padding: 0 12px; } .fbtab span { display: none; } }
@media print { .fbtab { display: none; } }
@media (prefers-reduced-motion: reduce) { .fbtab { transition: none; } }

/* modal dialog */
.dlg {
  padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--fg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.dlg::backdrop { background: rgba(6, 14, 18, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html:has(.dlg[open]) { overflow: hidden; }
.dlg .in { padding: 20px 22px 22px; }
.dlg header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dlg h2 { margin: 0; font: 800 28px/1 var(--display); text-transform: uppercase; }
.dlg-x {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.dlg-x:hover { color: var(--fg); background: var(--surface); }
.dlg[open] { animation: dlg-in .16s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .dlg[open] { animation: none; } }

/* feedback and contact forms (.fbd) */
.fbd form { display: grid; gap: 14px; }
.fbd form[hidden], .fbd .fb-done[hidden], .fbd .fb-alert[hidden] { display: none; }
.fbd .fb-done { display: grid; gap: 14px; }
.fbd .fb-lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.fbd fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fbd .opt {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  font: 600 12px/1.2 var(--mono); cursor: pointer;
}
.fbd .opt:has(input:checked) { border-color: var(--coral); color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, transparent); }
.fbd .opt input { accent-color: var(--coral); margin: 0; }
.fbd .fb-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fbd .fb-opt { font-weight: 400; color: var(--muted); }
.fbd textarea, .fbd input[type="email"], .fbd input[type="text"] {
  font: 400 15px/1.5 var(--body); border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  border-radius: 8px; padding: 9px 11px; resize: vertical;
}
.fbd textarea:focus-visible, .fbd input:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; border-color: transparent; }
.fbd .fb-acts { display: flex; justify-content: flex-end; gap: 8px; }
.fb-btn {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  font: 600 14px/1 var(--body); cursor: pointer;
}
.fb-btn:hover { background: var(--ink); }
.fb-btn.pri { background: var(--coral); border-color: var(--coral); color: var(--on-accent); }
.fb-btn.pri:hover { filter: brightness(1.08); background: var(--coral); }
.fb-btn:disabled { opacity: .6; cursor: progress; }
.fb-notice, .fb-alert { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.fb-notice { border: 1px solid var(--palm); background: color-mix(in srgb, var(--palm) 12%, transparent); }
.fb-alert { border: 1px solid var(--coral); background: color-mix(in srgb, var(--coral) 12%, transparent); }

/* contact page */
.contact { max-width: 560px; }
.contact > p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.contact .fb-acts { justify-content: flex-start; }
