:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --panel: #fffaf1;
  --ink: #1f1b14;
  --muted: #655b4c;
  --line: #ded2bd;
  --accent: #8d5f18;
  --accent-strong: #59380c;
  --ok: #146c43;
  --warn: #8a4b06;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.94);
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links,
.footer-links,
.cta-row,
.actions,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.hero,
.section {
  padding: 36px 0;
}

.hero-card,
.article,
.card,
.side-card,
.callout,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-card {
  padding: clamp(24px, 4vw, 48px);
}

.article,
.card,
.side-card,
.callout,
.table-wrap {
  padding: 22px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: clamp(34px, 6vw, 62px);
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 14px;
}

.lead,
.section-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fffaf1;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-strong);
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: #fffdf8;
  font-size: 13px;
}

.card-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.info-grid {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fffdf8;
}

.flow-step span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

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

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

ul {
  padding-left: 20px;
}

.checklist li,
.meta-list li,
.link-list li {
  margin-bottom: 8px;
}

.callout.success {
  border-color: rgba(20, 108, 67, 0.35);
}

.callout.warning {
  border-color: rgba(138, 75, 6, 0.35);
}

.footer {
  padding: 34px 0 48px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .header-inner,
  .card-grid,
  .card-grid.three,
  .info-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: block;
  }

  .nav-links {
    margin-top: 12px;
  }
}
