@font-face {
  font-family: Bricolage;
  src: url('/assets/bricolage-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Bricolage;
  src: url('/assets/bricolage-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Riso Workbook brand palette. Tokens keep the whole page in the same theme.
   Radii: 12px controls, 24px screenshot frames. Motion: interaction feedback only. */
:root {
  color-scheme: light dark;
  --paper: #f2eada;
  --surface: #fbf6ec;
  --ink: #1f2a44;
  --secondary: #495268;
  --line: #c1bcaf;
  --accent: #ad2450;
  --overprint: #f4b3c4;
  --yellow: #ffc93c;
  --button-ink: #1f2a44;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #182035;
    --surface: #212c44;
    --ink: #fbf6ec;
    --secondary: #cbc9c3;
    --line: #536078;
    --accent: #ff9dbb;
    --overprint: #6c3350;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Bricolage, system-ui, sans-serif; font-size: 18px; line-height: 1.55; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 24px; top: -100px; padding: 12px 20px; background: var(--surface); z-index: 1; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 30px; font-weight: 700; line-height: 1; text-decoration: none; letter-spacing: -1.2px; }
.brand img { border-radius: 10px; }
.brand-period { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.site-header nav a { text-decoration: none; padding-block: 12px; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 56px; padding-block: 44px 56px; }
.hero-copy { padding-bottom: 28px; }
.eyebrow { color: var(--secondary); font-size: 13px; margin-bottom: 26px; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(44px, 4.8vw, 68px); line-height: 1.06; letter-spacing: -.055em; }
h1 span { text-shadow: 3px 4px 0 var(--overprint); }
.hero-description { max-width: 360px; color: var(--secondary); margin-top: 26px; font-size: 20px; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 58px; margin-top: 34px; padding: 12px 24px; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); background: var(--yellow); color: var(--button-ink); text-decoration: none; font-weight: 700; white-space: nowrap; transition: transform 150ms, box-shadow 150ms; }
.button:hover { color: var(--button-ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.button span { font-family: system-ui, sans-serif; font-size: 24px; line-height: 1; }
.game-preview { justify-self: center; width: 250px; transform: rotate(3deg); }
.game-shot { border: 2px solid #1f2a44; border-radius: 24px; box-shadow: 10px 12px 0 var(--overprint); }
figcaption { margin-top: 22px; text-align: center; color: var(--secondary); font-size: 12px; }
.rules { border-top: 1px solid var(--line); padding-block: 80px; display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 100px; row-gap: 52px; }
h2 { font-size: clamp(32px, 3.3vw, 44px); line-height: 1.12; letter-spacing: -.04em; }
.section-intro > p { margin-top: 20px; max-width: 280px; color: var(--secondary); }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.rule-list h3 { font-size: 22px; letter-spacing: -.02em; }
.rule-list p { margin-top: 2px; max-width: 320px; color: var(--secondary); }
.rule-list li { padding-left: 22px; border-left: 3px solid var(--accent); }
.play-notes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 26px 30px; background: var(--surface); border-radius: 12px; }
.play-notes p { color: var(--secondary); max-width: 380px; font-size: 16px; }
.play-notes strong { color: var(--ink); }
.daily { display: grid; grid-template-columns: 1fr 1.15fr; gap: 100px; align-items: center; border-top: 1px solid var(--line); padding-block: 80px; }
.daily-preview { width: 236px; justify-self: center; transform: rotate(-3deg); }
.daily-preview img { border: 2px solid #1f2a44; border-radius: 24px; box-shadow: -10px 10px 0 var(--overprint); }
.daily-copy > p { margin-top: 24px; color: var(--secondary); max-width: 420px; }
.daily-copy .daily-note { color: var(--accent); font-weight: 700; }
.questions { border-top: 1px solid var(--line); padding-block: 72px 90px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 0; font-size: 19px; font-weight: 700; }
details:first-child summary { padding-top: 6px; }
details p { padding: 0 0 24px; color: var(--secondary); font-size: 16px; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; display: grid; grid-template-columns: 1fr auto; column-gap: 40px; row-gap: 24px; }
.footer-wordmark { font-size: 26px; letter-spacing: -1px; font-weight: 700; }
.footer-brand p, .copyright { color: var(--secondary); font-size: 13px; }
.site-footer nav { align-self: center; display: flex; gap: 24px; font-size: 13px; }
.copyright { grid-column: 1 / -1; }

.legal-header { border-bottom: 1px solid var(--line); }
.legal-header [aria-current="page"], .site-footer [aria-current="page"] { color: var(--accent); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(180px, 240px); column-gap: 80px; row-gap: 28px; align-items: start; padding-block: 64px 96px; }
.legal-copy { min-width: 0; overflow-wrap: anywhere; }
.legal-title { grid-column: 1 / -1; max-width: 760px; font-size: clamp(34px, 3.6vw, 50px); letter-spacing: -.045em; line-height: 1.12; }
.legal-copy h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.025em; margin-block: 44px 16px; }
.legal-copy p, .legal-copy ul, .legal-copy ol { margin-block: 0 20px; }
.legal-copy p, .legal-copy li { color: var(--secondary); }
.legal-copy strong { color: var(--ink); }
.legal-copy li { padding-left: 4px; margin-bottom: 12px; }
.legal-copy li p { margin-block: 0; }
.legal-copy ul, .legal-copy ol { padding-left: 26px; }
.legal-copy a { color: var(--accent); }
.legal-sidebar { position: sticky; top: 28px; font-size: 15px; }
.legal-contents { border-top: 1px solid var(--line); }
.legal-contents summary { font-size: 16px; padding-block: 18px; }
.legal-contents nav ul { list-style: none; margin: 0; padding: 0 0 16px; display: grid; gap: 12px; }
.legal-contents nav a { display: block; text-decoration: none; }
.legal-help { color: var(--secondary); margin-top: 28px; }
.legal-help a { display: inline-block; margin-top: 6px; }
.request-links { margin-top: 28px; padding: 20px; background: var(--surface); border-radius: 12px; }
.request-links h2 { font-size: 20px; line-height: 1.3; margin-bottom: 14px; }
.request-links a { display: block; padding-block: 8px; color: var(--accent); }
.request-links p { margin-top: 16px; color: var(--secondary); font-size: 13px; }

@media (max-width: 1023px) {
  .wrap { width: min(100% - 64px, 1184px); }
  .hero { gap: 24px; }
  h1 { font-size: 48px; }
  .game-preview { width: 230px; }
  .rules, .daily, .questions { column-gap: 48px; }
  .site-header nav { gap: 20px; }
  .legal-layout { gap: 40px; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 72px; gap: 16px; }
  .brand { font-size: 27px; }
  .brand img { width: 36px; height: 36px; }
  .site-header nav { gap: 0; font-size: 14px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 48px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 12px; margin-bottom: 22px; }
  h1 { font-size: clamp(36px, 8.7vw, 58px); }
  .hero-description { font-size: 18px; margin-top: 22px; max-width: 360px; }
  .button { margin-top: 26px; min-height: 56px; }
  .game-preview { width: 222px; margin-block: 12px 0; }
  .rules { grid-template-columns: 1fr; padding-block: 48px; row-gap: 34px; }
  .section-intro > p { max-width: 100%; }
  .play-notes { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .daily { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
  .daily-copy { grid-row: 1; }
  .daily-preview { width: 222px; }
  .questions { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; }
  .site-footer nav { flex-wrap: wrap; gap: 14px 24px; }
  .legal-header { flex-wrap: wrap; padding-block: 16px; gap: 16px; }
  .legal-header nav { width: 100%; gap: 16px; flex-wrap: wrap; }
  .legal-header nav a:not(:last-child) { display: block; }
  .legal-header nav a { padding-block: 4px; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 48px; }
  .legal-sidebar { position: static; grid-row: 2; }
  .legal-copy h2 { font-size: 23px; margin-top: 34px; }
  .legal-sidebar .legal-help { display: none; }
  .request-links { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
