:root {
  --paper: #f6f0e5;
  --ink: #182325;
  --muted: #5d6b6e;
  --line: rgba(24, 35, 37, 0.14);
  --panel: rgba(255, 251, 245, 0.78);
  --panel-strong: rgba(255, 251, 245, 0.92);
  --accent: #0b6b5d;
  --accent-dark: #0b4f45;
  --signal: #aa5b16;
  --shadow: 0 24px 64px rgba(29, 39, 41, 0.12);
  --hero: radial-gradient(circle at top left, rgba(170, 91, 22, 0.2), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(11, 107, 93, 0.22), transparent 28%),
    linear-gradient(180deg, #f7f3ea 0%, #efe7da 100%);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--hero);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(246, 240, 229, 0.86);
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
.section,
.footer-inner,
.page-intro {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--accent-dark), var(--signal));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.05;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-grid,
.grid-two,
.grid-three,
.page-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--signal);
}

.hero h1,
.page-intro h1 {
  margin: 0.9rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lede,
.page-intro p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 48rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.card,
.stat,
.callout,
.page-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.card,
.stat,
.callout,
.page-panel {
  padding: 1.35rem;
}

.hero-panel {
  padding: 1.6rem;
  background: var(--panel-strong);
}

.hero-panel h2,
.card h3,
.page-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.hero-panel p,
.card p,
.page-panel p,
.page-panel li,
.callout p {
  color: var(--muted);
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.section,
.page-intro {
  padding: 1.5rem 0 2.6rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-note {
  max-width: 36rem;
  color: var(--muted);
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

.list {
  margin: 0;
  padding-left: 1.15rem;
}

.list li + li {
  margin-top: 0.5rem;
}

.callout {
  background: linear-gradient(160deg, rgba(11, 107, 93, 0.1), rgba(170, 91, 22, 0.08));
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(24, 35, 37, 0.05);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 2.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.footer-links a,
.footer-copy {
  color: var(--muted);
  text-decoration: none;
}

.small {
  font-size: 0.94rem;
}

.page-intro {
  padding-top: 3rem;
}

.page-intro h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.38rem 0.8rem;
  font-size: 0.84rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-two,
  .grid-three,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3rem;
  }

  .topbar-inner,
  .section,
  .footer-inner,
  .page-intro {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .card,
  .stat,
  .callout,
  .page-panel,
  .hero-panel {
    border-radius: 1.2rem;
    padding: 1.15rem;
  }
}

