/* ==========================================================================
   The Opinion Ledger — shared stylesheet
   Ledger-paper editorial theme. Loaded once and cached across every page.
   ========================================================================== */

:root{
  --paper: #F2F5EE;
  --paper-2: #FBFBF7;
  --stripe: #E1EEE2;
  --ink: #16241D;
  --ink-soft: #3F5548;
  --rule: #BFD0C2;
  --emerald: #1E7A4C;
  --emerald-dark: #145C39;
  --stamp: #A4402B;
  --gold: #7E6218;
  --coin: #E3A812;
  --coin-dark: #9C6F0B;
  --pop: #2E9E63;
  --amber-bg: #FCF3DC;
  --amber-line: #D9A62A;
  --radius: 2px;
  --ledger-lines: repeating-linear-gradient(
    to bottom,
    var(--paper) 0px, var(--paper) 34px,
    var(--stripe) 34px, var(--stripe) 68px
  );
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body{
  margin: 0;
  background: var(--ledger-lines);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.55;
}

a{ color: var(--emerald-dark); }

/* Focus rings are colour-matched per surface so they always clear 3:1 against
   whatever sits behind them: deep emerald on the paper body, bright coin on
   the ink-dark header and footer. */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--emerald-dark);
  outline-offset: 2px;
}
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible{
  outline-color: var(--coin);
}

.wrap{ max-width: 920px; margin: 0 auto; padding: 0 20px; }
.mono{ font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.display{ font-family: 'Fraunces', Georgia, serif; }

/* Spacing utilities — used sparingly so content stays free of inline styles
   and the Content-Security-Policy does not need to allow them. */
.mt{ margin-top: 24px; }
.mt-l{ margin-top: 32px; }
.center-lede{ margin-left: auto; margin-right: auto; }
.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper-2);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 600;
  border: 2px solid var(--emerald-dark);
}
.skip-link:focus{ left: 8px; top: 8px; }

/* ---------- Header ---------- */
header.site-header{
  background: var(--ink);
  color: var(--paper-2);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 3px double var(--coin);
}
.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 920px;
  margin: 0 auto;
  gap: 16px;
}
.logo{
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--paper-2);
  text-decoration: none;
  white-space: nowrap;
}
.logo span{ color: #8FCBA4; }
nav.primary-nav{
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  align-items: center;
}
nav.primary-nav a{
  color: #D9E6DC;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
nav.primary-nav a:hover{ border-bottom-color: #8FCBA4; }
nav.primary-nav a[aria-current="page"]{
  color: #fff;
  border-bottom-color: var(--coin);
}
.cta-mini{
  background: var(--emerald);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--emerald-dark);
}
.cta-mini:hover{ background: var(--emerald-dark); }
.nav-toggle{ display: none; font-family: inherit; cursor: pointer; }

@media (max-width: 900px){
  nav.primary-nav{ display: none; }
  /* :not([hidden]) matters — the button ships hidden and is only revealed by
     site.js, so without JS it never appears as a dead control. */
  .nav-toggle:not([hidden]){
    display: inline-block;
    background: none;
    border: 1px solid #D9E6DC;
    color: #D9E6DC;
    padding: 6px 10px;
    border-radius: var(--radius);
    font-size: 0.85rem;
  }
  nav.primary-nav.open{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ink);
    padding: 14px 20px 20px;
    gap: 12px;
    border-bottom: 3px double var(--coin);
  }
}
@media (max-width: 460px){
  .cta-mini{ display: none; }
  .logo{ font-size: 1rem; }
}

/* ---------- Disclosure bar ---------- */
.disclosure-bar{
  background: var(--paper-2);
  border-bottom: 1px dashed var(--rule);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 7px 16px;
}

/* ---------- Breadcrumbs ---------- */
.crumbs{
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  padding: 9px 0;
}
.crumbs ol{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
}
.crumbs li::after{ content: "/"; margin-left: 8px; color: var(--rule); }
.crumbs li:last-child::after{ content: ""; }
.crumbs a{ color: var(--emerald-dark); text-decoration: none; }
.crumbs a:hover{ text-decoration: underline; }
.crumbs [aria-current="page"]{ color: var(--ink-soft); }

/* ---------- Hero (home) ---------- */
.hero{ padding: 56px 0 40px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero{ padding: 36px 0 30px; }
}
.eyebrow{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-dark);
  margin-bottom: 14px;
}
h1.headline{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--ink);
}
.sub{
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 26px;
}
.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.page-hero h1{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 30ch;
}
.page-hero .lede{ font-size: 1.05rem; }
.byline{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

/* ---------- Buttons ---------- */
.btn-stamp{
  display: inline-block;
  background: var(--emerald);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--emerald-dark);
  box-shadow: 3px 3px 0 var(--emerald-dark);
  transition: transform .12s ease, box-shadow .12s ease;
  font-family: inherit;
  cursor: pointer;
}
.btn-stamp:hover{ transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--emerald-dark); }
.btn-stamp:active{ transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--emerald-dark); }
.btn-ghost{
  display: inline-block;
  color: var(--emerald-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.btn-ghost:hover{ border-color: var(--emerald); }
.fine{ font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Receipt / ledger tape ---------- */
.receipt{
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 24px rgba(22,36,29,0.08);
  padding: 22px 20px 24px;
  position: relative;
  transform: rotate(-1deg);
}
.receipt::before{
  content: "";
  position: absolute;
  top: -9px; left: 0; right: 0;
  height: 18px;
  background-image: radial-gradient(circle, var(--paper) 5px, transparent 5.5px);
  background-size: 22px 18px;
  background-repeat: repeat-x;
  background-position: 8px 0;
}
.receipt-title{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.receipt-line{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.86rem;
  padding: 5px 0;
  opacity: 0;
  transform: translateY(4px);
  animation: line-in .4s ease forwards;
}
.receipt-line:nth-of-type(1){ animation-delay: .05s; }
.receipt-line:nth-of-type(2){ animation-delay: .20s; }
.receipt-line:nth-of-type(3){ animation-delay: .35s; }
.receipt-line:nth-of-type(4){ animation-delay: .50s; }
.receipt-line:nth-of-type(5){ animation-delay: .65s; }
.receipt-line.total{
  border-top: 1px dashed var(--rule);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--emerald-dark);
}
@keyframes line-in{ to{ opacity: 1; transform: translateY(0); } }
.receipt-note{
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* ---------- Sections ---------- */
main{ background: var(--paper-2); }
.block{ padding: 52px 0; border-bottom: 1px solid var(--rule); }
.block:last-child{ border-bottom: none; }
.block-head{ margin-bottom: 28px; }
.kicker{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
h2{
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.18;
}
h3{
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  margin: 30px 0 8px;
  line-height: 1.25;
}
.lede{ color: var(--ink-soft); max-width: 62ch; }

/* ---------- Prose ---------- */
.prose{ max-width: 68ch; }
.prose p{ margin: 0 0 16px; }
.prose ul, .prose ol{ margin: 0 0 18px; padding-left: 22px; }
.prose li{ margin-bottom: 8px; }
.prose li::marker{ color: var(--emerald); }
.prose strong{ color: var(--ink); }
.prose a{ text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose > p:first-child{ margin-top: 0; }

/* ---------- Facts card ---------- */
.facts-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px,1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 24px;
}
.fact{ background: var(--paper-2); padding: 18px 18px 16px; }
.fact-label{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.fact-value{
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  color: var(--emerald-dark);
}

/* ---------- Proof strip ---------- */
.proof-strip{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 14px;
  margin-top: 24px;
}
.proof-card{
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--pop);
  padding: 18px 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.proof-card:hover{ transform: translateY(-3px); box-shadow: 0 10px 18px rgba(22,36,29,0.10); }
.proof-num{
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.55rem;
  color: var(--emerald-dark);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.proof-num .star{ color: var(--coin-dark); font-size: 1.1rem; }
.proof-label{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Payment chips ---------- */
.paymethods{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.chip{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-size: 0.86rem;
  font-weight: 600;
}
.chip .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pop);
  flex: none;
}

/* ---------- Live badge ---------- */
.live-badge{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--emerald-dark);
  background: #E7F4EC;
  border: 1px solid #BFE0CC;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.live-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 0 rgba(46,158,99,.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(46,158,99,.5); }
  70%{ box-shadow: 0 0 0 7px rgba(46,158,99,0); }
  100%{ box-shadow: 0 0 0 0 rgba(46,158,99,0); }
}

/* ---------- Ledger rows ---------- */
.ledger-rows{ margin-top: 22px; border-top: 1px solid var(--rule); }
.ledger-row{
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px dashed var(--rule);
}
@media (max-width: 560px){
  .ledger-row{ grid-template-columns: 34px 1fr; }
  .ledger-row .amt{ grid-column: 2; }
}
.ledger-row .num{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--gold);
  font-weight: 600;
}
.ledger-row .desc strong{ display: block; font-size: 1.02rem; margin-bottom: 3px; }
.ledger-row .desc span{ color: var(--ink-soft); font-size: 0.94rem; }
.ledger-row .amt{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--ink-soft);
  font-size: 0.86rem;
  white-space: nowrap;
}

/* ---------- Callout ---------- */
.callout{
  margin-top: 26px;
  border: 1px solid var(--amber-line);
  padding: 16px 18px;
  background: var(--amber-bg);
}
.callout-tag{
  display: inline-block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coin-dark);
  border: 1px solid var(--amber-line);
  padding: 2px 8px;
  margin-bottom: 8px;
}
.callout p{ margin: 0 0 10px; color: var(--ink); font-size: 0.95rem; }
.callout p:last-child{ margin-bottom: 0; }

/* ---------- Data table ---------- */
.table-scroll{ overflow-x: auto; margin-top: 24px; }
table.ledger-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  min-width: 480px;
}
table.ledger-table caption{
  caption-side: top;
  text-align: left;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 8px;
}
table.ledger-table th,
table.ledger-table td{
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px dashed var(--rule);
  vertical-align: top;
}
table.ledger-table thead th{
  background: #EDF3EE;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
table.ledger-table tbody tr:last-child td{ border-bottom: none; }
table.ledger-table td.num{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--emerald-dark);
  white-space: nowrap;
}

/* ---------- Checklist ---------- */
.checklist{ list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 14px 16px;
}
.checklist .box{
  flex: none;
  width: 20px; height: 20px;
  border: 2px solid var(--emerald);
  margin-top: 2px;
  position: relative;
}
.checklist .box::after{
  content: "";
  position: absolute;
  left: 3px; top: -1px;
  width: 8px; height: 12px;
  border-right: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  transform: rotate(40deg);
}
.checklist strong{ display: block; margin-bottom: 2px; }
.checklist span{ color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Verdict box ---------- */
.verdict{
  margin-top: 26px;
  background: #E7F4EC;
  border: 1px solid #BFE0CC;
  border-left: 4px solid var(--emerald);
  padding: 20px 22px;
}
.verdict h3{ margin-top: 0; }
.verdict p:last-child{ margin-bottom: 0; }

/* ---------- Pros / cons ---------- */
.balance{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 16px;
  margin-top: 24px;
}
.balance-col{
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 18px 20px;
}
.balance-col h3{ margin: 0 0 10px; font-size: 1.05rem; }
.balance-col.plus{ border-top: 3px solid var(--pop); }
.balance-col.minus{ border-top: 3px solid var(--stamp); }
.balance-col ul{ margin: 0; padding-left: 20px; }
.balance-col li{ margin-bottom: 8px; color: var(--ink-soft); font-size: 0.93rem; }
.balance-col li:last-child{ margin-bottom: 0; }

/* ---------- Card grid (internal links) ---------- */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px;
  margin-top: 24px;
}
.card{
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(22,36,29,0.10);
  border-color: var(--emerald);
}
.card .card-kicker{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.card h3{
  font-size: 1.08rem;
  margin: 0 0 6px;
  color: var(--emerald-dark);
}
.card p{ margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
details.faq{
  border-bottom: 1px dashed var(--rule);
  padding: 14px 2px;
}
details.faq summary{
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
details.faq summary::-webkit-details-marker{ display: none; }
details.faq summary::after{
  content: "+";
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--emerald);
  font-weight: 700;
}
details.faq[open] summary::after{ content: "\2013"; }
details.faq p{ color: var(--ink-soft); margin: 10px 0 0; max-width: 68ch; }
details.faq p + p{ margin-top: 10px; }

/* ---------- Final CTA ---------- */
.final-cta{
  text-align: center;
  padding: 60px 20px 70px;
  background: var(--ledger-lines);
}
.stamp{
  display: inline-block;
  border: 4px solid var(--stamp);
  color: var(--stamp);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  transform: rotate(-4deg);
  margin-bottom: 22px;
  font-size: 0.85rem;
}
.final-cta h2{ margin-bottom: 14px; }
.final-cta .lede{ margin: 0 auto 26px; }

/* ---------- Form ---------- */
.form-grid{ display: grid; gap: 18px; max-width: 34rem; margin-top: 26px; }
.field label{
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select{
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 11px 13px;
}
.field input:hover, .field textarea:hover, .field select:hover{ border-color: var(--emerald); }
.field textarea{ min-height: 150px; resize: vertical; }
.field .hint{ font-size: 0.8rem; color: var(--ink-soft); margin: 6px 0 0; }
.hidden-field{ position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
footer.site-footer{
  background: var(--ink);
  color: #C9D6CC;
  padding: 40px 0 44px;
  font-size: 0.86rem;
}
footer.site-footer .wrap{ display: grid; gap: 22px; }
footer.site-footer a{ color: #9FD3B4; }
.footer-cols{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 700px){
  .footer-cols{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}
.footer-brand p{ margin: 8px 0 0; color: #A9BCAF; max-width: 34ch; }
.footer-cols h2{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8FCBA4;
  margin: 0 0 10px;
  font-weight: 600;
}
.footer-cols ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-legal{
  color: #8AA091;
  font-size: 0.78rem;
  max-width: 78ch;
  border-top: 1px solid #2C3F35;
  padding-top: 20px;
  margin: 0;
}
.footer-legal p{ margin: 0 0 10px; }
.footer-legal p:last-child{ margin-bottom: 0; }

/* ---------- 404 ---------- */
.error-page{ padding: 80px 0 90px; text-align: center; }
.error-page .code{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--stamp);
  text-transform: uppercase;
}
.error-page h1{
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 12px 0 14px;
}
.error-page .lede{ margin: 0 auto 28px; }
