/* ===== Tokens ===== */
:root{
  --paper: oklch(0.98 0.006 80);
  --paper-2: oklch(0.962 0.009 75);
  --ink: oklch(0.22 0.02 40);
  --ink-soft: oklch(0.47 0.016 40);
  --ink-faint: oklch(0.62 0.012 40);
  --line: oklch(0.885 0.01 60);
  --accent: oklch(0.40 0.13 25);
  --accent-2: oklch(0.34 0.12 25);
  --accent-soft: oklch(0.94 0.028 30);
  --accent-ink: oklch(0.985 0.006 30);
  --container: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
[hidden]{ display: none !important; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3{
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
p{ margin: 0; }
ul{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent-2); }
button{ font-family: inherit; }

/* ===== Layout ===== */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.section{ padding: 72px 0; }
.section-tight{ padding: 48px 0; }
.section-alt{ background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.border-top{ border-top: 1px solid var(--line); }
.border-bottom{ border-bottom: 1px solid var(--line); }

.hero-title{
  font-size: clamp(28px, 3.6vw + 8px, 42px);
  line-height: 1.2;
  white-space: normal;
}
@media (min-width: 880px){
  .hero-title{ white-space: nowrap; }
}

.eyebrow{
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.breadcrumb{ font-size: 13.5px; color: var(--ink-faint); }

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  background: none;
}
.btn-primary{ background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover{ background: var(--accent-2); color: var(--accent-ink); }
.btn-outline{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover{ border-color: var(--ink-faint); color: var(--ink); }
.btn-sm{ padding: 11px 22px; font-size: 14px; }
.btn-block{ width: 100%; justify-content: space-between; }

/* ===== Sticky top (utility bar + header) ===== */
.page-top{
  position: sticky;
  top: 0;
  z-index: 50;
}

.util-bar{
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.util-bar-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 6px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.font-size-controls{ display: flex; align-items: center; gap: 6px; }
.font-size-controls span{
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-right: 2px;
  letter-spacing: .03em;
}
.font-size-btn{
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  line-height: 1;
  padding: 0;
}
.font-size-btn:hover{ background: var(--paper-2); color: var(--ink); border-color: var(--ink-faint); }
.font-size-btn[data-font-dec]{ font-size: 10px; }
.font-size-btn[data-font-reset]{ font-size: 12px; }
.font-size-btn[data-font-inc]{ font-size: 14px; }

/* ===== Header / Nav ===== */
.site-header{
  position: relative;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  gap: 24px;
}
.brand{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-text{ line-height: 1.15; }
.brand-name{ font-family: 'Newsreader', serif; font-size: 26px; font-weight: 700; }
.brand-sub{ font-size: 11px; color: var(--ink-faint); letter-spacing: .04em; }

.nav-links{ display: flex; gap: 20px; flex-wrap: wrap; }
.navlink{
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 6px 0;
}
.navlink:hover{ color: var(--ink); }
.navlink.active{ color: var(--ink); font-weight: 700; }

.disabled{
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-toggle{
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle svg{ display: block; }

.nav-dropdown{ position: relative; }
.nav-dropdown-trigger{ display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger svg{ transition: transform .15s ease; }
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg{ transform: rotate(180deg); }
.nav-dropdown-menu{
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a{
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover{ background: var(--paper-2); color: var(--ink); }
.nav-dropdown-menu a.active{ color: var(--accent); font-weight: 600; }

/* ===== Grids ===== */
.grid{ display: grid; gap: 24px; }
.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }

.divider-grid{
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.divider-grid > *{ background: var(--paper); padding: 32px; }

.bordered-list{ border-top: 1px solid var(--line); }
.bordered-list > *{ border-bottom: 1px solid var(--line); }

/* ===== Components ===== */
.stat{ padding-right: 24px; border-right: 1px solid var(--line); }
.stat:last-child{ border-right: none; padding-right: 0; }
.stat-num{ font-family: 'Newsreader', serif; font-size: 38px; }
.stat-label{ font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

.icon-box{ width: 100%; aspect-ratio: 1; background: oklch(0.9 0.012 60); border: 1px solid var(--line); }

.callout{ padding: 18px 22px; background: var(--paper-2); border-left: 2px solid var(--accent); }

.org-card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 260px;
}
.org-logo{
  width: 100%;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  padding: 0 6px;
}
.org-logo img{
  max-width: 195px;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.org-name{
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

.field{
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
label{ font-size: 13px; color: var(--ink-soft); font-weight: 600; display: block; margin-bottom: 8px; }

/* ===== Footer ===== */
.site-footer{ border-top: 1px solid var(--line); }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 64px 0 32px;
}
.footer-col-title{
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-links{ display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== Utilities ===== */
.text-center{ text-align: center; }
.italic{ font-style: italic; }
.mt-1{ margin-top: 8px; } .mt-2{ margin-top: 16px; } .mt-3{ margin-top: 24px; }
.mt-4{ margin-top: 32px; } .mt-5{ margin-top: 48px; }
.flex{ display: flex; }
.flex-wrap{ flex-wrap: wrap; }
.items-center{ align-items: center; }
.justify-between{ justify-content: space-between; }
.justify-center{ justify-content: center; }
.gap-1{ gap: 8px; } .gap-2{ gap: 16px; } .gap-3{ gap: 24px; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    display: none;
  }
  .site-header.nav-open .nav-links{ display: flex; }
  .navlink{ padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle{ display: block; }
  .nav-cta{ display: none; }
  .site-header.nav-open .nav-cta{
    display: inline-flex;
    margin: 4px 20px 20px;
  }
  .nav-dropdown-trigger svg{ display: none; }
  .nav-dropdown-menu{
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 16px;
    margin-top: 0;
  }
  .nav-dropdown-menu a{ padding: 8px 0; font-size: 13.5px; }
}

@media (max-width: 860px){
  .cols-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cols-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .container{ padding: 0 20px; }
  .nav-inner{ padding: 16px 20px; }
  .section{ padding: 48px 0; }
  .cols-2, .cols-3, .cols-4{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 8px; }
  h1{ font-size: 34px !important; }
  h2{ font-size: 24px !important; }
}
