:root {
  --bg: #fbf7ef;
  --bg-soft: #f4efe5;
  --paper: #fffaf0;
  --ink: #20201d;
  --muted: #656257;
  --line: #ded4c3;
  --card: #fffdf8;
  --card-strong: #f7f2e9;
  --accent: #2f5d50;
  --accent-dark: #23483e;
  --accent-soft: #e8f0eb;
  --accent2: #85552e;
  --accent3: #49606f;
  --danger: #7b2e2e;
  --shadow: 0 18px 45px rgba(60, 45, 25, .09);
  --shadow-soft: 0 10px 28px rgba(60, 45, 25, .06);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(47, 93, 80, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 93, 80, .04) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .9), transparent 34rem),
    linear-gradient(180deg, #fcf9f3 0%, var(--bg) 38%, #f6efe4 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

a {
  color: var(--accent);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover { color: var(--accent-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(47, 93, 80, .32);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px solid rgba(222, 212, 195, .78);
  background:
    linear-gradient(90deg, rgba(47, 93, 80, .08), transparent 28%),
    rgba(251, 247, 239, .92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  z-index: 2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-decoration: none;
}

.brand::before {
  background: url('/logo-mark.png') center / contain no-repeat;
  content: "";
  flex: 0 0 auto;
  height: 44px;
  margin-right: 10px;
  width: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: .95rem;
  min-height: 44px;
  padding: 11px 13px;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
}

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

.hero,
.scorecard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(44px, 8vw, 86px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

.hero { position: relative; }

.hero::after {
  border-bottom: 1px solid rgba(133, 85, 46, .28);
  border-top: 1px solid rgba(47, 93, 80, .22);
  bottom: 22px;
  content: "";
  height: 8px;
  left: 24px;
  position: absolute;
  right: 24px;
}

.hero-copy,
.scorecard-copy { max-width: 720px; }

.eyebrow,
.card-kicker {
  color: var(--accent3);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3 { line-height: 1.08; }

h1 {
  font-size: clamp(2.55rem, 6vw, 4.8rem);
  letter-spacing: 0;
  margin: 0 0 18px;
}

.hero-copy h1,
.scorecard-copy h1 { max-width: 11ch; }

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: 0;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

p { margin: 0 0 16px; }

.lede {
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  max-width: 760px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel,
.scorecard-card,
.signup {
  background:
    linear-gradient(90deg, rgba(133, 85, 46, .18) 0 5px, transparent 5px),
    rgba(255, 253, 248, .9);
  border: 1px solid rgba(222, 212, 195, .9);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero-panel,
.scorecard-card { padding: clamp(22px, 3vw, 30px); }

.hero-panel h2,
.scorecard-card h2,
.signup h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); }

.check-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.check-list li {
  border-top: 1px solid rgba(222, 212, 195, .8);
  color: var(--muted);
  padding: 12px 0 12px 34px;
  position: relative;
}

.check-list li::before {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent-dark);
  content: "✓";
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  height: 16px;
  justify-content: center;
  left: 4px;
  line-height: 1;
  position: absolute;
  top: 16px;
  width: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px auto 18px;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 253, 248, .92)),
    var(--card);
  border: 1px solid rgba(222, 212, 195, .9);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 24px;
  position: relative;
  transition: border-color .16s ease, transform .16s ease;
}

.card::before {
  background: var(--accent2);
  content: "";
  height: 3px;
  left: 24px;
  position: absolute;
  right: 24px;
  top: 0;
}

.card p:last-child,
.signup p:last-child,
.site-footer p:last-child { margin-bottom: 0; }

.card-kicker { margin-bottom: 12px; }

.section {
  padding: clamp(34px, 6vw, 66px) 24px;
}

.split {
  align-items: start;
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  grid-template-columns: 1.05fr .95fr;
}

.section-copy {
  background:
    linear-gradient(rgba(73, 96, 111, .06) 1px, transparent 1px),
    var(--card-strong);
  background-size: 100% 28px;
  border: 1px solid rgba(222, 212, 195, .74);
  border-radius: 10px;
  padding: clamp(22px, 3vw, 32px);
}

.cta {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
  transform: translateY(-1px);
}

.cta.secondary {
  background: rgba(255, 255, 255, .68);
  color: var(--accent);
}

.cta.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.signup {
  background:
    linear-gradient(90deg, rgba(133, 85, 46, .18) 0 5px, transparent 5px),
    linear-gradient(180deg, #f4faf6 0%, #e7f0eb 100%);
  border-color: #c8d9cf;
  padding: clamp(22px, 3vw, 30px);
}

.field {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.field input[type=email] {
  background: white;
  border: 1px solid #cfc6b7;
  border-radius: 999px;
  color: var(--ink);
  flex: 1;
  font-size: 1rem;
  min-height: 46px;
  min-width: 0;
  padding: 12px 16px;
}

.field input[type=email]::placeholder { color: #8b867a; }

.small,
.notice {
  color: var(--muted);
  font-size: .94rem;
}

.notice { margin-top: 12px; }

.hidden-field {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) 24px;
}

.article > .eyebrow {
  border-bottom: 1px solid rgba(222, 212, 195, .9);
  padding-bottom: 10px;
}

.article h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.04;
  max-width: 13ch;
}

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

.article p,
.article li {
  color: var(--muted);
  font-size: 1.08rem;
}

.article em,
.article strong,
.article h1,
.article h2,
.article h3 { color: var(--ink); }

.article .signup { margin-top: 34px; }

.article-card {
  margin-top: 28px;
  padding-right: clamp(24px, 8vw, 84px);
}

.article-card a::before {
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.article-card h2 a {
  color: var(--ink);
  position: relative;
  text-decoration: none;
  z-index: 2;
}

.article-card h2 a::after {
  color: var(--accent2);
  content: " →";
  white-space: nowrap;
}

.article-card:hover h2 a,
.article-card h2 a:focus-visible {
  color: var(--accent-dark);
}

.article-card:hover {
  border-color: rgba(133, 85, 46, .55);
  transform: translateY(-1px);
}

.scorecard-card .check-list li { color: var(--ink); }

.worksheet {
  max-width: 920px;
  padding-bottom: clamp(42px, 7vw, 76px);
  padding-top: clamp(40px, 7vw, 72px);
}

.worksheet h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: 13ch;
}

.worksheet h2 { margin-top: 0; }
.worksheet h3 { margin-top: 24px; }

.worksheet-alert,
.worksheet-section {
  background: rgba(255, 253, 248, .92);
  border: 1px solid rgba(222, 212, 195, .9);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  margin-top: 22px;
  padding: clamp(22px, 3vw, 30px);
}

.worksheet-alert {
  background: linear-gradient(180deg, #f4faf6 0%, #e7f0eb 100%);
  border-color: #c8d9cf;
}

.worksheet-grid {
  display: grid;
  gap: 10px 18px;
}

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

.blank-line {
  border-bottom: 1px solid #8d877a;
  display: inline-block;
  min-width: 12rem;
  transform: translateY(-2px);
}

.blank-line.wide { min-width: min(100%, 28rem); }

.worksheet-checks {
  list-style: none;
  padding-left: 0;
}

.worksheet-checks.columns {
  columns: 2 260px;
  column-gap: 28px;
}

.worksheet-checks li {
  break-inside: avoid;
  margin-bottom: 9px;
  padding-left: 28px;
  position: relative;
}

.worksheet-checks li::before {
  border: 1px solid var(--accent);
  border-radius: 3px;
  content: "";
  height: 14px;
  left: 0;
  position: absolute;
  top: .35em;
  width: 14px;
}

.summary-box { border-color: rgba(133, 85, 46, .45); }

@media print {
  body { background: #fff; }
  .site-header,
  .site-footer,
  .no-print { display: none !important; }
  .worksheet { max-width: none; padding: 0; }
  .worksheet-alert,
  .worksheet-section {
    box-shadow: none;
    break-inside: avoid;
    margin-top: 14px;
  }
  a { color: inherit; text-decoration: none; }
}

.site-footer {
  border-top: 1px solid rgba(222, 212, 195, .9);
  color: var(--muted);
  padding: 30px 0;
}

.site-footer .wrap {
  display: grid;
  gap: 10px;
}

.status-ok { color: var(--accent); }
.status-error { color: var(--danger); }

@media (max-width: 860px) {
  .hero,
  .scorecard-hero,
  .grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero,
  .scorecard-hero {
    align-items: start;
    padding-top: 38px;
  }

  .hero-panel,
  .scorecard-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }

  .nav {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-height: 0;
    padding-block: 14px;
  }

  .nav-links {
    align-items: center;
    flex: 1 1 100%;
    gap: 6px;
  }

  .nav-links a {
    background: rgba(255, 255, 255, .55);
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }

  .action-row,
  .field {
    flex-direction: column;
  }

  .cta,
  .field input[type=email] {
    width: 100%;
  }

  .card,
  .hero-panel,
  .scorecard-card,
  .section-copy,
  .worksheet-alert,
  .worksheet-section,
  .signup {
    border-radius: 10px;
  }

  .worksheet-grid.two {
    grid-template-columns: 1fr;
  }

  .blank-line,
  .blank-line.wide {
    min-width: 0;
    width: 100%;
  }

  .worksheet {
    overflow-x: hidden;
  }

  .hero::after { display: none; }
}
