@font-face {
  font-family: "DM Sans";
  src: url("/site/fonts/DMSans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/site/fonts/Fraunces.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --ink: #142d28;
  --felt: #214a3d;
  --lime: #dde9af;
  --muted: #65736b;
  --line: #dce0d3;
  --white: #fff;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 "DM Sans", Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; box-shadow: 0 0 0 5px var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1, h2 { font-family: Fraunces, Georgia, serif; }
h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 1.04; letter-spacing: -.055em; margin-bottom: 26px; }
h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.13; letter-spacing: -.035em; margin-bottom: 20px; }
h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
p { margin-bottom: 18px; }
.wrap { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 20px; color: var(--white); background: var(--ink); transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font: 600 28px/1.1 Fraunces, Georgia, serif; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 47px; height: 49px; background: var(--ink); color: var(--lime); font: 700 29px/1 Fraunces, Georgia, serif; border-radius: 12px; letter-spacing: -.05em; }
.header-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.header-nav > a:not(.button) { text-decoration: none; padding-block: 10px; }
.header-nav > a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 54px; padding: 15px 23px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.4; border: 1px solid transparent; border-radius: 12px; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.button:hover { background: #2c5143; transform: translateY(-2px); }
.button span { font-size: 20px; line-height: 1; }
.button-small { min-height: 46px; padding: 12px 18px; gap: 16px; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #eff8d3; }
.text-link { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 14px; text-decoration-thickness: 1px; }
.text-link span { font-size: 20px; }
.eyebrow, .small-label { color: var(--muted); font-size: 10px; font-weight: 800; line-height: 1.5; letter-spacing: .18em; }
.eyebrow { margin-bottom: 20px; }
.lead { font-size: 18px; line-height: 1.8; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.fine-print { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 17px; margin-bottom: 0; max-width: 440px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 58px; padding-block: 52px 70px; }
.hero-copy h1 { max-width: 650px; font-size: clamp(50px, 5.2vw, 72px); }
.hero-copy h1 span { color: var(--felt); font-size: clamp(60px, 6vw, 88px); }
.hero-copy .lead { max-width: 540px; margin-bottom: 30px; }
.hero-art { min-height: 560px; position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: var(--white); background: var(--felt); border-radius: 30px; padding: 30px; }
.hero-art::before { content: ""; position: absolute; width: 620px; height: 620px; border: 1px solid #ffffff09; border-radius: 50%; left: -250px; top: -220px; }
.art-label { color: #bfd0b7; font-size: 10px; font-weight: 700; letter-spacing: .2em; z-index: 1; }
.art-footer { color: #bfd0b7; font-size: 12px; text-align: center; z-index: 1; }
.felt-table { position: absolute; inset: 21% 7% 20%; border: 1px solid #77966c; border-radius: 48%; background: #2c5946; box-shadow: 0 22px 35px #0c211b35; }
.table-ring { position: absolute; inset: 13px; border: 1px solid #b5c79833; border-radius: 48%; }
.art-card { position: absolute; width: 32%; height: auto; max-height: none; aspect-ratio: 5 / 7; object-fit: contain; top: 12%; left: 34%; filter: drop-shadow(0 10px 7px #0a1b1635); }
.card-left { transform: translateX(-60%) rotate(-17deg); }
.card-center { transform: translateY(-12%) rotate(-2deg); z-index: 2; }
.card-right { transform: translateX(60%) rotate(16deg); z-index: 3; }
.score-chip { position: absolute; z-index: 4; display: grid; place-items: center; top: -18px; right: 14%; width: 59px; height: 59px; border: 3px solid white; border-radius: 50%; background: var(--lime); color: var(--ink); font: 700 30px/1 Fraunces, Georgia, serif; }
.facts-section { padding-bottom: 18px; }
.facts { margin: 0; padding: 29px 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 20px; text-align: center; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { font: 500 27px/1.2 Fraunces, Georgia, serif; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: 12px; }
.section { padding-block: 66px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; max-width: 660px; }
.section-heading > p { color: var(--muted); max-width: 330px; font-size: 14px; margin-bottom: 3px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card-number { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--felt); background: #e9efdf; border-radius: 11px; font: 500 19px/1 Fraunces, Georgia, serif; margin-bottom: 30px; }
.mode-card h3 { margin-bottom: 14px; font: 500 29px/1.2 Fraunces, Georgia, serif; }
.mode-card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 26px; }
.mode-card .text-link { margin-top: auto; }
.quick-rules { display: grid; grid-template-columns: .9fr 1fr; gap: 110px; border-block: 1px solid var(--line); }
.quick-rules-copy > p:not(.eyebrow) { color: var(--muted); max-width: 470px; }
.value-card { max-width: 460px; margin: 29px 0 24px; padding: 23px 25px; background: #e9edde; border-radius: 18px; }
.value-card .small-label { margin-bottom: 14px; }
.value-card dl { margin: 0; }
.value-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid #d4dbc9; font-size: 13px; }
.value-card dl div:last-child { border: 0; }
.value-card dd { margin: 0; font-weight: 700; white-space: nowrap; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 20px; padding: 21px 0; }
.steps li:first-child { padding-top: 0; }
.steps li + li { border-top: 1px solid var(--line); }
.step-number { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid #b6c2a9; border-radius: 50%; color: var(--felt); font-size: 13px; font-weight: 700; }
.steps h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.variant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.variant-card { display: flex; gap: 26px; align-items: flex-start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.variant-mystery { background: #e7eddb; }
.variant-lying { background: #eae4d9; }
.variant-symbol { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 86px; background: var(--felt); color: var(--lime); border-radius: 10px; font: 500 44px/1 Fraunces, Georgia, serif; transform: rotate(-7deg); }
.variant-lying .variant-symbol { background: #6d4737; color: #eee0b7; transform: rotate(7deg); }
.variant-card .small-label { margin-bottom: 9px; }
.variant-card h3 { font: 500 30px/1.2 Fraunces, Georgia, serif; margin-bottom: 12px; }
.variant-card p:last-child { margin-bottom: 0; color: #5c685c; font-size: 14px; line-height: 1.8; }
.faq-layout { display: grid; grid-template-columns: .7fr 1fr; gap: 110px; border-top: 1px solid var(--line); }
.faq-layout > div > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 38px 22px 0; cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 19px; right: 2px; color: var(--felt); font-size: 23px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-right: 30px; color: var(--muted); font-size: 14px; line-height: 1.9; padding-bottom: 7px; }
.end-section { padding-block: 20px 80px; }
.end-card { padding: 44px; color: var(--white); background: var(--felt); border-radius: 26px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.end-card .eyebrow { color: #bdd0ac; }
.end-card h2 { margin-bottom: 12px; }
.end-card p:last-child { margin-bottom: 0; color: #d0ddd0; font-size: 14px; }
.end-card .button { flex-shrink: 0; }
.site-footer { padding-block: 30px 36px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-small { font-size: 22px; gap: 10px; }
.brand-small .brand-mark { width: 35px; height: 37px; border-radius: 9px; font-size: 22px; }
.site-footer p { color: var(--muted); font-size: 11px; margin: 0; }
.site-footer nav { display: flex; gap: 23px; font-size: 12px; }

.guide-main { padding-bottom: 88px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 30px; font-size: 12px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.guide-header { padding-block: 53px 58px; max-width: 940px; }
.guide-header h1 { font-size: clamp(50px, 6vw, 80px); }
.guide-header .lead { max-width: 770px; }
.guide-intro-note { color: var(--muted); font-size: 13px; max-width: 730px; margin-bottom: 0; }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 86px; align-items: start; }
.guide-toc { position: sticky; top: 28px; padding-top: 4px; }
.guide-toc .small-label { margin-bottom: 16px; }
.guide-toc ol { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: toc; }
.guide-toc li { counter-increment: toc; margin-bottom: 3px; }
.guide-toc a:not(.button) { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; text-decoration: none; font-size: 13px; color: var(--muted); }
.guide-toc li a::before { content: counter(toc, decimal-leading-zero); color: #899781; font-size: 10px; letter-spacing: .05em; }
.guide-toc li a:hover { color: var(--ink); text-decoration: underline; }
.guide-toc .button { font-size: 12px; gap: 15px; }
.prose { max-width: 860px; min-width: 0; }
.prose section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.prose section:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.prose .eyebrow { margin-bottom: 13px; }
.prose h2 { font-size: clamp(30px, 3vw, 40px); }
.prose h3 { margin-top: 30px; margin-bottom: 12px; font-weight: 700; font-size: 20px; }
.prose p, .prose li { color: #58675f; line-height: 1.9; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul { margin: 20px 0; padding-left: 24px; }
.prose li { padding-left: 5px; margin-bottom: 13px; }
.table-scroll { overflow-x: auto; margin: 27px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
caption { padding: 17px 22px; text-align: left; color: var(--muted); font-size: 12px; }
th, td { padding: 13px 22px; }
thead { background: #e9edde; }
thead th { font-size: 12px; }
tbody th { font-weight: 500; }
tbody tr + tr { border-top: 1px solid var(--line); }
td { white-space: nowrap; }
.example-card, .rule-note { background: #e8edde; padding: 23px 27px; border-radius: 17px; margin: 25px 0; }
.example-card .small-label { margin-bottom: 12px; }
.example-card p:last-child, .rule-note p:last-child { margin-bottom: 0; }
.rule-note h3 { margin-top: 0; }
.guide-final .button { margin-top: 8px; }
.error-page { min-height: 65vh; padding-block: 60px 110px; max-width: 900px; text-align: center; }
.error-number { color: #dce4cd; font: 500 clamp(96px, 14vw, 160px)/1 Fraunces, Georgia, serif; letter-spacing: -.08em; margin-bottom: 25px; }
.error-page h1 { font-size: clamp(42px, 5vw, 64px); }
.error-page .lead { max-width: 590px; margin-inline: auto; }
.error-page .actions { justify-content: center; margin-top: 30px; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 34px; padding-top: 32px; }
  .hero-art { min-height: 510px; }
  .hero h1 { font-size: 54px; }
  .hero .actions { align-items: flex-start; flex-direction: column; }
  .hero .lead { font-size: 16px; }
  .section { padding-block: 52px; }
  .mode-card { padding: 25px; }
  .quick-rules, .faq-layout { gap: 60px; }
  .guide-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 45px; }
}

@media (max-width: 780px) {
  .site-header { min-height: 91px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-block: 35px 45px; }
  .hero h1 { font-size: clamp(42px, 7vw, 60px); max-width: 670px; }
  .hero-copy h1 span { font-size: clamp(56px, 8.2vw, 70px); }
  .hero-copy .lead { max-width: 630px; font-size: 17px; }
  .hero .actions { flex-direction: row; align-items: center; }
  .hero-art { min-height: 380px; }
  .felt-table { inset: 19% 14% 19%; }
  .art-card { width: 28%; left: 36%; top: 5%; }
  .facts { grid-template-columns: repeat(2, 1fr); padding-block: 12px; }
  .facts li { padding: 20px 10px; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading > p { max-width: 650px; margin: 18px 0 0; }
  .mode-grid { grid-template-columns: 1fr; gap: 14px; }
  .mode-card { padding: 26px; }
  .card-number { margin-bottom: 19px; }
  .mode-card p { max-width: 620px; margin-bottom: 18px; }
  .quick-rules, .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .quick-rules-copy > p:not(.eyebrow), .value-card { max-width: 100%; }
  .variant-grid { grid-template-columns: 1fr; gap: 14px; }
  .variant-card { padding: 27px; }
  .faq-layout > div > p { max-width: 100%; }
  .end-card { padding: 32px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer p { order: 3; width: 100%; }
  .guide-header { padding-block: 38px 40px; }
  .guide-layout { display: block; }
  .guide-toc { position: static; background: #e8edde; border-radius: 18px; padding: 24px; margin-bottom: 43px; }
  .guide-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-bottom: 20px; }
  .guide-toc .small-label { margin-bottom: 10px; }
  .prose section { padding-bottom: 35px; margin-bottom: 35px; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .brand { font-size: 23px; gap: 10px; }
  .brand-mark { width: 39px; height: 42px; font-size: 25px; border-radius: 10px; }
  .header-nav { gap: 15px; font-size: 12px; }
  .header-nav .button { min-height: 42px; padding: 10px 13px; font-size: 12px; gap: 9px; }
  .site-header { gap: 14px; flex-wrap: wrap; padding-block: 16px; }
  .header-nav { margin-left: auto; }
  .hero { padding-top: 25px; }
  .hero h1 { font-size: 38px; letter-spacing: -.05em; }
  .hero-copy h1 span { font-size: 53px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .13em; }
  .lead, .hero-copy .lead { font-size: 16px; }
  .hero .actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero .button { width: 100%; }
  .hero-art { min-height: 320px; border-radius: 24px; padding: 24px; }
  .felt-table { inset: 24% 9% 22%; }
  .art-card { width: 32%; left: 34%; top: 6%; }
  .score-chip { width: 47px; height: 47px; top: -17px; right: 9%; font-size: 24px; }
  .facts strong { font-size: 23px; }
  .facts span { max-width: 140px; font-size: 11px; }
  .section { padding-block: 42px; }
  .steps li { gap: 14px; }
  .steps h3 { font-size: 18px; }
  .step-number { width: 30px; height: 30px; }
  .value-card { padding: 20px; }
  .value-card dl div { font-size: 12px; gap: 10px; }
  .variant-card { padding: 24px 20px; gap: 20px; }
  .variant-symbol { width: 47px; height: 66px; font-size: 36px; }
  .variant-card .small-label { font-size: 9px; letter-spacing: .12em; }
  .variant-card h3 { font-size: 27px; }
  .end-section { padding-bottom: 50px; }
  .end-card { align-items: flex-start; flex-direction: column; gap: 25px; padding: 28px; }
  .end-card h2 { font-size: 35px; }
  .site-footer { gap: 22px; padding-block: 26px; }
  .site-footer nav { gap: 18px; }
  .brand-small { font-size: 21px; }
  .brand-small .brand-mark { width: 33px; height: 35px; font-size: 22px; }
  .guide-header h1 { font-size: 52px; }
  .guide-toc { padding: 22px; }
  .guide-toc ol { grid-template-columns: 1fr; }
  .prose h2 { font-size: 31px; }
  .prose p, .prose li { font-size: 15px; }
  th, td { padding: 12px 14px; font-size: 12px; }
  caption { padding: 14px; }
  .example-card, .rule-note { padding: 22px; }
  .error-page { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
