:root {
  color-scheme: light dark;
  --paper: #f2ecdf;
  --paper-deep: #e7ddcc;
  --ink: #181715;
  --muted: #69645a;
  --accent: #7d2d2a;
  --rule: color-mix(in srgb, var(--ink) 22%, transparent);
  --display: "Iowan Old Style", "Baskerville", "Palatino Linotype", serif;
  --body: "Avenir Next", "Gill Sans", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 34rem),
    repeating-linear-gradient(90deg, transparent 0 8rem, color-mix(in srgb, var(--ink) 2%, transparent) 8rem calc(8rem + 1px)),
    var(--paper);
  font-family: var(--body);
  line-height: 1.62;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: .24em; }
a:hover { color: var(--accent); }

.masthead, footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
  font-size: .82rem;
  letter-spacing: .05em;
}
.wordmark { font-family: var(--display); font-size: 1.1rem; text-decoration: none; letter-spacing: 0; }
.edition { color: var(--muted); }

.landing, .support {
  min-height: calc(100vh - 10rem);
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 6vw, 6rem) 6rem;
}
.eyebrow { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .18em; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.02; text-wrap: balance; }
h1 { margin: 1.2rem 0 1.8rem; font-size: clamp(3.3rem, 9vw, 8.5rem); letter-spacing: -.045em; }
.policy h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); }
h2 { margin-top: 3.2rem; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.lede { max-width: 48rem; color: var(--muted); font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.8rem); }

.folio { display: grid; max-width: 42rem; margin-top: 4.5rem; border-top: 1px solid var(--rule); }
.folio a { display: flex; justify-content: space-between; padding: 1.25rem .15rem; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.folio a:hover { padding-left: .7rem; }

.policy {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) minmax(0, 48rem);
  gap: clamp(3rem, 8vw, 8rem);
  max-width: 86rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem) 8rem;
}
.policy-index { position: sticky; top: 3rem; align-self: start; padding-top: 1rem; border-top: 3px solid var(--accent); color: var(--muted); }
.policy article > p:not(.lede), .support li { max-width: 43rem; color: var(--muted); }

.support h1 { font-size: clamp(3rem, 8vw, 7.4rem); }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; margin-top: 4rem; padding: 2rem 0; border-block: 1px solid var(--rule); }
.support-grid h2 { margin-top: 0; }
.support-grid ul { padding-left: 1.15rem; }
.support-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 3rem; }
.button { padding: .9rem 1.3rem; color: var(--paper); background: var(--ink); text-decoration: none; border: 1px solid var(--ink); }
.button:hover { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.boundary { max-width: 48rem; margin-top: 4rem; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); }

footer { border-top: 1px solid var(--rule); border-bottom: 0; color: var(--muted); }
.easter { position: fixed; right: 1rem; bottom: 1rem; max-width: 22rem; padding: .85rem 1rem; color: var(--paper); background: var(--accent); transform: translateY(8rem); transition: transform .35s ease; }
.easter.visible { transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s cubic-bezier(.2,.8,.2,1) forwards; }
.delay-one { animation-delay: .09s; }
.delay-two { animation-delay: .18s; }
.delay-three { animation-delay: .27s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .masthead { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .policy { grid-template-columns: 1fr; }
  .policy-index { position: static; }
  .support-grid { grid-template-columns: 1fr; gap: 1rem; }
  footer { align-items: flex-start; flex-direction: column; gap: .3rem; }
}

@media (prefers-color-scheme: dark) {
  :root { --paper: #1b1a18; --paper-deep: #24211e; --ink: #eee6d8; --muted: #b9b0a3; --accent: #c4776e; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .folio a, .easter { transition: none; }
}
