:root {
  color-scheme: light;
  --ink: #271a17;
  --muted: #6d5a52;
  --paper: #fbf4e5;
  --paper-deep: #f1dfbd;
  --red: #9f2f32;
  --red-dark: #6f1f24;
  --gold: #c18a33;
  --line: rgba(84, 48, 34, 0.2);
  --shadow: 0 24px 70px rgba(74, 39, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(193, 138, 51, 0.15), transparent 31rem),
    linear-gradient(90deg, transparent 0 49.7%, rgba(112, 74, 52, 0.035) 49.7% 50.3%, transparent 50.3%),
    var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.72;
}

a {
  color: var(--red-dark);
  text-decoration-color: rgba(159, 47, 50, 0.42);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--red);
  text-decoration-color: currentColor;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 10;
  padding: 0.55rem 0.85rem;
  color: white;
  background: var(--red-dark);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 239, 0.84);
  box-shadow: 0 10px 35px rgba(77, 42, 29, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 44% 44%;
  color: #fff8e9;
  background: var(--red);
  box-shadow: inset 0 -3px 0 rgba(67, 16, 19, 0.22);
  font-family: Georgia, serif;
  font-size: 18px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 18px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--red-dark);
  font-weight: 700;
}

.hero,
.document {
  width: min(960px, calc(100% - 32px));
  margin: 74px auto 96px;
}

.hero {
  min-height: 66vh;
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(52px, 10vw, 104px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.document h1 {
  max-width: 18ch;
  font-size: clamp(40px, 7vw, 72px);
}

.lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.5vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 9px 19px;
  border: 1px solid var(--red-dark);
  border-radius: 999px;
  color: #fff8e9;
  background: var(--red-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  color: var(--red-dark);
  background: transparent;
}

.document-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 50px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.document-meta strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.document-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 20px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 14px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.toc a {
  display: block;
  padding: 3px 0;
  color: inherit;
  text-decoration: none;
}

.prose {
  min-width: 0;
}

.prose section {
  scroll-margin-top: 26px;
  margin-bottom: 48px;
}

.prose h2 {
  margin: 0 0 18px;
  color: var(--red-dark);
  font-size: 28px;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 0;
}

.prose li + li {
  margin-top: 8px;
}

.notice,
.request-card {
  padding: 22px 24px;
  border: 1px solid rgba(159, 47, 50, 0.22);
  border-radius: 18px;
  background: rgba(255, 251, 240, 0.76);
  box-shadow: var(--shadow);
}

.request-card {
  margin: 24px 0;
  border-top: 5px solid var(--red);
}

.request-card h2,
.request-card h3 {
  margin-top: 0;
}

.site-footer {
  padding: 28px 16px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    border-radius: 24px;
  }

  nav {
    max-width: 190px;
  }

  .hero,
  .document {
    margin-top: 52px;
  }

  .document-meta,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .document-grid {
    gap: 26px;
  }

  .toc {
    position: static;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > *,
  .document > * {
    animation: reveal 500ms both;
  }

  .hero > :nth-child(2),
  .document > :nth-child(2) {
    animation-delay: 70ms;
  }

  .hero > :nth-child(3),
  .document > :nth-child(3) {
    animation-delay: 140ms;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}
