/* Craft Bingo — site styles. Palette and type follow the app (CraftBingo/Views/DesignSystem.swift). */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-roman.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --card: #fffdf8;
  --ink: #263c34;
  --ink-soft: #5b655a;
  --accent: #a84730;
  --accent-soft: #edab92;
  --sage: #e0e7d9;
  --cream: #eee7d8;
  --clay: #f1dcd1;
  --rose: #f1dfe1;
  --ocean: #d9e7e8;
  --forest: #263c34;
  --forest-deep: #1b2b25;
  --rule: rgba(38, 60, 52, 0.16);
  --serif: "Newsreader", ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --stitch: repeating-linear-gradient(90deg, currentColor 0 9px, transparent 9px 17px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .23 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--card); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); line-height: 0.96; font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.04; font-variation-settings: "opsz" 60; }
h3 { font-size: 1.45rem; line-height: 1.2; font-weight: 500; }
em { font-style: italic; }
h1 em, h2 em { color: var(--accent); font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 1.4rem; display: flex; align-items: center; gap: 0.7em;
}
.eyebrow .star { width: 0.9em; height: 0.9em; color: var(--accent); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
.star { fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-head { position: relative; z-index: 5; padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--rule); background: var(--paper); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); font-size: 0.92rem; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; color: var(--accent);
  background: var(--stitch); background-size: 12px 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 720px) { .nav a.optional { display: none; } }

/* ---------- Buttons / launch state ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em; padding: 0.95em 1.5em; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--card); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.soon {
  display: inline-flex; align-items: center; gap: 0.75em; padding: 0.9em 1.4em; border-radius: 999px;
  font: 600 1rem/1 var(--sans); border: 1.5px dashed var(--ink); color: var(--ink);
}
.soon i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(168, 71, 48, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(168, 71, 48, 0.45); } }
body.prelaunch .when-live { display: none !important; }
body:not(.prelaunch) .when-soon { display: none !important; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 2.2rem; }
.fineprint { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Ornaments ---------- */
.rosette { position: absolute; max-width: none; color: var(--ink); opacity: 0.13; pointer-events: none; fill: none; stroke: currentColor; }
.rosette--spin { animation: spin 140s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stitch-rule { height: 2px; border: 0; margin: 0; color: var(--rule); background: var(--stitch); background-size: 17px 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 6vw, 84px) 0 clamp(56px, 9vw, 120px); }
.hero .wrap { display: grid; gap: clamp(44px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.hero .rosette {
  width: min(150vw, 1180px); right: max(-34vw, -420px); top: -210px; opacity: 0.2;
  -webkit-mask-image: radial-gradient(closest-side, #000 38%, transparent 96%); mask-image: radial-gradient(closest-side, #000 38%, transparent 96%);
}
@media (max-width: 979px) { .hero .rosette { width: 170vw; right: -85vw; top: auto; bottom: -22vw; } }
.hero__copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.18s; }
.hero__copy > :nth-child(4) { animation-delay: 0.28s; }
.hero__copy > :nth-child(5) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.hero h1 { margin-bottom: 1.6rem; }

/* ---------- Playable board ---------- */
.board-stage { position: relative; justify-self: center; width: min(100%, 470px); animation: rise 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.board {
  position: relative; background: var(--card); border-radius: 30px; padding: clamp(20px, 3.4vw, 30px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 0 0 1px var(--rule), 0 30px 60px -28px rgba(38, 60, 52, 0.42), 0 10px 22px -14px rgba(38, 60, 52, 0.25);
  transform: rotate(-1.6deg);
}
.board::before {
  content: ""; position: absolute; inset: 9px; border-radius: 22px; border: 1.5px dashed rgba(38, 60, 52, 0.2); pointer-events: none;
}
.board__head { display: flex; justify-content: space-between; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.board__title { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.15rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.015em; margin: 0.55em 0 0.7em; }
.board__meta { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--ink-soft); }
.board__bar { height: 4px; border-radius: 4px; background: rgba(38, 60, 52, 0.12); margin: 8px 0 18px; overflow: hidden; }
.board__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.board__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.sq {
  position: relative; aspect-ratio: 1; border: 1.5px solid transparent; border-radius: 16px; background: var(--cream); color: var(--ink);
  font: 500 clamp(0.74rem, 2.4vw, 0.9rem) / 1.22 var(--sans); padding: 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center;
  transition: transform 0.2s ease, background 0.3s ease, border-color 0.3s ease;
  animation: pop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: calc(0.5s + var(--i) * 0.055s);
  -webkit-tap-highlight-color: transparent;
}
@keyframes pop { from { opacity: 0; transform: scale(0.7); } }
.sq:hover:not(:disabled) { transform: translateY(-3px) rotate(-1.2deg); border-color: rgba(38, 60, 52, 0.28); }
.sq:active:not(:disabled) { transform: scale(0.96); }
.sq .tick { width: 17px; height: 17px; border-radius: 50%; background: var(--ink); display: none; place-items: center; }
.sq .tick svg { width: 10px; height: 10px; stroke: var(--card); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sq[aria-pressed="true"] { background: var(--sage); border-color: rgba(38, 60, 52, 0.3); }
.sq[aria-pressed="true"] .tick { display: grid; animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.sq--free { background: var(--accent); color: var(--card); cursor: default; pointer-events: none; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.sq--free .star { width: 34%; height: auto; }
/* Multiply keeps the thread underneath the labels visually, so goals stay readable. */
.board__thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; mix-blend-mode: multiply; }
.board__thread .stitch { stroke: #efc0ac; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 13 13; fill: none; }
.board__thread .reveal { stroke: #fff; stroke-width: 16; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.board__thread .reveal.go { transition: stroke-dashoffset 0.9s cubic-bezier(0.5, 0, 0.2, 1); stroke-dashoffset: 0; }
.board__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 16px; min-height: 2.9em; }
.board__say { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.board__say.bingo { font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.2; color: var(--accent); }
.board__reset { flex: none; background: none; border: 0; padding: 4px 0; font: 600 0.82rem var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.board__reset:hover { color: var(--accent); }
.board__note { text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin: 20px 0 0; }
.stamp { position: absolute; z-index: 2; right: -26px; top: -46px; width: 128px; height: 128px; color: var(--card); filter: drop-shadow(0 12px 14px rgba(38, 60, 52, 0.28)); }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp .ring { animation: spin 38s linear infinite; transform-origin: 50% 50%; transform-box: fill-box; }
.stamp text { font: 600 10.6px var(--sans); letter-spacing: 0.3em; fill: currentColor; text-transform: uppercase; }
@media (max-width: 560px) { .stamp { width: 96px; height: 96px; right: -8px; top: -52px; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 1; border-block: 1px solid var(--rule); padding: 20px 0; overflow: hidden; background: var(--card); }
.ticker__track { display: flex; width: max-content; animation: slide 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0 15px; list-style: none; font: italic 400 clamp(1.25rem, 2.4vw, 1.7rem) / 1 var(--serif); white-space: nowrap; }
.ticker li { display: flex; align-items: center; gap: 30px; }
.ticker .star { width: 14px; height: 14px; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.section__head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 1.2rem; max-width: 36em; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* The gallery scrolls sideways on small screens; cards waiting off to the side must stay visible. */
@media (max-width: 1079px) { .js .shot[data-reveal] { opacity: 1; transform: none; } }

/* Steps */
.steps { display: grid; gap: 36px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.step { position: relative; padding-top: 30px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; color: var(--ink); opacity: 0.35; background: var(--stitch); background-size: 17px 2px; }
.step__n { font: italic 300 clamp(4rem, 7vw, 5.6rem) / 0.9 var(--serif); color: var(--accent); display: block; margin-bottom: 0.25em; font-variation-settings: "opsz" 72; }
.step p { color: var(--ink-soft); margin: 0.7em 0 0; }

/* Gallery */
.gallery { display: flex; gap: clamp(16px, 2.2vw, 30px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 34px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(64vw, 250px); scroll-snap-align: center; margin: 0; }
@media (min-width: 1080px) {
  .gallery { overflow: visible; padding-inline: 0; margin-inline: 0; }
  .shot { flex: 1 1 0; }
  .shot:nth-child(even) { margin-top: 64px; }
}
.phone { border-radius: 13.5% / 6.2%; padding: 7px; background: var(--forest-deep); box-shadow: 0 34px 50px -30px rgba(38, 60, 52, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.2); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.phone img { width: 100%; height: auto; aspect-ratio: 600 / 1304; border-radius: 11.8% / 5.4%; background: var(--paper); }
.shot:hover .phone { transform: translateY(-10px) rotate(-1deg); }
.shot:nth-child(even):hover .phone { transform: translateY(-10px) rotate(1deg); }
.shot figcaption { margin-top: 20px; font: 400 1.16rem / 1.25 var(--serif); }
.shot figcaption small { display: block; margin-bottom: 6px; font: 600 0.66rem var(--sans); letter-spacing: 0.22em; color: var(--accent); }

/* Forest feature panel */
.forest { background: var(--forest); color: var(--paper); overflow: hidden; }
.forest .eyebrow, .forest .section__head p { color: rgba(248, 245, 237, 0.68); }
.forest h2 em { color: var(--accent-soft); }
.forest .rosette { color: var(--paper); opacity: 0.12; width: 720px; left: -300px; bottom: -360px; }
.forest .rosette + .rosette { left: auto; right: -320px; top: -380px; bottom: auto; }
.features { position: relative; display: grid; gap: 1px; background: rgba(248, 245, 237, 0.16); border: 1px solid rgba(248, 245, 237, 0.16); border-radius: 26px; overflow: hidden; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--forest); padding: clamp(26px, 3vw, 38px); transition: background 0.4s ease; }
.feature:hover { background: #2c463c; }
.feature svg { width: 30px; height: 30px; stroke: var(--accent-soft); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.feature p { color: rgba(248, 245, 237, 0.72); margin: 0.6em 0 0; font-size: 1rem; }

/* Plans */
.plans { display: grid; gap: 26px; align-items: stretch; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; gap: 34px; } }
.plan { position: relative; background: var(--card); border-radius: 28px; padding: clamp(28px, 4vw, 46px); box-shadow: 0 0 0 1px var(--rule), 0 24px 44px -34px rgba(38, 60, 52, 0.5); }
.plan--plus { background: var(--clay); }
.plan--plus::before { content: ""; position: absolute; inset: 10px; border-radius: 20px; border: 1.5px dashed rgba(168, 71, 48, 0.45); pointer-events: none; }
.plan__tag { font: 600 0.68rem var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.plan h3 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.85rem; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.plan li svg { width: 20px; height: 20px; margin-top: 3px; stroke: var(--accent); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plan__foot { margin: 1.8rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.swatches { display: flex; gap: 8px; margin-top: 1.4rem; }
.swatches span { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(38, 60, 52, 0.18) inset; }

/* Promise */
.promise { background: var(--cream); }
.promise .wrap { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .promise .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } }
.promise h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule); font-size: 1.08rem; }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks svg { width: 22px; height: 22px; margin-top: 3px; stroke: var(--accent); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.textlink { display: inline-block; margin-top: 1.6rem; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 500 1.3rem / 1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; transition: transform 0.35s ease; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { color: var(--ink-soft); max-width: 40em; padding-bottom: 22px; margin: 0; }

/* Closing */
.closing { background: var(--forest-deep); color: var(--paper); text-align: center; overflow: hidden; }
.closing .rosette {
  color: var(--paper); opacity: 0.14; width: 1000px; max-width: none; left: 50%; top: 50%; margin: -500px 0 0 -500px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 96%); mask-image: radial-gradient(closest-side, #000 30%, transparent 96%);
}
.closing img { width: 104px; height: 104px; border-radius: 23%; margin: 0 auto 34px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.6); position: relative; }
.closing h2 { position: relative; font-size: clamp(2.5rem, 6.4vw, 5rem); }
.closing h2 em { color: var(--accent-soft); }
.closing .cta-row { justify-content: center; position: relative; }
.closing .soon { border-color: rgba(248, 245, 237, 0.6); color: var(--paper); }
.closing .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.closing .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--forest-deep); }
.closing .fineprint { color: rgba(248, 245, 237, 0.66); position: relative; margin-top: 1.6rem; }
.closing a:hover { color: var(--accent-soft); }

/* Footer */
.site-foot { background: var(--forest-deep); color: rgba(248, 245, 237, 0.72); font-size: 0.92rem; padding: 34px 0 44px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(248, 245, 237, 0.16); padding-top: 30px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--accent-soft); text-decoration: underline; }
.site-foot small { flex-basis: 100%; font-size: 0.8rem; color: rgba(248, 245, 237, 0.5); }
.legal-page .site-foot { margin-top: 0; }

/* ---------- Legal pages ---------- */
.legal-hero { position: relative; padding: clamp(30px, 6vw, 80px) 0 clamp(36px, 5vw, 60px); }
.legal-hero .rosette {
  width: 620px; right: -200px; top: -240px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 96%); mask-image: radial-gradient(closest-side, #000 30%, transparent 96%);
}
@media (max-width: 939px) { .legal-hero .rosette { width: 420px; right: -200px; top: -210px; } }
.legal-hero .wrap, .legal { position: relative; }
.legal-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.legal-hero .updated { margin: 1.6rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.legal { display: grid; gap: 40px; padding-bottom: clamp(70px, 9vw, 130px); }
@media (min-width: 940px) { .legal { grid-template-columns: 250px minmax(0, 1fr); gap: 80px; } }
.toc { font-size: 0.93rem; }
@media (min-width: 940px) { .toc { position: sticky; top: 28px; align-self: start; } }
.toc h2 { font: 600 0.7rem var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--rule); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.prose { max-width: 42rem; font-family: var(--serif); font-size: 1.19rem; line-height: 1.68; font-variation-settings: "opsz" 16; }
.prose h2 { font-size: 1.85rem; line-height: 1.15; font-weight: 500; margin: 2.6em 0 0.7em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 span { display: block; font: 600 0.7rem var(--sans); letter-spacing: 0.22em; color: var(--accent); margin-bottom: 10px; }
.prose ul { padding-left: 1.15em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--ink); }
.summary-card { font-family: var(--sans); font-size: 1.02rem; line-height: 1.55; background: var(--card); border-radius: 22px; padding: 26px 28px; margin: 0 0 2.6rem; box-shadow: 0 0 0 1px var(--rule); position: relative; }
.summary-card::before { content: ""; position: absolute; inset: 8px; border-radius: 15px; border: 1.5px dashed rgba(38, 60, 52, 0.18); pointer-events: none; }
.summary-card h2 { font: 600 0.7rem var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.summary-card ul { margin: 0; padding-left: 1.1em; }
.summary-card li:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .board__thread .reveal { stroke-dashoffset: 0; }
}
@media print {
  body::before, .site-head .nav, .toc, .rosette { display: none; }
  .site-foot { background: none; color: var(--ink); }
}
