/* ==========================================================================
   Umbrella Foundation — design tokens
   ========================================================================== */
:root {
  /* Color */
  --teal-deep: #174f55;
  --teal: #1d636a;
  --teal-pale: #e6f0ef;
  --ivory: #f7f5ef;
  --charcoal: #24292a;
  --muted: #657071;
  --orange: #d97b38;
  --white: #ffffff;
  --line: #e2dcce;
  --line-on-teal: rgba(255, 255, 255, 0.22);

  /* Type */
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;
  --space-3xl: 136px;

  /* Layout */
  --max: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--charcoal); color: var(--white);
  padding: 10px 16px; z-index: 30; font-family: var(--font-sans); font-size: .9rem;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ==========================================================================
   Type
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 20px;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); line-height: 1.14; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.4rem; margin-bottom: 10px; }

p { margin: 0 0 1em; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: none;
}
.eyebrow.on-teal { color: #f0c9a4; }
.eyebrow.on-teal::before { background: #f0c9a4; }

.hero-lede, .page-lede {
  max-width: 620px;
  font-size: 1.14rem;
  color: var(--muted);
  margin: 26px 0 0;
}

.prose-large { font-size: 1.09rem; color: var(--charcoal); }
.prose-large p { color: var(--muted); }
.prose-large p:first-child { margin-top: 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  color: var(--charcoal);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
}
.text-link:hover { color: var(--teal-deep); }
.text-link span { transition: transform .15s ease; }
.text-link:hover span { transform: translateX(3px); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--teal-deep);
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--teal-deep);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
}
.button:hover { background: var(--teal); border-color: var(--teal); }
.button.ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-on-teal);
}
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo { height: 110px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--orange); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--charcoal);
  padding: 9px 14px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 600;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: var(--space-2xl) 0 var(--space-2xl); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 76px;
  align-items: center;
}
.hero h1 { margin-bottom: 0; font-size: clamp(2.2rem, 3.95vw, 3.35rem); }
.hero h1 .line { display: block; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-panel {
  background: var(--teal-deep);
  color: var(--white);
  padding: 48px 42px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-panel .arcs {
  position: absolute;
  top: -60px;
  right: -90px;
  width: 340px;
  height: 340px;
  pointer-events: none;
}
.hero-panel .arcs svg { width: 100%; height: 100%; }
.hero-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.35;
  max-width: 360px;
}
.hero-quote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .82rem;
  color: #b9d3d0;
  letter-spacing: .02em;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--space-2xl) 0; }
.soft-section { background: var(--teal-pale); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.compact { max-width: 600px; }

.card-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--ivory); padding: 38px 34px; min-height: 260px; }
.soft-section .card { background: var(--white); }
.card-number {
  display: block;
  margin-bottom: 56px;
  font-family: var(--font-sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--teal);
  font-weight: 700;
}
.card p { color: var(--muted); margin-bottom: 0; }

.story-band { background: var(--teal-deep); color: var(--white); }
.story-grid { display: grid; grid-template-columns: .38fr 1fr; gap: 70px; align-items: start; }
.story-year {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  line-height: .9;
  color: #6f9d9c;
}
.story-band h2 { color: var(--white); }
.story-band p:not(.eyebrow) { max-width: 680px; color: #d7e5e3; font-size: 1.08rem; }
.story-band .text-link { color: var(--white); border-bottom-color: #f0c9a4; }

.closing-cta p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.closing-cta .button { margin-top: 20px; }

/* ==========================================================================
   Interior pages
   ========================================================================== */
.page-hero { padding: var(--space-2xl) 0 var(--space-xl); border-bottom: 1px solid var(--line); }
.mission-hero { padding-bottom: var(--space-2xl); text-align: center; }
.mission-hero .eyebrow { justify-content: center; }

.article-grid { display: grid; grid-template-columns: 150px minmax(0, 720px); gap: 70px; justify-content: center; }
.timeline-nav {
  display: flex; flex-direction: column; gap: 20px;
  font-family: var(--font-sans); font-size: .82rem;
  padding-top: 10px;
  position: sticky;
  top: 32px;
  align-self: start;
}
.timeline-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--line);
  transition: color .15s ease, border-color .15s ease;
}
.timeline-nav a:hover { color: var(--teal-deep); border-left-color: var(--teal); }
.timeline-nav a.active { color: var(--teal-deep); border-left-color: var(--orange); }

.prose { font-size: 1.06rem; }
.prose h2 {
  font-size: 1.9rem;
  margin: 56px 0 16px;
  color: var(--teal-deep);
  scroll-margin-top: 32px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--charcoal); }
.prose strong { color: var(--teal-deep); }

.principles-grid { border-top: 1px solid var(--line); }
.principles-grid > div {
  display: grid; grid-template-columns: 60px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.principles-grid span { font-family: var(--font-sans); color: var(--orange); font-size: .82rem; font-weight: 700; }
.principles-grid h3 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 400; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  color: var(--teal-deep);
  line-height: 1;
}
.stat-label { display: block; margin-top: 12px; font-family: var(--font-sans); font-size: .88rem; color: var(--muted); }

.grants-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.grants-category h3 {
  font-family: var(--font-sans);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.grants-list { list-style: none; margin: 0; padding: 0; }
.grants-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.grants-list li:last-child { border-bottom: none; }
.grants-list a {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  color: var(--charcoal);
}
.grants-list a:hover { color: var(--teal-deep); }
.grants-list span { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); }
.grants-footnote { margin: 44px 0 0; font-size: .88rem; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: var(--space-xl) 0; background: var(--white); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--font-serif); font-size: 1.4rem; color: var(--charcoal); }
.footer-grid p { color: var(--muted); margin: 8px 0 0; font-size: .93rem; }
.footer-meta { text-align: right; }
.footer-contact { margin-top: 20px; }
.footer-contact-label {
  display: block;
  font-family: var(--font-sans);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-contact a {
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.footer-contact a:hover,
.footer-contact a:focus-visible { color: var(--teal); border-bottom-color: var(--orange); }

.contact-note { max-width: 46ch; color: var(--muted); font-size: 1.02rem; margin: 0; }
.contact-note a {
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.contact-note a:hover,
.contact-note a:focus-visible { color: var(--teal); border-bottom-color: var(--orange); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 20px; right: 20px; top: 100px;
    background: var(--white); border: 1px solid var(--line);
    padding: 10px; flex-direction: column; align-items: stretch; gap: 0;
    box-shadow: 0 12px 28px rgba(23, 28, 25, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    font-weight: 500;
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-wrap { min-height: 98px; }
  .brand-logo { height: 62px; }

  .hero { padding: var(--space-xl) 0; }
  .hero-grid, .split, .story-grid, .article-grid, .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { min-height: 300px; }
  .card-grid.three, .grants-columns, .stat-row { grid-template-columns: 1fr; gap: 36px; }
  .timeline-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .footer-meta { text-align: left; }
  .section { padding: var(--space-xl) 0; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .card { min-height: auto; }
  .card-number { margin-bottom: 40px; }
  .brand-logo { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .text-link span { transition: none; }
}
