/*
  Wall Rush website: "Carved Maple & Smoked Walnut Tabletop" design system.
  Zero JavaScript, zero cookies, zero third-party requests.
  Carved Maple (light) by default; Smoked Walnut (dark) follows the reader's
  system preference via prefers-color-scheme and color-scheme: light dark.

  1. Fonts            6. Landing page sections
  2. Tokens           7. Tabletop SVG illustrations & glyphs
  3. Base             8. Document pages (/support, /privacy, /terms, /data-deletion, /licenses)
  4. Page frame       9. Board code helper (/board) & 404
  5. Shared pieces   10. Motion, Forced Colors & Print
*/

/* 1. Fonts — Latin subsets of Wall Rush's own app fonts (SIL OFL 1.1, /fonts/) */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens — Every foreground/background pair verified >= 5.37:1 WCAG AA */

:root {
  color-scheme: light dark;

  /* Raw light (Carved Maple) & dark (Smoked Walnut) palette */
  --bg-light: #FBF3E4;
  --bg-dark: #1B1714;
  --band-light: #F1E6D2;
  --band-dark: #241E1A;
  --raised-light: #FFF9EE;
  --raised-dark: #2A231E;
  --ink-light: #1B1714;
  --ink-dark: #FFF8EE;
  --muted-light: #594A3E;
  --muted-dark: #CFC0AE;
  --brass-light: #82560A;
  --brass-dark: #F5BE38;
  --terracotta-light: #A84200;
  --terracotta-dark: #FF9452;
  --emerald-light: #136B40;
  --emerald-dark: #157A49;
  --proof-light: #B3261E;
  --proof-dark: #FF7E75;
  --rule-light: rgb(27 23 20 / 0.18);
  --rule-dark: rgb(255 248 238 / 0.18);
  --rule-firm-light: rgb(27 23 20 / 0.78);
  --rule-firm-dark: rgb(255 248 238 / 0.78);
  --wash-light: rgb(66 44 30 / 0.08);
  --wash-dark: rgb(245 190 56 / 0.12);
  --link-line-light: rgb(130 86 10 / 0.62);
  --link-line-dark: rgb(245 190 56 / 0.65);
  --focus-light: #A84200;
  --focus-dark: #F5BE38;
  --sel-bg-light: #E8D5B3;
  --sel-bg-dark: #4B3826;
  --scroll-track-light: #F1E6D2;
  --scroll-track-dark: #1B1714;
  --scroll-thumb-light: #7D5436;
  --scroll-thumb-dark: #8C7258;

  /* Active semantic tokens (Light default) */
  --bg: var(--bg-light);
  --band: var(--band-light);
  --raised: var(--raised-light);
  --ink: var(--ink-light);
  --muted: var(--muted-light);
  --brass: var(--brass-light);
  --brass-deco: #C99124;
  --terracotta: var(--terracotta-light);
  --emerald: var(--emerald-light);
  --emerald-ink: #FFF9EE;
  --proof: var(--proof-light);
  --rule: var(--rule-light);
  --rule-firm: var(--rule-firm-light);
  --wash: var(--wash-light);
  --link-line: var(--link-line-light);
  --focus: var(--focus-light);
  --grain: url("/assets/grain-light.png");

  /* Tabletop SVG diagram tokens (Classic Wood board inside Light frame) */
  --svg-rim: #7D5436;
  --svg-bed: #422C1E;
  --svg-tile-a: #FBF3E4;
  --svg-tile-b: #EFE0C6;
  --svg-tile-stroke: #C4AB87;
  --svg-wall: #5A3620;
  --svg-wall-seam: #E8BC52;
  --svg-groove: #332014;
  --svg-hero-tile: #F3E5CE;
  --svg-hero-tile-alt: #EAD7BA;
  --svg-hero-groove: #D6C09F;
  --svg-hero-wall: #7D5436;
  --svg-hero-seam: #D9A12E;

  /* Okabe-Ito colorblind-safe pawn colors (exact app tokens) */
  --pawn-orange: #E05E00;
  --pawn-orange-ring: #FFEBD6;
  --pawn-blue: #0A7EC2;
  --pawn-blue-ring: #D9F1FF;
  --pawn-green: #0EA57A;
  --pawn-green-ring: #D6FAF0;
  --pawn-purple: #CC70A4;
  --pawn-purple-ring: #FFF2D6;

  /* Relic / Power Wall accent colors */
  --portal-a: #1294A3;
  --portal-b: #9B64BA;
  --boost-gold: #D9951C;
  --stone-pillar: #4A5560;
  --phase-amber: #D97724;

  /* Typography */
  --font-display: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.9375rem;                                /* 15px UI / meta */
  --step-0: 1.0625rem;                                 /* 17px body */
  --step-1: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem); /* 18-21px lede */
  --step-2: clamp(1.3125rem, 1.18rem + 0.6vw, 1.625rem);  /* 21-26px subhead */
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);       /* 30-44px section title */
  --step-wordmark: clamp(2.5rem, 1.2rem + 6.5vw, 5.25rem);

  /* Layout & target dimensions */
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --page: 72rem;
  --measure: 38em;
  --radius: 6px;
  --radius-lg: 14px;
  --tap: 3rem; /* 48px minimum accessible touch target */

  scrollbar-color: var(--scroll-thumb-light) var(--scroll-track-light);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--bg-dark);
    --band: var(--band-dark);
    --raised: var(--raised-dark);
    --ink: var(--ink-dark);
    --muted: var(--muted-dark);
    --brass: var(--brass-dark);
    --brass-deco: #F5BE38;
    --terracotta: var(--terracotta-dark);
    --emerald: var(--emerald-dark);
    --emerald-ink: #FFFFFF;
    --proof: var(--proof-dark);
    --rule: var(--rule-dark);
    --rule-firm: var(--rule-firm-dark);
    --wash: var(--wash-dark);
    --link-line: var(--link-line-dark);
    --focus: var(--focus-dark);
    --grain: url("/assets/grain-dark.png");

    --svg-rim: #8B603F;
    --svg-bed: #2B1C12;
    --svg-tile-a: #EFE4D1;
    --svg-tile-b: #E1D1B7;
    --svg-tile-stroke: #9E8565;
    --svg-wall: #5A3620;
    --svg-wall-seam: #F5C551;
    --svg-groove: #1F140D;
    --svg-hero-tile: #2A221C;
    --svg-hero-tile-alt: #231C17;
    --svg-hero-groove: #16110E;
    --svg-hero-wall: #533320;
    --svg-hero-seam: #E8BC52;

    scrollbar-color: var(--scroll-thumb-dark) var(--scroll-track-dark);
  }
}

@supports (color: light-dark(white, black)) {
  :root {
    --bg: light-dark(var(--bg-light), var(--bg-dark));
    --band: light-dark(var(--band-light), var(--band-dark));
    --raised: light-dark(var(--raised-light), var(--raised-dark));
    --ink: light-dark(var(--ink-light), var(--ink-dark));
    --muted: light-dark(var(--muted-light), var(--muted-dark));
    --brass: light-dark(var(--brass-light), var(--brass-dark));
    --terracotta: light-dark(var(--terracotta-light), var(--terracotta-dark));
    --emerald: light-dark(var(--emerald-light), var(--emerald-dark));
    --proof: light-dark(var(--proof-light), var(--proof-dark));
    --focus: light-dark(var(--focus-light), var(--focus-dark));
    scrollbar-color: light-dark(var(--scroll-thumb-light), var(--scroll-thumb-dark))
      light-dark(var(--scroll-track-light), var(--scroll-track-dark));
  }
}

/* 3. Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--grain);
  background-size: 144px 144px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.62;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--link-line);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection {
  background: var(--sel-bg-light);
  color: var(--ink-light);
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: var(--sel-bg-dark);
    color: var(--ink-dark);
  }
}

strong,
b {
  font-weight: 700;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--wash);
  overflow-wrap: anywhere;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* 4. Page frame: skip link, masthead, footer */

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 1rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-220%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.5rem;
  padding-block: 0.5rem;
}

.masthead-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--tap);
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.masthead-brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 5px;
  flex: none;
}

.masthead-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.masthead-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.625rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.masthead-nav li:last-child a {
  padding-right: 0;
}

.masthead-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--link-line);
}

.masthead-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--brass);
}

@media (max-width: 30rem) {
  .masthead .wrap {
    justify-content: center;
    text-align: center;
  }
  .masthead-nav ul {
    justify-content: center;
  }
  .masthead-nav li:last-child a {
    padding-right: 0.625rem;
  }
}

.site-footer {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2.5rem;
  position: relative;
  font-size: var(--step--1);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  height: 5px;
  border-top: 1px solid var(--rule-firm);
  border-bottom: 1px solid var(--rule-firm);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}

.footer-brand .wordmark-small {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.15;
}

.footer-brand p {
  color: var(--muted);
}

.footer-heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  overflow-wrap: anywhere;
}

.footer-links a[aria-current="page"] {
  font-weight: 700;
  text-decoration-color: var(--brass);
}

.footer-contact dt {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-contact dd {
  margin: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  overflow-wrap: anywhere;
  font-variant-numeric: lining-nums;
}

.footer-small {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-small p + p {
  margin-top: 0.375rem;
}

@media (max-width: 52rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 30rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 5. Shared printed & tabletop components */

.printed {
  background: var(--raised);
  border: 1.5px solid var(--rule-firm);
  border-radius: var(--radius-lg);
  padding: clamp(1.125rem, 3vw, 1.625rem);
}

.double-rule {
  position: relative;
  background: var(--raised);
  border: 1.5px solid var(--rule-firm);
  border-radius: var(--radius-lg);
  margin: 5px;
}

.double-rule::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--brass);
  border-radius: calc(var(--radius-lg) + 4px);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--emerald);
  border-radius: var(--radius);
  background: var(--emerald);
  color: var(--emerald-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn--secondary {
  background: transparent;
  border-color: var(--rule-firm);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--wash);
  filter: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
}

.section {
  position: relative;
  padding-block: clamp(3rem, 7.5vw, 5.75rem);
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  border-top: 1px solid var(--rule);
}

.glance + .section::before {
  display: none;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1.08;
}

.section-head p,
.copy > p {
  margin-top: 0.9rem;
  max-width: var(--measure);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
}

.copy h3 {
  margin-top: 1.75rem;
  font-size: var(--step-2);
}

.copy h3 + p {
  margin-top: 0.5rem;
}

.copy > :first-child {
  margin-top: 0;
}

/* Framed app screenshot plate */
.plate {
  width: 100%;
  max-width: 18.75rem;
  margin-inline: auto;
}

.plate-frame {
  padding: 0.45rem;
  border: 1.5px solid var(--rule-firm);
  border-radius: 22px;
  background: var(--raised);
  box-shadow: 0 14px 32px rgb(27 23 20 / 0.14);
}

@media (prefers-color-scheme: dark) {
  .plate-frame {
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.48);
  }
}

.plate img {
  width: 100%;
  aspect-ratio: 1280 / 2778;
  object-fit: cover;
  background: #1B1714;
  border-radius: 16px;
}

.plate figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

/* Brass diamond-bulleted lists */
.mark-list {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.mark-list li {
  position: relative;
  padding-left: 1.45rem;
  max-width: var(--measure);
}

.mark-list li + li {
  margin-top: 0.55rem;
}

.mark-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.58em;
  width: 0.52em;
  height: 0.52em;
  background: var(--brass);
  transform: rotate(45deg);
}

/* 6. Landing page */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5rem);
  padding-block: clamp(2.25rem, 6vw, 4.75rem) clamp(3rem, 7vw, 5.25rem);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-wordmark);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

@supports (container-type: inline-size) {
  .hero-copy {
    container-type: inline-size;
  }
  .wordmark {
    font-size: clamp(2.35rem, 15cqi, 5.25rem);
  }
}

.hero-tagline {
  margin-top: 0.65rem;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.2;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 24rem;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--rule-firm);
}

.ornament::before {
  flex: 0 0 2.5rem;
  background: var(--brass);
}

.ornament svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.hero .lede {
  max-width: 34em;
}

.store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.125rem;
  max-width: min(31rem, 100%);
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  padding: 1.05rem 1.25rem;
}

.store > div {
  flex: 1 1 11rem;
  min-width: 0;
}

.store-icon {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 22.5%;
  border: 1px solid var(--rule);
}

.store-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
}

.store-status {
  margin-top: 0.15rem;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  margin-top: 0.55rem;
}

.btn--store {
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  max-width: 100%;
}

.btn--store svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: currentColor;
}

.store-coming {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.store-note {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.9rem;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4.5vw, 2.75rem) clamp(1rem, 3.5vw, 2.25rem);
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-art .board-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1.5px solid var(--rule-firm);
  border-radius: var(--radius-lg);
}

.hero-art .plate {
  max-width: 17.5rem;
  display: grid;
  justify-items: center;
}

.hero-art .plate figcaption {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.4rem 0.85rem;
  background: var(--raised);
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

/* At-a-glance ruled band */
.glance {
  border-block: 1px solid var(--rule);
  background: var(--band);
}

.glance ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 0;
  list-style: none;
}

.glance li {
  padding: 1.15rem 1rem;
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.glance li span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.glance li + li {
  border-left: 1px solid var(--rule);
}

@media (max-width: 54rem) {
  .glance ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glance li:nth-child(3) {
    border-left: 0;
  }
  .glance li:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}

/* Alternating spreads */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19.5rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.spread--flip {
  grid-template-columns: minmax(0, 19.5rem) minmax(0, 1fr);
}

.spread--flip > :first-child {
  order: 2;
}

.spread--flip > :last-child {
  order: 1;
}

.spread--wide-art {
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
}

.plates-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.plates-pair .plate {
  max-width: 13.5rem;
}

.plates-pair .plate:last-child {
  margin-top: 2.25rem;
}

/* How to Play 3-step diagrams */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps .board-diagram {
  width: 100%;
  max-width: 16rem;
}

.step-title {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin-top: 1.15rem;
  font-size: var(--step-2);
  line-height: 1.2;
}

.step-title::before {
  content: "0" counter(step);
  flex: none;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 600;
}

.steps p {
  margin-top: 0.5rem;
  max-width: 30em;
  color: var(--muted);
}

.learn-strip {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-top: clamp(2.25rem, 5vw, 3.75rem);
  border-top: 1px solid var(--rule);
}

/* Modes & Power Walls showcase cards */
.mode-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.35rem;
  padding: 0;
  list-style: none;
}

.mode-pills li {
  padding: 0.9rem 1rem;
  background: var(--raised);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-lg);
}

.mode-pills strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
}

.mode-pills span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

.glyph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 58rem) {
  .glyph-grid--five {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .glyph-grid--five > li:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .glyph-grid--five > li:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.glyph-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  background: var(--raised);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-lg);
}

.glyph-icon-box {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: var(--band);
  border: 1px solid var(--rule);
}

.glyph-icon-box svg {
  width: 2rem;
  height: 2rem;
}

.glyph-card strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.qty-tag {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--wash);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
}

.glyph-card p {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.sub-band {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

/* Book-style Puzzle chapters with CSS dot leaders */
.contents {
  max-width: 32rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contents li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
  padding-block: 0.375rem;
}

.contents .chapter {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 600;
}

.contents .chapter em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.contents .leader {
  flex: 1 1 1rem;
  min-width: 1rem;
  border-bottom: 2px dotted var(--rule-firm);
  opacity: 0.42;
  transform: translateY(-0.28em);
}

.contents .pages {
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brass);
}

/* 7-day Daily Puzzle streak strip */
.week-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  max-width: 32rem;
}

.week-strip-label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
}

.week {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.week li {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.week svg {
  width: 1.4rem;
  height: 1.4rem;
}

.week-star--solved {
  fill: var(--brass-deco);
  stroke: var(--brass);
  stroke-width: 1.2;
}

.week-star--today {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2.2;
}

.week-star--future {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
  stroke-dasharray: 2 2;
}

.week-strip-count {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brass);
}

/* Scrollable accessible data tables (landing & docs) */
.table-wrap {
  margin: 1.35rem 0 0;
  overflow-x: auto;
  max-inline-size: 100%;
  background: var(--raised);
  border: 1.5px solid var(--rule-firm);
  border-radius: var(--radius-lg);
}

.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.data-table {
  width: 100%;
  min-width: 26rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.data-table caption {
  padding: 0.85rem 1rem 0.6rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.data-table th,
.data-table td {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  border-top: 0;
  background: var(--band);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
}

.data-table tbody th {
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}

.stars {
  color: var(--brass);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Online feature cards */
.online-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.online-grid .printed h3 {
  font-size: 1.25rem;
}

.online-grid .printed p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.league-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--raised);
  border: 1.5px solid var(--rule-firm);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
}

.league-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--rule-firm);
}

.league-dot--wood { background: #A86B38; }
.league-dot--bronze { background: #C77438; }
.league-dot--silver { background: #8E9EAE; }
.league-dot--gold { background: #E5AD28; }
.league-dot--master { background: #15864F; }

/* Craft section: 3 board swatches & 4 Okabe-Ito pawn badges */
.board-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.board-swatch-card {
  padding: 0.85rem;
  background: var(--raised);
  border: 1.5px solid var(--rule-firm);
  border-radius: var(--radius-lg);
}

.board-swatch-card svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.board-swatch-card strong {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.board-swatch-card span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.pawn-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.pawn-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--raised);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-lg);
}

.pawn-badge svg {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.pawn-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.pawn-badge span {
  display: block;
  font-size: 0.825rem;
  color: var(--muted);
}

/* Fine print 2-column printed boxes */
.fine-print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3.5vw, 2.25rem);
  align-items: start;
}

.fine-print-grid h3 {
  font-size: var(--step-2);
}

.fine-print-grid .printed > p {
  margin-top: 0.75rem;
}

/* FAQ native <details> accordion with progressive ::details-content reveal */
.faq-list {
  max-width: 48rem;
  border-top: 1.5px solid var(--rule-firm);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.85rem 3rem 0.85rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.3;
  border-radius: var(--radius);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
  border-radius: 1px;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] > summary::before {
  transform: rotate(45deg);
}

.faq-list details[open] > summary::after {
  transform: rotate(135deg);
}

.faq-list summary:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--link-line);
  text-underline-offset: 0.2em;
}

.faq-answer {
  padding: 0 0 1.35rem;
  max-width: var(--measure);
  color: var(--muted);
}

.faq-answer p + p {
  margin-top: 0.75rem;
}

.faq-list details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.faq-list details:not([open])::details-content {
  block-size: 0;
}

/* Note from the maker */
.note {
  max-width: 40rem;
  margin-inline: auto;
}

.note .section-title {
  text-align: center;
}

.note-body {
  margin-top: 1.75rem;
  font-size: var(--step-1);
  line-height: 1.62;
}

.note-body p + p {
  margin-top: 1rem;
}

.note-body > p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.14em 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2em;
  line-height: 0.82;
  color: var(--brass);
}

.signature {
  margin-top: 1.5rem;
  text-align: right;
}

.signature-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ink);
}

.signature small {
  color: var(--muted);
  font-size: 0.9375rem;
}

.closing {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: clamp(2.75rem, 6.5vw, 4.25rem);
  text-align: center;
}

.closing .store {
  margin-inline: auto;
  text-align: left;
}

/* Responsive collapse below tablet width */
@media (max-width: 54rem) {
  .hero,
  .spread,
  .spread--flip,
  .spread--wide-art,
  .fine-print-grid,
  .online-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .spread--flip > :first-child,
  .spread--flip > :last-child {
    order: 0;
  }
  .hero-art {
    max-width: 26rem;
    width: 100%;
    margin-inline: auto;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 36rem;
  }
  .steps li {
    display: grid;
    grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
    gap: 0 1.25rem;
    align-items: start;
  }
  .steps .board-diagram {
    grid-row: span 2;
  }
  .step-title {
    margin-top: 0;
  }
  .plates-pair {
    max-width: 28rem;
    margin-inline: auto;
  }
}

@media (max-width: 34rem) {
  .steps li,
  .mode-pills,
  .board-swatches,
  .pawn-badges,
  .plates-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps .board-diagram {
    grid-row: auto;
    max-width: 14rem;
  }
  .step-title {
    margin-top: 1rem;
  }
  .plates-pair .plate {
    max-width: 16rem;
    margin-inline: auto;
  }
  .plates-pair .plate:last-child {
    margin-top: 0;
  }
  .store {
    align-items: flex-start;
    padding: 0.9rem 1rem;
  }
  .store-icon {
    width: 3.25rem;
    height: 3.25rem;
  }
}

/* 7. Tabletop SVG illustration classes (theme-reactive via CSS custom properties) */

.board-diagram {
  height: auto;
  overflow: visible;
}

.svg-rim { fill: var(--svg-rim); }
.svg-bed { fill: var(--svg-bed); }
.svg-tile-a { fill: var(--svg-tile-a); stroke: var(--svg-tile-stroke); stroke-width: 0.8; }
.svg-tile-b { fill: var(--svg-tile-b); stroke: var(--svg-tile-stroke); stroke-width: 0.8; }
.svg-wall { fill: var(--svg-wall); }
.svg-wall-seam { stroke: var(--svg-wall-seam); stroke-width: 2.2; stroke-linecap: round; }
.svg-hero-tile { fill: var(--svg-hero-tile); }
.svg-hero-tile-alt { fill: var(--svg-hero-tile-alt); }
.svg-hero-groove { fill: var(--svg-hero-groove); }
.svg-hero-wall { fill: var(--svg-hero-wall); }
.svg-hero-seam { stroke: var(--svg-hero-seam); stroke-width: 3.5; stroke-linecap: round; }

.svg-goal-orange { fill: var(--pawn-orange); }
.svg-goal-blue { fill: var(--pawn-blue); }
.svg-move-dot { fill: var(--pawn-orange); opacity: 0.85; }
.svg-move-ring { fill: none; stroke: var(--pawn-orange); stroke-width: 2.2; stroke-dasharray: 4 3; }
.svg-proof-ring { fill: none; stroke: var(--proof); stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 5 3; }
.svg-proof-wall { fill: var(--proof); fill-opacity: 0.32; stroke: var(--proof); stroke-width: 1.8; stroke-dasharray: 4 3; }
.svg-proof-x { fill: none; stroke: var(--proof); stroke-width: 2.8; stroke-linecap: round; }

/* 8. Document pages (/support, /privacy, /terms, /data-deletion, /licenses) */

.doc {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(2.25rem, 6vw, 4rem) 0;
}

.doc-head {
  padding-bottom: 1.35rem;
  margin-bottom: 1.75rem;
  border-bottom: 1.5px solid var(--rule-firm);
}

.doc-head h1 {
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1.08;
}

.doc-head .effective {
  margin-top: 0.65rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.66;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step-2);
  line-height: 1.2;
  scroll-margin-top: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  line-height: 1.3;
  scroll-margin-top: 1.5rem;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.35rem;
}

.prose a {
  overflow-wrap: anywhere;
}

.prose a[href^="tel:"] {
  white-space: nowrap;
}

.prose blockquote,
.prose .note-box {
  padding: 1rem 1.25rem;
  background: var(--raised);
  border: 1.5px solid var(--rule-firm);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
}

.prose .toc {
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1.35rem;
  background: var(--raised);
  border: 1.5px solid var(--rule-firm);
  border-radius: var(--radius-lg);
}

.prose .toc h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1rem;
}

.prose .toc ol,
.prose .toc ul {
  margin-top: 0.6rem;
  padding-left: 1.35rem;
}

.prose .toc li + li {
  margin-top: 0.15rem;
}

@media (min-width: 40rem) {
  .prose .toc ol,
  .prose .toc ul {
    columns: 2;
    column-gap: 2.25rem;
  }
  .prose .toc li {
    break-inside: avoid;
  }
}

/* Block links keep the list marker aligned with the first line when an entry wraps,
   while padding-block: 0.625rem keeps every TOC item >= 48px tall for comfortable touch targets. */
.prose .toc a {
  display: block;
  width: fit-content;
  padding-block: 0.625rem;
}

/* Heading § anchor link & :target highlight */
.heading-anchor {
  display: inline-block;
  margin-left: 0.35em;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
}

.heading-anchor::before {
  content: "§";
}

.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.prose :target > .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.prose h2:target,
.prose h3:target {
  text-decoration: underline 2.5px var(--brass);
  text-underline-offset: 0.22em;
}

.prose .table-wrap {
  margin: 1.25rem 0 1.5rem;
}

.prose table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.prose thead th {
  border-top: 0;
  background: var(--band);
  font-family: var(--font-display);
  font-weight: 800;
}

.doc-back {
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

/* 9. Board code helper (/board) & 404 */

.board-code-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.25rem, 6vw, 4rem) 1rem;
}

.board-code-page h1 {
  font-size: var(--step-3);
  font-weight: 900;
}

.board-code-page p {
  margin-top: 0.9rem;
  max-width: var(--measure);
}

.code-steps {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.code-steps .printed h2 {
  font-size: 1.25rem;
}

.code-steps .printed ol {
  margin-top: 0.65rem;
  padding-left: 1.35rem;
}

.code-steps .printed li + li {
  margin-top: 0.35rem;
}

.code-sample {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brass);
  background: var(--band);
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
}

.board-code-caption {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 52rem) {
  .board-code-page {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lost {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 36rem;
  margin-inline: auto;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) 1rem;
  text-align: center;
}

.lost-art {
  width: 9.5rem;
  height: 9.5rem;
  margin-bottom: 0.25rem;
}

.lost h1 {
  font-size: var(--step-3);
  font-weight: 900;
}

.lost p {
  max-width: 30em;
  color: var(--muted);
}

.lost-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* 10. Motion, Forced Colors & Print */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .faq-list summary::before,
  .faq-list summary::after {
    transition: transform 180ms ease-out;
  }
  .faq-list details::details-content {
    transition:
      block-size 220ms ease-in-out,
      content-visibility 220ms ease-in-out,
      display 220ms ease-in-out;
    transition-behavior: allow-discrete;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .double-rule::before,
  .site-footer::before,
  .printed,
  .table-wrap,
  .plate-frame,
  .mode-pills li,
  .glyph-card,
  .board-swatch-card,
  .pawn-badge,
  .league-chip,
  .hero-art .board-backdrop,
  .hero-art .plate figcaption {
    border-color: CanvasText;
  }
  .ornament::before,
  .ornament::after {
    height: 0;
    background: none;
    border-top: 1.5px solid CanvasText;
  }
  .btn {
    border-color: LinkText;
  }
  .mark-list li::before,
  .faq-list summary::before,
  .faq-list summary::after {
    background: CanvasText;
  }
  a:focus-visible,
  summary:focus-visible,
  .table-wrap:focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --band: #f4f4f4;
    --raised: #ffffff;
    --ink: #000000;
    --muted: #333333;
    --brass: #5c3d00;
    --brass-deco: #7a5200;
    --terracotta: #8a3400;
    --emerald: #0f5c35;
    --emerald-ink: #ffffff;
    --proof: #991b1b;
    --rule: #cccccc;
    --rule-firm: #000000;
    --wash: #eeeeee;
    --link-line: #444444;
    --grain: none;
  }
  html,
  body {
    background: #ffffff;
    background-image: none;
    color: #000000;
    font-size: 11.5pt;
  }
  .skip-link,
  .masthead-nav,
  .hero-art .board-backdrop,
  .heading-anchor {
    display: none;
  }
  .plate-frame {
    box-shadow: none;
  }
  .section {
    break-inside: avoid-page;
  }
}
