/* ==========================================================================
   Chalk Down — website styles
   Palette and type match the game (docs/architecture/ui-style.md).
   ========================================================================== */

/* ---------- Fonts (the game's own OFL faces, self-hosted) ---------- */
@font-face { font-family: "Edu NSW ACT Foundation"; src: url("../fonts/EduNSWACTFoundation-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Edu NSW ACT Foundation"; src: url("../fonts/EduNSWACTFoundation-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url("../fonts/ShantellSans-Medium.woff") format("woff"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url("../fonts/ShantellSans-Bold.woff") format("woff"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/CourierPrime-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/CourierPrime-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --board: #2F4F3E;
  --board-dark: #223B2E;
  --chalk: #F4F1E8;
  --chalk-dim: #DCD6C8;
  --chalk-mute: #A7B2A9;
  --paper: #F2E5C2;
  --paper-dark: #DDC99C;
  --card: #FBF9F2;
  --rule-blue: #8FB5DA;
  --margin-red: #E58585;
  --pencil: #F4B329;
  --pencil-dark: #CF8E17;
  --red-pen: #D33A35;
  --ballpoint: #2D5DA6;
  --ballpoint-dark: #1F4380;
  --ink: #24232A;
  --graphite: #4B4F58;
  --oak: #D9AA6C;
  --oak-mid: #B5844C;
  --oak-dark: #8B5A33;
  --desk: #C99A5F;
  --cork: #A87A4F;
  --steel: #8D97A1;
  --steel-dark: #626B75;
  --eraser: #F08D96;
  --canary: #F7E6A6;
  --pink-slip: #F6D2CF;
  --sticky: #F8DC6C;
  --gold: #F7CF3D;
  --wall: #E9E4CF;

  --hand-teacher: "Edu NSW ACT Foundation", "Shantell Sans", cursive;
  --hand-kid: "Shantell Sans", "Comic Sans MS", cursive;
  --print: "Courier Prime", "Courier New", monospace;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--board-dark); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ballpoint); }
a:hover { color: var(--ballpoint-dark); }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--pencil); color: var(--ink); padding: 10px 16px; font-weight: 700; border: 2px solid var(--ink); border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- Textures ---------- */
.tex-board { background-color: var(--board); background-image: radial-gradient(ellipse at 20% 30%, rgba(244,241,232,0.06), transparent 55%), radial-gradient(ellipse at 80% 70%, rgba(244,241,232,0.05), transparent 50%); }
.tex-desk { background-color: var(--desk); background-image: repeating-linear-gradient(92deg, rgba(139,90,51,0.10) 0 2px, transparent 2px 19px, rgba(139,90,51,0.07) 19px 20px, transparent 20px 47px); }
.tex-cork { background-color: var(--cork); background-image: radial-gradient(rgba(94,59,39,0.35) 1px, transparent 1.6px), radial-gradient(rgba(242,229,194,0.18) 1px, transparent 1.6px); background-size: 7px 7px, 11px 11px; }
.rail-top { border-top: 14px solid var(--oak-mid); }
.rail-bottom { border-bottom: 14px solid var(--oak-mid); }

/* ---------- Type helpers ---------- */
.chalk { font-family: var(--hand-teacher); color: var(--chalk); text-shadow: 0 0 2px rgba(244,241,232,0.45); }
.kicker { font-family: var(--print); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.section-title { font-family: var(--hand-kid); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; text-align: center; }
.section-lede { text-align: center; color: var(--graphite); font-size: 19px; margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--body); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; padding: 14px 24px; min-height: 48px; border-radius: 8px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn svg { flex: none; }
.btn--pencil { background: var(--pencil); }
.btn--chalk { background: var(--chalk); }
.btn--red { background: var(--red-pen); color: var(--chalk); }
.btn--red:hover { color: var(--chalk); }
.btn--lg { font-size: 20px; padding: 17px 28px; }
.btn--sm { font-size: 16px; padding: 9px 18px; min-height: 44px; border-width: 2px; box-shadow: 0 4px 0 var(--pencil-dark); }
.btn--sm:hover { box-shadow: 0 5px 0 var(--pencil-dark); }

/* ---------- Header ---------- */
.site-header { background: var(--board-dark); border-bottom: 6px solid var(--oak-mid); position: relative; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand span { font-family: var(--print); font-size: 13px; line-height: 1.3; color: #C9D4CC; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; }
.nav a:not(.btn) { font-family: var(--hand-teacher); font-weight: 600; font-size: 22px; color: var(--chalk); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--pencil); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .brand span { display: none; }
  .brand img { height: 44px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--wall); }
.hero__img { width: 100%; height: clamp(440px, 56vw, 780px); object-fit: cover; object-position: 58% 50%; }
.hero__overlay { position: absolute; inset: 0; }
.hero__overlay .wrap { height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero__logo { width: clamp(220px, 30vw, 440px); transform: rotate(-2deg); filter: drop-shadow(0 18px 24px rgba(36,35,42,0.35)); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 640px) {
  .hero__img { height: 300px; object-position: 62% 50%; }
  .hero__overlay { position: static; }
  .hero__overlay .wrap { padding-top: 0; padding-bottom: 28px; background: var(--board-dark); }
  .hero__logo { position: absolute; top: 18px; left: 16px; width: 190px; }
  .hero__ctas { width: 100%; padding-top: 24px; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Pitch tray ---------- */
.pitch { border-top: 10px solid var(--oak); border-bottom: 14px solid var(--oak-mid); }
.pitch .wrap { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: center; justify-content: space-between; padding-top: 52px; padding-bottom: 48px; }
.pitch h1 { font-weight: 600; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.15; flex: 999 1 600px; }
.pitch__facts { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; font-family: var(--print); font-size: 16px; color: var(--chalk-dim); }

/* ---------- The rule ---------- */
.rule { overflow: hidden; }
.rule .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(72px, 9vw, 120px); }
.rule__text { flex: 1 1 380px; min-width: 0; color: var(--chalk); }
.rule__text .kicker { color: var(--chalk-mute); margin-bottom: 16px; }
.rule__text h2 { font-weight: 700; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; margin-bottom: 26px; }
.rule__text p { font-size: 20px; line-height: 1.6; color: var(--chalk-dim); max-width: 520px; margin-bottom: 14px; }
.toggle { display: inline-flex; flex-wrap: wrap; padding: 6px; background: var(--board-dark); border-radius: 14px; gap: 6px; margin-top: 22px; }
.toggle button { font-family: var(--hand-teacher); font-weight: 700; font-size: 21px; padding: 12px 22px; min-height: 48px; border-radius: 10px; border: none; cursor: pointer; background: transparent; color: var(--chalk-dim); }
.toggle button[aria-pressed="true"] { background: var(--chalk); color: var(--board-dark); }
.toggle button:hover:not([aria-pressed="true"]) { color: var(--chalk); background: rgba(244,241,232,0.08); }
.try-it { font-family: var(--hand-kid); font-size: 17px; color: var(--gold); margin-top: 12px; transform: rotate(-1.5deg); display: inline-block; }
.rule__shot { flex: 1.5 1 520px; min-width: 0; position: relative; }
.frame { background: var(--oak-mid); padding: clamp(8px, 1.2vw, 14px); border-radius: 10px; box-shadow: 0 30px 50px rgba(0,0,0,0.35); }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.stamp { position: absolute; right: -6px; top: -26px; transform: rotate(8deg) scale(1); border: 5px solid var(--red-pen); color: var(--red-pen); background: rgba(244,241,232,0.94); border-radius: 10px; padding: 4px 20px; font-family: var(--hand-kid); font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.04em; line-height: 1.1; transition: transform .18s cubic-bezier(.3,1.6,.5,1), opacity .12s; }
.sticky-note { position: absolute; left: -10px; bottom: -22px; transform: rotate(-4deg); background: var(--sticky); color: var(--ink); padding: 12px 18px; font-family: var(--hand-kid); font-weight: 600; font-size: 19px; line-height: 1.35; box-shadow: 0 8px 14px rgba(0,0,0,0.25); transition: opacity .15s; }
.rule[data-state="up"] .stamp { opacity: 0; transform: rotate(8deg) scale(1.6); }
.rule[data-state="down"] .sticky-note { opacity: 0; }
@media (max-width: 640px) { .sticky-note { left: 6px; font-size: 16px; } .stamp { right: 8px; } }

/* ---------- Trailer (AV cart) ---------- */
.trailer { background: var(--wall); }
.trailer .wrap { padding-top: clamp(64px, 8vw, 96px); display: flex; flex-direction: column; align-items: center; }
.cart { width: min(980px, 100%); display: flex; flex-direction: column; align-items: center; margin-top: 44px; }
.tv { width: 100%; background: #3A3A40; border-radius: clamp(14px, 2vw, 26px); padding: clamp(12px, 2.4vw, 26px) clamp(12px, 2.4vw, 26px) clamp(10px, 2vw, 22px); box-shadow: inset 0 -8px 0 #2A2A2F, 0 20px 40px rgba(36,35,42,0.25); }
.tv__screen { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.tv__screen img, .tv__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.tv__screen img { opacity: 0.8; }
.tv__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(76px, 10vw, 112px); height: clamp(76px, 10vw, 112px); border-radius: 50%; background: var(--pencil); border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 0 var(--ink); cursor: pointer; padding: 0; }
.tv__soon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); background: var(--sticky); padding: 16px 24px; font-family: var(--hand-kid); font-weight: 700; font-size: clamp(18px, 2.4vw, 26px); box-shadow: 0 10px 18px rgba(0,0,0,0.35); text-align: center; line-height: 1.25; }
.tv__base { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.tv__label { font-family: var(--print); font-size: 13px; color: #A9A9AE; letter-spacing: 0.2em; }
.tv__knobs { display: flex; gap: 10px; align-items: center; }
.tv__knobs i { width: 18px; height: 18px; border-radius: 50%; background: var(--steel-dark); display: block; }
.tv__knobs i:last-child { width: 10px; height: 10px; background: var(--red-pen); }
.cart__shelf { width: 78%; height: 20px; background: var(--steel); border-radius: 4px; margin-top: 6px; box-shadow: inset 0 -5px 0 var(--steel-dark); }
.cart__legs { width: 70%; display: flex; justify-content: space-between; }
.cart__legs i { width: 14px; height: clamp(60px, 10vw, 120px); background: var(--steel); display: block; }
.cart__shelf--low { height: 16px; margin-top: 0; }
.cart__wheels { width: 74%; display: flex; justify-content: space-between; }
.cart__wheels i { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); display: block; }
.floor { height: 40px; background: linear-gradient(var(--wall), var(--wall)) top / 100% 20px no-repeat, #A89C84; }

/* ---------- Notebook (teacher vs class) ---------- */
.sides .wrap { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(72px, 9vw, 112px); }
.sides .section-lede { color: #3B2620; margin-bottom: 52px; }
.notebook { display: flex; flex-wrap: wrap; background: var(--paper); border-radius: 8px; box-shadow: 0 24px 40px rgba(59,38,32,0.35); transform: rotate(-0.8deg); }
.page { flex: 1 1 440px; min-width: 0; position: relative; padding: 46px 44px 56px; background-image: repeating-linear-gradient(var(--paper) 0 35px, var(--rule-blue) 35px 36px); background-position: 0 22px; }
.page--left { padding-left: 84px; background-image: linear-gradient(90deg, transparent 62px, var(--margin-red) 62px, var(--margin-red) 64px, transparent 64px), repeating-linear-gradient(var(--paper) 0 35px, var(--rule-blue) 35px 36px); background-position: 0 0, 0 22px; }
.spiral { flex: 0 0 34px; background-color: var(--paper-dark); background-image: radial-gradient(circle at 50% 50%, var(--steel-dark) 0 6px, #C3CAD0 6px 9px, transparent 9px); background-size: 34px 36px; }
.page__tag { font-family: var(--print); font-size: 14px; color: var(--oak-dark); letter-spacing: 0.1em; line-height: 36px; }
.page h3 { font-size: clamp(40px, 4vw, 52px); line-height: 72px; }
.page--left h3 { font-family: var(--hand-teacher); font-weight: 700; color: var(--ballpoint); }
.page--right h3 { font-family: var(--hand-kid); font-weight: 800; color: var(--red-pen); }
.page p, .page li { line-height: 36px; }
.page--left p, .page--left li { font-family: var(--hand-teacher); font-weight: 600; font-size: 22px; }
.page--right p, .page--right li { font-family: var(--hand-kid); font-size: 20px; }
.page ul { list-style: none; padding: 0; margin: 0; }
.page--left li { color: var(--ballpoint-dark); padding-left: 30px; position: relative; }
.page--left li::before { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M2 10l5 5L18 2' fill='none' stroke='%231F4380' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.polaroid-pic { width: 72%; border: 10px solid #fff; box-shadow: 0 10px 18px rgba(36,35,42,0.25); margin-top: 28px; }
.page--left .polaroid-pic { margin-left: auto; transform: rotate(2.5deg); }
.page--right .polaroid-pic { transform: rotate(-3deg); }
.scribble { position: absolute; right: 36px; bottom: 132px; font-family: var(--hand-kid); font-size: 18px; color: var(--ballpoint); transform: rotate(-8deg); }
@media (max-width: 940px) {
  .notebook { transform: none; }
  .spiral { flex: 1 1 100%; height: 30px; background-size: 36px 30px; }
  .page { padding: 36px 24px 44px 24px; }
  .page--left { padding-left: 56px; background-image: linear-gradient(90deg, transparent 38px, var(--margin-red) 38px, var(--margin-red) 40px, transparent 40px), repeating-linear-gradient(var(--paper) 0 35px, var(--rule-blue) 35px 36px); }
  .scribble { display: none; }
  .polaroid-pic { width: 88%; }
}

/* ---------- Cork board ---------- */
.board-pins { border-top: 16px solid var(--oak-dark); border-bottom: 16px solid var(--oak-dark); }
.board-pins .wrap { padding-top: clamp(64px, 7vw, 80px); padding-bottom: clamp(72px, 8vw, 104px); }
.notice { display: block; width: fit-content; margin: 0 auto 56px; font-family: var(--print); font-weight: 700; font-size: clamp(22px, 3vw, 40px); letter-spacing: 0.06em; background: var(--chalk); padding: 16px 30px; transform: rotate(-1deg); box-shadow: 0 10px 18px rgba(36,35,42,0.3); text-align: center; }
.pins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px 40px; list-style: none; margin: 0; padding: 0; }
.pin { margin: 0; background: #fff; padding: 14px 14px 18px; box-shadow: 0 16px 24px rgba(36,35,42,0.35); position: relative; transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease; }
.pin:hover { transform: rotate(0deg) scale(1.03); }
.pin::before { content: ""; position: absolute; left: 50%; top: -10px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--pin, var(--red-pen)); box-shadow: 0 4px 0 rgba(36,35,42,0.35), inset -3px -3px 0 rgba(0,0,0,0.18); }
.pin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pin figcaption { font-family: var(--hand-kid); font-weight: 600; font-size: 21px; padding-top: 12px; line-height: 1.25; }

/* ---------- Report card + permission slip ---------- */
.signup .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; justify-content: center; padding-top: clamp(72px, 9vw, 104px); padding-bottom: clamp(80px, 10vw, 120px); }
.report { flex: 1 1 480px; min-width: 0; max-width: 620px; background: var(--card); padding: 10px; box-shadow: 0 24px 40px rgba(59,38,32,0.35); transform: rotate(-1.2deg); }
.report__inner { border: 3px double var(--ink); padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 36px); }
.report__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.report__head h2 { font-family: var(--print); font-weight: 700; font-size: 30px; letter-spacing: 0.08em; }
.report__head span { font-family: var(--print); font-size: 15px; }
.report__head b { font-family: var(--hand-kid); color: var(--ballpoint); font-size: 20px; font-weight: 600; }
.report table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.report th { font-family: var(--print); font-weight: 400; font-size: 13px; color: var(--graphite); text-align: left; border-bottom: 2px solid var(--ink); padding: 0 8px 8px 0; }
.report th:last-child, .report td:last-child { text-align: center; width: 76px; padding-right: 0; }
.report td { border-bottom: 1px solid var(--chalk-dim); padding: 14px 8px 14px 0; vertical-align: middle; }
.report td:first-child { font-family: var(--print); font-weight: 700; font-size: 17px; }
.report .remark { font-family: var(--hand-teacher); font-weight: 600; color: var(--red-pen); font-size: 20px; line-height: 1.25; }
.grade { display: inline-flex; width: 54px; height: 46px; border: 3px solid var(--red-pen); border-radius: 50%; align-items: center; justify-content: center; font-family: var(--hand-teacher); font-weight: 700; font-size: 26px; color: var(--red-pen); transform: rotate(-6deg); }
.report__foot { display: flex; justify-content: space-between; align-items: end; margin-top: 22px; gap: 12px; flex-wrap: wrap; font-family: var(--print); font-size: 14px; color: var(--graphite); }
.report__star { font-size: 38px; line-height: 1; color: var(--gold); text-shadow: 0 2px 0 var(--pencil-dark); }

.slip-col { flex: 1 1 400px; min-width: 0; max-width: 540px; display: flex; flex-direction: column; gap: 28px; }
.slip { background: var(--canary); padding: 36px clamp(22px, 3vw, 36px) 32px; box-shadow: 0 20px 34px rgba(59,38,32,0.3); transform: rotate(1.4deg); position: relative; }
.slip::before { content: ""; position: absolute; top: -14px; left: 40%; width: 120px; height: 30px; background: rgba(244,241,232,0.7); transform: rotate(-4deg); }
.slip h2 { font-family: var(--print); font-weight: 700; font-size: 24px; letter-spacing: 0.08em; margin-bottom: 6px; }
.slip p { font-family: var(--print); font-size: 15px; color: #3B2620; margin-bottom: 22px; }
.slip form { display: flex; flex-direction: column; gap: 18px; }
.slip label { font-family: var(--print); font-size: 13px; color: #3B2620; }
.slip input[type="email"] { font-family: var(--hand-kid); font-size: 22px; color: var(--ballpoint); background: transparent; border: none; border-bottom: 2px solid var(--ink); padding: 6px 2px; margin-top: -10px; width: 100%; border-radius: 0; }
.slip input[type="email"]::placeholder { color: #8A7F69; }
.slip__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: center; font-family: var(--print); font-size: 14px; color: var(--ink) !important; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ballpoint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.slip__small { font-family: var(--print); font-size: 12px; color: #5E3B27; }
.slip__done { display: none; text-align: center; padding: 18px 0 6px; }
.slip__done strong { display: inline-block; border: 5px solid var(--red-pen); color: var(--red-pen); border-radius: 10px; padding: 4px 18px; font-family: var(--hand-kid); font-weight: 800; font-size: 40px; transform: rotate(-6deg); }
.slip__done p { margin: 14px 0 0; }
.slip[data-state="done"] form { display: none; }
.slip[data-state="done"] .slip__done { display: block; }
.slip__error { color: var(--red-pen); font-family: var(--hand-kid); font-size: 17px; display: none; }
.slip[data-state="error"] .slip__error { display: block; }

.main-event { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--chalk); text-decoration: none; padding: 22px 24px 22px 28px; border: 10px solid var(--oak-mid); border-bottom-width: 16px; border-radius: 6px; box-shadow: 0 20px 34px rgba(59,38,32,0.3); transform: rotate(-0.8deg); transition: transform .12s; }
.main-event::after { content: ""; position: absolute; left: 30px; bottom: -13px; width: 38px; height: 8px; border-radius: 3px; background: var(--chalk); box-shadow: 52px 0 0 var(--pencil); }
.main-event:hover { color: var(--chalk); transform: rotate(0deg) translateY(-2px); }
.main-event small { display: block; font-family: var(--print); font-size: 13px; font-weight: 700; color: var(--pencil); letter-spacing: 0.1em; }
.main-event strong { display: block; font-family: var(--hand-teacher); font-weight: 700; font-size: clamp(26px, 2.9vw, 34px); line-height: 1.15; margin-top: 4px; text-shadow: 0 0 2px rgba(244,241,232,0.45); }
.main-event__go { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--pencil); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform .12s ease; }
.main-event:hover .main-event__go { transform: translateX(4px); }
.discord { font-family: var(--hand-kid); font-size: 19px; color: var(--ink); align-self: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 14px solid var(--oak-mid); color: var(--chalk); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px 40px; justify-content: space-between; align-items: flex-end; padding-top: 60px; padding-bottom: 36px; }
.site-footer .bye { font-weight: 700; font-size: 44px; line-height: 1; display: block; margin-bottom: 10px; }
.site-footer p { color: #C9D4CC; font-size: 16px; max-width: 520px; }
.site-footer nav { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 40px; font-size: 16px; }
.site-footer nav a { color: var(--chalk); }
.site-footer nav a:hover { color: var(--pencil); }
.legal { font-family: var(--print); font-size: 12px; color: var(--chalk-mute); padding-bottom: 28px; }
@media (max-width: 520px) { .site-footer nav { grid-template-columns: repeat(2, auto); } }

/* ==========================================================================
   Press kit
   ========================================================================== */
.press-main { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 96px; }
.folder-tab { display: inline-block; background: #E8C887; padding: 12px 26px 10px; border-radius: 12px 12px 0 0; font-family: var(--print); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; }
.folder { background: #E8C887; border-radius: 0 14px 14px 14px; padding: clamp(10px, 2vw, 28px); box-shadow: 0 24px 40px rgba(59,38,32,0.35); display: flex; flex-direction: column; gap: clamp(14px, 2vw, 28px); }
.sheet { background: var(--card); padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 52px); box-shadow: 0 4px 10px rgba(59,38,32,0.18); }
.sheet h1, .sheet h2 { font-family: var(--print); font-weight: 700; font-size: clamp(21px, 2.2vw, 26px); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.sheet h3 { font-family: var(--print); font-weight: 700; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; margin: 26px 0 10px; }
.sheet p + p { margin-top: 14px; }
.cols { display: flex; flex-wrap: wrap; gap: 48px; }
.col-narrow { flex: 1 1 320px; min-width: 0; max-width: 430px; }
.col-wide { flex: 999 1 480px; min-width: 0; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--chalk-dim); }
.facts dt { font-family: var(--print); font-size: 13px; color: var(--graphite); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 700; }
.contact-slip { margin-top: 28px; background: var(--pink-slip); padding: 18px 20px; transform: rotate(-1deg); font-family: var(--print); font-size: 14px; }
.contact-slip a { font-family: var(--hand-kid); font-size: 19px; }
.big-hand { font-family: var(--hand-teacher); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; color: var(--ballpoint); margin-bottom: 20px; }
.features { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 22px; }
.sheet-head h2 { margin: 0; }
.sheet-head a { font-family: var(--print); font-size: 15px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.shots a { display: block; text-decoration: none; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--chalk-dim); }
.shots span { display: block; font-family: var(--print); font-size: 13px; color: var(--graphite); padding-top: 6px; word-break: break-all; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 .span-2 { grid-column: span 2; }
.dl { display: block; text-decoration: none; }
.dl span { display: block; font-family: var(--print); font-size: 13px; color: var(--graphite); padding-top: 8px; }
.dl--board { background: var(--board); padding: 18px; }
.dl--board span { color: var(--chalk-dim); }
.dl img { width: 100%; }
.note-red { font-family: var(--hand-kid); font-size: 16px; color: var(--red-pen); margin-top: 18px; transform: rotate(-1deg); }
.split { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 28px); }
.split > .sheet { flex: 1 1 440px; min-width: 0; }

/* ---------- Plain pages (privacy, 404) ---------- */
.plain .sheet { max-width: 820px; margin: 0 auto; }
.plain .sheet h2 { margin-top: 28px; margin-bottom: 8px; font-size: 18px; }
.plain .sheet ul { padding-left: 22px; }
.center-404 { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 64px var(--gutter); }
.center-404 h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 700; line-height: 1.05; }
.center-404 p { color: var(--chalk-dim); font-size: 20px; }
