:root {
  color-scheme: light;
  --ink: #17262c;
  --muted: #5e6c70;
  --paper: #f7f7f2;
  --white: #fff;
  --line: #dfe3dc;
  --lime: #d9f56b;
  --blue: #254bff;
  --blue-soft: #e7ecff;
  --mint: #eaf1df;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--blue); }
button { font: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 20; background: var(--lime); padding: .65rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner, .footer-inner, .container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 750; letter-spacing: -.04em; font-size: 1.22rem; }
.brand img { width: 38px; height: 38px; }
.brand span { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav a { font-size: .92rem; font-weight: 620; color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: .45rem; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: .7rem; background: var(--white); padding: .55rem .8rem; color: var(--ink); }
.eyebrow { margin: 0 0 .8rem; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; line-height: 1.4; font-weight: 760; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.04em; }
h1 { font-family: var(--serif); font-size: clamp(2.65rem, 7vw, 5.4rem); font-weight: 500; max-width: 13ch; margin-bottom: 1.25rem; }
h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; margin-bottom: 1rem; }
h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.lede { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); max-width: 58ch; line-height: 1.6; }
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 4rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-aside { background: var(--ink); color: var(--white); padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: 1.6rem; position: relative; overflow: hidden; }
.hero-aside::after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid #60706e; border-radius: 50%; right: -70px; top: -85px; box-shadow: 0 0 0 24px #17262c, 0 0 0 25px #60706e, 0 0 0 50px #17262c, 0 0 0 51px #60706e; opacity: .5; }
.hero-aside .eyebrow { color: var(--lime); }
.hero-aside h2 { font-family: var(--sans); font-weight: 650; font-size: 1.4rem; letter-spacing: -.025em; max-width: 18ch; position: relative; z-index: 1; }
.hero-aside p { color: #d2d9d5; position: relative; z-index: 1; }
.mini-list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: .9rem; position: relative; z-index: 1; }
.mini-list li { border-top: 1px solid #42514d; padding-top: .75rem; color: #eff2eb; }
.mini-list strong { color: var(--lime); margin-right: .45rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 48px; padding: .68rem 1.05rem; background: var(--ink); color: var(--white); border: 1px solid var(--ink); border-radius: .7rem; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue); }
.button.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.button.lime:hover { background: #e6ffa0; border-color: #e6ffa0; }
.section { padding: 4rem 0; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; }
.section-heading p { color: var(--muted); max-width: 44ch; margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.35rem; min-height: 100%; }
.card-kicker { display: flex; justify-content: space-between; gap: .8rem; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card h3 { margin-top: 1rem; }
.card p { color: var(--muted); margin-bottom: .8rem; }
.card-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--blue); font-weight: 720; text-decoration: none; }
.card-link::after { content: "↗"; font-size: 1.15em; }
.feature-band { background: var(--mint); padding: clamp(1.6rem, 4vw, 3rem); border-radius: 1.4rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.feature-band h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.feature-band p { color: #4f5d55; }
.numbered-list { list-style: none; counter-reset: item; padding: 0; margin: 0; display: grid; gap: .8rem; }
.numbered-list li { counter-increment: item; display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; border-bottom: 1px solid #cdd8c7; padding-bottom: .8rem; }
.numbered-list li::before { content: "0" counter(item); font-size: .82rem; font-weight: 800; color: var(--blue); }
.page-hero { padding: 4rem 0 2rem; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
.page-hero .lede { max-width: 62ch; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 3rem; padding: 1.5rem 0 5rem; align-items: start; }
.article-layout { padding-top: 1.5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--muted); }
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.8rem; margin-top: 2.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: #34464a; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .45rem; }
.side-note { background: var(--blue-soft); border-radius: 1rem; padding: 1.3rem; position: sticky; top: 100px; }
.side-note p:last-child { margin-bottom: 0; }
.side-note h2 { font-family: var(--sans); font-size: 1.1rem; letter-spacing: -.02em; }
.callout { border-left: 4px solid var(--blue); padding: .9rem 1rem; background: var(--blue-soft); border-radius: 0 .8rem .8rem 0; }
.callout p:last-child { margin-bottom: 0; }
.empty-state { padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); border: 1px dashed #adb8ae; border-radius: 1.2rem; }
.empty-state .eyebrow { margin-bottom: .6rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .9rem; background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 620px; }
th, td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f0f2ec; }
td { color: #34464a; }
tr:last-child td { border-bottom: 0; }
.draft-note { display: inline-flex; align-items: center; gap: .45rem; color: #624600; background: #fff2c7; border: 1px solid #ead88a; border-radius: 999px; padding: .34rem .72rem; font-size: .8rem; font-weight: 750; letter-spacing: .02em; }
.site-footer { border-top: 1px solid var(--line); padding: 2.6rem 0 1.5rem; background: #eef0e9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { font-family: var(--sans); font-size: .95rem; letter-spacing: 0; margin-bottom: .7rem; }
.footer-grid p { max-width: 34ch; font-size: .92rem; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; color: var(--muted); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.cookie-banner { position: fixed; z-index: 30; inset: auto 1rem 1rem; margin-inline: auto; width: min(800px, calc(100% - 2rem)); padding: 1rem; border-radius: 1rem; background: var(--ink); color: var(--white); box-shadow: 0 18px 60px #15232255; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: #e0e6df; margin: 0; font-size: .93rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions button { border: 1px solid #84918a; border-radius: .55rem; background: transparent; color: var(--white); min-height: 42px; padding: .45rem .7rem; cursor: pointer; font-weight: 700; white-space: nowrap; }
.cookie-actions button:first-child { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.article-meta { color: var(--muted); font-size: .9rem; }
.category-pill { display: inline-block; padding: .25rem .6rem; color: var(--ink); background: var(--lime); border-radius: 999px; font-size: .78rem; font-weight: 750; }
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.rule { padding: 1.1rem; border: 1px solid var(--line); background: var(--white); border-radius: .8rem; }
.rule h3 { font-size: 1.05rem; }
.rule p { color: var(--muted); margin: 0; }
.small { font-size: .9rem; color: var(--muted); }
.page-end { padding-bottom: 5rem; }

@media (max-width: 900px) {
  .site-nav { gap: .7rem; }
  .site-nav a { font-size: .84rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .header-inner { min-height: 68px; }
  .menu-button { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: .6rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .72rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .hero { padding: 3.3rem 0 2.3rem; }
  .hero-grid, .feature-band, .content-layout { grid-template-columns: 1fr; }
  .hero-aside { margin-top: .4rem; }
  .section { padding: 2.8rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-band { gap: 1rem; }
  .content-layout { gap: 1.4rem; }
  .side-note { position: static; order: -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cookie-banner { align-items: stretch; flex-direction: column; }
  .cookie-actions button { flex: 1; }
  .rule-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .header-inner, .footer-inner, .container { width: min(100% - 1.25rem, 1120px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .cookie-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
