/* ============================================================
   Claude Chicago  |  shared stylesheet (v1)
   Design system from site blueprint v1 (section 3).
   Warm cream, ink, terracotta, Chicago flag light blue.
   Fraunces headings, Inter body. El-map + flag star motif.
   Mobile-first, WCAG 2.1 AA.
   ============================================================ */

:root {
  --cream: rgb(250, 246, 240);
  --card: rgb(243, 237, 228);
  --card-deep: rgb(236, 228, 216);
  --ink: rgb(31, 27, 22);
  --ink-soft: rgb(92, 84, 74);
  --terracotta: #C15F3C;
  --terracotta-deep: #A84B2A;
  --terracotta-darker: #8F3E20;
  --flag-blue: #B3DDF2;
  --flag-blue-deep: #7FC4E8;
  --line-code: #00A1DE;   /* code vertical            */
  --line-health: #C60C30; /* healthcare vertical      */
  --line-civic: #009B3A;  /* civic / public affairs   */
  --line-biz: #F9461C;    /* small business vertical  */
  --line-fin: #522398;    /* finance vertical         */
  --star: #E4002B;        /* Chicago flag star red    */
  --hairline: rgba(31, 27, 22, 0.10);
  --focus: #1A73B8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 550;
  line-height: 1.14;
}

a { color: var(--ink); }
img, svg { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Flag star glyph (inline SVG via <use>) ---- */
.star-glyph { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; fill: var(--star); flex: none; }
.star-ink { fill: var(--ink); }
.star-white { fill: #fff; }

/* ============================================================
   Header + navigation
   ============================================================ */
header.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--cream);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.wordmark {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 21px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); min-height: 44px;
}
.wordmark .star-glyph { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: transparent; border: 1.5px solid var(--hairline);
  border-radius: 10px; width: 46px; height: 46px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

nav.links { display: flex; gap: 22px; align-items: center; }
nav.links a {
  text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; min-height: 44px;
}
nav.links a:hover { color: var(--terracotta-deep); }
nav.links a[aria-current="page"] {
  color: var(--terracotta-deep);
  box-shadow: inset 0 -2px 0 var(--terracotta);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--terracotta-deep); color: #fff;
  border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: none; cursor: pointer; min-height: 44px;
  font-family: inherit;
}
.btn:hover { background: var(--terracotta-darker); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(31, 27, 22, 0.35);
}
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--card-deep); color: var(--ink-soft); cursor: not-allowed;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 68px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--flag-blue); color: var(--ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 24px; line-height: 1.3;
}
.badge .star-glyph { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 72px); margin-bottom: 20px; }
.hero .lede { font-size: 20px; color: var(--ink-soft); max-width: 32em; margin-bottom: 12px; }
.hero .worldview {
  font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-style: italic;
  color: var(--terracotta-deep); margin-bottom: 6px;
}
.hero .worldview-es { font-size: 16px; color: var(--ink-soft); font-style: italic; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Postcard illustration */
.postcard {
  background: #fff; padding: 14px 14px 44px; transform: rotate(2deg);
  box-shadow: 0 12px 34px rgba(31, 27, 22, 0.14);
  position: relative; border-radius: 3px;
}
.postcard svg { display: block; width: 100%; height: auto; border-radius: 2px; }
.postcard .caption {
  position: absolute; bottom: 13px; left: 0; right: 0; text-align: center;
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 15px; color: var(--ink-soft);
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section { padding: 60px 0; }
.section-tight { padding: 40px 0; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terracotta-deep); margin-bottom: 12px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--terracotta); flex: none; }
h1.page-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
h2.section-title { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
.section-sub { color: var(--ink-soft); max-width: 40em; margin-bottom: 34px; font-size: 18px; }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 40em; margin-bottom: 8px; }

/* El-train section divider */
.el-divider { position: relative; height: 34px; margin: 0 auto; max-width: 1080px; padding: 0 24px; }
.el-divider .track {
  position: absolute; left: 24px; right: 24px; top: 50%; height: 3px;
  background: rgba(31, 27, 22, 0.15); border-radius: 2px;
}
.el-divider .stop {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  border: 3px solid var(--cream); transform: translateY(-42%);
}

/* ============================================================
   Next-event card + season strip
   ============================================================ */
.next-event {
  background: var(--card); border-radius: 18px; padding: 32px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.date-chip {
  background: var(--terracotta-deep); color: #fff; border-radius: 14px;
  width: 92px; height: 92px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.05; flex: none;
}
.date-chip .d { font-family: 'Fraunces', Georgia, serif; font-size: 34px; font-weight: 600; }
.date-chip .m { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.next-event h3 { font-size: 25px; margin-bottom: 6px; }
.next-event .meta { color: var(--ink-soft); font-size: 15.5px; }
.line-tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; margin-top: 10px; color: var(--ink-soft);
}
.line-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.soon-pill {
  display: inline-block; background: var(--flag-blue); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; font-size: 14.5px; white-space: nowrap; color: var(--ink);
}

.season { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.season.duo { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.event-card {
  background: var(--card); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px; position: relative;
  border-top: 4px solid transparent;
}
.event-card .when {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.event-card h3 { font-size: 20px; }
.event-card .where { color: var(--ink-soft); font-size: 15px; }
.event-card .state {
  margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--terracotta-deep);
}
.event-card.anchor { outline: 2px solid var(--terracotta); outline-offset: -2px; }
.anchor-flag {
  display: inline-block; background: var(--terracotta-deep); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; align-self: flex-start;
}

/* Events page long list */
.event-row {
  background: var(--card); border-radius: 16px; padding: 28px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: start;
  margin-bottom: 18px; border-left: 5px solid var(--hairline);
}
.event-row h3 { font-size: 23px; margin-bottom: 6px; }
.event-row .meta { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 6px; }
.event-row .desc { font-size: 16px; margin-top: 10px; max-width: 44em; }
.event-row .state { font-size: 13.5px; font-weight: 600; color: var(--terracotta-deep); }

/* ============================================================
   Ambassador roster
   ============================================================ */
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.amb {
  background: var(--card); border-radius: 16px; padding: 24px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.amb .avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif; font-size: 27px; font-weight: 600; color: #fff;
}
.amb h3 { font-size: 18px; margin-bottom: 4px; }
.amb .role {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--terracotta-deep); margin-bottom: 10px;
}
.amb .bio { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.amb .lines { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }

/* ============================================================
   Get involved pathways
   ============================================================ */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path {
  background: var(--card); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.path h3 { font-size: 19px; }
.path p { font-size: 15px; color: var(--ink-soft); }
.path .promise { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.path .soon-tag {
  margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--terracotta-deep);
  display: inline-flex; align-items: center; gap: 7px;
}
.path.wide { grid-column: span 3; background: var(--flag-blue); }
.path.wide p, .path.wide .promise { color: var(--ink); }

/* ============================================================
   Newsletter + forms (disabled v1 state)
   ============================================================ */
.newsletter { background: var(--card); border-radius: 20px; padding: 44px; text-align: center; }
.newsletter h2 { font-size: 30px; margin-bottom: 10px; }
.newsletter p { color: var(--ink-soft); margin-bottom: 22px; }
.nl-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nl-form input {
  font: inherit; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid rgba(31, 27, 22, 0.25); background: #fff; min-width: 300px; color: var(--ink);
}
.nl-form input:disabled { background: var(--card-deep); color: var(--ink-soft); }
.form-note {
  font-size: 13px; font-weight: 600; color: var(--terracotta-deep);
  margin-top: 16px; margin-bottom: 6px;
}
.data-promise { font-size: 13px; color: var(--ink-soft); margin-top: 6px; margin-bottom: 0; }

/* ============================================================
   Prose pages (setup, press, guidelines, terms, privacy)
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--terracotta-deep); }
.prose code {
  font-family: ui-monospace, 'SFMono-Regular', 'Consolas', monospace;
  background: var(--card-deep); padding: 2px 7px; border-radius: 6px; font-size: 15px;
}
.prose .meta-line { color: var(--ink-soft); font-size: 15px; margin-bottom: 30px; }
.callout {
  background: var(--card); border-left: 4px solid var(--terracotta); border-radius: 0 12px 12px 0;
  padding: 18px 22px; margin: 24px 0; font-size: 16px;
}
.callout.blue { border-left-color: var(--flag-blue-deep); }

/* Setup step cards */
.step {
  background: var(--card); border-radius: 14px; padding: 22px 24px; margin-bottom: 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
}
.step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta-deep); color: #fff;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 19px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 8px; }
.codeblock {
  background: var(--ink); color: #F3EDE4; border-radius: 10px; padding: 14px 16px;
  font-family: ui-monospace, 'SFMono-Regular', 'Consolas', monospace; font-size: 14.5px;
  overflow-x: auto; margin: 8px 0; line-height: 1.5;
}
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 4px; }
.os-card { background: var(--card-deep); border-radius: 12px; padding: 18px; }
.os-card h4 { font-size: 16px; margin-bottom: 8px; }
.os-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }

/* ============================================================
   Footer
   ============================================================ */
footer.site {
  border-top: 1px solid var(--hairline); padding: 44px 0 56px; margin-top: 30px;
  font-size: 14.5px; color: var(--ink-soft);
}
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 18px; }
.foot-brand .star-glyph { width: 15px; height: 15px; }
.foot-est { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-left: 6px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { max-width: 48em; margin-top: 22px; line-height: 1.55; }
.makers-mark { margin-top: 14px; font-family: 'Fraunces', Georgia, serif; font-style: italic; }
.built-with { margin-top: 14px; }
.built-with a { color: var(--terracotta-deep); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  nav.links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--hairline);
    padding: 8px 24px 18px; box-shadow: 0 14px 24px rgba(31, 27, 22, 0.1);
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 6px 0; }
  nav.links .btn { margin-top: 10px; justify-content: center; }
  header.site { position: relative; }

  .hero { padding: 48px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .postcard { max-width: 420px; margin: 0 auto; }
  .season { grid-template-columns: 1fr 1fr; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .paths { grid-template-columns: 1fr 1fr; }
  .path.wide { grid-column: span 2; }
  .os-grid { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: auto 1fr; }
  .event-row .soon-pill { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .season, .season.duo { grid-template-columns: 1fr; }
  .roster { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: 1fr; }
  .path.wide { grid-column: span 1; }
  .next-event { grid-template-columns: 1fr; text-align: center; }
  .date-chip { margin: 0 auto; }
  .line-tag { justify-content: center; }
  .nl-form input { min-width: 0; width: 100%; }
  .event-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step .num { margin-bottom: 4px; }
  .foot-grid { flex-direction: column; gap: 20px; }
}

/* ============================================================
   Motion preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
