/* ─────────────────────────────────────────────────────────────
   Jessbyte Foundation — shared stylesheet
   One file for every page. Edit here, not in the pages.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Object';
  src: url('/fonts/Object-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bone:    #FAF8F4;
  --bone-2:  #F2EEE7;
  --paper:   #FFFFFF;
  --ink:     #161B18;
  --ink-2:   #4C5A52;
  --ink-3:   #5F6C65;
  --green:   #14503A;
  --green-2: #1E6B4E;
  --clay:    #A8502D;
  --rule:    #E2DDD4;
  --rule-2:  #EDE9E2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Archivo, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif; font-weight: 400; margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--green); }

/* ── accessibility ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 50%;
  z-index: 300;
  transform: translate(-50%, -300%);
  background: var(--green); color: var(--bone);
  padding: 0.6rem 1.35rem;
  border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }
.skip-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.email-link { color: var(--green); text-decoration: none; }
.email-link:hover { text-decoration: underline; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* ── navigation ── */
nav { border-bottom: 1px solid var(--rule); background: var(--bone); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { flex-shrink: 0; }
.brand-name { font-family: 'Object', 'Source Serif 4', serif; font-size: 1.28rem; letter-spacing: -0.005em; line-height: 1; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.2px; font-weight: 500; }
.nav-links a:hover { color: var(--green); }
.nav-back { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-2); text-decoration: none; font-size: 14.2px; font-weight: 500; }
.nav-back:hover { color: var(--green); }

/* ── hero ── */
.hero { padding: 84px 0 64px; border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--green); display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.eyebrow .dot { color: var(--rule); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 300; line-height: 1.06; letter-spacing: -0.022em;
  max-width: 17ch;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub { margin-top: 26px; max-width: 54ch; font-size: 1.08rem; color: var(--ink-2); line-height: 1.65; }

.figures { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.fig { padding: 20px 26px 4px; border-right: 1px solid var(--rule-2); }
.fig:first-child { padding-left: 0; }
.fig:last-child { border-right: 0; padding-right: 0; }
.fig b {
  display: block; font-family: 'Source Serif 4', Georgia, serif; font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fig .of { font-size: 0.55em; color: var(--ink-3); }
.fig span.lbl { display: block; margin-top: 9px; font-size: 12.6px; color: var(--ink-3); line-height: 1.45; max-width: 20ch; }

/* ── sections ── */
section { padding: 76px 0; border-bottom: 1px solid var(--rule); }
.sec-grid { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: start; }
.rail .eyebrow { display: block; }
.rail p { margin-top: 12px; font-size: 13.4px; color: var(--ink-3); line-height: 1.55; }
.sec-body > h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.018em; max-width: 22ch; }
.sec-body > .intro { margin-top: 18px; max-width: 60ch; color: var(--ink-2); font-size: 1.02rem; }

/* ── funding bars ── */
.bars { margin-top: 38px; display: flex; flex-direction: column; }
.bar-row { padding: 18px 0; border-top: 1px solid var(--rule-2); }
.bar-row:first-child { border-top: 1px solid var(--rule); }
.bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bar-name { font-size: 15.4px; font-weight: 500; }
.bar-nums { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-nums b { color: var(--ink); font-weight: 600; }
.track { margin-top: 11px; height: 9px; background: var(--bone-2); border-radius: 1px; overflow: hidden; }
.fill-bar { height: 100%; background: var(--green); border-radius: 1px; }
.bar-row:nth-child(2) .fill-bar { background: var(--green-2); }
.bar-row:nth-child(3) .fill-bar { background: #2F7D5E; }
.bar-row:nth-child(4) .fill-bar { background: #4E937A; }
.bar-row:nth-child(5) .fill-bar { background: #7CB09B; }
.bar-desc { margin-top: 10px; font-size: 13.8px; color: var(--ink-2); max-width: 62ch; line-height: 1.55; }
.bar-foot { margin-top: 18px; font-size: 12.6px; color: var(--ink-3); max-width: 66ch; line-height: 1.6; }

/* ── principles ── */
.principles { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }
.pr h3 { font-size: 1.18rem; font-weight: 400; letter-spacing: -0.008em; }
.pr h3 .n { font-family: Archivo, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--clay); vertical-align: 5px; margin-right: 9px; }
.pr p { margin-top: 9px; font-size: 14.6px; color: var(--ink-2); line-height: 1.6; }

.forward {
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.3rem; font-weight: 300; line-height: 1.35;
  letter-spacing: -0.012em; color: var(--green); max-width: 30ch;
}

.notdo { margin-top: 44px; border-left: 2px solid var(--clay); padding: 4px 0 4px 22px; }
.notdo h3 { font-family: Archivo, sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--clay); }
.notdo p { margin-top: 12px; max-width: 62ch; color: var(--ink-2); font-size: 15px; }
.notdo p + p { margin-top: 10px; }
.notdo strong { color: var(--ink); font-weight: 600; }

/* ── people ── */
.people { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.person { padding: 20px 26px 22px; border-right: 1px solid var(--rule-2); }
.person:first-child { padding-left: 0; }
.person:last-child { border-right: 0; padding-right: 0; }
.person .nm { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.16rem; letter-spacing: -0.01em; }
.person .rl { margin-top: 6px; font-size: 12.4px; color: var(--ink-3); }
.gov-notes { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.gov-notes div { font-size: 14.2px; color: var(--ink-2); padding-left: 20px; position: relative; line-height: 1.55; }
.gov-notes div::before { content: "—"; position: absolute; left: 0; color: var(--rule); }

/* ── reports ── */
.report-link {
  margin-top: 32px; display: flex; gap: 26px; align-items: center;
  text-decoration: none; color: inherit; border: 1px solid var(--rule);
  background: var(--paper); padding: 22px 26px; transition: border-color 0.2s;
}
.report-link:hover { border-color: var(--green); }
.report-thumb { width: 78px; flex-shrink: 0; border: 1px solid var(--rule); }
.report-thumb img { display: block; width: 100%; height: auto; }
.report-meta .lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.report-meta .ttl { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.35rem; margin-top: 7px; letter-spacing: -0.012em; }
.report-meta .dsc { margin-top: 7px; font-size: 13.8px; color: var(--ink-2); }
.report-meta .go { margin-top: 11px; font-size: 13.4px; font-weight: 600; color: var(--green); }

.register { margin-top: 34px; border-top: 1px solid var(--rule); }
.reg-row { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.reg-row dt { font-size: 12.6px; color: var(--ink-3); letter-spacing: 0.02em; }
.reg-row dd { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.reg-link { display: inline-block; margin-top: 22px; font-size: 14.2px; font-weight: 600; color: var(--green); }

/* ── legal / interior pages ── */
.page-wrap { max-width: 720px; margin: 0 auto; padding: 66px 40px 90px; }
.page-wrap h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; margin-top: 14px; }
.last-updated { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.policy-body { margin-top: 44px; }
.policy-body h2 { font-size: 1.24rem; font-weight: 400; letter-spacing: -0.01em; margin-top: 38px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { margin-top: 11px; font-size: 15.4px; line-height: 1.7; color: var(--ink-2); max-width: 66ch; }
.policy-body a { color: var(--green); }

/* ── 404 ── */
.err-wrap { max-width: 640px; margin: 0 auto; padding: 110px 40px 130px; text-align: center; }
.err-code { font-family: 'Source Serif 4', Georgia, serif; font-size: 5.5rem; font-weight: 300; line-height: 1; color: var(--rule); letter-spacing: -0.03em; }
.err-wrap h1 { margin-top: 18px; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 300; letter-spacing: -0.018em; }
.err-wrap p { margin-top: 14px; color: var(--ink-2); font-size: 1rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 30px;
  border: 1px solid var(--green); color: var(--green); background: transparent;
  padding: 0.7rem 1.5rem; border-radius: 4px;
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--green); color: var(--bone); }

/* ── footer ── */
footer { background: var(--bone-2); padding: 46px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand span { font-family: 'Object', 'Source Serif 4', serif; font-size: 1.1rem; }
.foot-meta { font-size: 13.2px; color: var(--ink-2); line-height: 1.85; text-align: right; }
.foot-meta a { color: var(--ink-2); text-decoration: none; }
.foot-meta a:hover { color: var(--green); }
.foot-rule { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); text-align: center; }
.powered-link { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.powered-label { font-size: 11.6px; color: var(--ink-3); letter-spacing: 0.04em; }
.powered-link img { opacity: 0.5; transition: opacity 0.2s; }
.powered-link:hover img { opacity: 0.85; }

/* ── responsive ── */
@media (max-width: 860px) {
  .shell { padding: 0 22px; }
  .sec-grid { grid-template-columns: 1fr; gap: 22px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .fig { border-right: 0; padding-left: 0; padding-right: 0; }
  .fig:nth-child(odd) { border-right: 1px solid var(--rule-2); padding-right: 20px; }
  .fig:nth-child(even) { padding-left: 20px; }
  .principles, .gov-notes { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .person { border-right: 0; padding-left: 0; padding-right: 0; }
  .person:nth-child(odd) { border-right: 1px solid var(--rule-2); padding-right: 20px; }
  .person:nth-child(even) { padding-left: 20px; }
  .reg-row { grid-template-columns: 1fr; gap: 2px; }
  .nav-links { gap: 16px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; white-space: nowrap; display: block; padding: 0.7rem 0; }
  .brand-name { display: none; }
  .foot-meta { text-align: left; }
  section { padding: 52px 0; }
  .hero { padding: 54px 0 46px; }
  .page-wrap { padding: 44px 22px 70px; }
  .err-wrap { padding: 70px 22px 90px; }
  .report-link { flex-direction: column; align-items: flex-start; gap: 18px; }
  .report-thumb { width: 110px; }
}
