@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { margin-block: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; }
}

@layer base {
  :root {
    color-scheme: light;
    --ink: #17251f;
    --ink-soft: #45534d;
    --paper: #f7f3e9;
    --paper-deep: #eee7d8;
    --surface: #fffdf7;
    --line: #d8d0c1;
    --accent: #e75f3b;
    --accent-dark: #b83d22;
    --teal: #177f73;
    --teal-dark: #0b5d55;
    --gold: #dfa026;
    --blue: #476fae;
    --purple: #875ba6;
    --green: #7f9840;
    --max: 1180px;
    --reading: 740px;
    --shadow-sm: 0 1px 2px rgb(23 37 31 / 7%), 0 8px 24px rgb(23 37 31 / 5%);
    --shadow-lg: 0 3px 10px rgb(23 37 31 / 8%), 0 24px 70px rgb(23 37 31 / 10%);
    --radius-sm: .7rem;
    --radius: 1.25rem;
    --radius-lg: 2rem;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  }

  html { background: var(--paper); }
  body {
    min-width: 320px;
    color: var(--ink);
    background:
      radial-gradient(circle at 8% 3%, rgb(231 95 59 / 8%), transparent 22rem),
      radial-gradient(circle at 92% 14%, rgb(23 127 115 / 7%), transparent 26rem),
      var(--paper);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
  }

  a { color: var(--teal-dark); text-underline-offset: .18em; text-decoration-thickness: .08em; }
  a:hover { color: var(--accent-dark); }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: .2rem; }
  ::selection { color: var(--ink); background: #f2c66e; }
  h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
  h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.035em; }
  h3 { font-weight: 750; letter-spacing: -.015em; }
  p { text-wrap: pretty; }
  code { padding: .1em .35em; border: 1px solid var(--line); border-radius: .3rem; background: var(--surface); font-size: .9em; }
}

@layer components {
  .skip-link {
    position: fixed;
    z-index: 1000;
    top: .75rem;
    left: .75rem;
    padding: .7rem 1rem;
    transform: translateY(-180%);
    border-radius: 999px;
    color: white;
    background: var(--ink);
  }
  .skip-link:focus { transform: translateY(0); }

  .site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgb(23 37 31 / 12%);
    background: rgb(247 243 233 / 88%);
    backdrop-filter: blur(14px);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 2rem), var(--max));
    min-height: 5rem;
    margin-inline: auto;
    gap: 1.25rem;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.3vw, 1.32rem);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
  }
  .brand img { width: 2.5rem; height: 2.5rem; }
  .brand:hover { color: var(--ink); }
  .primary-nav { display: flex; align-items: center; gap: .25rem; }
  .primary-nav a {
    padding: .55rem .8rem;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: .93rem;
    font-weight: 680;
    text-decoration: none;
  }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-deep); }
  .nav-cta { border: 1px solid var(--ink) !important; margin-left: .3rem; }
  .nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 4px auto;
    content: "";
    background: currentColor;
  }

  .site-main { min-height: 70vh; }
  .shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
  .narrow { width: min(calc(100% - 2rem), var(--reading)); margin-inline: auto; }
  .section { padding-block: clamp(4rem, 9vw, 7.5rem); }
  .section-sm { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
  .section-rule { border-top: 1px solid var(--line); }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .eyebrow::before { width: 1.8rem; height: 2px; content: ""; background: currentColor; }
  .display { max-width: 920px; font-size: clamp(3rem, 8.2vw, 7rem); }
  .section-title { max-width: 800px; font-size: clamp(2.2rem, 5.2vw, 4.25rem); }
  .lede { max-width: 720px; color: var(--ink-soft); font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.55; }
  .lede + * { margin-top: 1.75rem; }

  .hero { overflow: hidden; padding-block: clamp(4rem, 10vw, 8.5rem); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
  .hero h1 { font-size: clamp(3.2rem, 7.6vw, 7.2rem); }
  .hero-copy .lede { margin-top: 1.5rem; }
  .button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .72rem 1.15rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: white;
    background: var(--ink);
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 2px 0 rgb(23 37 31 / 15%);
  }
  .button:hover { color: white; background: var(--teal-dark); }
  .button-secondary { color: var(--ink); background: transparent; box-shadow: none; }
  .button-secondary:hover { color: var(--ink); background: var(--paper-deep); }

  .wheel-stage { position: relative; display: grid; min-height: 500px; place-items: center; isolation: isolate; }
  .wheel-stage::before {
    position: absolute;
    z-index: -2;
    width: min(88vw, 530px);
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
    background: rgb(255 253 247 / 55%);
    box-shadow: var(--shadow-lg);
  }
  .wheel {
    position: relative;
    width: min(78vw, 430px);
    aspect-ratio: 1;
    animation: enter-wheel 900ms cubic-bezier(.2,.8,.2,1) both;
  }
  .wheel-ring { position: absolute; inset: 10%; border: 1px dashed rgb(23 37 31 / 22%); border-radius: 50%; }
  .wheel-core {
    position: absolute;
    inset: 35%;
    display: grid;
    border: 2px solid var(--ink);
    border-radius: 50%;
    color: var(--paper);
    background: var(--ink);
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    place-items: center;
  }
  .wheel-item {
    --x: 0;
    --y: 0;
    position: absolute;
    top: calc(50% + var(--y));
    left: calc(50% + var(--x));
    display: grid;
    width: 7.1rem;
    min-height: 4.7rem;
    padding: .8rem;
    transform: translate(-50%, -50%);
    border: 1px solid rgb(23 37 31 / 18%);
    border-top: .35rem solid var(--tone);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: .88rem;
    font-weight: 780;
    line-height: 1.15;
    text-align: center;
    place-items: center;
  }
  .wheel-item:nth-child(3) { --x: 0px; --y: -164px; --tone: var(--accent); }
  .wheel-item:nth-child(4) { --x: 142px; --y: -82px; --tone: var(--gold); }
  .wheel-item:nth-child(5) { --x: 142px; --y: 82px; --tone: var(--green); }
  .wheel-item:nth-child(6) { --x: 0px; --y: 164px; --tone: var(--teal); }
  .wheel-item:nth-child(7) { --x: -142px; --y: 82px; --tone: var(--blue); }
  .wheel-item:nth-child(8) { --x: -142px; --y: -82px; --tone: var(--purple); }
  .orbit-line { position: absolute; inset: 22%; z-index: -1; border: 1px solid rgb(23 37 31 / 25%); border-radius: 50%; }

  .principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
  .principle, .card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(255 253 247 / 82%);
    box-shadow: var(--shadow-sm);
  }
  .principle { padding: 1.4rem; }
  .principle-number { color: var(--accent-dark); font-family: var(--font-serif); font-size: 2rem; font-weight: 700; }
  .principle h3 { margin-top: 2.25rem; font-size: 1.22rem; }
  .principle p { margin-top: .65rem; color: var(--ink-soft); font-size: .96rem; }

  .article-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 2.5rem; }
  .article-card { grid-column: span 4; display: flex; min-height: 22rem; flex-direction: column; padding: 1.4rem; }
  .article-card.featured { grid-column: span 8; min-height: 26rem; background: var(--ink); color: var(--paper); }
  .article-card.featured a, .article-card.featured .card-meta { color: var(--paper); }
  .article-card.featured .tag { border-color: rgb(255 255 255 / 35%); color: var(--paper); }
  .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
  .tag { padding: .22rem .52rem; border: 1px solid var(--line); border-radius: 999px; color: var(--teal-dark); }
  .article-card h3 { margin-top: auto; padding-top: 3rem; font-family: var(--font-serif); font-size: clamp(1.45rem, 2.8vw, 2.15rem); }
  .article-card h3 a { color: inherit; text-decoration: none; }
  .article-card h3 a::after { position: absolute; inset: 0; content: ""; }
  .article-card { position: relative; transition: transform 180ms ease, box-shadow 180ms ease; }
  .article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .article-card p { margin-top: .8rem; color: inherit; opacity: .78; }
  .text-link { display: inline-flex; margin-top: 1.5rem; font-weight: 760; }

  .topic-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
  .topic-link { min-height: 12rem; padding: 1.4rem; color: var(--ink); background: var(--surface); text-decoration: none; }
  .topic-link span { display: block; color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .topic-link strong { display: block; margin-top: 3rem; font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.1; }
  .topic-link:hover { color: var(--ink); background: #f1eadc; }

  .feature-band { overflow: hidden; color: var(--paper); background: var(--ink); }
  .feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 8vw, 8rem); align-items: center; }
  .feature-band .eyebrow { color: #f0a45d; }
  .feature-band .lede { color: #cbd2ce; }
  .score-preview { padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid rgb(255 255 255 / 17%); border-radius: var(--radius-lg); background: rgb(255 255 255 / 6%); }
  .score-preview dl { display: grid; gap: 1rem; }
  .score-row { display: grid; grid-template-columns: 7rem 1fr 2rem; align-items: center; gap: .8rem; }
  .score-row dt { font-size: .86rem; font-weight: 720; }
  .bar { height: .55rem; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 12%); }
  .bar i { display: block; height: 100%; border-radius: inherit; background: #f0a45d; }
  .score-preview .score-row:nth-child(1) i { width: 88%; background: #ee6a47; }
  .score-preview .score-row:nth-child(2) i { width: 72%; background: #e9a62c; }
  .score-preview .score-row:nth-child(3) i { width: 63%; background: #8ca448; }
  .score-preview .score-row:nth-child(4) i { width: 91%; background: #278f83; }
  .score-preview .score-row:nth-child(5) i { width: 76%; background: #4e77b7; }
  .score-preview .score-row:nth-child(6) i { width: 81%; background: #8d65ad; }
  .score-row dd { font-variant-numeric: tabular-nums; font-weight: 800; }
  .feature-band .button { border-color: var(--paper); color: var(--ink); background: var(--paper); }

  .page-hero { padding-block: clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--line); }
  .page-hero h1 { max-width: 950px; font-size: clamp(3rem, 7vw, 6rem); }
  .page-hero .lede { margin-top: 1.35rem; }
  .breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; color: var(--ink-soft); font-size: .82rem; }
  .breadcrumbs a { color: inherit; }
  .breadcrumbs span + span::before, .breadcrumbs a + span::before { margin-right: .45rem; content: "/"; opacity: .5; }

  .article-layout { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, var(--reading)); justify-content: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 6rem); }
  .article-aside { align-self: start; }
  .aside-sticky { position: sticky; top: 1.5rem; padding-top: .4rem; }
  .article-meta-list { display: grid; gap: 1rem; margin: 0; }
  .article-meta-list div { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .article-meta-list dt { color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .article-meta-list dd { margin-top: .25rem; font-size: .9rem; font-weight: 650; }
  .toc { margin-top: 2rem; }
  .toc strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
  .toc ol { display: grid; margin-top: .7rem; padding-left: 1.15rem; gap: .4rem; color: var(--ink-soft); font-size: .84rem; line-height: 1.35; }
  .toc a { color: inherit; text-decoration: none; }
  .toc a:hover { color: var(--accent-dark); text-decoration: underline; }
  .reading-progress { position: fixed; z-index: 30; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); }

  .prose { font-family: var(--font-serif); font-size: clamp(1.06rem, 1.6vw, 1.18rem); line-height: 1.78; }
  .prose > * + * { margin-top: 1.4rem; }
  .prose h2 { margin-top: 3.5rem; scroll-margin-top: 2rem; font-size: clamp(2rem, 4vw, 3rem); }
  .prose h3 { margin-top: 2.5rem; scroll-margin-top: 2rem; font-family: var(--font-sans); font-size: 1.35rem; }
  .prose h2 + *, .prose h3 + * { margin-top: .8rem; }
  .prose a { overflow-wrap: anywhere; }
  .prose ul, .prose ol { padding-left: 1.35rem; }
  .prose li + li { margin-top: .65rem; }
  .prose strong { color: #0e1b16; }
  .prose blockquote { padding: 1.2rem 1.4rem; border-left: .35rem solid var(--gold); background: var(--paper-deep); font-size: 1.15em; line-height: 1.55; }
  .callout { padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); font-family: var(--font-sans); font-size: .96rem; line-height: 1.6; }
  .callout strong:first-child { display: block; margin-bottom: .35rem; color: var(--accent-dark); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
  .example { position: relative; padding: 1.5rem; border: 1px solid #c8d9d5; border-radius: var(--radius); background: #edf6f3; font-family: var(--font-sans); font-size: .96rem; line-height: 1.6; }
  .example::before { display: block; margin-bottom: .6rem; color: var(--teal-dark); content: "Worked example"; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .comparison { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; font-family: var(--font-sans); font-size: .94rem; }
  .comparison > div { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
  .comparison strong { display: block; margin-bottom: .45rem; }
  .comparison .avoid { border-top: .28rem solid var(--accent); }
  .comparison .prefer { border-top: .28rem solid var(--teal); }
  .checklist { padding: 1.25rem 1.25rem 1.25rem 2.8rem !important; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--font-sans); font-size: .96rem; }
  .sources { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: .88rem; }
  .sources h2 { margin: 0; font-family: var(--font-sans); font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; }
  .sources ol { margin-top: 1rem; padding-left: 1.15rem; }
  .sources li + li { margin-top: .6rem; }
  .article-note { margin-top: 3rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); color: var(--ink-soft); background: var(--paper-deep); font-family: var(--font-sans); font-size: .83rem; }

  .guide-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
  .filter-list { display: flex; flex-wrap: wrap; gap: .55rem; }
  .filter-button {
    padding: .48rem .75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: var(--surface);
    font-size: .86rem;
    font-weight: 720;
    cursor: pointer;
  }
  .filter-button[aria-pressed="true"] { border-color: var(--ink); color: white; background: var(--ink); }
  .filter-card[hidden] { display: none; }

  .audit-shell { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); align-items: start; gap: 1rem; margin-top: 2.5rem; }
  .audit-form, .audit-result { padding: clamp(1.25rem, 4vw, 2rem); }
  .audit-group { margin: 0; padding: 0; border: 0; }
  .audit-group + .audit-group { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
  .audit-group legend { padding: 0; font-family: var(--font-serif); font-size: 1.55rem; font-weight: 700; line-height: 1.15; }
  .audit-question { margin-top: 1.2rem; }
  .audit-question > span { display: block; font-weight: 690; line-height: 1.4; }
  .choices { display: flex; gap: .55rem; margin-top: .65rem; }
  .choice { position: relative; }
  .choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .choice label { display: block; min-width: 4.5rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-align: center; cursor: pointer; }
  .choice input:checked + label { border-color: var(--teal-dark); color: white; background: var(--teal-dark); }
  .choice input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
  .audit-result { position: sticky; top: 1rem; }
  .score-circle { display: grid; width: 9rem; aspect-ratio: 1; margin: .5rem auto 1.25rem; border: .7rem solid var(--paper-deep); border-radius: 50%; background: var(--surface); font-family: var(--font-serif); text-align: center; place-content: center; }
  .score-circle strong { font-size: 2.7rem; line-height: 1; }
  .score-circle span { color: var(--ink-soft); font-size: .75rem; }
  .result-title { text-align: center; }
  .result-copy { margin-top: .7rem; color: var(--ink-soft); font-size: .93rem; text-align: center; }
  .result-list { margin-top: 1.3rem; padding-left: 1.2rem; font-size: .88rem; }
  .result-list li + li { margin-top: .5rem; }

  .trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
  .trust-card { padding: clamp(1.3rem, 4vw, 2rem); }
  .trust-card h2, .trust-card h3 { font-family: var(--font-serif); font-size: 1.7rem; }
  .trust-card p { margin-top: .8rem; color: var(--ink-soft); }
  .contact-box { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .contact-box + .contact-box { margin-top: 1rem; }

  .site-footer { border-top: 1px solid var(--line); background: #eae2d3; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-block: 4rem; }
  .footer-intro { max-width: 360px; }
  .footer-intro p { margin-top: 1rem; color: var(--ink-soft); font-size: .92rem; }
  .footer-heading { margin-bottom: .8rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .footer-links { display: grid; padding: 0; gap: .45rem; list-style: none; }
  .footer-links a { color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
  .footer-links a:hover { color: var(--ink); text-decoration: underline; }
  .footer-link-button { padding: 0; border: 0; color: var(--ink-soft); background: transparent; font-size: .9rem; text-align: left; cursor: pointer; }
  .footer-link-button:hover { color: var(--ink); text-decoration: underline; }
  .footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; }

  .consent-banner {
    position: fixed;
    z-index: 100;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    width: min(calc(100% - 2rem), 920px);
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .consent-copy { max-width: 600px; }
  .consent-copy strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.2; }
  .consent-copy p { margin-top: .35rem; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
  .consent-copy a { font-size: .84rem; }
  .consent-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: .6rem; }
  .consent-actions .button { min-height: 2.7rem; cursor: pointer; }

  @keyframes enter-wheel {
    from { transform: rotate(-8deg) scale(.88); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
  }
}

@layer utilities {
  .muted { color: var(--ink-soft); }
  .surface { background: var(--surface); }
  .paper-deep { background: var(--paper-deep); }
  .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
  .mt-1 { margin-top: 1rem; }
  .mt-2 { margin-top: 2rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
  }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav a { padding: .75rem 1rem; }
  .nav-cta { margin: .25rem 0 0; text-align: center; }
  .hero-grid, .feature-grid { grid-template-columns: 1fr; }
  .wheel-stage { min-height: 480px; order: -1; }
  .principles { grid-template-columns: 1fr 1fr; }
  .article-card, .article-card.featured { grid-column: span 6; }
  .topic-strip { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { display: none; }
  .audit-shell { grid-template-columns: 1fr; }
  .audit-result { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-actions .button { flex: 1; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 4.4rem; }
  .brand img { width: 2.1rem; height: 2.1rem; }
  .wheel-stage { min-height: 365px; }
  .wheel { width: 315px; }
  .wheel-item { width: 5.55rem; min-height: 3.65rem; padding: .45rem; border-top-width: .25rem; font-size: .72rem; }
  .wheel-item:nth-child(3) { --y: -121px; }
  .wheel-item:nth-child(4) { --x: 105px; --y: -60px; }
  .wheel-item:nth-child(5) { --x: 105px; --y: 60px; }
  .wheel-item:nth-child(6) { --y: 121px; }
  .wheel-item:nth-child(7) { --x: -105px; --y: 60px; }
  .wheel-item:nth-child(8) { --x: -105px; --y: -60px; }
  .principles, .trust-grid { grid-template-columns: 1fr; }
  .article-grid { display: grid; grid-template-columns: 1fr; }
  .article-card, .article-card.featured { grid-column: auto; min-height: 19rem; }
  .topic-strip { grid-template-columns: 1fr; }
  .topic-link { min-height: 9rem; }
  .topic-link strong { margin-top: 1.8rem; }
  .comparison { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .reading-progress, .article-aside, .button-row, .nav-toggle, .consent-banner { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .page-hero, .article-layout, .section { padding-block: 1rem; }
  .shell, .narrow { width: 100%; }
  .article-layout { display: block; }
  .prose { font-size: 11pt; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; }
}
