:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #fafaf7;
  --paper-card: #ffffff;
  --rule: #e6e3dc;
  --footer-bg: #f1efe9;
  --sticky-bg: rgba(255,255,255,.97);
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --cta: #16a34a;
  --cta-dark: #15803d;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ebe8e1;
    --ink-soft: #9a9690;
    --paper: #14130f;
    --paper-card: #1c1b16;
    --rule: #2b2924;
    --footer-bg: #100f0c;
    --sticky-bg: rgba(28,27,22,.96);
    --accent: #f97316;
    --accent-dark: #c2410c;
    --cta: #22c55e;
    --cta-dark: #16a34a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #ebe8e1;
  --ink-soft: #9a9690;
  --paper: #14130f;
  --paper-card: #1c1b16;
  --rule: #2b2924;
  --footer-bg: #100f0c;
  --sticky-bg: rgba(28,27,22,.96);
  --accent: #f97316;
  --accent-dark: #c2410c;
  --cta: #22c55e;
  --cta-dark: #16a34a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Disclosure bar */
.disclosure-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  text-align: right;
  padding: 7px 22px;
  max-width: 720px;
  margin: 0 auto;
}
.disclosure-bar a { color: var(--ink-soft); text-decoration: underline; }

/* Masthead */
.masthead {
  background: var(--paper-card);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.masthead .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mast-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  color: var(--ink-soft);
  line-height: 0;
  border-radius: 4px;
  transition: color .15s ease;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle:focus { outline: none; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { pointer-events: none; }

/* Default (effective light): moon visible, sun hidden. */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

/* System-pref dark with no manual override: show sun, hide moon. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
}

/* Manual dark override: show sun, hide moon. */
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  flex: none;
}
.section-label {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* Article */
.article { padding: 32px 0 56px; }

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

.dek {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.byline {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.hero { margin: 0 0 30px; }
.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.hero figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 2px 0;
}

.lede::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.6em;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--accent);
}

p { margin: 0 0 1.1em; }

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2em 0 0.6em;
}

blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--accent);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}
.feature-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--cta);
  font-weight: 700;
  font-family: var(--sans);
}

/* CTA block */
.cta-block {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.cta-block.big { padding: 36px 22px; }

.cta-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.cta {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  padding: 16px 32px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(22,163,74,.35);
  transition: transform .08s ease, background .15s ease;
}
.cta:hover { background: var(--cta-dark); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta.small { padding: 11px 20px; font-size: 15px; }

.cta-fine {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* FAQ */
.faq { margin-top: 36px; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.faq summary {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: var(--ink-soft);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 10px 0 4px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sticky-bg);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule);
  padding: 10px 0;
  z-index: 50;
  box-shadow: 0 -4px 18px rgba(0,0,0,.06);
}
.sticky-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.sticky-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 520px) {
  .sticky-text { font-size: 12px; }
  .cta.small { padding: 10px 14px; font-size: 14px; }
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--rule);
  padding: 30px 0 90px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.site-footer p { margin: 0 0 14px; }
.site-footer .foot-nav { margin: 18px 0 10px; }
.site-footer .foot-nav a {
  color: var(--ink-soft);
  text-decoration: underline;
  margin-right: 4px;
}
.site-footer .copy { font-size: 12px; opacity: .8; }
