/* EAR shared design system — tokens, nav, buttons, and common section patterns.
   Reused by every page in /site. Page-specific component styles live in a
   <style> block in that page's own <head>, using these same tokens/classes. */

:root {
  --ink: oklch(20% 0.01 240);
  --ink-soft: oklch(26% 0.012 240);
  --paper: oklch(96% 0.006 240);
  --paper-dim: oklch(90% 0.01 240);
  --accent: oklch(62% 0.19 55);
  --accent-ink: oklch(20% 0.01 240);
  --text-body: oklch(35% 0.012 240);
  --text-muted-light: oklch(72% 0.008 240);
  --text-muted-dark: oklch(90% 0.008 240);
  --blue: oklch(52% 0.1 260);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  font-family: Archivo, sans-serif;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, div { text-wrap: pretty; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.sans { font-family: Inter, sans-serif; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; font-weight: 700; font-family: Inter, sans-serif;
  font-size: 13px; padding: 9px 18px; border-radius: 2px; white-space: nowrap;
  border: none; cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; }

/* ---------- NAV ---------- */
.site-header {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 40px; background: var(--ink);
  position: sticky; top: 0; z-index: 40;
}
.site-header__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand__name {
  font-weight: 800; font-size: clamp(14px, 2vw, 19px);
  letter-spacing: -0.01em; color: var(--paper); white-space: nowrap;
}
.brand__mark {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--ink); background: var(--accent);
  border-radius: 2px; padding: 3px 8px; white-space: nowrap;
}

.nav-toggle {
  display: none; background: transparent; border: 2px solid var(--paper);
  color: var(--paper); border-radius: 2px; padding: 6px 10px; font-size: 20px;
  line-height: 1; cursor: pointer;
}

.primary-nav {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  flex-wrap: wrap; font-family: Inter, sans-serif; font-size: 13.5px;
  font-weight: 600; color: var(--text-muted-dark);
}
.navlink { white-space: nowrap; transition: color 0.15s ease; }
.navlink:hover, .navlink:focus-visible { color: var(--accent); }
.navlink.is-current { color: var(--accent); }

.dd { position: relative; padding: 8px 0; }
.dd__trigger {
  cursor: pointer; white-space: nowrap; background: none; border: none;
  color: inherit; font: inherit; display: inline-flex; align-items: center; gap: 4px;
}
.dd__menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--ink-soft); padding: 10px 0; min-width: 240px;
  border-radius: 2px; box-shadow: 0 8px 20px oklch(0% 0 0 / 0.3);
}
.dd__menu a { display: block; padding: 9px 18px; font-weight: 500; white-space: nowrap; }
.dd:hover .dd__menu,
.dd:focus-within .dd__menu,
.dd.is-open .dd__menu { display: block; }

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero { padding: 76px 64px 56px; background: var(--paper); }
.page-hero__eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 20px;
}
.page-hero__title {
  font-weight: 800; font-size: clamp(32px, 5vw, 54px); line-height: 1.05;
  margin: 0 0 20px; letter-spacing: -0.02em;
}
.page-hero__lede {
  font-family: Inter, sans-serif; font-size: 17px; line-height: 1.65;
  color: var(--text-body); max-width: 720px; margin: 0 0 0;
}
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lede { margin-left: auto; margin-right: auto; }

/* ---------- HOME HERO ---------- */
.hero { padding: 104px 64px 64px; text-align: center; background: var(--paper); }
.hero__eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 24px;
}
.hero__title {
  font-weight: 800; font-size: clamp(38px, 6vw, 72px); line-height: 1.02;
  margin: 0 0 28px; letter-spacing: -0.02em;
}
.hero__title span { color: var(--accent); }
.hero__lede {
  font-family: Inter, sans-serif; font-size: 18px; line-height: 1.65;
  color: var(--text-body); max-width: 760px; margin: 0 auto 40px;
}
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__ctas .btn { font-size: 15px; padding: 15px 27px; }
.hero__ctas .btn--outline { padding: 13px 25px; }

/* ---------- CAROUSEL ---------- */
.carousel-section { padding: 0 64px 88px; background: var(--paper); }
.carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 4px; -webkit-overflow-scrolling: touch;
}
.carousel-card {
  flex: 0 0 320px; background: var(--paper-dim); padding: 22px 24px;
  border-radius: 2px; scroll-snap-align: start;
}
.carousel-card__date {
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--blue); margin-bottom: 10px;
}
.carousel-card__title { font-family: Inter, sans-serif; font-size: 15px; line-height: 1.5; font-weight: 600; }

/* ---------- TENTPOLES ---------- */
.tentpoles { padding: 80px 64px; background: var(--ink); }
.tentpoles__eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 16px;
}
.tentpoles__title {
  font-weight: 800; font-size: clamp(26px, 4vw, 36px); margin: 0 0 48px;
  letter-spacing: -0.01em; color: var(--paper); max-width: 640px;
}
.tentpoles__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink);
}
.tentpole { background: var(--ink-soft); padding: 30px; }
.tentpole--offset { grid-column: 2 / span 1; }
.tentpole__num { font-family: 'IBM Plex Mono', monospace; font-size: 24px; color: var(--accent); margin-bottom: 16px; }
.tentpole__title { font-weight: 700; font-size: 17px; margin-bottom: 8px; color: var(--paper); }
.tentpole__body { font-size: 14px; line-height: 1.55; color: var(--text-muted-light); font-family: Inter, sans-serif; }

/* ---------- RELEASE SCHEDULE ---------- */
.schedule { padding: 80px 64px; background: var(--paper); }
.schedule__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 48px; flex-wrap: wrap; gap: 12px;
}
.schedule__title { font-weight: 800; font-size: clamp(26px, 4vw, 36px); margin: 0; letter-spacing: -0.01em; }
.schedule__cadence { font-size: 13px; color: var(--blue); }
.schedule__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.schedule-item { border-top: 4px solid oklch(82% 0.01 240); padding-top: 20px; }
.schedule-item--live { border-top-color: var(--accent); }
.schedule-item__date { font-size: 13px; font-weight: 500; color: var(--blue); margin-bottom: 10px; }
.schedule-item__title { font-weight: 700; font-size: 16px; }

/* ---------- GET INVOLVED (cards used on home + get-involved page) ---------- */
.get-involved { padding: 80px 64px; background: var(--paper-dim); }
.get-involved__eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--blue); margin-bottom: 14px;
}
.get-involved__title {
  font-weight: 800; font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 44px;
  letter-spacing: -0.01em; max-width: 640px;
}
.get-involved__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.involve-card { border: 2px solid var(--ink); padding: 26px; border-radius: 2px; display: block; }
.involve-card--accent { border: none; background: var(--accent); }
.involve-card__title { font-weight: 700; font-size: 15px; margin-bottom: 10px; letter-spacing: -0.01em; }
.involve-card--accent .involve-card__title { color: var(--ink); }
.involve-card__body { font-family: Inter, sans-serif; font-size: 14px; line-height: 1.5; color: var(--text-body); }
.involve-card--accent .involve-card__body { color: var(--ink); }

/* ---------- COALITION ---------- */
.coalition { padding: 56px 64px; background: var(--ink); }
.coalition__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; flex-wrap: wrap; }
.coalition__statement { max-width: 480px; }
.coalition__eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }
.coalition__text { font-size: 17px; line-height: 1.6; margin: 0; font-family: Inter, sans-serif; color: var(--paper); }
.coalition__partners {
  font-size: 15px; line-height: 1.8; color: var(--text-muted-light);
  text-align: right; font-family: Inter, sans-serif;
}

/* ---------- FOOTER CTA ---------- */
.footer-cta { padding: 70px 64px; text-align: center; background: var(--paper); }
.footer-cta__title { font-weight: 800; font-size: 32px; margin-bottom: 30px; letter-spacing: -0.01em; }
.footer-cta__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer-cta__ctas .btn { font-size: 15px; padding: 16px 28px; }
.footer-cta__ctas .btn--outline { padding: 14px 26px; }

/* ---------- SITE FOOTER ---------- */
.site-footer {
  padding: 40px 64px; background: var(--ink); color: var(--text-muted-light);
  font-family: Inter, sans-serif; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.site-footer a:hover { color: var(--accent); }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- FORM ELEMENTS (subscribe, etc.) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field__label {
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-body);
}
.field__input {
  font-family: Inter, sans-serif; font-size: 15px; padding: 12px 14px;
  border: 2px solid oklch(82% 0.01 240); border-radius: 2px; background: var(--paper);
  color: var(--ink);
}
.field__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* ---------- SHARED RESPONSIVE RULES ---------- */
@media (max-width: 860px) {
  .hero, .tentpoles, .schedule, .get-involved, .footer-cta,
  .carousel-section, .coalition, .site-header, .site-footer,
  .page-hero { padding-left: 24px; padding-right: 24px; }

  .tentpoles__grid { grid-template-columns: 1fr; }
  .tentpole--offset { grid-column: auto; }
  .coalition__partners { text-align: left; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    width: 100%;
  }
  .primary-nav.is-open { display: flex; }
  .dd__menu { position: static; box-shadow: none; padding-left: 12px; }
  .navlink { padding: 8px 0; }
}
