:root {
  --paper: #f7f6f1;
  --paper-deep: #eeeee7;
  --ink: #121a22;
  --muted: #59656d;
  --blue: #173f63;
  --teal: #2f6f6b;
  --line: #cfd5d3;
  --white: #fff;
  --max: 74rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid #7aa7a3; outline-offset: 3px; }
img { max-width: 100%; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; padding: .6rem .9rem; background: var(--white); }
.wrap { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(247,246,241,.96); }
.nav { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.nav-links { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; padding: 0; margin: 0; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--ink); text-decoration: underline; }
.hero { padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 1.1rem; color: var(--teal); font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -.02em; }
h1 { max-width: 18ch; margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); font-weight: 600; }
h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 600; }
h3 { margin: 0 0 .55rem; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.lede { max-width: 43rem; margin: 2rem 0 0; color: #35424a; font-family: var(--serif); font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; min-height: 2.8rem; padding: .55rem 1rem; border: 1px solid var(--blue); color: var(--white); background: var(--blue); text-decoration: none; font-weight: 700; }
.button.secondary { color: var(--blue); background: transparent; }
.button:hover { color: var(--white); background: var(--teal); border-color: var(--teal); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { max-width: 47rem; color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.theme { grid-column: span 6; padding: 1.4rem 0; border-top: 2px solid var(--ink); }
.theme p { color: var(--muted); margin-bottom: 0; }
.publication-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.publication { display: grid; grid-template-columns: 8rem minmax(0,1fr); gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.publication:last-child { border-bottom: 1px solid var(--line); }
.pub-date { color: var(--muted); font-size: .9rem; }
.publication h3 a { color: var(--ink); text-decoration-thickness: 1px; }
.publication p { margin: .5rem 0; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .9rem; }
.prose { max-width: 48rem; }
.prose p { margin: 0 0 1.25rem; }
.paper-header { padding: clamp(4rem, 9vw, 7.5rem) 0 3rem; border-bottom: 1px solid var(--line); }
.paper-header h1 { max-width: 24ch; font-size: clamp(2.4rem, 6vw, 5rem); }
.paper-body { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(2rem, 6vw, 6rem); padding: 3.5rem 0 6rem; }
.paper-aside { border-top: 2px solid var(--ink); padding-top: 1rem; color: var(--muted); font-size: .9rem; }
.paper-aside dt { margin-top: 1rem; color: var(--ink); font-weight: 700; }
.paper-aside dd { margin: .15rem 0 0; }
.citation { margin-top: 2rem; padding: 1.25rem; background: var(--paper-deep); border-left: 3px solid var(--teal); font-size: .93rem; }
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }

@media (max-width: 760px) {
  .nav { align-items: flex-start; flex-direction: column; gap: .8rem; padding: 1.2rem 0; }
  .theme { grid-column: 1 / -1; }
  .publication { grid-template-columns: 1fr; gap: .3rem; }
  .paper-body { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .actions, .site-footer { display: none; } body { background: #fff; } .paper-body { display: block; } }
