/* =========================================================
   Block & Deck Mix
   Layout: the modern version's layout, unchanged (76rem wrap, big
   type, generous bands, full-width mega menus).
   Skin: the colourful version (cream, orange bar, ink outlines,
   hard offset shadows, Lilita One + Figtree), plus a Menu button.
   ========================================================= */

/* ---------- 1. Tokens (light) ----------
   Same families as the colourful version, in cleaner modern tones:
   lighter cream, white cards, near-neutral ink, brighter section colours. */
:root {
  --brand: #FF6414;        /* vivid orange: top bar, primary buttons */
  --brand-text: #B3410A;   /* orange as text on cream */
  --brand-soft: #FFE1CC;   /* soft peach: featured panels */
  --on-brand: #1A1310;     /* ink on orange */

  --bg: #FFF7EC;           /* light warm cream page */
  --bg-alt: #FBEBD6;       /* alternate bands */
  --cream: #FFEEDA;        /* hero panel */
  --surface: #FFFFFF;      /* crisp white cards and menus */
  --text: #1C1511;         /* near-neutral ink: text, outlines, shadows */
  --text-soft: #6E625A;    /* warm grey */
  --line: #EEDCC4;
  --line-strong: #D9C3A5;

  --mc: #2F7D4A;           /* Moss: Minecraft */
  --tcg: #2459C9;          /* Sky: Pokémon */
  --fn: #6B3FC9;           /* Grape: Fortnite */
  --sun: #EDAE00;          /* Sun: Medium, highlights */
  --red: #D23C2E;          /* Redstone: Hard, warnings */
  --on-section: #FFFFFF;
  --on-sun: #1C1511;
  --section: var(--brand-text);

  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.75rem);
  --step-4: clamp(2.8rem, 7vw, 5.4rem);

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;  --s6: 3rem;   --s7: 6rem;

  --radius-s: 999px;
  --radius-m: 14px;
  --radius-l: 22px;
  --ink: 2px solid var(--text);
  --hair: 2px solid var(--line);
  --drop: 0 5px 0 var(--text);
  --float: 0 8px 0 color-mix(in srgb, var(--text) 12%, transparent);
  --block-dark: #236140;   /* hero art: grass shade */
  --block-earth: #7A5232;  /* hero art: dirt */
  --wrap: 76rem;
}

/* ---------- 2. Tokens (dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #FF7124; --brand-text: #FF9152; --brand-soft: #3D2412; --on-brand: #140F0B;
    --bg: #14110E; --bg-alt: #1B1713; --cream: #2A1F16; --surface: #201B17; --text: #F7F1E8; --text-soft: #ABA096;
    --line: #332B23; --line-strong: #4A3F34;
    --mc: #5FC27F; --tcg: #86A9F6; --fn: #B394F2; --sun: #F2C14A; --red: #F07A6E; --on-section: #140F0B; --on-sun: #140F0B;
    --block-dark: #1E5236; --block-earth: #6A4529;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #FF7124; --brand-text: #FF9152; --brand-soft: #3D2412; --on-brand: #140F0B;
  --bg: #14110E; --bg-alt: #1B1713; --cream: #2A1F16; --surface: #201B17; --text: #F7F1E8; --text-soft: #ABA096;
  --line: #332B23; --line-strong: #4A3F34;
  --mc: #5FC27F; --tcg: #86A9F6; --fn: #B394F2; --sun: #F2C14A; --red: #F07A6E; --on-section: #140F0B; --on-sun: #140F0B;
  --block-dark: #1E5236; --block-earth: #6A4529;
  color-scheme: dark;
}
[data-section="minecraft"] { --section: var(--mc); }
[data-section="pokemon"]   { --section: var(--tcg); }
[data-section="fortnite"]  { --section: var(--fn); }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--brand); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: 0.005em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); line-height: 1; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.15; }
p { margin: 0; max-width: 62ch; }
a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }
code, .mono { font-family: var(--font-mono); font-size: 0.88em; }

/* ---------- 4. Layout ---------- */
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--s7); }
.section--alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.section-head > div { display: grid; gap: var(--s3); min-width: 0; }
.stack { display: grid; gap: var(--s4); }
.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--3 { gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--2 { gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.eyebrow { font-size: var(--step--1); font-weight: 600; color: var(--section); display: inline-flex; align-items: center; gap: 0.5rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lead { font-size: var(--step-1); color: var(--text-soft); line-height: 1.5; }

/* ---------- 5. Header, Menu button + mega menu ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--brand); color: var(--on-brand); border-bottom: var(--ink);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; margin-right: auto; }
.brand:hover { color: inherit; }
.brand img { width: 44px; height: 44px; border-radius: 50%; display: block; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.6rem; font: inherit; font-weight: 800; cursor: pointer;
  background: var(--on-brand); color: var(--bg); border: 2px solid var(--on-brand); border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.85rem; transition: background 0.15s, color 0.15s;
}
.menu-btn[aria-expanded="true"] { background: var(--surface); color: var(--text); }
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; right: 0; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform 0.22s, top 0.22s, opacity 0.15s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5.75px; }
.burger span:nth-child(3) { top: 11.5px; }
.menu-btn[aria-expanded="true"] .burger span:nth-child(1) { top: 5.75px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger span:nth-child(3) { top: 5.75px; transform: rotate(-45deg); }

/* Main menu: hidden until Menu is pressed, then slides out across the bar */
.site-nav { display: none; }
.site-nav.open { display: block; }
.nav-list, .mega-links { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: var(--s1); }
.nav-item { display: flex; }
.site-nav.open .nav-item { animation: nav-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; } /* backwards, not both: a lasting transform would trap the mega menu */
.site-nav.open .nav-item:nth-child(1) { animation-delay: 90ms; }
.site-nav.open .nav-item:nth-child(2) { animation-delay: 60ms; }
.site-nav.open .nav-item:nth-child(3) { animation-delay: 30ms; }
@keyframes nav-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.nav-btn {
  font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; color: inherit; background: none;
  border: 2px solid transparent; border-radius: 999px; padding: 0.4rem 0.85rem;
}
.nav-btn:hover, .nav-item.open .nav-btn { background: color-mix(in srgb, var(--on-brand) 12%, transparent); }
.nav-btn.is-current { border-color: var(--on-brand); }
.nav-item.open .nav-btn { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); color: var(--text); border-bottom: var(--ink); box-shadow: var(--float);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.nav-item.open .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; gap: var(--s6); grid-template-columns: 1.25fr 1fr 1.15fr; padding-block: var(--s6); }
.mega__col { display: grid; align-content: start; gap: var(--s3); min-width: 0; }
.mega__head { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); padding-bottom: var(--s2); border-bottom: 2px dashed var(--line); }
.mega-links { display: grid; gap: 2px; }
.mega-links a { display: grid; gap: 1px; padding: 0.55rem 0.75rem; margin-inline: -0.75rem; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 800; }
.mega-links a:hover { background: var(--bg-alt); color: var(--text); }
.mega-links small { color: var(--text-soft); font-weight: 400; font-size: 0.85rem; }
.mega-links--compact a { font-weight: 600; }
.mega-links a.mega-overview { color: var(--brand-text); }
.mega-feature {
  display: grid; gap: var(--s3); align-content: start; padding: var(--s5); border-radius: var(--radius-m);
  background: var(--brand-soft); color: var(--text); text-decoration: none;
  border: var(--ink); box-shadow: var(--drop); transition: transform 0.08s, box-shadow 0.08s;
}
.mega-feature:hover { color: var(--text); transform: translateY(-1px); box-shadow: 0 6px 0 var(--text); }
.mega-feature .eyebrow { color: var(--text); }
.mega-feature h3 { font-size: var(--step-2); }
.mega-feature p { color: var(--text); opacity: 0.8; }
.mega-feature .go { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (hover: hover) and (min-width: 861px) {
  .nav-item:hover .mega, .nav-item:focus-within .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-item:hover .nav-btn { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
}
@media (max-width: 1080px) {
  .header-inner { padding-block: var(--s2); }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: var(--s1); }
  .site-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 860px) {
  .mega__inner { grid-template-columns: 1fr 1fr; gap: var(--s5); padding-block: var(--s5); }
  .mega__col--feature { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .btn.header-cta { display: none; }
  .brand { font-size: 1.2rem; }
  .nav-list { gap: 0; }
  .nav-btn { font-size: 0.92rem; padding-inline: 0.6rem; }
  .mega__inner { grid-template-columns: 1fr; }
  .mega__col--feature { display: none; }
  .mega { max-height: calc(100vh - 140px); overflow-y: auto; }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2); font: inherit; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; padding: 0.7rem 1.15rem; border-radius: var(--radius-s);
  background: var(--brand); color: var(--on-brand); border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: color-mix(in srgb, var(--brand) 88%, var(--text)); color: var(--on-brand); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn--section { background: var(--section); color: var(--on-section); }
.btn--section:hover { background: color-mix(in srgb, var(--section) 85%, var(--text)); color: var(--on-section); }
.btn--small { padding: 0.45rem 0.8rem; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- 7. Badges + chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; line-height: 1.4;
  padding: 0.15rem 0.55rem; border-radius: 6px; color: var(--text-soft);
  background: color-mix(in srgb, currentColor 11%, transparent); white-space: nowrap;
}
.badge--mc { color: var(--mc); }
.badge--tcg { color: var(--tcg); }
.badge--fn { color: var(--fn); }
.badge--easy, .badge--medium, .badge--hard { background: transparent; padding-inline: 0; color: var(--text-soft); }
.badge--easy::before, .badge--medium::before, .badge--hard::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.badge--easy::before { background: var(--mc); }
.badge--medium::before { background: var(--sun); }
.badge--hard::before { background: var(--red); }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { padding: 0.4rem 0.85rem; border-radius: var(--radius-s); border: var(--hair); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
.chip:hover { border-color: var(--text); }

/* ---------- 8. Cards + tiles ---------- */
.card {
  display: grid; align-content: start; gap: var(--s3); min-width: 0;
  background: var(--surface); border: var(--hair); border-radius: var(--radius-m); padding: var(--s5);
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--line-strong); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); font-size: var(--step--1); color: var(--text-soft); }
.card p { color: var(--text-soft); }
.card__link { font-weight: 600; margin-top: auto; padding-top: var(--s2); color: var(--brand-text); text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card--feature { padding: var(--s6) var(--s5); border-radius: var(--radius-l); }
.card--feature > h3 { font-size: var(--step-3); }
.card--feature .card__body { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.card ul { margin: 0; padding-left: 1.2rem; }

.tile {
  position: relative; overflow: hidden; display: grid; gap: var(--s4); min-width: 0; align-content: start;
  padding: var(--s6) var(--s5); border-radius: var(--radius-l);
  background: var(--text); color: var(--bg);
}
.tile::after {
  content: ""; position: absolute; width: 22rem; height: 22rem; right: -8rem; top: -10rem; border-radius: 50%;
  background: radial-gradient(circle, var(--section) 0%, transparent 68%); opacity: 0.55; pointer-events: none;
}
.tile > * { position: relative; z-index: 1; }
.tile h2 { font-size: var(--step-3); }
.tile p { color: inherit; opacity: 0.78; }
.tile ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tile li { font-size: var(--step--1); border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 6px; padding: 0.2rem 0.6rem; }
.tile .badge { background: color-mix(in srgb, var(--bg) 14%, transparent); justify-self: start; }
.tile .btn { justify-self: start; margin-top: var(--s3); }
.tile .btn--ghost { background: var(--bg); color: var(--text); border-color: transparent; }

/* ---------- 9. Hero ---------- */
.hero { padding-block: var(--s7) var(--s6); }
.hero__inner { display: grid; gap: var(--s6); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.hero__copy { display: grid; gap: var(--s5); min-width: 0; }
.hero h1 { max-width: 11ch; }
.hero-art {
  position: relative; aspect-ratio: 5 / 4; max-width: 100%; border-radius: var(--radius-l); border: var(--hair);
  background: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--cream);
  border-color: transparent;
  overflow: hidden;
}
.hero-art .block {
  position: absolute; left: 12%; top: 22%; width: 40%; aspect-ratio: 1; border-radius: 14px;
  background:
    linear-gradient(var(--mc) 0 0) 0 0 / 100% 28% no-repeat,
    repeating-linear-gradient(90deg, #7A5232 0 25%, #6A4529 25% 50%);
  box-shadow: var(--float); transform: rotate(-4deg);
}
.hero-art .tcg-card {
  position: absolute; right: 12%; top: 12%; width: 34%; aspect-ratio: 63 / 88; border-radius: 12px;
  background: linear-gradient(var(--tcg) 0 0) 50% 16% / 82% 44% no-repeat, var(--sun);
  box-shadow: var(--float); transform: rotate(6deg); border: 5px solid var(--surface);
}
.hero-art .sticker {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.5rem 0.9rem; background: var(--surface); color: var(--text); border: var(--hair);
  border-radius: 999px; font-size: var(--step--1); font-weight: 600; box-shadow: var(--float);
}
.hero-art .sticker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.page-hero { padding-block: var(--s7) var(--s6); border-bottom: var(--hair); }
.page-hero .wrap { display: grid; gap: var(--s5); }

/* ---------- 10. Content blocks ---------- */
.acc { border-top: var(--hair); }
.acc:last-of-type { border-bottom: var(--hair); }
.acc > summary { list-style: none; cursor: pointer; padding: var(--s4) 0; font-weight: 600; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; line-height: 1; color: var(--text-soft); transition: transform 0.18s; }
.acc[open] > summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 0 var(--s5); display: grid; gap: var(--s3); }
.card .acc:last-of-type { border-bottom: 0; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 1.9rem 1fr; gap: var(--s3); align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1px solid var(--section); color: var(--section); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
}
.steps li > div { min-width: 0; color: var(--text-soft); }
.steps li > div > strong { display: block; color: var(--text); font-weight: 600; }
.steps li p strong { color: var(--text); }

.callout { display: grid; gap: var(--s1); padding: var(--s4) var(--s5); border-radius: var(--radius-m); background: var(--cream); border: 0; }
.callout__label { font-size: var(--step--1); font-weight: 600; color: var(--section); }

.materials { list-style: none; margin: 0; padding: 0; display: grid; }
.materials li { display: flex; justify-content: space-between; gap: var(--s3); border-bottom: var(--hair); padding-block: 0.55rem; }
.materials .qty { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-soft); }

.deckbar { display: flex; gap: 3px; height: 8px; }
.deckbar span { display: block; border-radius: 999px; }
.deckbar .pk { background: var(--tcg); }
.deckbar .tr { background: var(--sun); }
.deckbar .en { background: var(--red); }
.deck-legend { display: flex; flex-wrap: wrap; gap: var(--s5); font-size: var(--step--1); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.deck-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.deck-legend .pk::before { background: var(--tcg); }
.deck-legend .tr::before { background: var(--sun); }
.deck-legend .en::before { background: var(--red); }

.decklist { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.decklist h4 { margin: 0 0 var(--s2); font-size: var(--step--1); font-weight: 600; color: var(--text-soft); }
.decklist ul { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.decklist li { display: grid; grid-template-columns: 2ch 1fr; gap: var(--s3); padding-block: 0.2rem; }
.decklist .n { font-family: var(--font-mono); color: var(--section); text-align: right; }

.table-wrap { overflow-x: auto; border: var(--hair); border-radius: var(--radius-m); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 30rem; }
th, td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: var(--hair); vertical-align: top; }
th { font-size: var(--step--1); font-weight: 500; color: var(--text-soft); background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.form { display: grid; gap: var(--s4); max-width: 34rem; }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 500; font-size: var(--step--1); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); padding: 0.7rem 0.85rem; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.form-status { font-weight: 600; color: var(--mc); }

/* ---------- 11. Footer ---------- */
.site-footer { border-top: var(--hair); padding-block: var(--s6); margin-top: var(--s6); color: var(--text-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5); align-items: center; }
.site-footer .brand { color: var(--text) !important; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s5); list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: var(--step--1); }
.site-footer small { font-size: 0.8rem; }

/* ---------- 12. Style-guide helpers ---------- */
.swatches { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.swatch { border: var(--hair); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.swatch__chip { height: 96px; display: flex; align-items: end; padding: var(--s2) var(--s3); font-weight: 600; font-size: 0.8rem; }
.swatch__info { padding: var(--s3); display: grid; gap: 2px; font-size: var(--step--1); }
.swatch__info b { font-size: var(--step-0); font-weight: 600; }
.swatch__info code { color: var(--text-soft); }
.type-row { display: grid; grid-template-columns: 8rem 1fr; gap: var(--s4); align-items: baseline; padding-block: var(--s4); border-bottom: var(--hair); }
.type-row > * { min-width: 0; }
.type-row code { color: var(--text-soft); font-size: 0.8rem; }
@media (max-width: 520px) { .type-row { grid-template-columns: 1fr; gap: var(--s1); } }
.space-bar { height: 10px; background: var(--brand); border-radius: 3px; }
.space-row { display: grid; grid-template-columns: 5rem 5rem 1fr; gap: var(--s3); align-items: center; font-size: var(--step--1); }
.demo-box { padding: var(--s5); border: var(--hair); border-radius: var(--radius-m); background: var(--surface); display: grid; gap: var(--s4); align-content: start; }
.do-dont { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.do-dont ul { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s2); }

/* ---------- 13. Slogan + logo lockup ---------- */
.tagline { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.site-footer .tagline { color: inherit; opacity: 0.9; }
.lockup { display: flex; align-items: center; gap: var(--s4); }
.lockup img { width: 64px; height: 64px; }
.lockup > div { display: grid; gap: 2px; min-width: 0; }
.lockup__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.lockup .tagline { color: var(--text-soft); }


/* =========================================================
   14. Chunky skin: same layout as above, colourful version's surface.
   Change only colours, borders, shadows and type here.
   ========================================================= */
.eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow::before { display: none; }
.section--alt { border-block: 0; }

.btn {
  border-radius: 999px; font-weight: 800; border: var(--ink); box-shadow: 0 4px 0 var(--text);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-1px); box-shadow: 0 5px 0 var(--text); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--text); }
.btn--ghost, .btn--ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn--section, .btn--section:hover { background: var(--section); color: var(--on-section); }
.btn--small { box-shadow: 0 3px 0 var(--text); }

.badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; background: transparent; border: 1.5px solid currentColor; }
.badge--easy, .badge--medium, .badge--hard { padding: 0.2rem 0.6rem; border-color: transparent; }
.badge--easy::before, .badge--medium::before, .badge--hard::before { display: none; }
.badge--easy { background: var(--mc); color: var(--on-section); }
.badge--medium { background: var(--sun); color: var(--on-sun); }
.badge--hard { background: var(--red); color: var(--on-section); }

.chip { border-radius: 999px; border: var(--ink); font-weight: 700; }
.chip:hover { background: var(--section); border-color: var(--section); color: var(--on-section); }

.card { border: var(--hair); border-radius: var(--radius-m); }
.card:hover { border-color: var(--line-strong); }
.card__link { font-weight: 800; }
.card--feature, .card--feature:hover { border: var(--ink); box-shadow: 0 6px 0 var(--text); }

.tile { background: var(--section); color: var(--on-section); border: var(--ink); box-shadow: 0 6px 0 var(--text); }
.tile::after { display: none; }
.tile p { opacity: 0.92; }
.tile li { border: 2px solid color-mix(in srgb, var(--on-section) 45%, transparent); border-radius: 999px; font-weight: 700; }
.tile .badge { color: inherit; background: transparent; }
.tile .btn--ghost, .tile .btn--ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text); }

.hero-art {
  border: var(--ink); box-shadow: 0 6px 0 var(--text);
  background: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1.5px, transparent 2px) 0 0 / 22px 22px, var(--cream);
}
.hero-art .block {
  border: var(--ink); border-radius: 8px; box-shadow: 8px 8px 0 var(--text);
  background:
    linear-gradient(var(--mc) 0 0) 0 0 / 50% 50% no-repeat,
    linear-gradient(var(--block-dark) 0 0) 100% 100% / 50% 50% no-repeat,
    linear-gradient(var(--sun) 0 0) 100% 0 / 25% 25% no-repeat,
    var(--block-earth);
}
.hero-art .tcg-card { border: var(--ink); box-shadow: 8px 8px 0 var(--text); }
.hero-art .sticker {
  background: var(--brand); color: var(--on-brand); border: var(--ink); box-shadow: 0 4px 0 var(--text);
  font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); transform: translateX(-50%) rotate(-3deg);
}
.hero-art .sticker::before { display: none; }

.page-hero { border-bottom: var(--hair); }

.acc { border-top: var(--hair); }
.acc:last-of-type { border-bottom: var(--hair); }
.acc > summary { font-weight: 800; }
.acc > summary::after { font-family: var(--font-display); font-size: 1.6rem; color: var(--section); }

.steps li::before { border: 0; border-radius: 8px; background: var(--section); color: var(--on-section); font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; }

.callout { background: var(--surface); border: 2px dashed var(--section); }
.callout__label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.deckbar { gap: 0; height: 14px; border: var(--ink); border-radius: 999px; overflow: hidden; }
.deckbar span { border-radius: 0; }
.decklist h4 { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; }

.table-wrap { border: var(--hair); }
th { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }

.field label { font-weight: 700; font-size: var(--step-0); }
.field input, .field textarea, .field select { border: var(--hair); border-radius: 10px; }

.site-footer { background: var(--text); color: var(--bg); border-top: 0; }
.site-footer .brand, .site-footer a { color: var(--bg) !important; }
.site-footer a:hover { color: var(--bg); text-decoration: underline; }
.site-footer small { opacity: 0.8; }

.swatch, .demo-box { border: var(--hair); }
.space-bar { height: 16px; }

/* Section tiles: line up the "Go to" buttons along the bottom */
.tile { display: flex; flex-direction: column; }
.tile .btn { margin-top: auto; align-self: flex-start; }
.tile ul { margin-bottom: var(--s3); }

/* ---------- 15. Guide pages and pictures (Eleventy version) ---------- */
.post-body { display: grid; gap: var(--s5); max-width: 50rem; }
.post-body > * { min-width: 0; }
.block-title { font-size: var(--step-2); margin-bottom: var(--s2); }
.prose { display: grid; gap: var(--s4); font-size: 1.05rem; }
.prose > * { margin: 0; }
.prose h2 { font-size: var(--step-2); margin-top: var(--s3); }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: var(--s2); }
.prose img { border-radius: var(--radius-m); border: var(--ink); }
.steps li p { margin: 0; }
.figure { margin: 0; display: grid; gap: var(--s2); }
.figure img { width: 100%; border-radius: var(--radius-m); border: var(--ink); box-shadow: var(--drop); }
.figure figcaption { font-size: var(--step--1); color: var(--text-soft); }
.card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: var(--hair); }
.feature__img { width: 100%; border-radius: var(--radius-m); border: var(--ink); }
.crumb { color: inherit; }
.meta { font-size: var(--step--1); color: var(--text-soft); align-self: center; }
.badge-row { align-items: center; }
.wrap.post-body { max-width: var(--wrap); }
.post-body > * { max-width: 50rem; width: 100%; }

/* ---------- 16. More blocks: headings, gallery, side by side, video, before/after, stats, map code, Q&A, tables ---------- */
.block-heading { font-size: var(--step-3); margin-top: var(--s4); scroll-margin-top: 96px; }
.zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; border-radius: var(--radius-m); }
.zoom img { display: block; width: 100%; border-radius: var(--radius-m); border: var(--ink); }
.zoom:hover img { box-shadow: var(--drop); }
.step__img { margin-top: var(--s3); max-width: 28rem; }

.gallery { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.gallery figure { margin: 0; display: grid; gap: var(--s2); align-content: start; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption, .figure figcaption { font-size: var(--step--1); color: var(--text-soft); }

.side { display: grid; gap: var(--s5); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.side > * { min-width: 0; }
.side--right > .zoom { order: 2; }

.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border: var(--ink); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--drop); background: var(--text); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.before-after { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.ba { position: relative; }
.ba__label { position: absolute; top: var(--s3); left: var(--s3); z-index: 1; padding: 0.2rem 0.7rem; border-radius: 999px; border: var(--ink); background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 0.8rem; pointer-events: none; }

.stats { margin: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.stats > div { background: var(--surface); border: var(--ink); border-radius: var(--radius-m); box-shadow: 0 4px 0 var(--text); padding: var(--s3) var(--s4); }
.stats dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--section); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; font-variant-numeric: tabular-nums; }

.mapcode { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); background: var(--surface); border: var(--ink); border-radius: var(--radius-m); box-shadow: var(--drop); }
.mapcode__text { display: grid; gap: var(--s1); min-width: 0; }
.mapcode__code { font-family: var(--font-mono); font-size: var(--step-2); letter-spacing: 0.06em; overflow-wrap: anywhere; }
.mapcode p { color: var(--text-soft); }

.block-faq, .block-table, .block-gallery { display: grid; gap: var(--s3); }

.lightbox { border: var(--ink); border-radius: var(--radius-l); padding: var(--s4); background: var(--surface); color: var(--text); max-width: min(92vw, 70rem); max-height: 92vh; box-shadow: 0 8px 0 var(--text); }
.lightbox::backdrop { background: color-mix(in srgb, var(--text) 75%, transparent); }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; margin-inline: auto; border-radius: var(--radius-m); }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: var(--s3); }
.lightbox__caption { margin-top: var(--s3); text-align: center; color: var(--text-soft); max-width: none; }
.lightbox__caption:empty { display: none; }

/* Formatting from the text editor: quotes, tables, code, dividers */
.prose blockquote { margin: 0; padding: var(--s3) var(--s5); border-left: 6px solid var(--section); background: var(--surface); border-radius: 0 var(--radius-m) var(--radius-m) 0; font-size: var(--step-1); }
.prose blockquote > * { margin: 0; }
.prose table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: var(--hair); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.prose th, .prose td { overflow-wrap: anywhere; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: 5px; }
.prose pre { overflow-x: auto; background: var(--text); color: var(--bg); padding: var(--s4); border-radius: var(--radius-m); }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 2px dashed var(--line); width: 100%; }
.prose a { font-weight: 700; }
.callout .prose { gap: var(--s2); font-size: 1rem; }

/* ---------- 17. Tip jar (About page) ---------- */
.tipjar { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; max-width: 52rem; padding: var(--s6) var(--s5); background: var(--surface); border: var(--ink); border-radius: var(--radius-l); box-shadow: 0 6px 0 var(--text); }
.tipjar > .stack { flex: 1 1 18rem; min-width: 0; }
.tipjar__icon { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--bg-alt); border: var(--ink); }
.tipjar__small { font-size: var(--step--1); color: var(--text-soft); }
.site-footer small + small { display: block; margin-top: var(--s1); opacity: 0.65; max-width: 60ch; }
