:root {
  --bg: #F5F2EA;
  --ink: #29383C;
  --paper: #FFFEFA;
  --accent: #B9684D;
  --secondary: #668D84;
  --result: #293E43;
  --border: #D8D5CB;
  --muted: #76817C;
  --highlight: #E9DDBB;
  --max: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    rgba(41, 56, 60, 0.04) 27px,
    rgba(41, 56, 60, 0.04) 28px
  );
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--ink); }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.masthead {
  height: 68px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 254, 250, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
.wordmark {
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.15;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}
.site-nav { display: flex; align-items: center; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-left: 1px solid var(--border);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--border);
  min-height: 40px;
  padding: 0 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.section { padding: 44px 0; }
.section-label, .kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
.lede { max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono, .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 14px;
  min-height: 44px;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.error { color: var(--accent); min-height: 1.4em; font-size: 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.page-head { padding: 36px 0 8px; }
.article-wrap { width: min(100% - 32px, 760px); margin-inline: auto; padding: 40px 0 72px; }
.article-wrap p { max-width: 68ch; }
.faq { border-top: 1px solid var(--border); padding-top: 8px; }

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  font-size: 14px;
}
.footer-id { font-family: var(--serif); font-size: 18px; margin: 0 0 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-size: 13px; }
.footer-nav a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .masthead, .masthead-inner { height: auto; min-height: 68px; }
  .masthead-inner { padding: 10px 0; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; flex-direction: column; width: 100%; border-top: 1px solid var(--border); }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-left: 0; border-bottom: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
