:root {
  --ink: #1c2321;
  --ink-soft: #4b5a54;
  --paper: #faf8f4;
  --paper-alt: #f1ede5;
  --accent: #0e5a3c;
  --accent-soft: #e2efe8;
  --rule: #dcd6ca;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 680px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.4rem; list-style: none; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 0.35rem 0.8rem; font: inherit; color: var(--ink); cursor: pointer; }

.hero {
  padding: 7rem 0 6rem;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--accent-soft), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero .lede { margin-top: 1.4rem; max-width: 56ch; color: var(--ink-soft); font-size: 1.12rem; }
.hero-inner { display: flex; align-items: center; gap: 3rem; }
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero-art { order: -1; flex: 0 0 auto; width: clamp(140px, 20vw, 230px); height: auto; }
.cta {
  display: inline-block; margin-top: 2.2rem;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
}
.cta:hover { background: #0a4530; }

.prose { padding: 4.5rem 0; }
.prose.alt { background: var(--paper-alt); border-block: 1px solid var(--rule); }
.prose h2, .links h2, .sources h2 {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 700;
  margin-bottom: 1.4rem; letter-spacing: -0.01em;
}
.prose h2::after { content: ""; display: block; width: 3rem; height: 3px; background: var(--accent); margin-top: 0.6rem; border-radius: 2px; }
.prose p { margin-bottom: 1.1rem; max-width: 68ch; }
.prose h3 { font-family: var(--serif); font-size: 1.25rem; margin: 1.8rem 0 0.7rem; color: var(--accent); display: flex; align-items: center; gap: 0.65rem; }
.prose h3 .h-icon { flex: 0 0 auto; width: 1.55rem; height: 1.55rem; }
.prose .steps { margin: 0.4rem 0 1rem 1.3rem; max-width: 66ch; }
.prose .steps li { margin-bottom: 0.55rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin: 0.6rem 0 1.2rem; max-width: 66ch; }
.prose ul li { margin-bottom: 0.55rem; }
.prose sup a { color: var(--accent); text-decoration: none; font-weight: 600; }
.prose sup a:hover { text-decoration: underline; }
.prose p > a, .prose h3 > a, .prose li > a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(14, 90, 60, 0.35); }
.prose p > a:hover, .prose h3 > a:hover, .prose li > a:hover { border-bottom-color: var(--accent); }

.links { padding: 4.5rem 0; }
.link-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem 2rem; margin-top: 0.5rem; }
.link-grid li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; color: var(--ink-soft); }
.link-grid a { color: var(--accent); font-weight: 600; text-decoration: none; }
.link-grid a:hover { text-decoration: underline; }

.sources { padding: 4.5rem 0; background: var(--paper-alt); border-top: 1px solid var(--rule); }
.sources ol { padding-left: 1.4rem; }
.sources li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.sources a { color: var(--accent); text-decoration: none; word-break: break-word; }
.sources a:hover { text-decoration: underline; }
.sources .note { margin-top: 1.2rem; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

.site-footer { background: var(--ink); color: #cfd8d3; padding: 2.2rem 0; font-size: 0.88rem; }
.site-footer a { color: #8fd4b4; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--rule); padding: 0.5rem 1.5rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.5rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .hero-art { width: 140px; }
}
