:root {
  color-scheme: light;
  --paper: #f3efe7;
  --paper-deep: #e8e0d2;
  --ink: #202524;
  --muted: #6e706a;
  --line: rgba(32, 37, 36, .16);
  --panel: rgba(255, 255, 255, .48);
  --accent: #e55f42;
  --blue: #386fa4;
  --green: #4d8061;
  --shadow: 0 24px 60px rgba(46, 43, 35, .1);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151919;
  --paper-deep: #1e2423;
  --ink: #eef0e9;
  --muted: #a8ada5;
  --line: rgba(238, 240, 233, .16);
  --panel: rgba(255, 255, 255, .045);
  --accent: #ef795e;
  --blue: #6ca3d5;
  --green: #76a88a;
  --shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, var(--line) 50%, transparent 50.2%) 0 0 / 64px 64px,
    var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
button { color: inherit; font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 720; letter-spacing: -.02em; text-decoration: none; }
.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
}
nav { display: flex; align-items: center; gap: 25px; font-size: .9rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
.theme-toggle { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.theme-toggle:hover { background: var(--panel); }

.hero { min-height: 650px; padding-block: 72px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .74rem; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font: 500 clamp(3.5rem, 7.3vw, 6.8rem)/.93 var(--serif); }
h2 { margin-bottom: 20px; font: 500 clamp(2.2rem, 4vw, 3.75rem)/1 var(--serif); }
h3 { font-size: 1.3rem; }
.lede { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 650; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button.primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 10% -5% -8% 17%; border-radius: 50%; background: var(--paper-deep); filter: blur(30px); opacity: .75; z-index: -1; }

.section { padding-block: 105px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 46px; }
.section-heading > p { max-width: 360px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-height: 330px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); box-shadow: var(--shadow); }
.card::before { content: ""; width: 42px; height: 5px; margin-bottom: 42px; background: var(--accent); }
.card.accent-blue::before { background: var(--blue); }
.card.accent-green::before { background: var(--green); }
.card-number { color: var(--muted); font: italic 1rem var(--serif); }
.card h3 { margin-top: 16px; }
.card p { color: var(--muted); }
.card a { margin-top: auto; font-weight: 700; text-decoration: none; }
.card a:hover { color: var(--accent); }

.quote-band { padding-block: 95px; background: var(--ink); color: var(--paper); }
.quote-band figure { margin-block: 0; }
blockquote { max-width: 980px; margin: 0; font: 500 clamp(2.2rem, 5vw, 4.7rem)/1.07 var(--serif); letter-spacing: -.03em; }
figcaption { margin-top: 30px; opacity: .62; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.prose { color: var(--muted); font-size: 1.08rem; }
.prose.compact { max-width: 560px; }
.status-line { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--ink); font-weight: 650; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #51a36d; box-shadow: 0 0 0 5px rgba(81, 163, 109, .13); }

.article-shell { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.page-intro { padding: 110px 0 80px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(3.8rem, 9vw, 7.5rem); }
.note { padding: 82px 0; border-bottom: 1px solid var(--line); }
.note.plain { padding: 36px; border: 1px solid var(--line); background: var(--panel); }
.note-meta { display: flex; gap: 20px; margin-bottom: 26px; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.note-meta span:first-child { color: var(--accent); }
.note h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.note p, .note li { font-size: 1.08rem; }
.standfirst { color: var(--muted); font: 500 1.45rem/1.5 var(--serif); }
.checklist { padding: 0; list-style: none; }
.checklist li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); }
.callout { margin: 34px 0; padding: 23px 25px; border-left: 4px solid var(--accent); background: var(--panel); }
pre { overflow-x: auto; margin: 30px 0; padding: 24px; border: 1px solid var(--line); background: var(--paper-deep); font-size: .95rem; }
.about-grid { padding: 80px 0 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.site-footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.error-card { width: min(620px, 100%); padding: 50px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.error-code { margin: 70px 0 8px; color: var(--accent); font: italic 1.1rem var(--serif); }
.error-card h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
.error-card > p:not(.error-code) { max-width: 470px; color: var(--muted); }
.error-card .button { margin-top: 25px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #151919; --paper-deep: #1e2423; --ink: #eef0e9; --muted: #a8ada5;
    --line: rgba(238, 240, 233, .16); --panel: rgba(255, 255, 255, .045);
    --accent: #ef795e; --blue: #6ca3d5; --green: #76a88a; --shadow: 0 24px 60px rgba(0, 0, 0, .24);
  }
}
@media (max-width: 820px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 80px; }
  .hero-art { max-width: 560px; }
  .card-grid, .about-grid { grid-template-columns: 1fr; }
  .section-heading, .split { display: block; }
  .section-heading > p { margin-top: 24px; }
}
@media (max-width: 600px) {
  .site-header { padding-block: 20px; align-items: flex-start; }
  .site-header nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .site-header nav a { font-size: .8rem; }
  .brand > span:last-child { display: none; }
  .hero { padding-block: 60px; }
  h1 { font-size: 3.45rem; }
  .section { padding-block: 75px; }
  .site-footer { padding-block: 25px; display: block; }
  .site-footer span { display: block; margin: 5px 0; }
  .error-card { padding: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
