/* Promptholm.com
   Layout: a sea chart in daylight. Pale water for a page, one big window onto the island,
   and a map legend that decodes it. The page is light on purpose and only light: the game
   itself brings the colour, from its turquoise shallows and red roofs. */
:root {
  color-scheme: light;

  /* colour: taken from the island itself */
  --mist: #f2f7f7;        /* the page: pale water */
  --foam: #ffffff;        /* raised surfaces */
  --sand: #f3ecdd;        /* the beach, for alternate bands */
  --shallow: #dcefec;     /* the lagoon, for tinted bands */
  --deep: #0d2a38;        /* ink: the open sea */
  --tide: #4a606b;        /* secondary ink */
  --lagoon: #0f7577;      /* links and labels */
  --lagoon-bright: #1fa3a0;
  --roof: #c64e27;        /* the one loud colour: a roof tile */
  --roof-dark: #9c3a1b;
  --gold: #e3b04b;
  --line: rgba(13, 42, 56, 0.14);
  --line-strong: rgba(13, 42, 56, 0.28);
  --glass: rgba(18, 37, 36, 0.88);  /* the game's own panel, for the title card */
  --glass-ink: #f6f0df;
  --glass-dim: #b7c5ba;

  /* type */
  --display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Figtree", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.9vw, 1.6rem);
  --step-3: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.4rem + 3.9vw, 4.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow-shot: 0 1px 2px rgba(13, 42, 56, 0.08), 0 18px 40px -18px rgba(13, 42, 56, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--deep);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--lagoon-bright); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--shallow); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
kbd {
  display: inline-block; min-width: 1.7em; text-align: center; padding: 0.05em 0.45em;
  border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 6px;
  background: var(--foam); color: var(--deep); line-height: 1.4;
}

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--deep); color: var(--foam); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lagoon); margin-bottom: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}

/* ---------- buttons: a toy block, with its shadow under it ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  background: var(--roof); color: #fff; border: 0; border-radius: 10px;
  padding: 15px 22px 14px; cursor: pointer;
  box-shadow: 0 3px 0 var(--roof-dark), 0 10px 22px -10px rgba(198, 78, 39, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { color: #fff; background: #d45a31; transform: translateY(-1px); box-shadow: 0 4px 0 var(--roof-dark), 0 14px 26px -10px rgba(198, 78, 39, 0.75); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--roof-dark), 0 4px 10px -6px rgba(198, 78, 39, 0.7); }
.btn-ghost { background: var(--foam); color: var(--deep); box-shadow: 0 3px 0 var(--line-strong), inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: var(--foam); color: var(--deep); box-shadow: 0 4px 0 var(--line-strong), inset 0 0 0 1px var(--deep); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--line-strong), inset 0 0 0 1px var(--deep); }
.btn-small { padding: 11px 16px 10px; font-size: 0.93rem; }
.btn-wide { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(242, 247, 247, 0.86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); font-family: var(--display); font-size: 1.3rem; }
.brand img { border-radius: 9px; }
.brand:hover { color: var(--deep); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--tide); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--deep); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) 0; position: relative; }
.hero::before {
  /* a band of shallow water behind the headline, fading into the page */
  content: ""; position: absolute; inset: 0 0 35% 0; z-index: -1;
  background: radial-gradient(120% 90% at 85% 0%, var(--shallow) 0%, rgba(220, 239, 236, 0) 60%);
}
.hero-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero h1 { max-width: 14ch; }
.hero-side { display: grid; gap: 22px; padding-bottom: 6px; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--deep); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { font-size: var(--step--1); color: var(--tide); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .hero-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.hero-shot { margin: clamp(32px, 5vw, 56px) 0 0; position: relative; }
.hero-shot picture img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 2px 4px rgba(13, 42, 56, 0.1), 0 40px 80px -40px rgba(13, 42, 56, 0.6);
}
.hero-shot figcaption { font-size: var(--step--1); color: var(--tide); margin-top: 14px; }

/* the game's own title card, laid over its screenshot */
.titlecard {
  position: absolute; top: clamp(12px, 2.4vw, 28px); left: clamp(12px, 2.4vw, 28px);
  background: var(--glass); color: var(--glass-ink);
  border: 1px solid rgba(221, 205, 157, 0.22); border-radius: 16px;
  padding: 16px 20px 16px; min-width: 250px;
  box-shadow: 0 8px 24px rgba(5, 22, 24, 0.3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.titlecard p { margin: 0; }
.tc-kicker { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tc-name { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.7rem; line-height: 1.2; margin-top: 4px !important; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.tc-live { font-family: var(--body); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glass-dim); display: inline-flex; align-items: center; gap: 6px; }
.tc-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8fd18a; box-shadow: 0 0 0 0 rgba(143, 209, 138, 0.6); animation: pulse 2.4s ease-out infinite; }
.tc-founded { font-size: 0.78rem; color: var(--glass-dim); }
.tc-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; padding-top: 12px; border-top: 1px solid rgba(221, 205, 157, 0.18); }
.tc-stats span { font-size: 0.82rem; background: rgba(255, 255, 255, 0.07); border-radius: 999px; padding: 3px 10px; color: var(--glass-ink); font-variant-numeric: tabular-nums; }
.tc-stats b { color: var(--gold); font-weight: 700; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 209, 138, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(143, 209, 138, 0); } }
@media (prefers-reduced-motion: reduce) { .tc-live::before { animation: none; } }
@media (max-width: 560px) {
  .titlecard { position: static; margin-top: 12px; min-width: 0; }
}

/* ---------- facts ---------- */
.facts { padding-block: clamp(40px, 6vw, 64px); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.facts-row p { font-size: 0.97rem; color: var(--tide); border-top: 2px solid var(--deep); padding-top: 14px; }
.facts-row b { display: block; color: var(--deep); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 900px) { .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sand { background: var(--sand); }
.section-tint { background: var(--shallow); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 + p, .split-copy h2 + p, .legend-intro h2 + p { margin-top: 20px; }
.section-head p, .split-copy p, .legend-intro p { color: var(--tide); max-width: 38em; }
.split-copy p + p { margin-top: 14px; }

.shot { margin: 0; }
.shot img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-shot); }
.shot figcaption { font-size: var(--step--1); color: var(--tide); margin-top: 12px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-flip .split-copy { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-flip .split-copy { order: 0; }
}

/* ---------- legend ---------- */
.legend-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.legend-intro { position: sticky; top: 100px; }
.shot-tilt { margin-top: 32px; }
.legend { margin: 0; border-top: 2px solid var(--deep); }
.legend-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding-block: 22px; border-bottom: 1px dashed var(--line-strong); }
.legend dt { font-family: var(--display); font-size: 1.28rem; line-height: 1.25; }
.legend dd { margin: 0; color: var(--tide); min-width: 0; }
@media (max-width: 960px) {
  .legend-grid { grid-template-columns: minmax(0, 1fr); }
  .legend-intro { position: static; }
}
@media (max-width: 560px) { .legend-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* six steps of a house, ordinal: equal risers, the turn count under each */
.tiers { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; }
.tiers li { display: grid; gap: 4px; text-align: center; }
.tiers .bar { display: block; height: calc(var(--s) * 11px); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--roof) 0 7px, #e7d6b6 7px); box-shadow: inset 0 -2px 0 rgba(13, 42, 56, 0.1); }
.tiers b { font-size: 0.72rem; font-weight: 600; color: var(--deep); overflow-wrap: anywhere; }
.tiers small { font-family: var(--mono); font-size: 0.72rem; color: var(--lagoon); font-variant-numeric: tabular-nums; }

/* ---------- milestone ladder ---------- */
.ladder-wrap { margin-top: clamp(48px, 7vw, 80px); }
.ladder-label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tide); margin-bottom: 18px; }
/* the whole ladder at rest on a wide screen, two rows of nine; a phone scrolls it sideways */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); row-gap: 36px; }
@media (max-width: 1000px) {
  .ladder {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 128px; row-gap: 0;
    padding-bottom: 18px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
}
.ladder li { scroll-snap-align: start; display: grid; gap: 6px; padding: 18px 16px 4px 0; border-top: 2px solid var(--deep); position: relative; }
.ladder li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--sand); border: 2px solid var(--deep); }
.ladder b { font-family: var(--mono); font-weight: 600; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ladder span { font-size: 0.92rem; color: var(--tide); line-height: 1.35; }
.ladder .ladder-big::before { background: var(--roof); border-color: var(--roof); }
.ladder .ladder-big b { color: var(--roof); }
.ladder:focus-visible { outline-offset: 6px; }

/* ---------- walk list ---------- */
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 12px; border-radius: 3px; background: var(--lagoon-bright); transform: rotate(45deg) scale(0.8); }

/* ---------- day / night ---------- */
.daynight { margin: 0; position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-shot); --cut: 50%; aspect-ratio: 16 / 9; max-width: 100%; background: var(--deep); }
.daynight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dn-night { clip-path: inset(0 0 0 var(--cut)); }
.dn-handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.9); pointer-events: none; }
.dn-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--foam); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.dn-handle span::before, .dn-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px; }
.dn-handle span::before { left: 6px; border-right-color: var(--deep); }
.dn-handle span::after { right: 6px; border-left-color: var(--deep); }
.dn-label { position: absolute; top: 14px; font-family: var(--mono); font-weight: 600; font-size: 0.95rem; color: #fff; background: rgba(8, 24, 32, 0.66); border-radius: 8px; padding: 4px 10px; font-variant-numeric: tabular-nums; pointer-events: none; }
.dn-l { left: 14px; }
.dn-r { right: 14px; }
.dn-control { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 18px 14px; background: linear-gradient(0deg, rgba(8, 24, 32, 0.72), rgba(8, 24, 32, 0)); color: #fff; }
.dn-hint { font-size: 0.85rem; opacity: 0.92; }
.dn-control input { width: 100%; accent-color: var(--gold); cursor: ew-resize; }
.daynight { touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
@media (max-width: 560px) { .dn-hint { display: none; } .dn-control { grid-template-columns: minmax(0, 1fr); } }

/* ---------- sea ---------- */
.sea-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.sea-big { grid-row: span 2; }
.sea-notes { display: grid; gap: 10px; }
.sea-notes h3 + p { color: var(--tide); }
.sea-notes p + h3 { margin-top: 16px; }
@media (max-width: 860px) { .sea-grid { grid-template-columns: minmax(0, 1fr); } .sea-big { grid-row: auto; } }

/* ---------- keeper tools ---------- */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.tools article { background: var(--foam); border-radius: var(--radius); padding: 24px 22px 26px; box-shadow: 0 1px 0 var(--line), 0 12px 28px -22px rgba(13, 42, 56, 0.5); display: grid; gap: 10px; align-content: start; }
.tools p { color: var(--tide); font-size: 0.98rem; }
@media (max-width: 1000px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools { grid-template-columns: minmax(0, 1fr); } }

/* ---------- gallery ---------- */
/* three columns, two big pictures of two by two with small ones stacked beside them */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(14px, 2vw, 24px); }
.gallery li { display: grid; gap: 10px; align-content: start; min-width: 0; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
.gallery .g-right { grid-column: 2 / span 2; }
.gallery .g-wide button { height: 100%; }
.gallery .g-wide button img { height: 100%; aspect-ratio: auto; min-height: 0; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; width: 100%; box-shadow: var(--shadow-shot); }
.gallery button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s ease; }
.gallery button:hover img { transform: scale(1.035); }
.gallery p { font-size: var(--step--1); color: var(--tide); }
@media (prefers-reduced-motion: reduce) { .gallery button img { transition: none; } .gallery button:hover img { transform: none; } }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .g-wide, .gallery .g-right { grid-column: span 2; grid-row: auto; grid-template-rows: none; }
  .gallery .g-wide button { height: auto; }
  .gallery .g-wide button img { height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) { .gallery { grid-template-columns: minmax(0, 1fr); } .gallery .g-wide, .gallery .g-right { grid-column: auto; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); width: 100%; }
.lightbox::backdrop { background: rgba(8, 24, 32, 0.82); }
.lightbox img { width: 100%; border-radius: 12px; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--foam); color: var(--deep); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }

/* ---------- privacy ---------- */
.private { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.private blockquote { margin: 0; }
.private blockquote p { font-family: var(--display); font-size: var(--step-3); line-height: 1.12; text-wrap: balance; }
.private blockquote p::before { content: "\201C"; display: block; font-size: 1.6em; line-height: 0.6; color: var(--lagoon-bright); margin-bottom: 10px; }
.private-points { display: grid; gap: 18px; }
.private-points p { color: var(--tide); }
.private-points b { color: var(--deep); }
@media (max-width: 860px) { .private { grid-template-columns: minmax(0, 1fr); } }

/* ---------- download ---------- */
.release-tag { background: var(--deep); color: var(--foam); border-radius: 6px; padding: 3px 8px; letter-spacing: 0.06em; }
.release-date { color: var(--tide); letter-spacing: 0.06em; }
.release-date:empty { display: none; }
.downloads { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.dl { background: var(--foam); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 0 var(--line), 0 14px 32px -24px rgba(13, 42, 56, 0.55); min-width: 0; }
.dl > p { color: var(--tide); }
.dl .btn { margin-top: auto; }
.dl-main { outline: 2px solid var(--deep); outline-offset: -2px; }
.dl-head { display: grid; gap: 4px; }
.dl-head h3 { font-size: var(--step-2); }
.dl-meta { font-family: var(--mono); font-size: 0.8rem; color: var(--lagoon); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dl-req { font-size: 0.88rem; color: var(--tide); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
/* the number hangs in the margin: a grid here would make every <i> and <code> its own cell */
.steps li { counter-increment: step; position: relative; padding-left: 42px; min-height: 30px; font-size: 0.98rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; font-family: var(--mono); font-weight: 600; font-size: 0.85rem; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--shallow); color: var(--lagoon); }
.code { margin: 0; background: var(--deep); color: #d9ece9; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 0.8rem; line-height: 1.7; }
.code code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
.all-releases { margin-top: 24px; font-size: 0.95rem; }
@media (max-width: 1000px) { .downloads { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dl-main { grid-column: 1 / -1; } }
@media (max-width: 640px) { .downloads { grid-template-columns: minmax(0, 1fr); } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq { border-top: 2px solid var(--deep); }
.faq details { border-bottom: 1px dashed var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.3rem; color: var(--lagoon); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--tide); max-width: 40em; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.footer { padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; }
.footer-brand { display: grid; gap: 6px; }
.footer-brand p { color: var(--tide); font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--deep); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--lagoon); }
.footer-note { grid-column: 1 / -1; font-size: 0.82rem; color: var(--tide); padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } }
