:root {
  --paper: #f5f0e5;
  --paper-deep: #e8dfce;
  --ink: #172536;
  --ink-soft: #53606b;
  --orange: #d86b18;
  --orange-deep: #9f4510;
  --blue: #0c3d66;
  --rule: #cfc4b2;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 97%, rgba(23,37,54,.035) 97%),
    var(--paper);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.wrap-wide { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(720px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }

.site-band { border-bottom: 1px solid var(--rule); }
.band-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 15px; }
.site-name, .section-name, .kicker, .byline, .audio-label {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem;
}
.site-name { color: var(--ink); text-decoration: none; font-weight: 600; }
.section-name { color: var(--ink-soft); }

.article-header { padding-block: clamp(64px, 10vw, 120px) 42px; }
.kicker { color: var(--orange-deep); margin: 0 0 20px; }
h1 { max-width: 15ch; margin: 0; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.6rem); line-height: .96; letter-spacing: -.035em; }
.deck { max-width: 44ch; margin: 30px 0 0; color: var(--ink-soft); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; }
.byline { margin: 26px 0 0; color: var(--ink); }
.hero { margin-bottom: 48px; }
.hero img { display: block; width: 100%; height: auto; border: 1px solid #a99c88; box-shadow: 10px 12px 0 var(--paper-deep); }

.audio-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 72px; padding: 28px; border: 1px solid var(--rule); border-left: 6px solid var(--orange); background: rgba(255,255,255,.52); }
.audio-card h2 { margin: 2px 0 4px; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; }
.audio-card p { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.audio-label { color: var(--orange-deep) !important; }
.audio-card audio { width: min(100%, 330px); accent-color: var(--orange-deep); }

.story { padding-bottom: 96px; }
.story p { margin: 0 0 1.35em; }
.story h2 { margin: 3.2rem 0 1.25rem; padding-top: .8rem; border-top: 4px solid var(--ink); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; }
.story blockquote { margin: 2.5rem -44px; padding: 28px 38px; border-left: 8px solid var(--orange); background: var(--ink); color: var(--paper); font-family: var(--font-display); font-size: 1.45rem; line-height: 1.45; }
.story blockquote p { margin: 0; }
.story p:first-child { font-size: 1.32rem; line-height: 1.55; }
.process-list { margin: 1.5rem 0 2rem; padding-left: 1.5rem; }
.process-list li { margin: .25rem 0; padding-left: .35rem; }

.reading-progress { position: fixed; z-index: 10; top: 0; right: 10px; width: 5px; height: 100vh; background: rgba(23,37,54,.13); }
.reading-progress span { display: block; width: 100%; height: 100%; transform: scaleY(0); transform-origin: top; background: var(--orange); }
footer { border-top: 1px solid var(--rule); background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px 38px; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--paper); }

@media (max-width: 760px) {
  .wrap, .wrap-wide, .wrap-narrow { width: min(100% - 32px, 720px); }
  .section-name { display: none; }
  .article-header { padding-top: 54px; }
  .audio-card { grid-template-columns: 1fr; }
  .story blockquote { margin-inline: -8px; padding: 24px; }
  .reading-progress { right: 3px; width: 4px; }
}

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