:root {
  --bg: #f4efe7;
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: #fffaf2;
  --ink: #172127;
  --muted: #5f695f;
  --line: rgba(23, 33, 39, 0.12);
  --accent: #b45b33;
  --accent-deep: #7f3f23;
  --shadow: 0 18px 48px rgba(56, 34, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(180, 91, 51, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(23, 33, 39, 0.1), transparent 28%),
    linear-gradient(180deg, #f8f3ea 0%, #f0e6d7 100%);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

code {
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(23, 33, 39, 0.08);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-card,
.policy-card,
.toc {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 32px;
}

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

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96) 0%, rgba(246, 236, 223, 0.95) 100%);
}

.card-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-link {
  display: inline-block;
  margin: 0 0 20px;
  color: var(--accent-deep);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.card-link:hover {
  color: var(--accent);
}

.card-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.toc {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 22px;
}

.toc-title {
  margin: 0 0 14px;
  font-weight: 700;
}

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

.toc a {
  color: var(--ink);
  text-decoration: none;
  line-height: 1.5;
}

.toc a:hover {
  color: var(--accent-deep);
}

.policy-card {
  padding: 20px 28px 10px;
}

.policy-card section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.55s ease forwards;
}

.policy-card section:nth-of-type(2) {
  animation-delay: 0.05s;
}

.policy-card section:nth-of-type(3) {
  animation-delay: 0.1s;
}

.policy-card section:nth-of-type(4) {
  animation-delay: 0.15s;
}

.policy-card section:nth-of-type(5) {
  animation-delay: 0.2s;
}

.policy-card section:nth-of-type(6) {
  animation-delay: 0.25s;
}

.policy-card section:nth-of-type(7) {
  animation-delay: 0.3s;
}

.policy-card section:nth-of-type(8) {
  animation-delay: 0.35s;
}

.policy-card section:nth-of-type(9) {
  animation-delay: 0.4s;
}

.policy-card section:nth-of-type(10) {
  animation-delay: 0.45s;
}

.policy-card section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

ul {
  margin: 0;
  padding-left: 20px;
}

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

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

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding: 20px 0 40px;
  }

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

  .hero-copy,
  .hero-card,
  .toc {
    padding: 22px;
  }

  .policy-card {
    padding: 14px 20px 2px;
  }

  h2 {
    font-size: 1.45rem;
  }
}
