:root {
  color-scheme: light dark;
  --bg: #f2eadc;
  --paper: #fbf7ee;
  --panel: #fffaf1;
  --panel-strong: #f7efe2;
  --ink: #181512;
  --muted: #655f55;
  --line: #d6cbbb;
  --line-strong: #b9ac9a;
  --green: #315f4b;
  --green-soft: #e3eee6;
  --red: #934136;
  --red-soft: #f2e3df;
  --gold: #a56a21;
  --shadow: rgba(56, 45, 31, 0.12);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Copernicus", "Galaxie Copernicus", "Anthropic Serif", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171512;
    --paper: #211f1a;
    --panel: #27231d;
    --panel-strong: #2f2a22;
    --ink: #f1eadf;
    --muted: #beb3a3;
    --line: #4a4237;
    --line-strong: #6a5d4c;
    --green: #9bc7ae;
    --green-soft: #1f3329;
    --red: #d28d82;
    --red-soft: #3a2522;
    --gold: #d0a05f;
    --shadow: rgba(0, 0, 0, 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 66px;
  gap: 18px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 650;
}

.nav-tag {
  color: var(--muted);
  font-size: 13px;
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 64px;
  align-items: center;
  padding: 76px 0 64px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--font-serif);
  letter-spacing: 0;
  font-weight: 650;
}

h1 {
  font-size: clamp(50px, 7vw, 88px);
  line-height: 0.94;
  margin: 0 0 24px;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
  margin: 0 0 18px;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.lead {
  max-width: 650px;
  color: var(--ink);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.26;
  margin: 0 0 18px;
}

.supporting {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 760;
}

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

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.trust-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.audit-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 30px 80px var(--shadow);
  overflow: hidden;
}

.memo-topline {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 13px;
}

.memo-body {
  padding: 24px;
}

.memo-body h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.memo-grid {
  display: grid;
  gap: 0;
  margin: 22px 0;
  border: 1px solid var(--line);
}

.memo-grid div {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--line);
}

.memo-grid div:last-child {
  border-bottom: 0;
}

.memo-grid dt,
.memo-grid dd {
  margin: 0;
  padding: 11px 12px;
}

.memo-grid dt {
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.memo-grid dd {
  color: var(--ink);
}

.memo-finding {
  border-left: 4px solid var(--red);
  background: var(--red-soft);
  padding: 16px;
  border-radius: 0 6px 6px 0;
}

.memo-finding p {
  margin: 7px 0 0;
}

.severity {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-head {
  max-width: 800px;
  margin-bottom: 34px;
}

.section-head p,
.section p,
.article p,
.article li,
.card p,
.check p,
.step p,
.price-box p {
  color: var(--muted);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.check {
  min-height: 230px;
  padding: 22px;
  background: var(--panel);
}

.check span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: start;
}

.evidence-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.mini-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.note-stack div {
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 26%, var(--line));
  border-radius: 6px;
  padding: 14px;
}

.note-stack strong,
.note-stack span {
  display: block;
}

.note-stack span {
  color: var(--muted);
  margin-top: 4px;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat,
.card,
.step,
.price-box,
.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat {
  padding: 22px;
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.card {
  padding: 22px;
}

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

.steps-section {
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: step;
}

.step {
  padding: 18px;
}

.step:before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.boundaries {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.boundary-copy {
  max-width: 720px;
}

.price-box {
  padding: 24px;
}

.price {
  font-family: var(--font-serif);
  font-size: 62px;
  line-height: 1;
  margin: 2px 0 12px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-title {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 36px;
}

.page-title h1 {
  font-size: clamp(42px, 5vw, 70px);
}

.article {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 78px;
}

.article h2 {
  margin-top: 42px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}

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

.article th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.callout {
  padding: 18px;
  margin: 22px 0;
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px 0;
    gap: 8px;
  }

  .nav-tag {
    border-left: 0;
    padding-left: 0;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-inner,
  .split,
  .boundaries {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    gap: 38px;
    padding-top: 52px;
  }

  .check-grid,
  .deliverables,
  .steps,
  .cards,
  .cards.two,
  .note-stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 56px 0;
  }

  .hero-inner {
    padding-bottom: 52px;
  }

  .check-grid,
  .deliverables,
  .steps,
  .cards,
  .cards.two,
  .note-stack {
    grid-template-columns: 1fr;
  }

  .memo-grid div {
    grid-template-columns: 1fr;
  }

  .memo-grid dt {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
  }

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