/* ============================================================
   Strategist's Den Games — site stylesheet
   Shared across home, product pages, dev blog.
   ============================================================ */
@import url('colors_and_type.css');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

* { box-sizing: border-box; }

html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

a { transition: color 140ms cubic-bezier(0.2,0.7,0.2,1), border-color 140ms; }

/* ---------- LAYOUT PRIMITIVES ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-tight { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }

/* Paper-fiber noise overlay */
.noise { position: relative; isolation: isolate; }
.noise::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 1 0 0 0 0 0.88 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}
.noise > * { position: relative; z-index: 1; }

/* ---------- NAV ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}
.nav {
  display: flex; align-items: center; gap: 32px;
  padding: 10px 22px 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; border: 0; color: inherit;
}
.nav-brand img.brand-mark { height: 36px; width: auto; display: block; }
.nav-brand span.brand-mark {
  display: block; width: 36px; height: 36px;
  background-color: var(--fg);
  -webkit-mask: url('assets/squirrel-mark.svg') center/contain no-repeat;
          mask: url('assets/squirrel-mark.svg') center/contain no-repeat;
}
.nav-brand .brand-wordmark { font-size: 13px; color: var(--fg); letter-spacing: 0.1em; line-height: 1; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--fg);
  border: 0;
  padding: 4px 0;
  position: relative;
  text-decoration: none;
}
.nav-links a:hover { color: var(--fg-bright); }
.nav-links a.active { color: var(--fg-bright); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1.5px; background: var(--accent);
}
.nav-spacer { flex: 1; }
.nav-actions { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.08em; }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 140ms cubic-bezier(0.2,0.7,0.2,1), transform 120ms, border-color 140ms;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.btn-primary:hover { background: var(--sdg-brass-soft); border-color: var(--sdg-brass-soft); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--fg-muted); color: var(--fg-bright); }
.btn-ghost { background: transparent; color: var(--fg); border: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--accent); border-radius: 0; }
.btn-sm { font-size: 12px; padding: 8px 16px; }

/* ---------- ELEMENTS ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 14px;
}
.eyebrow.accent { color: var(--accent); }

.chip {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  background: transparent;
}
.chip.solid-brass { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.chip.solid-crimson { background: var(--sdg-crimson); color: var(--fg-bright); border-color: var(--sdg-crimson); }
.chip.solid-cobalt { background: var(--sdg-cobalt); color: var(--fg-bright); border-color: var(--sdg-cobalt); }
.chip.solid-olive { background: var(--sdg-olive); color: var(--fg-bright); border-color: var(--sdg-olive); }

/* ---------- SECTION HEADERS ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; gap: 48px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.05;
  margin: 0;
  color: var(--fg-bright);
  letter-spacing: -0.01em;
  max-width: 18ch;
  text-wrap: balance;
}
.section-head .head-side { max-width: 380px; color: var(--fg-muted); font-size: 15px; line-height: 1.6; }

/* ---------- HERO (home) ---------- */
.hero { padding: 88px 0 112px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 18px 0 28px;
  color: var(--fg-bright);
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 50ch;
  margin: 0 0 36px;
}
.hero-meta {
  display: flex; gap: 32px; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta strong { color: var(--fg); font-weight: 500; }

/* ---------- PAGE HEADER (product / blog) ---------- */
.page-head {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-head .crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex; gap: 8px; align-items: center;
}
.page-head .crumb a { color: var(--fg-muted); border: 0; text-decoration: none; }
.page-head .crumb a:hover { color: var(--accent); }
.page-head .crumb .sep { opacity: 0.5; }

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 76px;
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--fg-bright);
  max-width: 18ch;
  text-wrap: balance;
}
.page-head .subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0;
}

/* ---------- PRODUCT PAGE LAYOUT ---------- */
.product { padding: 80px 0 96px; border-bottom: 1px solid var(--line); }
.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.product-art {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: sticky;
  top: 96px;
}
.product-art img { max-width: 100%; max-height: 100%; display: block; }
.product-art.placeholder {
  background:
    radial-gradient(ellipse 60% 40% at 50% 35%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%),
    var(--bg-deep);
  position: relative;
}

.product-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0;
}
.product-meta-row .cell {
  padding: 0 20px;
  border-left: 1px solid var(--line);
}
.product-meta-row .cell:first-child { border-left: 0; padding-left: 0; }
.product-meta-row .label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.product-meta-row .val {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--fg-bright);
}
.product-meta-row .val small { font-family: var(--font-sans); font-size: 12px; color: var(--fg-muted); margin-left: 4px; font-weight: 400; letter-spacing: 0; text-transform: none; }

.product-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.product h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.1;
  margin: 56px 0 18px;
  color: var(--fg-bright);
  letter-spacing: -0.005em;
}
.product h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 32px 0 14px;
}
.product p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 16px;
  max-width: 60ch;
}
.product ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.product ul li {
  position: relative;
  padding-left: 22px;
  color: var(--fg);
  line-height: 1.55;
  max-width: 60ch;
}
.product ul li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent);
}

/* ---------- SPEC TABLE ---------- */
.spec-table {
  border-top: 1px solid var(--line);
  margin: 32px 0 0;
}
.spec-table .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  align-items: baseline;
}
.spec-table .row .k {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.spec-table .row .v {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}
.spec-table .row .v .mono { font-family: var(--font-mono); background: none; border: 0; padding: 0; font-size: 14px; color: var(--fg-bright); }

/* ---------- FEATURE GRID (war footing pillars) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 56px;
}
.feature {
  padding: 36px 32px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.feature:first-child { border-left: 0; padding-left: 0; }
.feature:last-child { padding-right: 0; }
.feature .marker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  color: var(--fg-bright);
  margin: 0;
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

/* ---------- GAME GRID (home) ---------- */
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.game-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 180ms cubic-bezier(0.2,0.7,0.2,1), border-color 180ms;
  text-decoration: none;
  color: inherit;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.game-card .cover {
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card .body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 8px; }
.game-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.05;
  margin: 0;
  color: var(--fg-bright);
  letter-spacing: -0.005em;
}
.game-card .sub { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.game-card .meta { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.game-card .blurb { font-size: 15px; line-height: 1.55; color: var(--fg-muted); margin: 8px 0 0; max-width: 56ch; }
.game-card .more {
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- FIELD NOTES / DEV BLOG ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.note {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.note:hover h4 { color: var(--accent); }
.note .kind { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.note h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  color: var(--fg-bright);
  margin: 0;
  letter-spacing: -0.005em;
  transition: color 140ms;
}
.note p { font-size: 14px; color: var(--fg-muted); margin: 0; line-height: 1.6; }
.note .by { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); margin-top: auto; padding-top: 10px; }

/* Blog index — wide list variant */
.notes-list { display: flex; flex-direction: column; }
.notes-list .note-row {
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: padding 200ms cubic-bezier(0.2,0.7,0.2,1);
}
.notes-list .note-row:first-child { border-top: 1px solid var(--line); }
.notes-list .note-row:hover h3 { color: var(--accent); }
.notes-list .note-row:hover { padding-left: 16px; padding-right: 16px; }
.notes-list .note-row .date {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.notes-list .note-row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: var(--fg-bright);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
  transition: color 140ms;
}
.notes-list .note-row .excerpt { font-size: 15px; line-height: 1.55; color: var(--fg-muted); margin: 0; max-width: 60ch; }
.notes-list .note-row .by { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); text-align: right; }
.notes-list .note-row .kind {
  font-family: var(--font-sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

/* ---------- BLOG POST ---------- */
.post-head {
  padding: 88px 0 48px;
  border-bottom: 1px solid var(--line);
}
.post-head .crumb {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 26px;
}
.post-head .crumb a { color: var(--fg-muted); border: 0; text-decoration: none; }
.post-head .crumb a:hover { color: var(--accent); }
.post-head .kind {
  font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.post-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--fg-bright);
  max-width: 22ch;
  text-wrap: balance;
}
.post-head .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--fg-muted);
  max-width: 56ch;
  margin: 0 0 28px;
}
.post-head .meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.04em;
  display: flex; gap: 18px;
}

.post-body {
  padding: 56px 0 88px;
}
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body h2, .post-body h3, .post-body figure {
  max-width: 68ch;
}
.post-body p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.post-body p:first-of-type::first-line {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.post-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.15;
  color: var(--fg-bright);
  margin: 48px 0 16px;
  letter-spacing: -0.005em;
}
.post-body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 32px 0 14px;
}
.post-body ul, .post-body ol {
  padding-left: 0;
  list-style: none;
  margin: 22px 0;
}
.post-body ul li, .post-body ol li {
  position: relative;
  padding-left: 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 8px;
}
.post-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.post-body ol { counter-reset: postlist; }
.post-body ol li { counter-increment: postlist; }
.post-body ol li::before {
  content: counter(postlist, decimal-leading-zero);
  position: absolute; left: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  top: 2px;
}
.post-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--fg-bright);
}
.post-body figure {
  margin: 36px 0;
}
.post-body figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.post-body figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--fg-bright);
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
  width: 96px;
}

.post-foot {
  padding: 40px 0 80px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.post-foot .nav-prev, .post-foot .nav-next {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: inherit;
  padding: 18px 0;
}
.post-foot .nav-next { text-align: right; }
.post-foot .label {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.post-foot .title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--fg);
  transition: color 140ms;
}
.post-foot a:hover .title { color: var(--accent); }

/* ---------- IMAGE PLACEHOLDER ---------- */
.img-placeholder {
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in oklab, var(--line) 60%, transparent) 18px 19px),
    var(--bg-deep);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
  gap: 6px;
}
.img-placeholder .small { font-size: 10px; color: var(--fg-dim); opacity: 0.7; }

/* ---------- DECORATIVE COUNTER / TOKEN ---------- */
.token {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  border: 1.5px solid currentColor;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  line-height: 1;
}
.token .lbl {
  font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.16em;
  opacity: 0.85; margin-top: 4px; font-weight: 600;
}
.token.crimson { color: var(--sdg-crimson-soft); background: color-mix(in oklab, var(--sdg-crimson) 70%, var(--bg)); }
.token.cobalt  { color: var(--sdg-cobalt-soft);  background: color-mix(in oklab, var(--sdg-cobalt) 70%, var(--bg)); }
.token.brass   { color: var(--bg-deep);          background: var(--accent); border-color: var(--sdg-brass-deep); }
.token.olive   { color: var(--sdg-moss);         background: color-mix(in oklab, var(--sdg-olive) 70%, var(--bg)); border-color: var(--sdg-olive-soft); }

/* ---------- QUOTE STRIP ---------- */
.quote-strip { padding: 80px 0; border-bottom: 1px solid var(--line); }
.quote {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px; align-items: start;
  max-width: 980px; margin: 0 auto;
}
.quote .glyph { font-family: var(--font-display); font-size: 110px; line-height: 0.8; color: var(--accent); }
.quote blockquote {
  font-family: var(--font-display); font-style: italic; font-size: 38px;
  line-height: 1.2; margin: 0;
  color: var(--fg-bright); text-wrap: balance;
}
.quote .cite {
  font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-muted); margin-top: 18px;
}

/* ---------- FOOTER ---------- */
.foot { padding: 72px 0 40px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.foot h5 {
  font-family: var(--font-sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 18px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a {
  color: var(--fg); font-size: 14px;
  border: 0; text-decoration: none;
}
.foot a:hover { color: var(--accent); }
.foot-brand p { font-size: 13px; color: var(--fg-muted); max-width: 36ch; line-height: 1.6; margin: 16px 0 0; }
.foot-brand .nav-brand img.brand-mark { height: 44px; }
.foot-brand .nav-brand span.brand-mark { width: 44px; height: 44px; }
.foot-brand .nav-brand .brand-wordmark { font-size: 14px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* ---------- UTILITIES ---------- */
.divider-rule {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-dim);
  margin: 56px 0 32px;
}
.divider-rule::before, .divider-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.acorn-bullet {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
  display: inline-block;
  transform: translateY(2px);
  margin-right: 6px;
}


/* ============================================================
   TWEAKS — atmosphere / voice / accent
   ============================================================ */

/* ---------- ATMOSPHERE ---------- */

/* Parchment */
body[data-atmosphere="parchment"] {
  --bg:           var(--sdg-parchment);
  --bg-deep:      var(--sdg-parchment-deep);
  --bg-raised:    #fbf2d4;
  --bg-soft:      #ecddb5;
  --fg:           var(--sdg-parchment-ink);
  --fg-bright:    #14100a;
  --fg-muted:     var(--sdg-parchment-ink2);
  --fg-dim:       #8a7c5d;
  --line:         var(--sdg-parchment-edge);
  --line-strong:  #a88f5a;
}
body[data-atmosphere="parchment"] .noise::before { mix-blend-mode: multiply; opacity: 0.22; }
body[data-atmosphere="parchment"] .nav { background: #fbf2d4; box-shadow: 0 1px 0 rgba(50,38,16,0.08), 0 6px 18px rgba(50,38,16,0.06); }
body[data-atmosphere="parchment"] .game-card,
body[data-atmosphere="parchment"] .img-placeholder { background: #fbf2d4; }
body[data-atmosphere="parchment"] .nav-wrap { background: linear-gradient(to bottom, var(--bg) 60%, transparent); }
body[data-atmosphere="parchment"] .btn-primary { color: var(--bg); }
body[data-atmosphere="parchment"] .chip.solid-brass { color: var(--sdg-parchment); }
body[data-atmosphere="parchment"] ::selection { background: var(--accent); color: var(--bg); }
body[data-atmosphere="parchment"] .hero h1 em { color: var(--accent-deep); }
body[data-atmosphere="parchment"] .token.brass { color: var(--sdg-parchment); }

/* Blueprint */
body[data-atmosphere="blueprint"] {
  --bg:           #0e2240;
  --bg-deep:      #061229;
  --bg-raised:    #16294f;
  --bg-soft:      #12274a;
  --fg:           #d6e6ff;
  --fg-bright:    #f3f7ff;
  --fg-muted:     #95b1d8;
  --fg-dim:       #5b78a0;
  --line:         #234268;
  --line-strong:  #355b8a;
}
body[data-atmosphere="blueprint"] .noise::before { opacity: 0.18; }
body[data-atmosphere="blueprint"] .hero [style*="background-size: 36px 36px"] {
  background-image: linear-gradient(rgba(170, 200, 240, 0.18) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(170, 200, 240, 0.18) 1px, transparent 1px) !important;
}

/* ---------- VOICE ---------- */

/* Manual */
body[data-voice="manual"] {
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
body[data-voice="manual"] h1, body[data-voice="manual"] h2,
body[data-voice="manual"] h3, body[data-voice="manual"] h4,
body[data-voice="manual"] .game-card h3, body[data-voice="manual"] .feature h3,
body[data-voice="manual"] .note h4, body[data-voice="manual"] .post-head h1,
body[data-voice="manual"] .page-head h1, body[data-voice="manual"] .post-body h2,
body[data-voice="manual"] .section-head h2 {
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.02em;
}
body[data-voice="manual"] .hero h1 { font-size: 76px; line-height: 0.95; }
body[data-voice="manual"] .hero h1 em,
body[data-voice="manual"] .lede,
body[data-voice="manual"] .subhead,
body[data-voice="manual"] .post-head .lede,
body[data-voice="manual"] .quote blockquote,
body[data-voice="manual"] .post-body blockquote {
  font-style: normal;
}
body[data-voice="manual"] .hero h1 em { font-weight: 800; }
body[data-voice="manual"] .lede,
body[data-voice="manual"] .subhead { font-weight: 400; }
body[data-voice="manual"] .post-body blockquote { border-left-width: 3px; font-weight: 500; }
body[data-voice="manual"] .quote .glyph { font-family: var(--font-mono); font-size: 64px; }

/* Atlas */
body[data-voice="atlas"] {
  --font-display: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
}
body[data-voice="atlas"] h1, body[data-voice="atlas"] h2,
body[data-voice="atlas"] .hero h1, body[data-voice="atlas"] .section-head h2,
body[data-voice="atlas"] .post-head h1, body[data-voice="atlas"] .page-head h1 {
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.025em;
}
body[data-voice="atlas"] .hero h1 { font-size: 80px; line-height: 0.95; }
body[data-voice="atlas"] .hero h1 em { font-style: italic; }
body[data-voice="atlas"] .post-head h1 { font-size: 72px; }
body[data-voice="atlas"] .lede, body[data-voice="atlas"] .subhead { font-family: var(--font-sans); font-style: normal; font-size: 19px; font-weight: 400; }
body[data-voice="atlas"] .quote blockquote { font-style: normal; font-size: 34px; }
body[data-voice="atlas"] .post-body blockquote { font-family: "DM Serif Display", serif; font-style: normal; }

/* ---------- ACCENT ---------- */

body[data-accent="crimson"] {
  --accent:        var(--sdg-crimson);
  --accent-deep:   var(--sdg-crimson-deep);
  --sdg-brass-soft: var(--sdg-crimson-soft);
}
body[data-accent="cobalt"] {
  --accent:        var(--sdg-cobalt);
  --accent-deep:   var(--sdg-cobalt-deep);
  --sdg-brass-soft: var(--sdg-cobalt-soft);
}
body[data-accent="olive"] {
  --accent:        var(--sdg-olive);
  --accent-deep:   var(--sdg-olive-deep);
  --sdg-brass-soft: var(--sdg-olive-soft);
}
body[data-accent="crimson"] .chip.solid-brass { background: var(--sdg-crimson); border-color: var(--sdg-crimson); color: var(--fg-bright); }
body[data-accent="cobalt"]  .chip.solid-brass { background: var(--sdg-cobalt);  border-color: var(--sdg-cobalt);  color: var(--fg-bright); }
body[data-accent="olive"]   .chip.solid-brass { background: var(--sdg-olive);   border-color: var(--sdg-olive);   color: var(--fg-bright); }
body[data-accent="crimson"] .token.brass { background: var(--sdg-crimson); border-color: var(--sdg-crimson-deep); color: var(--fg-bright); }
body[data-accent="cobalt"]  .token.brass { background: var(--sdg-cobalt);  border-color: var(--sdg-cobalt-deep);  color: var(--fg-bright); }
body[data-accent="olive"]   .token.brass { background: var(--sdg-olive);   border-color: var(--sdg-olive-deep);   color: var(--fg-bright); }
