/* Folded Line, foldedline.com. "Filament + Ember". Built from tools/site.src.css by tools/build.py. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-600-900.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F2E6D1;
  --raised: #F8EFDF;
  --board: #E3D2B6;
  --tile: #F8EFDF;
  --tile-lip: #CDB894;
  --hole: #F2E6D1;
  --ink: #2A211C;
  --muted: #6B5A4A;
  --line: #9A4E0C;
  --link: #86430A;
  --copper: #B35E30;
  --pip: #2A211C;
  --pip-num: #FFF8EC;
  --line-lit: #F0A020;
  --ring: #F0A020;
  --pip-lit: #9A4E0C;
  --pip-lit-num: #FFF6E8;
  --glow: #F0A020;
  --glow-max: .32;
  --btn: #9A4E0C;
  --btn-ink: #FFFFFF;
  --btn-lip: #6B3507;
  --btn2: #E3D2B6;
  --btn2-ink: #2A211C;
  --btn2-lip: #C2AB85;
  --rule: rgba(42, 33, 28, .14);
  --shadow: 0 1px 0 rgba(42, 33, 28, .05), 0 18px 40px -18px rgba(70, 45, 20, .35);
  --shot-shadow: 0 2px 0 rgba(42, 33, 28, .06), 0 24px 50px -24px rgba(70, 45, 20, .45);
  --band: #EADBC2;
  --mk-field: #262120; --mk-board: #F2E6D1; --mk-tile: #E3D2B6; --mk-path: #2A211C; --mk-pip: #B35E30;

  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(.875rem, .85rem + .1vw, .9375rem);
  --step-0: clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.12rem + .35vw, 1.375rem);
  --step-2: clamp(1.3125rem, 1.25rem + .3vw, 1.5rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.9rem + 4.2vw, 5.75rem);
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 11vw, 152px);
  --max: 1200px;
  --cycle: 10s;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1F1A17;
  --raised: #2A241F;
  --board: #2A241F;
  --tile: #36302A;
  --tile-lip: #14110F;
  --hole: #1F1A17;
  --ink: #F2E6D1;
  --muted: #B3A48F;
  --line: #F0A020;
  --link: #F0A020;
  --copper: #D4783C;
  --pip: #F2E6D1;
  --pip-num: #14110F;
  --line-lit: #F0A020;
  --ring: #F0A020;
  --pip-lit: #D4783C;
  --pip-lit-num: #1A1206;
  --glow: #F0A020;
  --glow-max: .6;
  --btn: #F0A020;
  --btn-ink: #1A1206;
  --btn-lip: #A86A0C;
  --btn2: #36302A;
  --btn2-ink: #F2E6D1;
  --btn2-lip: #0F0D0B;
  --rule: rgba(242, 230, 209, .12);
  --shadow: 0 1px 0 rgba(255, 240, 210, .04) inset, 0 22px 48px -20px rgba(0, 0, 0, .7);
  --shot-shadow: 0 0 0 1px rgba(255, 240, 210, .07), 0 28px 60px -26px rgba(0, 0, 0, .85);
  --band: #191512;
  --mk-field: #141110; --mk-board: #3C342E; --mk-tile: #2F2924; --mk-path: #F2E6D1; --mk-pip: #D4783C;
}

/* No-JS fallback: follow the OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #1F1A17; --raised: #2A241F; --board: #2A241F; --tile: #36302A; --tile-lip: #14110F; --hole: #1F1A17;
    --ink: #F2E6D1; --muted: #B3A48F; --line: #F0A020; --link: #F0A020; --copper: #D4783C; --pip: #F2E6D1; --pip-num: #14110F;
    --pip-lit: #D4783C; --pip-lit-num: #1A1206; --glow-max: .6; --btn: #F0A020; --btn-ink: #1A1206; --btn-lip: #A86A0C;
    --btn2: #36302A; --btn2-ink: #F2E6D1; --btn2-lip: #0F0D0B; --rule: rgba(242, 230, 209, .12); --band: #191512;
    --shadow: 0 22px 48px -20px rgba(0, 0, 0, .7); --shot-shadow: 0 0 0 1px rgba(255, 240, 210, .07), 0 28px 60px -26px rgba(0, 0, 0, .85);
    --mk-field: #141110; --mk-board: #3C342E; --mk-tile: #2F2924; --mk-path: #F2E6D1; --mk-pip: #D4783C;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--line); color: var(--bg); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.band { background: var(--band); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 800; text-wrap: balance; }
/* No orphans: short display text is balanced, running text avoids a lone last word. */
.lead, summary, figcaption, .page-head p, .step-title { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.h2 { font-size: var(--step-3); font-weight: 850; line-height: 1.04; letter-spacing: -.022em; max-width: 18ch; }
.h3 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: var(--step-1); font-weight: 650; line-height: 1.45; max-width: 34ch; }
.body { max-width: 58ch; }
.body + .body { margin-top: 1em; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); font-weight: 700; line-height: 1.45; }
.mt { margin-top: 20px; }
.intro { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Mark (Back to Start) ---------- */
.mark .mk-field { fill: var(--mk-field); }
.mark .mk-board { fill: var(--mk-board); }
.mark .mk-tile { fill: var(--mk-tile); }
.mark .mk-path { stroke: var(--mk-path); }
.mark .mk-pip { fill: var(--mk-pip); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.25rem; letter-spacing: -.01em; min-height: 44px; }
.brand .mark { width: 38px; height: 38px; border-radius: 23%; box-shadow: 0 0 0 1px var(--rule); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { display: none; color: var(--ink); text-decoration: none; font-weight: 750; padding: 10px 14px; border-radius: 14px; min-height: 44px; align-items: center; }
.nav a:hover { background: var(--raised); }
@media (min-width: 860px) { .nav a { display: inline-flex; } }
.nav a[aria-current="page"] { background: var(--raised); }
.nav .nav-play { display: inline-flex; margin-left: 4px; margin-right: 6px; padding: 10px 18px; background: var(--btn2); box-shadow: 0 3px 0 var(--btn2-lip); }
.nav .nav-play:hover { background: var(--btn2); filter: brightness(1.04); }
.nav .nav-play:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn2-lip); }
.nav .nav-play[aria-current="page"] { background: var(--btn); color: var(--btn-ink); box-shadow: 0 3px 0 var(--btn-lip); }

/* Launch switch (js/config.js sets data-live on <html> when LIVE = true). */
[data-when-live] { display: none; }
:root[data-live] [data-when-live] { display: revert; }
:root[data-live] [data-until-live] { display: none; }

/* Lipped buttons: the app's Ember press. */
.btn {
  --face: var(--btn); --ink-c: var(--btn-ink); --lip: var(--btn-lip);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 18px;
  background: var(--face); color: var(--ink-c);
  font: 800 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--lip), inset 0 1px 0 rgba(255, 255, 255, .22);
  transform: translateY(0); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lip), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--quiet { --face: var(--btn2); --ink-c: var(--btn2-ink); --lip: var(--btn2-lip); }
.btn[aria-disabled="true"] { --face: transparent; --ink-c: var(--muted); --lip: transparent; cursor: default; border: 2px dashed color-mix(in srgb, var(--muted) 60%, transparent); box-shadow: none; transform: none; filter: none; }
.icon-btn { width: 44px; min-height: 44px; padding: 0; border-radius: 22px; box-shadow: 0 3px 0 var(--lip), inset 0 1px 0 rgba(255,255,255,.18); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }

/* ---------- Boards ---------- */
.board { width: 100%; height: auto; overflow: visible; }
.b-frame { fill: var(--board); }
.b-cell { fill: var(--tile); }
.b-lip { fill: var(--tile-lip); }
.b-hole { fill: var(--hole); }
.b-fold { fill: var(--copper); }
.b-line { fill: none; stroke: var(--line); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.b-glow { fill: none; stroke: var(--glow); stroke-width: 64; stroke-linecap: round; stroke-linejoin: round; opacity: 0; filter: url(#ember); }
.b-cursor { fill: var(--line); opacity: .22; }
/* Number discs = the app's (BoardView.swift, Theme.swift): solid ink disc 0.54 x cell, numeral 0.42 x cell, 800,
   tabular, no border, never recoloured; the next number gets a thin amber ring with a gap. 100-unit cells. */
.pip .pip-disc { fill: var(--pip); }
.pip text { fill: var(--pip-num); font: 800 42px/1 var(--font); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.pip text.num2 { font-size: 37px; letter-spacing: -.02em; }
.pip .pip-ring { fill: none; stroke: var(--ring); stroke-width: 3.5; }
.board-frame { filter: drop-shadow(0 22px 34px rgba(60, 38, 16, .22)); }
:root[data-theme="dark"] .board-frame { filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .55)); }

/* ---------- Screenshots (device-free) ---------- */
.shot { display: block; border-radius: clamp(22px, 3vw, 34px); overflow: hidden; box-shadow: var(--shot-shadow); background: var(--raised); aspect-ratio: 897 / 1950; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
:root:not([data-theme="dark"]) .only-dark { display: none; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .shot.only-dark { display: block; }
  :root:not([data-theme]) .shot.only-light { display: none; }
}
figcaption { margin-top: 14px; color: var(--muted); font-size: var(--step--1); font-weight: 700; line-height: 1.4; }

/* ---------- Hero ---------- */
/* The headline is always exactly three lines: each phrase is a block that never wraps, and the size follows the copy
   column. "Every square." is the longest line at 6.13 em, so the size is capped at ~92% of column / 6.13. */
.hero { padding-block: clamp(8px, 2vw, 24px) clamp(64px, 9vw, 128px); }
.hero .wrap { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 11vw, 5.5rem); font-weight: 900; line-height: .98; letter-spacing: -.03em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .lead { margin-top: clamp(18px, 2.2vw, 28px); max-width: 40ch; text-wrap: balance; }
.hero-actions { margin-top: clamp(24px, 3vw, 36px); display: grid; gap: 20px; justify-items: start; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--ink); text-decoration-color: color-mix(in srgb, var(--line) 70%, transparent); }
.hero-more:hover { color: var(--link); }
@media (max-width: 599px) { .hero-more { display: none; } }
.store-slot .small a { white-space: nowrap; }
.store-slot { display: grid; gap: 6px; padding-left: 18px; border-left: 4px solid var(--line); }
.store-slot .soon { font-size: var(--step-1); font-weight: 850; line-height: 1.25; }
.store-slot .badge-link img { height: 54px; width: auto; }
.hero-visual { position: relative; width: 100%; max-width: 560px; justify-self: center; }

@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: min(720px, calc(100svh - 76px)); padding-bottom: clamp(8px, 2vw, 24px); }
  .hero h1 { font-size: clamp(2.75rem, 7.6vw - 11px, 5.5rem); }
  /* The board fills its column but never outgrows the first screen. */
  .hero-visual { justify-self: end; width: min(100%, 560px, calc(100svh - 150px)); min-width: 360px; }
}

/* Hero animation: the line draws itself, the pips light, the board glows. */
.hero-line { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-line { animation: draw-loop var(--cycle) linear 0s 2, draw-final var(--cycle) linear calc(var(--cycle) * 2) 1 forwards,
                          lit-loop var(--cycle) linear 0s 2, lit-final var(--cycle) linear calc(var(--cycle) * 2) 1 forwards; }
  .hero .b-glow { animation: glow-loop var(--cycle) linear 0s 2, glow-final var(--cycle) linear calc(var(--cycle) * 2) 1 forwards; }
  
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-line { stroke-dashoffset: 0; stroke: var(--line-lit); }
  .hero .b-glow { opacity: var(--glow-max); }
  .btn, details summary::after, .demo-stage { transition: none; }
}
@keyframes draw-loop { 0%, 6.0% { stroke-dashoffset: 1; opacity: 1; } 62.0%, 86.0% { stroke-dashoffset: 0; opacity: 1; } 95.0% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes draw-final { 0%, 6.0% { stroke-dashoffset: 1; } 62.0%, 100% { stroke-dashoffset: 0; } }
@keyframes glow-loop { 0%, 62.0% { opacity: 0; } 68.0%, 86.0% { opacity: var(--glow-max); } 95.0%, 100% { opacity: 0; } }
@keyframes glow-final { 0%, 62.0% { opacity: 0; } 70.0%, 100% { opacity: var(--glow-max); } }
@keyframes lit-loop { 0%, 62.0% { stroke: var(--line); } 67.0%, 86.0% { stroke: var(--line-lit); } 95.0%, 100% { stroke: var(--line-lit); } }
@keyframes lit-final { 0%, 62.0% { stroke: var(--line); } 67.0%, 100% { stroke: var(--line-lit); } }

/* ---------- How it plays ---------- */
.steps { display: grid; gap: clamp(40px, 5vw, 56px); counter-reset: step; }
.step { display: grid; gap: 22px; align-content: start; }
.step { grid-template-columns: 112px 1fr; gap: 20px; align-items: start; }
.step .board-frame { max-width: 240px; }
@media (min-width: 760px) { .step { grid-template-columns: 1fr; gap: 22px; } }
.step-title { display: flex; align-items: center; gap: 12px; }
@media (max-width: 759px) { .step-title { align-items: flex-start; } .step-title .num-pip { width: 28px; height: 28px; font-size: .9375rem; margin-top: 2px; } }
.num-pip { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pip); color: var(--pip-num); font-weight: 900; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.step p { max-width: 34ch; margin-top: 8px; }
.aside-line { margin-top: clamp(40px, 5vw, 64px); font-size: var(--step-1); font-weight: 800; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Daily ---------- */
.split { display: grid; gap: clamp(40px, 4.4vw, 56px); align-items: center; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(16px, 2vw, 24px); width: 100%; max-width: 560px; }
.pair figcaption { text-wrap: balance; }
.week { display: flex; gap: 10px; margin-top: 28px; }
.week li { display: grid; justify-items: center; gap: 8px; font-size: var(--step--1); font-weight: 800; color: var(--muted); }
.week li::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--rule); box-sizing: border-box; }
.week li.lit::after { background: var(--line); border-color: var(--line); }
.week li.today::after { border-color: var(--line); background: transparent; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line); }
.facts { margin-top: 28px; display: grid; gap: 14px; max-width: 54ch; }
.facts li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: baseline; }
.facts li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--copper); transform: translateY(1px); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .split--flip > :first-child { order: 2; }
}

/* ---------- Chapters ---------- */
.chapters { display: grid; gap: clamp(48px, 6vw, 80px); }
.chapter-list { display: grid; gap: 0; }
.chapter { display: grid; grid-template-columns: clamp(92px, 22vw, 132px) 1fr; gap: clamp(18px, 3vw, 32px); align-items: center; padding-block: clamp(18px, 2.4vw, 26px); border-top: 2px solid var(--rule); }
.chapter:last-child { border-bottom: 2px solid var(--rule); }
.chapter .meta { font-size: var(--step--1); font-weight: 800; color: var(--muted); }
.chapter h3 { margin-top: 2px; }
.chapter p { margin-top: 6px; max-width: 44ch; }
.chapter-shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-self: start; }
@media (min-width: 960px) {
  .chapters { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
  .chapter-shots { position: sticky; top: 32px; }
}

/* ---------- Twists ---------- */
.twist { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.twist + .twist { margin-top: clamp(80px, 10vw, 136px); }
.twist-visual { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(14px, 2.4vw, 28px); align-items: end; max-width: 560px; }
.twist-copy .h3 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 850; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 18px; }
@media (min-width: 960px) {
  .twist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .twist--flip .twist-visual { order: 2; justify-self: end; }
}

/* ---------- Calm details ---------- */
.calm-list { display: grid; gap: clamp(28px, 3.4vw, 40px) clamp(32px, 5vw, 64px); }
.calm-list div { display: grid; grid-template-columns: 18px 1fr; column-gap: 16px; align-content: start; }
.calm-list dt { grid-column: 2; font-size: var(--step-2); font-weight: 800; line-height: 1.25; }
.calm-list div::before { content: ""; grid-row: 1; width: 16px; height: 16px; margin-top: .45em; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 5px color-mix(in srgb, var(--copper) 22%, transparent); }
.calm-list dd { grid-column: 2; margin-top: 6px; max-width: 40ch; }
@media (min-width: 700px) { .calm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .calm-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Try today's puzzle: entry card for /play ---------- */
.demo { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 28px; }
.demo-copy .small { margin-top: 18px; }
.demo-stage { display: block; justify-self: center; width: 100%; max-width: 460px; padding: clamp(18px, 3vw, 28px); border-radius: 36px; background: var(--raised); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.demo-stage:hover { transform: translateY(-3px); }
.demo-stage:active { transform: translateY(0); }
.demo-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-inline: 6px; }
.demo-bar strong { font-size: var(--step-1); font-weight: 850; }
@media (min-width: 960px) { .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .demo-stage { justify-self: end; } }

/* ---------- Gallery ---------- */
.gallery {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(208px, 60vw, 252px); gap: clamp(16px, 2.2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(50% - 50vw); padding: 8px var(--edge) 28px; scroll-padding-inline: var(--edge);
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.gallery figure { scroll-snap-align: start; }
.gallery:focus-visible { outline-offset: -3px; }
.gallery-hint { margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 8px; }
.faq-layout .intro { margin-bottom: 24px; }
.faq { max-width: 780px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } .faq-layout .intro { position: sticky; top: 32px; align-self: start; } }
.faq details { border-top: 2px solid var(--rule); }
.faq details:last-child { border-bottom: 2px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 16px; font-size: var(--step-2); font-weight: 800; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--btn2) no-repeat center / 14px 14px; background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 12px 3px, 3px 12px; box-shadow: 0 2px 0 var(--btn2-lip); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--line); }
.faq .answer { padding-bottom: 24px; max-width: 62ch; }
.faq .answer p + p { margin-top: .8em; }

/* ---------- Closing + footer ---------- */
.closing { text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 22px; }
.closing .mark { width: clamp(88px, 12vw, 120px); height: auto; border-radius: 23%; box-shadow: 0 0 0 1px var(--rule), var(--shadow); }
.closing .h2 { max-width: none; }
.closing .store-slot { border-left: 0; padding-left: 0; justify-items: center; }
.site-footer { padding-block: 40px 56px; border-top: 2px solid var(--rule); }
.site-footer .wrap { display: grid; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-left: -12px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font-weight: 800; text-decoration: none; border-radius: 12px; }
.foot-links a:hover { background: var(--raised); }
.site-footer p { color: var(--muted); font-size: var(--step--1); font-weight: 700; max-width: 80ch; }

/* ---------- Inner pages: privacy, support, press ---------- */
.page { padding-block: clamp(24px, 5vw, 64px) var(--section); }
.page-layout { display: grid; gap: 32px clamp(40px, 6vw, 96px); }
.page-head { display: grid; gap: 18px; max-width: 40rem; }
.page-head h1 { font-size: var(--step-3); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; }
.page-head .lead { max-width: 36ch; }
.toc { align-self: start; }
.toc-title { font-weight: 850; margin-bottom: 8px; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: inline-flex; min-height: 40px; align-items: center; font-weight: 750; color: var(--ink); text-decoration: none; border-radius: 10px; padding: 0 10px; margin-left: -10px; }
.toc a:hover { background: var(--raised); color: var(--link); }
.prose { max-width: 44rem; }
.prose > section { padding-top: clamp(28px, 4vw, 44px); scroll-margin-top: 16px; }
.prose > section + section { border-top: 2px solid var(--rule); margin-top: clamp(28px, 4vw, 44px); }
.prose h2 { font-size: var(--step-2); font-weight: 850; letter-spacing: -.012em; line-height: 1.2; margin-bottom: 14px; }
.prose h3 { font-size: 1.0625rem; font-weight: 850; margin: 22px 0 6px; }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: .85em; }
.prose code, .press code { font: 800 .9em/1 var(--font); background: var(--raised); padding: 2px 7px; border-radius: 7px; white-space: nowrap; }
.prose .faq { max-width: none; }
@media (min-width: 960px) {
  .page-layout { grid-template-columns: 15rem minmax(0, 1fr); }
  .page-head { grid-column: 1 / -1; }
  .toc { position: sticky; top: 24px; padding-top: clamp(28px, 4vw, 44px); }
}
@media (max-width: 959px) { .toc { padding: 16px 20px; background: var(--band); border-radius: 20px; } }

.rules { display: grid; grid-template-columns: clamp(120px, 30vw, 200px) 1fr; gap: clamp(20px, 3vw, 36px); align-items: center; margin-bottom: 20px; }
.rule-list { display: grid; gap: 14px; counter-reset: rule; }
.rule-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; }
.rule-list li::before { counter-increment: rule; content: counter(rule); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pip); color: var(--pip-num); font-weight: 900; font-size: .9375rem; transform: translateY(-1px); }
@media (max-width: 520px) { .rules { grid-template-columns: 1fr; } .rules-board { max-width: 180px; } }
.trouble { display: grid; gap: 18px; }
.trouble div { padding-left: 18px; border-left: 4px solid var(--rule); }
.trouble dt { font-weight: 850; }
.trouble dd { margin: 4px 0 0; max-width: 58ch; }
.template pre { margin: 16px 0; padding: 18px 20px; background: var(--raised); border-radius: 18px; font: 700 .9375rem/1.75 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 0 0 2px var(--rule); }
.note { padding: 18px 20px 18px 22px; border-left: 4px solid var(--line); background: var(--raised); border-radius: 0 18px 18px 0; }
.note-title { font-weight: 850; font-size: var(--step-1); margin-bottom: 6px; }

/* Press */
.page-layout--wide { grid-template-columns: 1fr; }
.press-get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 8px; }
.press { display: grid; gap: clamp(56px, 8vw, 104px); }
.page-layout--wide .press { margin-top: clamp(24px, 4vw, 48px); }
.press h2 { font-size: var(--step-3); font-weight: 850; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 22px; }
.press h3 { font-size: 1.0625rem; font-weight: 850; margin: 20px 0 8px; }
.copy-block { max-width: 62ch; padding: 16px 20px; background: var(--raised); border-radius: 18px; }
.fact-sheet { display: grid; border-top: 2px solid var(--rule); max-width: 52rem; }
.fact-sheet div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 4px 24px; padding: 12px 0; border-bottom: 2px solid var(--rule); }
.fact-sheet dt { font-weight: 850; }
.fact-sheet dd { margin: 0; }
@media (max-width: 520px) { .fact-sheet div { grid-template-columns: 1fr; } }
.icon-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); }
.icon-fig { width: min(220px, 42vw); }
.icon-fig img { border-radius: 22.5%; box-shadow: var(--shot-shadow); }
.icon-fig figcaption a, .press-shot .dl a { margin-right: 10px; font-weight: 800; white-space: nowrap; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 40vw), 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.press-shot .dl { display: block; margin-top: 6px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 16px 28px; margin-bottom: 22px; }
.swatches li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.swatches .chip { width: 56px; height: 61px; filter: drop-shadow(0 0 1px var(--rule)); }
.swatches li > span:last-child { display: grid; }
.swatches code { justify-self: start; margin-top: 2px; }
