/* ============================================================
   styles.css
   Shared base for every page: design tokens, typography,
   buttons, header, footer, and the reveal-on-scroll animation.

   Page-specific rules live in css/<page>.css, which each page
   loads AFTER this file so its rules win on ties.
   ============================================================ */

:root {
    --c-red: #d72e1f;
    --c-red-deep: #a81910;
    --c-red-bright: #ee4631;
    --c-coral: #ec5237;
    --c-green: #1f8f3e;
    --c-green-deep: #136a2b;
    --c-green-soft: #57b870;
    --c-green-pale: #e6f1e3;
    --c-paper: #f7f3ec;
    --c-paper-deep: #ede2c7;
    --c-cream: #faf4e8;
    --c-cream-warm: #f1e7d1;
    --c-ink: #1a1410;
    --c-ink-soft: #3d342a;
    --c-muted: #7a6a5a;
    --c-line: #e3d8c1;
    --radius-pill: 999px;
    --radius-md: 14px;
    --radius-lg: 26px;
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 56px);
    --t-fast: 0.2s ease;
    --t-med: 0.45s cubic-bezier(.4,0,.2,1);
  }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

img { max-width: 100%; display: block; height: auto; }

a { color: var(--c-green); text-decoration: none; transition: color var(--t-fast); }

a:hover { color: var(--c-red); }

button { font: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.4em; color: var(--c-ink); }

h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -0.025em; }

h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }

h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--c-ink-soft); }

::selection { background: var(--c-green); color: #fff; }

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

section { padding: clamp(48px, 6vw, 80px) 0; position: relative; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--c-green);
    margin-bottom: 22px;
  }

.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--c-green); }

/* Buttons */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 30px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: 0.95rem;
    transition: all var(--t-med);
    border: 2px solid transparent;
    white-space: nowrap;
  }

.btn-primary { background: var(--c-red); color: #fff; box-shadow: 0 10px 24px rgba(215,46,31,0.28); }

.btn-primary:hover { background: var(--c-red-deep); color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }

.btn-outline:hover { background: var(--c-ink); color: #fff; }

.btn .arrow { transition: transform var(--t-med); }

.btn:hover .arrow { transform: translateX(4px); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

/* The header is already an inset pill with its own padding; the container's
   gutter on top of that squeezed the nav row and pushed the menu button out. */
.site-header > .container { padding: 0; max-width: none; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--c-ink); }

.brand img { width: 48px; height: 48px; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-text strong { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 800; color: var(--c-red-deep); }

.brand-text span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-green); font-weight: 700; }

.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }

.nav-links li { white-space: nowrap; }

.nav-links a {
    display: inline-block; color: var(--c-ink); font-weight: 600; font-size: 0.92rem;
    padding: 10px 16px; border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #fff 0%, #f3e8d0 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.95),
      inset 0 -1px 0 rgba(26,20,16,0.06),
      0 2px 0 rgba(31,143,62,0.18),
      0 4px 10px rgba(26,20,16,0.10);
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
  }

.nav-links a:hover { color: var(--c-red); transform: translateY(-2px); }

.nav-links a.active { background: linear-gradient(180deg, var(--c-green) 0%, var(--c-green-deep) 100%); color: #fff; }

.nav-actions { display: flex; gap: 14px; }

.nav-actions .btn { padding: 12px 22px; font-size: 0.85rem; }

.nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: 50%;
    background: var(--c-ink); color: #fff;
    align-items: center; justify-content: center;
  }

/* On phones the brand + Donate + menu button together overflow the header pill
   and push the menu button off the right edge. Tighten them so the row fits.
   Selectors are scoped to .site-header so they outrank the per-page brand
   sizing in the page stylesheets, which load after this file. */
@media (max-width: 560px) {
    .site-header .nav { gap: 12px; }
    .site-header .brand img { width: 38px; height: 38px; }
    .site-header .brand-text strong { font-size: 0.98rem; }
    .site-header .brand-text span { font-size: 0.55rem; letter-spacing: 0.14em; }
    .site-header .nav-actions { gap: 8px; }
    .site-header .nav-actions .btn { padding: 10px 16px; font-size: 0.78rem; }
  }

@media (max-width: 400px) {
    .site-header .nav { gap: 8px; }
    .site-header .brand { gap: 8px; }
    .site-header .brand img { width: 34px; height: 34px; }
    .site-header .brand-text strong { font-size: 0.86rem; }
    .site-header .brand-text span { font-size: 0.46rem; letter-spacing: 0.1em; }
    .site-header .nav-actions { gap: 6px; }
    .site-header .nav-actions .btn { padding: 9px 12px; font-size: 0.72rem; }
    /* Drop the arrow so "Donate" keeps its label instead of crowding the brand. */
    .site-header .nav-actions .btn .arrow { display: none; }
    .site-header .nav-toggle { width: 38px; height: 38px; }
    /* Keep the brand from being squeezed under the Donate button. */
    .site-header .brand { flex-shrink: 0; }
    .site-header .brand-text { min-width: 0; }
  }

/* Smallest phones (iPhone SE and similar): the wordmark no longer fits beside
   Donate + menu, so the logo alone carries the brand. */
@media (max-width: 340px) {
    .site-header .brand-text { display: none; }
  }

.page-hero .container { position: relative; }

.page-hero h1 em { color: var(--c-red); font-style: italic; }

.page-hero .lede { color: var(--c-ink-soft); font-size: clamp(1.08rem, 1.5vw, 1.3rem); max-width: 56ch; }

.breadcrumb {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--c-muted); margin-bottom: 22px; font-weight: 600;
  }

.breadcrumb a { color: var(--c-ink); }

.breadcrumb a:hover { color: var(--c-red); }

.breadcrumb .sep { color: var(--c-line); }

/* Footer */
  .site-footer {
    background: var(--c-paper-deep);
    color: var(--c-ink-soft);
    padding: 70px 0 26px;
    border-top: 6px solid var(--c-green);
  }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
  }

.site-footer h4 {
    color: var(--c-ink); font-family: 'Inter', sans-serif;
    font-size: 0.78rem; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 700;
    margin-bottom: 18px; position: relative; padding-bottom: 10px;
  }

.site-footer h4::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 2px; background: var(--c-red);
  }

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer ul li { margin-bottom: 8px; color: var(--c-ink-soft); font-size: 0.93rem; }

.site-footer ul a { color: var(--c-ink-soft); }

.site-footer ul a:hover { color: var(--c-red); }

.footer-brand p { font-size: 0.92rem; margin-top: 14px; }

.socials { display: flex; gap: 10px; margin-top: 18px; }

.socials a {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--c-green); color: #fff;
    display: grid; place-items: center;
    transition: background var(--t-fast);
  }

.socials a:hover { background: var(--c-red); }

.socials svg { width: 18px; height: 18px; }

.footer-bottom {
    padding-top: 24px; border-top: 1px solid rgba(26,20,16,0.12);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    font-size: 0.82rem; color: var(--c-muted);
  }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
