/* The Video Game Learning Foundation — public website styles.
   Plain CSS. No build step, no framework, no external dependencies,
   system font stacks only. Shared by every page. */

/* ---------------------------------------------------------------
   1. Tokens
   Palette is deliberately institutional — deep blue, slate, warm
   paper — because grantmakers and gaming-studio CSR reviewers are a
   primary audience alongside program participants. This should read
   like an education foundation, not a games brand.

   The accent is green, sampled from the actual logo (a joystick
   growing into a tree) rather than picked freehand: --green-deep is
   pulled from the trunk's dark olive, --green from the leaf sage,
   lightened/saturated just enough to hold up as UI (borders, links,
   focus rings) at a11y-safe contrast. See website/assets/README.md.
   --------------------------------------------------------------- */

:root {
  --blue: #16324f;
  --blue-deep: #0e2136;
  --blue-mid: #274a6d;
  --blue-tint: #e8eef4;

  --green: #4d7b3d;
  --green-deep: #374b20;
  --green-tint: #edf5ea;

  --gold: #9a6f22;
  --gold-tint: #f6efdf;

  --ink: #1d2733;
  --ink-mid: #465666;
  --ink-light: #66788a;

  --paper: #f8f7f4;
  --paper-alt: #f1efea;
  --white: #ffffff;
  --line: #dcd8d0;
  --line-soft: #e8e5df;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 18px rgba(14, 33, 54, 0.07);
  --shadow-lg: 0 14px 40px rgba(14, 33, 54, 0.12);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype",
    "Book Antiqua", Palatino, "Times New Roman", serif;

  color-scheme: light;
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg.block { max-width: 100%; display: block; }

a { color: var(--blue-mid); }
a:hover { color: var(--green-deep); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 18px; padding-left: 1.25em; }
li { margin-bottom: 8px; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-alt { background: var(--paper-alt); }
.section-white { background: var(--white); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-mid); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-tint);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink-mid);
}

.muted { color: var(--ink-light); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.82rem; }
.center { text-align: center; }

/* Visible marker for deliberately-unfinished content. Anything the
   Foundation does not actually have yet gets one of these instead of
   an invented specific. */
.placeholder {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-tint);
  border: 1px dashed #d9c08a;
  border-radius: var(--radius-sm);
  padding: 3px 9px;
}

.placeholder-block {
  border: 1px dashed #d9c08a;
  background: var(--gold-tint);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: #6f5216;
}
.placeholder-block h3 { color: #6f5216; }
.placeholder-block p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover { background: var(--blue-tint); color: var(--blue-deep); }

.btn-light {
  background: var(--white);
  color: var(--blue);
}
.btn-light:hover { background: var(--blue-tint); color: var(--blue-deep); }

/* Donate CTA in its pre-launch state: looks like a button, is not a
   link, and says so. Swap for a real <a class="btn btn-primary"> only
   once a payment processor actually exists. */
.btn-pending {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  color: var(--ink-light);
  border: 1px dashed var(--line);
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

/* ---------------------------------------------------------------
   4. Header & navigation
   --------------------------------------------------------------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--blue);
  margin-right: auto;
}

.brand-mark { width: 28px; height: 34px; flex: none; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: -0.005em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--ink-light);
  letter-spacing: 0.02em;
}

.primary-nav { display: flex; gap: 22px; align-items: center; }

.primary-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--blue); border-bottom-color: var(--green); }
.primary-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
  border-bottom-color: var(--blue);
}

.header-cta { flex: none; padding: 10px 18px; font-size: 0.9rem; }

/* Mobile disclosure nav — <details>/<summary>, no JavaScript. */
.nav-toggle { display: none; position: relative; }

.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--white);
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle[open] > summary { background: var(--blue-tint); }

.mobile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.mobile-menu a:hover { background: var(--paper-alt); color: var(--blue); }

/* ---------------------------------------------------------------
   5. Formation-status notice
   Sitewide, honest, and unmissable: the IRS determination letter
   does not exist yet.
   --------------------------------------------------------------- */

.status-bar {
  background: var(--blue-deep);
  color: #cbd9e6;
  font-size: 0.85rem;
  text-align: center;
  padding: 9px 24px;
  line-height: 1.45;
}
.status-bar strong { color: var(--white); font-weight: 600; }
.status-bar a { color: var(--white); }

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.93rem;
  color: var(--ink-mid);
}
.notice strong { color: var(--ink); }

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */

.hero {
  background: linear-gradient(170deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #e7eef5;
  padding: 84px 0 76px;
}

.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lede { color: #c8d7e5; max-width: 56ch; font-size: 1.2rem; }

.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  color: #bcd2c9;
  background: rgba(255, 255, 255, 0.1);
}

.hero-lockup { margin-bottom: 28px; }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 0;
}

/* The tagline sits *under* the organization name, never in place of
   it — the name is the institutional/SEO asset, the tagline carries
   the warmth. See the Nonprofit Naming Decision for the reasoning. */
.hero-tagline {
  margin: 6px 0 0;
  font-size: 0.98rem;
  color: #9fb9cd;
  letter-spacing: 0.04em;
}

.hero .btn-row { margin-top: 30px; }

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.hero-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }

.hero-list { list-style: none; padding: 0; margin: 0; }
.hero-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.95rem;
  color: #cddbe7;
}
.hero-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-list strong { display: block; color: var(--white); font-size: 0.98rem; }

/* ---------------------------------------------------------------
   7. Cards & grids
   --------------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-mid); font-size: 0.96rem; }

.card-track { border-top: 4px solid var(--green); }

.track-age {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.definition-list { margin: 0; }
.definition-list dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
  margin-top: 24px;
}
.definition-list dt:first-child { margin-top: 0; }
.definition-list dd {
  margin: 6px 0 0;
  color: var(--ink-mid);
}

/* Theory-of-change chain */
.chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 8px;
}

.chain-step {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.chain-step .step-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.chain-step h4 { margin-bottom: 6px; }
.chain-step p { font-size: 0.9rem; color: var(--ink-mid); margin: 0; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 999px;
  padding: 5px 13px;
}

.callout {
  background: var(--green-tint);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.callout h3 { color: var(--green-deep); }
.callout p { color: #2c4a47; margin-bottom: 0; }

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  color: var(--blue);
  border-left: 4px solid var(--green);
  padding: 6px 0 6px 24px;
  margin: 0 0 26px;
}

/* ---------------------------------------------------------------
   8. Disclosure (FAQ) — <details>/<summary>, no JavaScript
   --------------------------------------------------------------- */

.faq {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq > summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--blue);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--green);
  line-height: 1;
  flex: none;
}
.faq[open] > summary::after { content: "\2013"; }
.faq[open] > summary { border-bottom: 1px solid var(--line-soft); }
.faq > summary:hover { background: var(--paper-alt); }

.faq-body { padding: 18px 22px 22px; color: var(--ink-mid); font-size: 0.96rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   9. Forms (contact page — mailto only, no backend)
   --------------------------------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.field textarea { min-height: 150px; resize: vertical; }

.field-hint { font-size: 0.83rem; color: var(--ink-light); margin-top: 6px; }

/* ---------------------------------------------------------------
   10. Footer
   --------------------------------------------------------------- */

.site-footer {
  background: var(--blue-deep);
  color: #a9bccd;
  padding: 56px 0 28px;
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .brand-name { color: var(--white); font-size: 1rem; }

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cddbe7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-legal {
  padding-top: 22px;
  font-size: 0.82rem;
  color: #8ba1b5;
  line-height: 1.6;
}
.footer-legal p { margin-bottom: 10px; }

.footer-placeholder {
  color: #d6c391;
  border: 1px dashed rgba(214, 195, 145, 0.5);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   11. Responsive
   --------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .chain { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 52px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .container, .container-narrow { padding: 0 20px; }
  .form-card { padding: 22px; }
}

@media (max-width: 420px) {
  .brand-tagline { display: none; }
  .btn, .btn-pending { width: 100%; text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .status-bar, .nav-toggle { display: none; }
  body { background: #fff; font-size: 12pt; }
  .hero { background: none; color: var(--ink); }
  .hero h1, .hero-name { color: var(--blue); }
  .hero .lede, .hero-tagline { color: var(--ink-mid); }
  .card, .faq { box-shadow: none; }
  .faq-body { display: block; }
}
