:root {
  color-scheme: light;
  --chrome: #faf9f6;
  --chrome-2: #ffffff;
  --ink: #25223b;
  --muted: #625f70;
  --line: #ddd9e5;
  --accent: #2c2680;
  --accent-ink: #ffffff;
  --accent-soft: #eae7f6;
  --brand: #211c5f;
  --brand-gold: #e0a830;
  --paper: #fffdf8;
  --danger: #b4232c;
  --f-ui: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-score: "EB Garamond", Georgia, "Times New Roman", serif;
  --shadow: 0 18px 50px rgb(33 28 95 / 7%);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --chrome: #151326;
    --chrome-2: #211e37;
    --ink: #f1edf7;
    --muted: #bcb5cb;
    --line: #454057;
    --accent: #e0b04e;
    --accent-ink: #1a1633;
    --accent-soft: #373154;
    --brand: #cfcbff;
    --shadow: 0 18px 50px rgb(0 0 0 / 16%);
  }
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--chrome);
  color: var(--ink);
  font: 1rem/1.75 var(--f-ui);
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1, h2 { color: var(--brand); font-family: var(--f-score); font-weight: 500; }
h1 { max-width: 18ch; margin: 0 0 1.5rem; font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -.035em; }
h2 { margin: 0 0 1.2rem; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.025em; }
h3 { margin: 0 0 .8rem; font-size: 1.16rem; font-weight: 600; }
p { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .6rem; }
strong { font-weight: 650; }
kbd, code { font-family: "IBM Plex Mono", Consolas, monospace; font-size: .9em; }
kbd { padding: .12em .3em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--chrome-2); }
.container { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: .75rem; left: 1rem; padding: .7rem 1rem; transform: translateY(-200%); background: var(--chrome-2); border: 2px solid var(--accent); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-top: 4px solid var(--brand-gold); border-bottom: 1px solid var(--line); background: var(--chrome-2); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.15rem; }
.brand { display: block; flex-shrink: 0; width: clamp(13rem, 21vw, 17rem); text-decoration: none; }
.brand-art, .brand-art img { display: block; width: 100%; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-list li + li { margin-top: 0; }
.nav-list a { display: block; padding: .55rem .8rem; border-radius: .4rem; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-list a:hover, .nav-list a[aria-current="page"], .nav-list a[aria-current="location"] { color: var(--accent); background: var(--accent-soft); }
.nav-list .nav-editor { margin-left: .6rem; padding-inline: 1.1rem; background: var(--accent); color: var(--accent-ink); }
.nav-list .nav-editor:hover { background: var(--accent); color: var(--accent-ink); text-decoration: underline; }
main { padding-block: clamp(3rem, 7vw, 5.5rem); }
section + section { margin-top: 4.5rem; }
.hero { max-width: 55rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.3rem; color: var(--muted); font-size: .76rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: 0 0 1.5rem; height: 2px; background: var(--brand-gold); }
.lead { max-width: 55ch; font-size: clamp(1.1rem, 2vw, 1.25rem); line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-block: 1.8rem 1.3rem; }
.button { display: inline-block; padding: .85rem 1.4rem; border: 2px solid var(--accent); border-radius: .4rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; text-align: center; }
.button:hover { text-decoration: underline; }
.small, .muted { color: var(--muted); }
.small { font-size: .9rem; line-height: 1.75; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.card { min-width: 0; padding: 1.7rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--chrome-2); }
.card p { color: var(--muted); }
.card p:last-child, .notice p:last-child { margin-bottom: 0; }
.card a { font-size: .93rem; font-weight: 600; }
.notice { max-width: 68ch; padding: 1.5rem; border-left: 3px solid var(--brand-gold); border-radius: 0 .5rem .5rem 0; background: var(--accent-soft); }
.reading { max-width: 70ch; }
.reading h1 { max-width: 22ch; font-size: clamp(2.5rem, 5vw, 3.8rem); }
.reading section + section { margin-top: 3rem; }
.reading section { scroll-margin-top: 1rem; }
.reading > .actions[aria-label="Guide topics"] { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.topic-list { columns: 2 16rem; column-gap: 2rem; }
.topic-list li { break-inside: avoid; }
.guide-page main > .reading { margin-inline: auto; }
.guide-page main > .reading > section { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.guide-page main > .reading > section:first-of-type { margin-top: 2rem; }
.features-page main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.features-page main > .hero { grid-column: 1 / -1; margin-bottom: 1.5rem; }
.features-page main > section:not(.hero) { margin: 0; padding: 1.8rem; background: var(--chrome-2); border: 1px solid var(--line); border-radius: .7rem; }
.features-page main > section:not(.hero) h2 { font-size: 2rem; }
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); max-width: none; }
.home-hero h1 { font-size: clamp(3.2rem, 6vw, 5.3rem); max-width: 12ch; }
.home-hero .small { max-width: 53ch; }
.brand-showcase { min-width: 0; margin: 0; color: var(--ink); }
.showcase-art { display: block; width: 100%; margin-bottom: 2.3rem; }
.showcase-art img { width: 100%; }
.score-preview { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.score-preview-heading { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.score-preview-heading span:first-child { color: var(--brand); font-family: var(--f-score); font-size: 1.2rem; letter-spacing: 0; text-transform: none; }
.score-preview img { width: 100%; }
.brand-showcase figcaption { color: var(--muted); font-size: .78rem; text-align: center; }
.overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-grid .card { border-top: 3px solid var(--brand-gold); padding: 1.4rem; }
.sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: sample; }
.sample-grid .card { display: flex; flex-direction: column; align-items: flex-start; }
.sample-grid .card::before { counter-increment: sample; content: counter(sample, decimal-leading-zero); margin-bottom: 1.1rem; color: var(--accent); font-size: .75rem; font-weight: 650; letter-spacing: .08em; }
.sample-grid .card a { margin-top: auto; }
.home section:not(.home-hero) { padding-top: 3rem; border-top: 1px solid var(--line); }
.site-footer { background: #17132e; color: #eeebf7; border-top: 3px solid var(--brand-gold); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; padding-block: 2.3rem; }
.footer-brand { display: grid; gap: .65rem; }
.footer-brand img { width: 15rem; }
.footer-brand p { margin: 0; color: #cbc5da; font-size: .83rem; }
.footer-inner > p { margin: 0; }
.site-footer a { color: #f1cf88; font-size: .9rem; }
.site-footer a:focus-visible { outline-color: #f1cf88; }
@media (max-width: 65rem) {
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { justify-content: center; }
}
@media (max-width: 50rem) {
  .features-page main { grid-template-columns: 1fr; }
  .home-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-hero h1 { max-width: 17ch; }
  .brand-showcase { width: min(100%, 37rem); }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 35rem) {
  .nav-list { justify-content: center; gap: .2rem; }
  .nav-list a { padding: .55rem .6rem; font-size: .88rem; }
  .nav-list .nav-editor { margin-left: 0; }
  .home-hero h1 { font-size: clamp(2.8rem, 12vw, 3.6rem); }
  .overview-grid, .sample-grid { grid-template-columns: 1fr; }
  .card { padding: 1.35rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .score-preview-heading { font-size: .65rem; }
}
@media print {
  :root { color-scheme: light; --chrome: #fff; --chrome-2: #fff; --ink: #25223b; --muted: #625f70; --line: #ddd9e5; --accent: #2c2680; --accent-ink: #fff; --brand: #211c5f; --accent-soft: #fff; }
  .skip-link, .site-header nav, .actions, .site-footer { display: none; }
  .site-header { border-top: 0; }
  .header-inner { justify-content: flex-start; }
  .brand { width: 13rem; padding: 0; }
  main { padding-block: 1.5rem; }
  .card, .brand-showcase { break-inside: avoid; box-shadow: none; }
  .home-hero { grid-template-columns: 1fr; }
  .brand-showcase { max-width: 28rem; }
}
