/* MJ Axiom — mjaxiom.com
   Tokens per MJ Axiom Design System (Claude Design) + DESIGN.md
   Brand-fidelity pass 2026-07-07: tokens, shadows, easing, and type
   weights aligned verbatim to tokens/*.css in the design system. */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/manrope-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/ibm-plex-serif-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/dm-serif-display-italic.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Mono'; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/roboto-mono-400.woff2') format('woff2'); }

/* ---------- Tokens (verbatim from tokens/colors.css, spacing.css, typography.css) ---------- */
:root {
  /* primary arc */
  --teal: #285e5a;          /* teal-600 */
  --teal-deep: #1f4b48;     /* teal-700 pressed */
  --teal-soft: #d6e4e2;     /* teal-100 */
  --teal-wash: #ecf3f2;     /* teal-50 */
  --ochre: #b26e2f;         /* ochre-500 */
  --ochre-deep: #97591f;    /* ochre-600 pressed */
  --green: #385238;         /* forest-600 */
  --green-soft: #dce4da;    /* forest-100 */

  /* canvas + utility */
  --sandstone: #f7f2e4;     /* sandstone-100 */
  --sandstone-lt: #fdfbf5;  /* sandstone-50 */
  --sand-line: #ddd2b8;     /* sandstone-300 hairline */
  --pine: #142820;          /* pine-950 */
  --white: #ffffff;
  --eucalyptus: #a8bea6;    /* eucalyptus-300 — muted text on dark */
  --terracotta: #a0512d;    /* terracotta-500 accent */

  /* text (charcoal/ink ramp) */
  --ink: #2c3635;           /* charcoal-900 — headings */
  --ink-soft: #44514f;      /* ink-700 — body */
  --ink-muted: #6b7976;     /* ink-500 — captions */
  --text-on-dark: #f7f2e4;  /* sandstone-100 */

  --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-label: 'Space Grotesk', 'Manrope', sans-serif;
  --font-quote: 'IBM Plex Serif', Georgia, serif;
  --font-tagline: 'DM Serif Display', Georgia, serif;
  --font-data: 'Roboto Mono', ui-monospace, monospace;

  --leaf-radius: 4px 22px 4px 22px;
  --radius-sm: 8px;

  /* warm-tinted low shadows (tokens/spacing.css) */
  --shadow-sm: 0 2px 6px rgba(20, 40, 32, 0.07);
  --shadow-md: 0 6px 18px rgba(20, 40, 32, 0.09);

  --max-w: 1200px;
  --section-pad: 96px;

  /* motion (tokens/spacing.css) */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);      /* ease-standard */
  --ease-emphasis: cubic-bezier(0.34, 1.2, 0.64, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--sandstone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); transition: color var(--dur-fast) var(--ease); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--pine); color: var(--white); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-deep); /* ochre-600 — ochre-500 fails AA at label size on sandstone */
  display: block;
  margin-bottom: 0.875rem;
}
.dark .eyebrow { color: #d9a468; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad) 0; }
.section-lede { max-width: 46rem; margin-top: 1.25rem; color: var(--ink-soft); font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.dark .btn-outline { border-color: var(--sandstone); color: var(--sandstone); }
.dark .btn-outline:hover { background: var(--sandstone); color: var(--pine); }
.btn-ochre { background: var(--ochre-deep); color: var(--white); } /* ochre-600 for AA white-on-fill */
.btn-ochre:hover { background: var(--terracotta); }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 228, 0.92);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--sand-line);
}
.nav {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  min-height: 76px;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img, .brand svg { height: 34px; width: auto; transition: transform var(--dur-base) var(--ease-emphasis); }
.brand:hover img, .brand:hover svg { transform: rotate(-6deg) scale(1.06); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a:not(.btn) {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
  color: var(--ink); text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--teal); }
.nav-links a[aria-current="page"] { color: var(--teal); }
.nav-donate { color: var(--ochre-deep) !important; }

/* ---------- Hero ---------- */
.hero {
  /* the system's single gradient — token colors only */
  background: linear-gradient(135deg, var(--sandstone) 0%, var(--teal-wash) 55%, var(--green-soft) 100%);
  padding: clamp(72px, 10vw, 128px) 0;
  overflow: hidden;
}
.hero .eyebrow { color: var(--teal); }
.hero p.lede { max-width: 42rem; font-size: 1.1875rem; margin: 1.5rem 0 2.25rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card {
  background: var(--white);
  border-radius: var(--leaf-radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
  border-top: 4px solid var(--teal);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card p { color: var(--ink-soft); margin-top: 0.6rem; }
.card .num {
  font-family: var(--font-label); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em;
  color: var(--ink-muted); display: block; margin-bottom: 0.75rem;
}
.card-ochre { border-top-color: var(--ochre); }
.card-teal { border-top-color: var(--teal); }
.card-green { border-top-color: var(--green); }
.card .tagline {
  font-family: var(--font-tagline); font-style: italic; font-size: 1.3rem;
  color: var(--teal); display: block; margin: 0.35rem 0 0.5rem;
}
.card-icon { width: 44px; height: 44px; margin-bottom: 1rem; }
.card-ochre .card-icon { color: var(--ochre); }
.card-teal .card-icon { color: var(--teal); }
.card-green .card-icon { color: var(--green); }

/* ---------- Dark bands ---------- */
.dark { background: var(--pine); color: var(--text-on-dark); }
.dark h2, .dark h3 { color: var(--white); }
.dark p { color: var(--eucalyptus); }
.dark .section-lede { color: var(--eucalyptus); }
.statement { font-family: var(--font-quote); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.6; color: var(--text-on-dark) !important; }
.statement strong { color: var(--white); font-family: var(--font-display); font-weight: 800; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

/* ---------- Two-state ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.split .panel {
  background: var(--white); border-radius: var(--leaf-radius);
  box-shadow: var(--shadow-sm); padding: 2rem 1.75rem;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.split .panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.panel-ochre { border-left: 4px solid var(--ochre); }
.panel-teal { border-left: 4px solid var(--teal); }
.panel .where {
  font-family: var(--font-label); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted);
}

/* ---------- Legitimacy strip ---------- */
.legit { background: var(--white); border-block: 1px solid var(--sand-line); padding: 56px 0; }
.legit h2 { font-size: 1.35rem; margin-bottom: 1.75rem; }
.legit ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; }
.legit li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); }
.legit svg { flex: none; width: 22px; height: 22px; stroke: var(--green); margin-top: 2px; }

/* ---------- Partner / illustration panel ---------- */
.partner-card {
  display: grid; grid-template-columns: 2fr 3fr; gap: 0;
  background: var(--white); border-radius: var(--leaf-radius);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-top: 3rem;
}
.illus-panel {
  display: flex; align-items: stretch; justify-content: center; min-height: 260px;
  background: var(--green-soft);
}
.illus-panel img { width: 100%; height: 100%; object-fit: cover; }
.partner-body { padding: 2.25rem; }
.partner-body p { color: var(--ink-soft); }
.partner-body p + p { margin-top: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; list-style: none; }
.tags li {
  font-family: var(--font-label); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green);
  border: 1px solid var(--green); border-radius: 999px; padding: 0.3rem 0.8rem;
}

/* ---------- Board ---------- */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.board-card {
  background: var(--white); border-radius: var(--leaf-radius);
  box-shadow: var(--shadow-sm); padding: 2rem 1.75rem;
}
.avatar {
  width: 84px; height: 84px; border-radius: 4px 18px 4px 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  color: var(--white); margin-bottom: 1.25rem;
}
.avatar-teal { background: var(--teal); }
.avatar-ochre { background: var(--ochre); }
.avatar-green { background: var(--green); }
.board-card .role { font-family: var(--font-label); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); display: block; margin: 0.2rem 0 0.9rem; }
.board-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: 1rem; }
form .field { margin-bottom: 1.15rem; }
form label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--white);
}
form input, form textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; font-size: 1rem;
  border: 1px solid #3c554a; border-radius: var(--radius-sm);
  background: #1d3329; color: var(--white);
  transition: border-color var(--dur-fast) var(--ease);
}
form input:hover, form textarea:hover { border-color: #567569; }
form input::placeholder, form textarea::placeholder { color: #8fa197; }
form button { margin-top: 0.5rem; }
.privacy-note { font-size: 0.85rem; color: var(--eucalyptus); margin-top: 1rem; }
.privacy-note a { color: var(--text-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.privacy-note a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: var(--eucalyptus); padding: 56px 0 40px; border-top: 1px solid #24413a; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; }
.site-footer .brand-name { color: var(--white); }
.site-footer .tagline { font-family: var(--font-tagline); font-style: italic; color: var(--text-on-dark); margin-top: 0.5rem; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #24413a; font-size: 0.875rem; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Long-form (programs) ---------- */
.initiative { margin-top: 3.5rem; max-width: 50rem; }
.initiative h3 { font-size: 1.5rem; font-weight: 700; padding-top: 1rem; border-top: 4px solid var(--teal); }
.initiative.i-ochre h3 { border-top-color: var(--ochre); }
.initiative.i-green h3 { border-top-color: var(--green); }
.initiative h4 { font-family: var(--font-label); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 1.4rem 0 0.3rem; }
.initiative .spot { width: 64px; height: 64px; margin: 1.25rem 0 0.25rem; }
.i-ochre .spot { color: var(--ochre); }
.initiative:not(.i-ochre):not(.i-green) .spot { color: var(--teal); }
.i-green .spot { color: var(--green); }
.checklist { list-style: none; margin-top: 1.5rem; }
.checklist li { display: flex; gap: 0.7rem; margin-bottom: 0.7rem; color: var(--ink-soft); }
.checklist svg { flex: none; width: 20px; height: 20px; stroke: var(--green); margin-top: 4px; }

/* ---------- Privacy page ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 0.9rem; }
.prose .effective { font-family: var(--font-data); font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise var(--dur-slow) var(--ease) forwards; }
  .rise:nth-child(2) { animation-delay: 90ms; }
  .rise:nth-child(3) { animation-delay: 180ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art svg { max-width: 360px; }
  .card-grid, .board-grid { grid-template-columns: 1fr; }
  .legit ul { grid-template-columns: 1fr; gap: 1rem; }
  .mv-grid, .split, .contact-grid, .partner-card { grid-template-columns: 1fr; }
  .illus-panel { min-height: 200px; }
  .nav { flex-wrap: wrap; gap: 0.75rem 1.25rem; padding-block: 0.75rem; }
  .nav-links { flex-wrap: wrap; gap: 0.75rem 1.1rem; }
}
@media (max-width: 560px) {
  .btn { padding: 0.75rem 1.5rem; }
}
