:root {
  --cream: #FAF6EE;
  --paper: #FFFDF8;
  --sand: #F2E9DA;
  --ink: #2B2622;
  --muted: #5C5248;
  --maroon: #7A2E2E;
  --forest: #2F5D50;
  --saffron: #E0A030;
  --line: #D9CFBF;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a[href^="mailto:"] { overflow-wrap: anywhere; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 2.5rem 0 1rem; }
h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 0.9rem;
  background: var(--saffron);
}

p, ul, ol, dl { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--maroon); text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }

:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; padding: 0.5rem 0.9rem; background: var(--paper); z-index: 1; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--ink); text-decoration: none; }
.brand svg { width: 2.4rem; height: 2.4rem; color: var(--maroon); flex: none; }
.site-nav { border-top: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; list-style: none; margin: 0 -0.75rem; padding: 0; }
.nav li { margin: 0; }
.nav a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--maroon); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--maroon); box-shadow: inset 0 -3px var(--maroon); }

main { padding-bottom: 3rem; }

.lede { font-size: 1.2rem; color: var(--muted); }

/* The box-shadow carries the hero colour to both edges of the window without widening the page. */
.hero { padding: 2.5rem 0; background: var(--sand); box-shadow: 0 0 0 100vmax var(--sand); clip-path: inset(0 -100vmax); }
.hero h1 { margin-top: 0; font-size: clamp(2.1rem, 6vw, 3rem); }
.hero > :last-child { margin-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 2rem 0; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 0.5rem; padding: 1.1rem 1.2rem; margin: 0; }
.card h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.card p { margin: 0; color: var(--muted); }
.card h2 a::after { content: ""; position: absolute; inset: 0; }
.card:has(a):hover, .card:focus-within { border-color: var(--maroon); box-shadow: 0 0.3rem 0.8rem rgb(43 38 34 / 0.12); }

.button { display: inline-block; padding: 0.65rem 1.2rem; border: 2px solid var(--maroon); border-radius: 0.4rem; background: var(--maroon); color: var(--cream); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.button-secondary { background: transparent; color: var(--maroon); }
.button-secondary:hover { background: var(--maroon); border-color: var(--maroon); color: var(--cream); }
.header-cta { padding: 0.5rem 1rem; font-size: 0.95rem; }

.verse { margin: 2rem 0; padding: 1rem 1.25rem; background: linear-gradient(var(--saffron), var(--saffron)) left / 4px 100% no-repeat var(--paper); font-family: var(--serif); font-size: 1.15rem; }
.verse p { margin: 0; }
.verse footer { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1.25rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

.toc { margin: 1.5rem 0 2rem; padding: 1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.5rem; }
.toc-title { margin: 0 0 0.4rem; font-weight: 600; }
.toc ul { margin: 0; padding-left: 1.1rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--muted); border-radius: 0.35rem; background: var(--paper); color: var(--ink); font: inherit; }
.field textarea { min-height: 9rem; }
.hp { position: absolute; left: -999rem; }

.small { font-size: 0.92rem; color: var(--muted); }

.cta-band { padding: 2.5rem 0; background: var(--forest); color: var(--cream); }
.cta-title { margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.cta-band .actions { margin: 1.25rem 0 0; }
.cta-band .button { background: var(--cream); border-color: var(--cream); color: var(--forest); }
.cta-band .button-secondary { background: transparent; color: var(--cream); }
.cta-band .button:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.cta-band :focus-visible { outline-color: var(--cream); }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 2.5rem 0 1.5rem; font-size: 0.95rem; color: var(--muted); }
.site-footer p, .site-footer ul { margin: 0 0 0.7rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .footer-title { margin-bottom: 0.4rem; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.footer-cols { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-links a { display: inline-block; padding: 0.3rem 0; }
.site-footer .ack { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }

@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 0.6rem; }
}
