
:root {
  --paper: #f5f0e5;
  --paper-deep: #e8dfd0;
  --paper-light: #fffdf8;
  --ink: #151a22;
  --muted: #68707b;
  --line: #b9b1a3;
  --blue: #3157c7;
  --blue-deep: #173b98;
  --coral: #ed5b48;
  --coral-deep: #b73a32;
  --yellow: #f4c744;
  --mint: #63bda5;
  --plum: #7257a8;
  --white: #fffdf8;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; }
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--white); text-decoration: none; }
.skip-link:focus { top: 16px; }
.site-shell { overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 22px 28px 18px; border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-grid; width: 31px; height: 31px; place-items: center; background: var(--ink); color: var(--yellow); font-size: 11px; font-weight: 500; letter-spacing: -0.06em; transform: rotate(-4deg); }
.back-link { color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; text-decoration: none; }
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.model-page { max-width: 1240px; margin: 0 auto; }
.model-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr); gap: 52px; align-items: center; padding: 72px 28px 68px; border-bottom: 2px solid var(--ink); }
.section-label { margin: 0 0 9px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.model-intro h1 { max-width: 650px; margin: 15px 0 12px; font-family: var(--font-display); font-size: 78px; font-weight: 500; letter-spacing: -0.025em; line-height: 0.91; overflow-wrap: anywhere; }
.model-meta { margin: 0; color: var(--coral-deep); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }
.model-lede { max-width: 570px; margin: 26px 0 0; color: #373d45; font-size: 19px; line-height: 1.43; }
.model-note { max-width: 520px; margin: 14px 0 0; color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.model-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 15px; border: 2px solid var(--ink); background: var(--ink); color: var(--white); font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button:hover { background: var(--blue); border-color: var(--blue); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.copy-status { min-height: 18px; margin: 10px 0 0; color: var(--coral-deep); font-family: var(--font-mono); font-size: 11px; }
.technical-details { max-width: 520px; margin-top: 19px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.technical-details summary { display: inline-block; cursor: pointer; }
.technical-details code { display: block; margin-top: 8px; padding: 8px; overflow-wrap: anywhere; background: var(--paper-deep); color: var(--ink); }
.score-card { padding: 27px; border: 2px solid var(--ink); background: var(--blue); color: var(--white); box-shadow: 13px 13px 0 var(--coral); }
.score-card-top, .score-card-foot { display: flex; justify-content: space-between; gap: 14px; color: #dce5ff; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.score-card-top { padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.52); }
.score-card-score { display: flex; align-items: baseline; gap: 9px; margin-top: 47px; }
.score-card-score strong { font-family: var(--font-display); font-size: 112px; font-weight: 500; letter-spacing: -0.05em; line-height: 0.8; }
.score-card-score span { color: #dce5ff; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; }
.score-card-band { margin: 20px 0 0; color: var(--yellow); font-family: var(--font-display); font-size: 36px; line-height: 0.95; text-transform: uppercase; }
.score-card-explainer { max-width: 370px; margin: 18px 0 0; color: #dce5ff; font-size: 15px; line-height: 1.4; }
.score-card-foot { margin-top: 49px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.52); }
.share-section { padding: 66px 28px 76px; background: var(--paper-deep); border-bottom: 2px solid var(--ink); }
.share-layout { display: grid; grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr); gap: 44px; align-items: center; }
.share-layout h2, .page-section h2 { margin: 0; font-family: var(--font-display); font-size: 54px; font-weight: 500; letter-spacing: -0.02em; line-height: 0.95; }
.share-copy { max-width: 390px; margin: 17px 0 0; color: #42474f; font-size: 16px; line-height: 1.42; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.share-figure { margin: 0; }
.share-figure img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); background: var(--paper); box-shadow: 9px 9px 0 var(--coral); }
.share-figure figcaption { margin-top: 16px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 40px 28px; border-bottom: 2px solid var(--ink); }
.stat { min-height: 125px; padding: 17px; border: 2px solid var(--ink); background: var(--paper-light); }
.stat:nth-child(2) { background: var(--yellow); }
.stat:nth-child(3) { background: var(--coral); }
.stat:nth-child(4) { background: var(--mint); }
.stat-label { margin: 0; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.stat-value { margin: 21px 0 0; font-family: var(--font-display); font-size: 46px; font-weight: 500; line-height: 0.85; }
.page-section { padding: 72px 28px 80px; border-bottom: 2px solid var(--ink); }
.section-heading { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr); gap: 44px; align-items: end; margin-bottom: 37px; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.42; }
.category-list { border-top: 2px solid var(--ink); }
.category-row { display: grid; grid-template-columns: minmax(190px, 0.85fr) minmax(250px, 1.15fr) 86px; gap: 28px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line); }
.category-row h3 { margin: 0; font-size: 17px; font-weight: 600; }
.category-row p { max-width: 390px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.category-meter { display: grid; grid-template-columns: minmax(0, 1fr) 53px; gap: 12px; align-items: center; }
.category-track { height: 14px; background: var(--paper-deep); }
.category-fill { height: 100%; background: var(--coral); }
.category-score { color: var(--coral-deep); font-family: var(--font-mono); font-size: 12px; text-align: right; }
.category-tag { color: var(--muted); font-family: var(--font-mono); font-size: 9px; line-height: 1.2; text-align: right; text-transform: uppercase; }
.receipts { background: var(--coral); }
.receipts .section-heading > p { color: #492d2a; }
.receipt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.receipt { padding: 20px; border: 2px solid var(--ink); background: var(--paper-light); }
.receipt-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.receipt-category, .receipt-label { margin: 0; color: var(--coral-deep); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.receipt-score { color: var(--coral-deep); font-family: var(--font-mono); font-size: 12px; text-align: right; }
.receipt-score strong { color: var(--ink); font-family: var(--font-display); font-size: 37px; font-weight: 500; line-height: 0.8; }
.receipt h3 { margin: 18px 0 15px; font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 0.96; }
.receipt details { margin-top: 14px; }
.receipt summary { color: var(--blue-deep); font-family: var(--font-mono); font-size: 11px; cursor: pointer; }
.receipt-question { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.receipt-response { margin: 7px 0 0; padding: 14px; border-left: 0; background: var(--yellow); color: var(--ink); font-size: 16px; line-height: 1.43; white-space: pre-wrap; }
.receipt-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.badge { padding: 5px 7px; border: 1px solid var(--ink); color: var(--ink); font-family: var(--font-mono); font-size: 9px; line-height: 1.15; text-transform: uppercase; }
.badge.clean { background: var(--mint); }
.badge.alert { background: var(--coral); }
.receipt-reason { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.model-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 38px 28px 44px; }
.model-footer p { margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; }
.model-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 17px; }
.model-footer-links a { color: var(--muted); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; text-decoration: none; }
.model-footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .model-hero { grid-template-columns: 1fr; gap: 38px; }
  .model-intro h1 { max-width: 760px; }
  .share-layout { grid-template-columns: 1fr; gap: 30px; }
  .share-layout > div { max-width: 620px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
}

@media (max-width: 650px) {
  .topbar { padding: 18px 16px 15px; }
  .back-link { font-size: 10px; }
  .model-hero, .share-section, .page-section { padding-left: 16px; padding-right: 16px; }
  .model-hero { padding-top: 49px; padding-bottom: 56px; }
  .model-intro h1 { font-size: 54px; }
  .model-lede { font-size: 17px; }
  .score-card { padding: 20px; box-shadow: 8px 8px 0 var(--coral); }
  .score-card-score { margin-top: 38px; }
  .score-card-score strong { font-size: 83px; }
  .score-card-band { font-size: 30px; }
  .score-card-foot { margin-top: 38px; }
  .share-layout h2, .page-section h2 { font-size: 43px; }
  .share-actions, .model-actions { align-items: stretch; flex-direction: column; }
  .share-actions .button, .model-actions .button { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; padding: 28px 16px; gap: 10px; }
  .stat { min-height: 106px; padding: 13px; }
  .stat-value { margin-top: 17px; font-size: 37px; }
  .category-row { grid-template-columns: 1fr; gap: 11px; }
  .category-tag { text-align: left; }
  .receipt-grid { grid-template-columns: 1fr; }
  .model-footer { align-items: start; flex-direction: column; padding-left: 16px; padding-right: 16px; }
  .model-footer-links { justify-content: flex-start; }
}

@media (max-width: 390px) {
  .brand { font-size: 12px; }
  .back-link { max-width: 128px; text-align: right; }
  .model-intro h1 { font-size: 47px; }
  .score-card-top, .score-card-foot { font-size: 9px; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
