:root {
  --paper: #f7f1e3;
  --paper-strong: #fffaf0;
  --ink: #16211f;
  --muted: #5f6d67;
  --line: rgba(22, 33, 31, 0.12);
  --accent: #0b6b57;
  --accent-soft: rgba(11, 107, 87, 0.12);
  --shadow: 0 24px 60px rgba(22, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(11, 107, 87, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(153, 101, 21, 0.16), transparent 24%),
    linear-gradient(180deg, #f2ead7 0%, #efe5cf 100%);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 250, 240, 0.96), rgba(252, 246, 232, 0.92));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.policy-card h2,
.toc-card h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.intro {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.toc-card,
.policy-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: var(--shadow);
}

.toc-card {
  position: sticky;
  top: 20px;
  padding: 24px;
}

.toc-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.toc-card nav {
  display: grid;
  gap: 10px;
}

.toc-card a {
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.toc-card a:hover,
.toc-card a:focus-visible {
  background: var(--accent-soft);
  transform: translateX(4px);
}

.policy-card {
  padding: 32px;
}

.policy-card section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy-card h2 {
  margin: 0 0 12px;
  font-size: 1.65rem;
}

.policy-card p {
  margin: 0 0 14px;
}

.policy-card ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.policy-card li + li {
  margin-top: 10px;
}

.contact-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--accent-soft);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }

  .hero,
  .policy-card,
  .toc-card {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .policy-card,
  .toc-card,
  .hero {
    border-radius: 20px;
  }
}
