:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #171d1a;
  --ink-soft: #4b544e;
  --ink-faint: #838d86;
  --line: #e2ddd0;
  --accent: #047857;
  --accent-ink: #ffffff;
  --accent-soft: #d1fae5;
  --gold: #b3822f;
  --gold-soft: #f6ecd8;
  --danger: #a5372c;
  --danger-soft: #f6e4e0;
  --shadow: 0 1px 2px rgba(23, 29, 26, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1512;
    --surface: #171f1b;
    --ink: #eef1ec;
    --ink-soft: #aab5ae;
    --ink-faint: #707b74;
    --line: #2a352e;
    --accent: #34d399;
    --accent-ink: #022c22;
    --accent-soft: #0d2e22;
    --gold: #d9ab5c;
    --gold-soft: #2b2413;
    --danger: #e08b7c;
    --danger-soft: #2c1a17;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1512;
  --surface: #171f1b;
  --ink: #eef1ec;
  --ink-soft: #aab5ae;
  --ink-faint: #707b74;
  --line: #2a352e;
  --accent: #34d399;
  --accent-ink: #022c22;
  --accent-soft: #0d2e22;
  --gold: #d9ab5c;
  --gold-soft: #2b2413;
  --danger: #e08b7c;
  --danger-soft: #2c1a17;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
:root[data-theme="light"] {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #171d1a;
  --ink-soft: #4b544e;
  --ink-faint: #838d86;
  --line: #e2ddd0;
  --accent: #047857;
  --accent-ink: #ffffff;
  --accent-soft: #d1fae5;
  --gold: #b3822f;
  --gold-soft: #f6ecd8;
  --danger: #a5372c;
  --danger-soft: #f6e4e0;
  --shadow: 0 1px 2px rgba(23, 29, 26, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  gap: 0.5rem;
  font-family: Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark-icon { width: 2.1rem; height: 2.1rem; flex: 0 0 auto; display: block; }
nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
nav.primary-nav a.navlink {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
}
nav.primary-nav a.navlink:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-faint); }

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 31px,
    var(--line) 31px,
    var(--line) 32px
  );
  background-position: 0 6.5rem;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.eyebrow {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero h1 { font-size: 2.7rem; max-width: 15ch; margin-bottom: 1.1rem; }
.hero .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 2rem; }
.hero .cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero .cta-row .btn { padding: 0.75rem 1.4rem; font-size: 0.98rem; }

.ledger-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.ledger-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .status {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
}
.ledger-row .status.pending { background: var(--gold-soft); color: var(--gold); }

/* Sections */
section { padding: 4.5rem 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 56ch; margin-bottom: 2.5rem; }
.section-head .eyebrow { margin-bottom: 0.6rem; }
.section-head h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1.75rem;
  background: var(--bg);
}
.service-card .kicker {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
  display: block;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1rem; }
.service-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.92rem; }
.service-card li { margin-bottom: 0.3rem; }

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.process-list li { padding-left: 0; }
.process-num {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}
.process-list h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.process-list p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: baseline; gap: 0.6rem; }
.trust-item .num {
  font-family: Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.6rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.trust-item .label { font-size: 0.85rem; color: var(--ink-soft); max-width: 16ch; }

.security-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
}
.security-note p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.security-note strong { color: var(--ink); }

/* FAQ */
.faq-list { max-width: 68ch; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: ui-monospace, monospace;
  color: var(--accent);
  font-size: 1.2rem;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list p { color: var(--ink-soft); font-size: 0.94rem; margin: 0.75rem 0 0; max-width: 60ch; }

/* Contact / CTA */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--bg); font-size: 1.6rem; max-width: 20ch; }
.cta-band p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin: 0.5rem 0 0; max-width: 40ch; }
.cta-band .btn-primary { background: var(--gold); color: #241a06; }
.cta-band .btn-primary:hover { background: color-mix(in srgb, var(--gold) 88%, white); }

/* Contact form */
.contact-form { max-width: 480px; margin-top: 2.5rem; }
.contact-field { margin-bottom: 1.1rem; }
.contact-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.contact-field input, .contact-field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
}
.contact-field input:focus, .contact-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.contact-form .btn-primary { padding: 0.7rem 1.3rem; }
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-alert {
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}
.contact-alert-error { background: var(--danger-soft); color: var(--danger); }
.contact-alert-success { background: var(--accent-soft); color: var(--accent); }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
footer.site-footer .legal-links { display: flex; gap: 1.3rem; }
footer.site-footer a { font-size: 0.85rem; color: var(--ink-faint); text-decoration: none; }
footer.site-footer a:hover { color: var(--ink-soft); }
.disclosure { font-size: 0.8rem; color: var(--ink-faint); max-width: 70ch; margin-top: 1rem; }

/* Mobile nav */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .trust-strip { gap: 1.5rem; }
}

@media (max-width: 620px) {
  nav.primary-nav .navlink { display: none; }
  nav.primary-nav.nav-open .navlink {
    display: block;
    width: 100%;
  }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    color: var(--ink);
  }
  nav.primary-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
  }
  nav.primary-nav.nav-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
  }
  .hero h1 { font-size: 2.1rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Legal / article pages */
.legal-page { padding: 4rem 0 5rem; }
.legal-page .wrap { max-width: 720px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal-page .updated { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 2.5rem; display: block; }
.legal-page h2 { font-size: 1.15rem; margin: 2.25rem 0 0.75rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 0.96rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page a { color: var(--accent); }
