:root {
  --bg: #f4efe4;
  --bg-soft: #fbf7f0;
  --paper: rgba(255, 252, 247, 0.82);
  --text: #17231e;
  --muted: #52635c;
  --line: rgba(23, 35, 30, 0.12);
  --accent: #0f766e;
  --accent-strong: #0d5f58;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --warn: #b45309;
  --shadow: 0 24px 80px rgba(23, 35, 30, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f2e8 0%, #f3ecdf 46%, #efe6d8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 35, 30, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 30, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
}

.site-shell {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.7);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--accent), #12493f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav a,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  border-color: var(--line);
  background: white;
}

.hero,
.panel,
.callout,
.card,
.table-wrap,
.footer {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 44px;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-grid,
.two-col,
.cards,
.metrics,
.info-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: 1.35fr 0.9fr;
  align-items: start;
  margin-top: 18px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-weight: 700;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-top: 36px;
}

h3 {
  font-size: 1.3rem;
}

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

.lead {
  font-size: 1.16rem;
  max-width: 52rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: white;
  font-weight: 600;
}

.button.primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #12493f);
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.metric,
.card,
.panel,
.callout,
.footer {
  border-radius: var(--radius);
}

.metric,
.card,
.panel,
.callout {
  padding: 22px;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.9rem;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.two-col {
  grid-template-columns: 0.92fr 1.08fr;
  margin-top: 26px;
}

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

.card ul,
.panel ul,
.callout ul,
.footer ul {
  margin: 0;
  padding-left: 18px;
}

.card code,
.panel code,
.callout code,
.table-wrap code,
.hero code,
p code,
li code {
  font-family: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", monospace;
  font-size: 0.94em;
  padding: 0.18em 0.36em;
  border-radius: 6px;
  background: rgba(23, 35, 30, 0.06);
  color: var(--text);
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  border-radius: 18px;
  background: #16201d;
  color: #ebf4ef;
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.card pre code,
.panel pre code,
.callout pre code,
.table-wrap pre code,
.hero pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.section-label {
  margin-top: 52px;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.table-wrap {
  overflow-x: auto;
  padding: 8px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-wrap th {
  color: var(--accent-strong);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.callout.warn {
  border-color: rgba(180, 83, 9, 0.25);
  background: rgba(255, 247, 237, 0.82);
}

.callout.warn h3 {
  color: var(--warn);
}

.footer {
  margin-top: 48px;
  padding: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.kicker {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .cards,
  .metrics,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 28px;
  }
}
