:root {
  --winter: #fcfaf6;
  --parchment: #f2ebdd;
  --ink: #17151a;
  --midnight: #18243a;
  --plum: #4b263f;
  --oxblood: #6b2737;
  --silver: #a7a3aa;
  --gold: #a98243;
  --sapphire: #2d5d88;
  --line: #d8cdbc;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--winter);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
a { color: var(--plum); text-decoration-thickness: .09em; text-underline-offset: .16em; }
a:hover { color: var(--oxblood); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sapphire); outline-offset: 4px; border-radius: .15rem; }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -8rem;
  z-index: 100;
  padding: .65rem 1rem;
  background: var(--winter);
  color: var(--ink);
  border: 2px solid var(--sapphire);
}
.skip-link:focus { top: 1rem; }

.site-header { background: var(--midnight); color: var(--winter); border-bottom: 1px solid #33415b; }
.header-inner, .footer-inner, .shell { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { color: var(--winter); font-family: var(--display); font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); font-weight: 600; text-decoration: none; letter-spacing: .015em; }
.desktop-nav ul, .mobile-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: #f6efe4; font-family: var(--sans); font-size: .9rem; letter-spacing: .04em; text-decoration: none; }
.site-header nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); padding-bottom: .28rem; }
.mobile-nav { display: none; color: var(--winter); font-family: var(--sans); }
.mobile-nav summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; padding: .65rem; }
.mobile-nav ul { position: absolute; right: 1rem; z-index: 20; flex-direction: column; min-width: 11rem; padding: 1rem; background: var(--midnight); border: 1px solid #52617d; box-shadow: 0 .75rem 2rem #0b102055; }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; }

main { min-height: 68vh; }
.shell { padding-block: clamp(3rem, 7vw, 6.5rem); }
.reading { width: min(42rem, 100%); margin-inline: auto; }
.shell.reading { width: min(42rem, calc(100% - 2rem)); }
.eyebrow, .kicker, .meta, .source-note, .label {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow, .kicker { color: var(--oxblood); }
.meta, .source-note { color: #5f5962; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; }
h1 { margin: .35rem 0 1.15rem; font-size: clamp(2.7rem, 8vw, 6.2rem); font-weight: 500; letter-spacing: -.035em; }
.reading h1, .page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { margin: 2.7rem 0 .85rem; font-size: clamp(1.75rem, 4vw, 2.65rem); }
h3 { margin: 1.8rem 0 .5rem; font-size: 1.45rem; }
p { margin: 0 0 1.25rem; }
.lead { max-width: 47rem; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); line-height: 1.5; }
.hero { position: relative; overflow: hidden; background: linear-gradient(145deg, var(--winter) 0 68%, var(--parchment) 68%); }
.hero::after { content: ""; position: absolute; width: 22rem; height: 22rem; right: -9rem; top: -10rem; border: 1px solid #8c6b45; border-radius: 50%; opacity: .45; }
.hero .shell { position: relative; z-index: 1; padding-block: clamp(3rem, 5vw, 5rem); }
.hero-copy { max-width: 60rem; }
.hero-line { font-style: italic; color: var(--plum); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-block; padding: .75rem 1rem; border: 1px solid var(--plum); font-family: var(--sans); font-size: .9rem; font-weight: 700; text-decoration: none; }
.button.primary { background: var(--plum); color: var(--winter); }
.button.secondary { background: transparent; color: var(--plum); }

.section-parchment { background: var(--parchment); border-block: 1px solid var(--line); }
.feature { display: block; padding-block: clamp(2.75rem, 4vw, 4rem); }
.feature h2 { max-width: 44rem; margin-top: .4rem; }
.feature p { max-width: 43rem; }
.feature .button { margin-top: .5rem; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.path-card { min-height: 16rem; padding: 1.5rem; background: var(--winter); border: 1px solid var(--line); border-top: 4px solid var(--plum); }
.path-card h3 { margin-top: .2rem; }
.path-card a { font-family: var(--sans); font-weight: 700; }

.page-hero { background: var(--parchment); border-bottom: 1px solid var(--line); }
.page-hero .shell { padding-block: clamp(2.5rem, 6vw, 5rem); }
.provenance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-block: 2rem; }
.note { padding: 1.25rem; border-left: 4px solid var(--sapphire); background: #eaf0f5; }
.source-band { margin-block: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--parchment); }
.source-band p:last-child { margin-bottom: 0; }
.article-image { margin: 2rem auto 2.5rem; }
.article-image img { width: 100%; border: 1px solid var(--line); }
.article-image figcaption { margin-top: .7rem; color: #5a545c; font-size: .92rem; font-style: italic; }
.article-body > p:first-of-type::first-letter { float: left; margin: .07em .11em 0 0; color: var(--plum); font-family: var(--display); font-size: 4.1rem; line-height: .78; }
.article-body ul, .reading ul { padding-left: 1.3rem; }
.article-body li, .reading li { margin-bottom: .65rem; }
.hash { overflow-wrap: anywhere; font-family: var(--mono); font-size: .8rem; }

.site-footer { background: var(--midnight); color: #e9e2d7; border-top: 1px solid #33415b; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-block: 2.5rem; }
.footer-inner a { color: #f4e9d9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--sans); font-size: .88rem; }
.copyright { max-width: 45rem; margin: 0; color: #c7c1ba; font-size: .88rem; }

@media (max-width: 48rem) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .path-grid, .provenance-grid, .footer-inner { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.6rem, 16vw, 4.6rem); }
  .hero { background: linear-gradient(155deg, var(--winter) 0 80%, var(--parchment) 80%); }
}

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

@media print {
  .site-header, .site-footer, .skip-link, .actions { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .shell, .reading { width: 100%; max-width: none; }
  a { color: #000; text-decoration: underline; }
}
