:root {
  --page-bg: #f4efe6;
  --panel-bg: rgba(255, 251, 244, 0.82);
  --panel-accent: #f1dfbf;
  --text: #12211d;
  --muted: #4d5f58;
  --line: rgba(18, 33, 29, 0.12);
  --line-strong: rgba(18, 33, 29, 0.22);
  --brand: #1e6b56;
  --brand-strong: #0d4f40;
  --warm: #b76b34;
  --shadow: 0 24px 60px rgba(21, 33, 28, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(183, 107, 52, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(30, 107, 86, 0.18), transparent 34%),
    linear-gradient(180deg, #f9f5ee 0%, var(--page-bg) 100%);
  font-family: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero,
.panel,
.footer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 28px;
  padding: 48px;
}

.hero::before,
.panel::before,
.footer::before {
  content: '';
  position: absolute;
  inset: auto -12% -55% auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(183, 107, 52, 0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  line-height: 0.96;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 7vw, 6.8rem);
}

h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  line-height: 1.08;
}

.lede,
.panel p,
.footer p,
li,
td,
th {
  font-size: 1.04rem;
  line-height: 1.65;
}

.lede {
  max-width: 60ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  border-color: transparent;
  color: #f8f5ee;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.55);
}

.signal-list,
.fit-card ul,
.flow-list {
  padding-left: 1.2rem;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--muted);
}

.hero-card {
  align-self: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 243, 233, 0.92)),
    linear-gradient(135deg, rgba(30, 107, 86, 0.08), rgba(183, 107, 52, 0.08));
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--warm);
  box-shadow: 0 0 0 5px rgba(183, 107, 52, 0.12);
}

.flow-list {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.flow-list strong,
.fit-card li::marker {
  color: var(--brand-strong);
}

.flow-list span {
  display: block;
  color: var(--muted);
}

.code-block {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid rgba(13, 79, 64, 0.14);
  border-radius: var(--radius-sm);
  background: #11211d;
  color: #f4efe6;
  font-size: 0.96rem;
  line-height: 1.55;
}

.panel,
.footer {
  margin-top: 24px;
  padding: 36px;
}

.panel-accent {
  background: linear-gradient(180deg, rgba(241, 223, 191, 0.9), rgba(255, 251, 244, 0.86)), var(--panel-bg);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading p {
  margin-top: 0;
}

.three-up,
.two-up {
  display: grid;
  gap: 18px;
}

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

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

.three-up article,
.fit-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
}

.fit-card-good {
  background: rgba(233, 247, 241, 0.72);
}

.fit-card-warn {
  background: rgba(251, 239, 224, 0.88);
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

thead th {
  border-top: 0;
  color: var(--brand-strong);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  max-width: 24ch;
  margin: 0;
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: 2rem;
  line-height: 1.05;
}

@media (max-width: 960px) {
  .hero,
  .three-up,
  .two-up,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer {
    justify-content: initial;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 10px;
  }

  .hero,
  .panel,
  .footer {
    padding: 24px;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 4.4rem);
  }

  .lede {
    font-size: 1.08rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
