/* Vitreo.org — institutional / civic-trust theme
   Design language: serif authority + quiet gold, generous whitespace,
   rule-lines and small-caps eyebrows — the visual grammar of established
   public-interest institutions. */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --navy: #0f2238;
  --navy-2: #163152;
  --navy-3: #1d3c63;
  --slate: #33475b;
  --ink: #1b2733;
  --muted: #5b6b7b;
  --line: #d9e0e7;
  --bg: #f7f9fb;
  --paper: #ffffff;
  --accent: #9a7b2f;      /* muted brass/gold — authority without flash */
  --accent-soft: #f4ecd9;
  --accent-2: #1f6f6b;    /* deep teal for actions */
  --accent-2-soft: #e7f0ef;
  --danger: #9b2226;
  --ok: #2a7a4b;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15,34,56,.06), 0 6px 24px rgba(15,34,56,.06);
  --shadow-lift: 0 2px 4px rgba(15,34,56,.08), 0 14px 34px rgba(15,34,56,.12);
  --maxw: 1080px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--navy); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 2px; }
img, svg { vertical-align: middle; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 6px 0; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ---- Top bar ---- */
.topbar { background: var(--navy); color: #eaf0f6; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #cdd8e4; }
.topbar a.give { color: var(--accent); font-weight: 600; }
.topbar .tagline { letter-spacing: .06em; }

/* ---- Header / nav ---- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(15,34,56,.03); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 23px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand .mark { flex: 0 0 auto; display: grid; place-items: center; }
.brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 22px; }
nav.main a { color: var(--slate); font-size: 15px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.main a:hover { color: var(--navy); text-decoration: none; }
nav.main a.active { color: var(--navy); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 16px; color: var(--navy); }

/* ---- Buttons ---- */
.btn { display: inline-block; border: 1px solid transparent; border-radius: var(--radius); padding: 11px 20px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .18s ease; font-family: var(--sans); letter-spacing: .01em; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-2); color: #fff; box-shadow: 0 1px 2px rgba(31,111,107,.3); }
.btn-primary:hover { background: #195b58; text-decoration: none; box-shadow: 0 3px 10px rgba(31,111,107,.3); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); text-decoration: none; box-shadow: 0 3px 10px rgba(15,34,56,.28); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--slate); text-decoration: none; background: rgba(15,34,56,.03); }
.btn-gold { background: var(--accent); color: #1a1407; box-shadow: 0 1px 2px rgba(154,123,47,.35); }
.btn-gold:hover { background: #b08f3a; text-decoration: none; box-shadow: 0 3px 12px rgba(154,123,47,.4); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(154,123,47,.16), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(31,111,107,.18), transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-3) 100%);
  color: #eef3f8;
  padding: 92px 0 76px;
  overflow: hidden;
}
.hero::before { /* faint pillar/rule texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 120px);
}
.hero .container { position: relative; }
.hero .eyebrow { color: var(--accent); letter-spacing: .16em; text-transform: uppercase; font-size: 13px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 20px; max-width: 17ch; text-wrap: balance; }
.hero p.lede { font-size: clamp(17px, 2vw, 19.5px); color: #cfdbe7; max-width: 62ch; margin: 0 0 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #dbe6f1; border-radius: 999px; padding: 6px 14px; font-size: 13px; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---- Sections ---- */
main { display: block; }
section.block { padding: 72px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 66ch; margin-bottom: 40px; }
.section-head .eyebrow, .eyebrow { color: var(--accent); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.section-head .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 37px); margin: 0 0 14px; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { color: var(--slate); margin: 0; font-size: 15.5px; }
.card .ic {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(150deg, var(--accent-2-soft), #f2f7f6);
  color: var(--accent-2); display: grid; place-items: center; margin-bottom: 16px;
  font-weight: 700; border: 1px solid #d7e6e4;
}
.card .ic.gold { background: linear-gradient(150deg, var(--accent-soft), #faf5e8); color: var(--accent); border-color: #e8dcba; }
.card .ic svg { width: 22px; height: 22px; }

/* ---- Stat callouts ---- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; text-align: center; box-shadow: var(--shadow); }
.stat::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 44px; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; }
.stat .num { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat .num .small { font-size: 22px; }
.stat .label { color: var(--muted); font-size: 13.5px; margin-top: 9px; }
.stat.warn::before { background: var(--danger); }
.stat.warn .num { color: var(--danger); }

/* ---- Pull / quote ---- */
.pull { position: relative; border-left: 3px solid var(--accent); padding: 10px 0 10px 26px; font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 30px 0; font-style: italic; }
.pull::before { content: "\201C"; position: absolute; left: 10px; top: -18px; font-size: 64px; color: var(--accent); opacity: .25; font-style: normal; line-height: 1; }
.pull cite { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 12px; font-style: normal; }

/* ---- Charts ---- */
.chart-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chart-card h3 { font-size: 18px; margin: 0 0 4px; }
.chart-card .sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.chart-wrap { position: relative; height: 300px; }

/* ---- Data table ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table td, .data-table th { padding: 9px 0; }
.data-table tr { border-bottom: 1px solid var(--line); }
.data-table tr:last-child { border-bottom: none; }
.data-table td:last-child { text-align: right; font-weight: 700; font-family: var(--serif); font-size: 17px; }

/* ---- Forms ---- */
.form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=number], .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; font-family: var(--sans); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(31,111,107,.12); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--slate); }
.check input { margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 18px; display: none; }
.alert.show { display: block; }
.alert.err { background: #fbeaea; color: var(--danger); border: 1px solid #f0c9c9; }
.alert.ok { background: #e7f4ec; color: var(--ok); border: 1px solid #c4e4d1; }

/* ---- Misc ---- */
.lead-prose { max-width: 70ch; }
.lead-prose p { font-size: 17px; color: var(--slate); }
.tag { display: inline-block; background: var(--accent-2-soft); color: var(--accent-2); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.disclaimer { background: #fff8e8; border: 1px solid #ecd9a6; border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; font-size: 14px; color: #6b5520; }
.source-list { font-size: 13.5px; color: var(--muted); columns: 2; column-gap: 40px; padding-left: 18px; }
.source-list li { margin-bottom: 8px; break-inside: avoid; }
.page-head {
  position: relative;
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(154,123,47,.15), transparent 60%),
    linear-gradient(165deg, var(--navy), var(--navy-2));
  color: #fff; padding: 60px 0 52px; overflow: hidden;
}
.page-head::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 120px); pointer-events: none; }
.page-head .container { position: relative; }
.page-head h1 { color: #fff; margin: 0 0 12px; font-size: clamp(28px,4vw,42px); text-wrap: balance; }
.page-head p { color: #cfdbe7; font-size: 17.5px; max-width: 72ch; margin: 0; }
.breadcrumb { color: #9fb3c8; font-size: 13px; margin-bottom: 14px; letter-spacing: .02em; }
.breadcrumb a { color: #cdd8e4; }

/* ---- Impact band ---- */
.impact-band { background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #e6eef6; padding: 56px 0; }
.impact-band h2 { color: #fff; }
.impact-band .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.impact-band .stat .num { color: var(--accent); }
.impact-band .stat .label { color: #b9c9d9; }

/* ---- Footer ---- */
footer.site { background: var(--navy); color: #c6d2de; padding: 0; margin-top: 0; }
footer.site .newsletter-band { border-bottom: 1px solid #25405f; padding: 34px 0; }
footer.site .newsletter-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site .newsletter-band h4 { color: #fff; font-family: var(--serif); font-size: 20px; margin: 0 0 4px; letter-spacing: 0; text-transform: none; }
footer.site .newsletter-band p { margin: 0; font-size: 14px; color: #9fb3c8; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type=email] {
  min-width: 260px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid #35516f;
  background: rgba(255,255,255,.06); color: #fff; font-size: 14.5px; font-family: var(--sans);
}
.newsletter-form input[type=email]::placeholder { color: #8ea4ba; }
.newsletter-form input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154,123,47,.25); }
.newsletter-form .note { flex-basis: 100%; font-size: 12.5px; color: #8ea4ba; }
footer.site .cols-wrap { padding: 48px 0 28px; }
footer.site h4 { color: #fff; font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
footer.site a { color: #c6d2de; font-size: 14px; display: block; margin-bottom: 9px; }
footer.site a:hover { color: #fff; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer.site .mission { color: #9fb3c8; font-size: 14px; max-width: 38ch; margin: 10px 0 0; }
footer.site .legal { border-top: 1px solid #25405f; margin-top: 36px; padding-top: 20px; font-size: 12.5px; color: #8ea4ba; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site .legal a { display: inline; font-size: 12.5px; color: #8ea4ba; margin: 0 0 0 14px; }

/* ---- Auth split ---- */
.auth-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; min-height: 70vh; }
.auth-aside { background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #e6eef6; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-aside h2 { color: #fff; }
.auth-aside ul { padding-left: 18px; color: #cfdbe7; }
.auth-aside li { margin-bottom: 10px; }
.auth-main { padding: 56px; display: flex; align-items: center; }
.auth-main .form-wrap { width: 100%; max-width: 460px; margin: 0 auto; border: none; box-shadow: none; padding: 0; }

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 36px 20px; }
  .source-list { columns: 1; }
}
@media (max-width: 680px) {
  nav.main { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .grid-3, .grid-4, .grid-2, .stat-strip, .checks, .form-row { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .topbar .tagline { display: none; }
  .hero { padding: 64px 0 56px; }
}
