/* =========================================================
   DESIGN TOKENS — "Ledger & Growth" identity
   A financial-ledger aesthetic: deep forest green + antique
   gold on warm paper, serif authority + tabular mono numbers.
   ========================================================= */
:root {
  /* Color */
  --ink: #14261D;           /* near-black green-black for text */
  --forest: #0B3D2E;        /* primary brand — deep wealth green */
  --forest-dark: #082A20;
  --gold: #C9A227;          /* antique gold accent */
  --gold-light: #E4C766;
  --paper: #F7F4EC;         /* warm paper background */
  --paper-raised: #FFFFFF;
  --coral: #C0503A;         /* alerts / negative values */
  --line: #DCD5C2;          /* hairline borders on paper */
  --muted: #5B6B60;         /* secondary text */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Scale */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 1px 2px rgba(20,38,29,0.06), 0 8px 24px rgba(20,38,29,0.08);
  --shadow-lift: 0 2px 4px rgba(20,38,29,0.08), 0 16px 40px rgba(20,38,29,0.14);

  --container-max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest-dark);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--forest); }
.muted { color: var(--muted); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.btn-primary {
  background: var(--forest);
  color: var(--paper);
}
.btn-primary:hover { background: var(--forest-dark); box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover { background: rgba(11,61,46,0.06); }
.btn-gold {
  background: var(--gold);
  color: var(--forest-dark);
}
.btn-gold:hover { background: var(--gold-light); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--forest); color: #fff; padding: 10px 16px; z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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