/* Why Money Matters — brand stylesheet.
   Bold civic statement: pure-white surface, near-black ink, one deep green
   accent. Archivo (grotesque display) + Spectral (humanist serif body).
   Hand-written, no framework, no build step. Light theme by decision. */

/* ---- Fonts (self-hosted; no third-party requests) --------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/Archivo-600_800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/Archivo-600_800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Spectral-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Spectral-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Spectral-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Spectral-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Spectral-400i-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Spectral-400i-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ----------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Palette (OKLCH). White surface; ink near-black with a faint green cast;
     one deep green carries the whole accent. */
  --bg: oklch(1 0 0);
  --ink: oklch(0.23 0.012 152);
  --ink-soft: oklch(0.43 0.014 152);   /* ~5:1 on white — AA body */
  --green: oklch(0.43 0.112 152);      /* links, numerals, rules — AA body */
  --green-deep: oklch(0.30 0.072 152); /* footer field */
  --on-green: oklch(0.97 0.012 152);   /* text on deep green */
  --rule: oklch(0.9 0.016 152);
  --rule-strong: oklch(0.82 0.02 152);
  --wash: oklch(0.975 0.012 152);      /* faint tint, used sparingly */
  --focus: oklch(0.55 0.16 152);

  /* Type */
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Spectral", ui-serif, Georgia, "Times New Roman", serif;

  --step-body: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem);
  --step-lede: clamp(1.35rem, 1.14rem + 1vw, 1.85rem);
  --step-h2:   clamp(1.5rem, 1.25rem + 1.1vw, 2.05rem);
  --step-display: clamp(2.35rem, 1.4rem + 5.2vw, 5.25rem);
  --step-num: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  --step-small: 0.92rem;

  /* Space */
  --measure: clamp(40rem, 27rem + 23vw, 52rem); /* ~66ch on mobile, ~76ch on wide desktop */
  --gutter: clamp(1.25rem, 0.8rem + 3vw, 3rem);
  --flow: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem);
  --section-gap: clamp(3.5rem, 2rem + 6vw, 7rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quart */
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-body);
  line-height: 1.68;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

::selection { background: var(--green); color: var(--bg); }

a { color: var(--green); text-underline-offset: 0.18em; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-small);
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus-visible { top: 0.75rem; }

/* ---- Shell ------------------------------------------------------------ */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Masthead --------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-block: clamp(1.1rem, 0.8rem + 1vw, 1.8rem);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark__seal {
  display: grid;
  place-items: center;
  inline-size: 1.7rem;
  block-size: 1.7rem;
  border-radius: 5px;
  background: var(--green-deep);
  color: var(--on-green);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}
.wordmark__text { white-space: nowrap; }

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-small);
  text-decoration: none;
  color: var(--ink);
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease),
              background-color 0.22s var(--ease);
}
.lang-switch__globe { color: var(--green); transition: transform 0.4s var(--ease); }
.lang-switch:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--wash);
}
.lang-switch:hover .lang-switch__globe { transform: rotate(28deg); }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 1.5rem + 7vw, 6.5rem) 0; }

.hero__title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-display);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
  max-width: 15ch;
}

.rule {
  inline-size: clamp(3.5rem, 8vw, 5.5rem);
  block-size: 4px;
  background: var(--green);
  border: 0;
  margin-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: 2px;
}

.hero__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-lede);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---- Prose ------------------------------------------------------------ */
.prose {
  margin-block-start: var(--section-gap);
}
.prose > * + * { margin-block-start: var(--flow); }
.prose p { text-wrap: pretty; hyphens: auto; }
.prose a {
  color: var(--green);
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease);
}

ul {
  list-style: none;
  padding-inline-start: 0;
  margin-block: var(--flow);
}

li {
  margin-block-start: 0.5em;
  padding-inline-start: 1.2em;
  position: relative;
}

li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--green);
}

li:first-child {
  margin-block-start: 0;
}

.principle__body {
  padding-block: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}
.principle__body:first-of-type {
  margin-block-start: var(--section-gap);
}

.principle__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
.principle__title + p { margin-block-start: 0.75rem; }
.principle__body p { color: var(--ink-soft); text-wrap: pretty; hyphens: auto; }
.principle__body p + p { margin-block-start: var(--flow); }

/* ---- Closing statement ------------------------------------------------ */
.closing__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-lede);
  line-height: 1.4;
  text-wrap: pretty;
  max-width: 26ch;
}
.closing__sign {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-small);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

/* ---- Footer ----------------------------------------------------------- */
.colophon {
  margin-block-start: var(--section-gap);
  background: var(--green-deep);
  color: var(--on-green);
}
.colophon__inner {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.colophon__brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.colophon__note {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-small);
  color: color-mix(in oklab, var(--on-green) 82%, var(--green-deep));
  max-width: 34ch;
  line-height: 1.5;
}

/* ---- Motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

