:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #1d2a26;
  --muted: #5b6763;
  --line: #e6dfd4;
  --accent: #b04a27;
  --accent-ink: #ffffff;
  --deep: #1f3b33;
  --deep-ink: #f3efe8;
  --tile: #f1e7da;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 21px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--deep); color: var(--deep-ink); display: grid; place-items: center; font-size: 15px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.brand { white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

/* buttons */
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* sections */
section { padding: 80px 0; scroll-margin-top: 64px; }
.hero { padding: 88px 0 72px; }
.band { background: var(--tile); }
.dark { background: var(--deep); color: var(--deep-ink); }
.dark .lead, .dark .muted { color: #c9d3cf; }
.muted { color: var(--muted); }

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

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.free { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--deep); background: #e3eee9; padding: 4px 10px; border-radius: 999px; }
.card-link { text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-link .more { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--accent); }

.step-num { font-family: "Fraunces", Georgia, serif; font-size: 32px; color: var(--accent); line-height: 1; margin-bottom: 10px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.stat { border-top: 2px solid var(--accent); padding-top: 14px; }
.stat b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 34px; line-height: 1.1; margin-bottom: 6px; }

.quote { font-family: "Fraunces", Georgia, serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.35; max-width: 820px; }

.example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.example table { width: 100%; border-collapse: collapse; font-size: 15px; }
.example th, .example td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.example th { background: #f6f1ea; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.example tr:last-child td { border-bottom: 0; }
.no { color: #b23b2a; font-weight: 600; }
.yes { color: #2f6b52; font-weight: 600; }

.about { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; }
.avatar { width: 160px; height: 160px; border-radius: 50%; background: var(--deep); color: var(--deep-ink); display: grid; place-items: center; font-family: "Fraunces", Georgia, serif; font-size: 48px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar img + span { display: none; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.cta { text-align: center; }
.cta .lead { margin: 0 auto; }
.cta .btn-row { justify-content: center; }

footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-2, .grid-3, .stat-row { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; font-size: 14px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; font-size: 13px; }
  .nav-links .hide-sm { display: none; }
  .about { grid-template-columns: 1fr; text-align: left; }
  .avatar { width: 112px; height: 112px; font-size: 36px; }
  .example th, .example td { padding: 10px 12px; font-size: 14px; }
  .btn { width: 100%; text-align: center; }
}

/* accessibility */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card-link, .btn { transition: none; } }

/* simple pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose p, .prose li { color: var(--muted); }
