:root {
  --ink: #17251f;
  --forest: #153f34;
  --forest-2: #0d2e27;
  --lime: #d8f25b;
  --coral: #f56f4d;
  --paper: #f7f3e9;
  --white: #fffdf7;
  --mist: #dce9df;
  --line: #aebdb2;
  --muted: #50635a;
  --max: 1180px;
  --measure: 720px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: inherit; text-decoration-thickness: .09em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--lime); color: var(--ink); padding: .75rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

header { position: relative; z-index: 20; background: var(--forest-2); color: var(--white); border-bottom: 1px solid rgb(255 255 255 / .18); }
.site-head { width: min(calc(100% - 2rem), var(--max)); min-height: 88px; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.logo { grid-column: 1; grid-row: 1; display: block; color: var(--white); text-decoration: none; font-weight: 950; letter-spacing: .08em; }
.logo::before { content: "V·IMPACT"; }
.logo img { display: none; }
.site-head nav { grid-column: 2; grid-row: 1; display: flex; justify-content: center; align-items: center; gap: .2rem; }
.site-head nav a { padding: .7rem .85rem; text-decoration: none; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; border-radius: 999px; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { background: var(--lime); color: var(--forest-2); }
.login-link { grid-column: 3; grid-row: 1; padding: .72rem 1rem; background: var(--coral); color: var(--forest-2); text-decoration: none; font-size: .82rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; }
.nav-toggle { display: none; }

.page { width: min(100%, 1600px); margin: auto; overflow: hidden; }
.page > h1 { margin: 0; padding: clamp(3.5rem, 8vw, 7rem) max(1rem, calc((100% - var(--max))/2)); background: var(--forest); color: var(--white); font: 700 clamp(2.7rem, 7vw, 6.6rem)/.96 var(--display); letter-spacing: -.04em; text-align: left; }
.opening h1 { max-width: 820px; margin: 0; color: var(--forest); font: 700 clamp(3.2rem, 7vw, 6.8rem)/.9 var(--display); letter-spacing: -.055em; }
.page h2 { color: var(--forest); font: 700 clamp(2rem, 4vw, 3.4rem)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 1.4rem; }
.page h2 small { display: block; margin-top: .5rem; font: 800 .78rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.page section { margin: 0; padding: clamp(3.5rem, 7vw, 6.5rem) max(1rem, calc((100% - var(--max))/2)); }
.page section:nth-of-type(even) { background: var(--mist); }
.page p { margin: 0 0 1.25rem; }
.page > p { width: min(calc(100% - 2rem), var(--measure)); margin: 2rem auto; }
.content-narrow { width: min(calc(100% - 2rem), var(--measure)); margin: clamp(3rem, 7vw, 6rem) auto; }
.content-narrow > section { width: 100%; padding: 3rem 0; background: transparent!important; border-top: 1px solid var(--line); }
.content-narrow > section:first-of-type { margin-top: 3rem; }

.split { width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split > img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 18rem 18rem 1rem 1rem; box-shadow: 18px 18px 0 var(--coral); }
.opening { align-items: stretch; }
.opening > div { align-self: center; }
.opening > img { max-height: 700px; }
.media-left { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); }
.media-left > img { max-height: 520px; }
.reel { display: block; width: min(100%, 360px); max-height: 520px; margin: 2rem auto 0; object-fit: contain; border-radius: 1rem; }
.center-callout { margin: 2.2rem 0!important; padding: 1.4rem 0 1.4rem 1.4rem; border-left: 7px solid var(--coral); color: var(--forest); font: 700 clamp(1.4rem, 3vw, 2rem)/1.25 var(--display); }
.strong { font-weight: 800; }
.center { text-align: center; }
.declaration { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 3rem 0 0; background: var(--forest); color: var(--white); border: 1px solid var(--forest); }
.declaration p { margin: 0; padding: 1.5rem; background: var(--forest-2); font: 700 1.25rem/1.2 var(--display); text-align: left; }
.architect-row { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: center; margin: 2rem 0; padding: 2rem; background: var(--white); border: 1px solid var(--line); }
.architect-row img { width: 150px; border-radius: 50%; }
.membership { align-items: center; }
.membership > img { max-height: 340px; }
ul { padding-left: 1.3rem; }
li { margin: .55rem 0; }

.page-head-image { display: block; width: min(calc(100% - 2rem), var(--max)); max-height: 480px; object-fit: cover; margin: -2rem auto 4rem; border-radius: 1rem; box-shadow: 16px 16px 0 var(--lime); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.2rem; border: 2px solid var(--forest); background: transparent; color: var(--forest); text-decoration: none; font-weight: 900; border-radius: 999px; cursor: pointer; }
.button:hover { background: var(--lime); }
.button.primary { background: var(--forest); color: var(--white); }
.button.primary:hover { background: var(--coral); color: var(--forest-2); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 2rem 0; }
.event-empty { text-align: left; padding: 2rem; border: 1px solid var(--line); border-left: 8px solid var(--coral); background: var(--white); }

.principles { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.eyebrow { margin-bottom: 1rem!important; color: var(--coral); font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.impact-card { min-height: 250px; padding: 1.6rem; background: var(--white); border: 1px solid var(--line); }
.impact-card strong { display: block; margin-bottom: 1rem; color: var(--forest); font: 700 1.65rem/1.05 var(--display); }
.impact-card span { color: var(--muted); }
.accountability { padding: 1.5rem; background: var(--forest-2); color: var(--white); border-top: 7px solid var(--lime); }

.contact-form { max-width: 720px; margin: 1rem auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
label { display: block; margin-bottom: .35rem; font-weight: 800; }
input, textarea { width: 100%; border: 2px solid var(--line); background: var(--white); padding: .8rem; color: var(--ink); font: inherit; }
textarea { min-height: 150px; resize: vertical; }
.form-status { min-height: 1.5em; }
.bio-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.bio-intro img { width: 100%; border-radius: 1rem; }
.gallery-section { width: min(calc(100% - 2rem), var(--max)); margin: auto!important; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: .6rem; }
.gallery figcaption { margin-top: .35rem; color: var(--muted); font-size: .78rem; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 2/1; }

footer { padding: 3rem 0; background: var(--forest-2); color: var(--white); border-top: 8px solid var(--coral); }
.footer-inner { width: min(calc(100% - 2rem), var(--max)); margin: auto; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 1rem; }
.social { display: flex; gap: .6rem; }
.social img { width: 38px; height: 38px; border-radius: 50%; }
.footer-inner small { text-align: center; font-size: .72rem; }
.substack { display: block; max-width: 210px; margin-left: auto; filter: brightness(0) invert(1); }

@media (max-width: 820px) {
  .site-head { min-height: 76px; grid-template-columns: auto 1fr auto; gap: .75rem; }
  .logo img { width: 105px; }
  .nav-toggle { display: block; grid-column: 2; justify-self: end; border: 1px solid rgb(255 255 255 / .5); background: transparent; color: var(--white); padding: .55rem .7rem; font: 800 .78rem var(--sans); border-radius: 999px; }
  .site-head nav { position: absolute; left: 0; right: 0; top: 76px; display: block; background: var(--forest-2); border-top: 1px solid rgb(255 255 255 / .2); padding: .6rem 1rem 1rem; }
  .site-head nav[hidden] { display: none!important; }
  .site-head nav a { display: block; padding: .75rem; border-radius: .35rem; }
  .login-link { grid-column: 3; padding: .58rem .7rem; font-size: .7rem; }
  .split, .media-left, .bio-intro, .form-grid { grid-template-columns: 1fr; }
  .opening > img { grid-row: 1; max-height: 480px; }
  .split > img { max-height: 480px; box-shadow: 10px 10px 0 var(--coral); }
  .declaration, .impact-grid { grid-template-columns: 1fr; }
  .architect-row { grid-template-columns: 90px 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .social { justify-content: center; }
  .substack { margin: auto; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .page > h1 { font-size: 2.7rem; }
  .hero-actions, .page-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .architect-row { grid-template-columns: 1fr; }
  .architect-row img { margin: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; }
  .gallery .wide img { aspect-ratio: 1/1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-contrast: more) { :root { --line: #43544a; --muted: #263d33; } }
