:root {
  color-scheme: light;
  --ink: #071a35;
  --muted: #50627c;
  --line: #c7eaf0;
  --surface: #f3feff;
  --paper: #ffffff;
  --red: #ee3124;
  --gold: #fff33f;
  --green: #16b84e;
  --blue: #00bde3;
  --navy: #061b49;
  --coral: #ff8c65;
  --dark: #071a35;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #edfdff 0%, #ffffff 44%, #fffbea 100%);
}

a { color: inherit; }
p { color: var(--muted); line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(0, 189, 227, 0.22);
  padding: 14px 30px;
  background: rgba(243, 254, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--dark); font-weight: 950; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
nav { display: flex; flex-wrap: wrap; gap: 18px; color: #473c34; font-size: 14px; font-weight: 850; }
nav a { text-decoration: none; }
nav a:hover { color: var(--red); }

main > section, .site-footer { padding: 70px max(24px, calc((100vw - 1180px) / 2)); }
.hero-section {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background: var(--dark);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,53,0.94), rgba(7,26,53,0.28) 62%, rgba(255,255,255,0.05)), linear-gradient(0deg, rgba(7,26,53,0.74), transparent 58%); }
.hero-content { position: relative; max-width: 860px; padding-bottom: 48px; }
.eyebrow { margin: 0; color: var(--gold); font-size: 12px; font-weight: 950; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3 { margin: 8px 0 0; letter-spacing: 0; }
h1 { font-size: clamp(44px, 6vw, 78px); line-height: 0.98; }
h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.05; }
h3 { font-size: 22px; }
.hero-content p:not(.eyebrow) { max-width: 680px; color: #f6ead8; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}
.primary-button { color: white; background: var(--red); }
.secondary-button { color: var(--navy); background: var(--gold); }

.ticker-band { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; padding-bottom: 22px; background: #1e1714; }
.ticker-band span { border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 9px 13px; color: #f8ecd9; font-weight: 850; }

.intro-section, .visit-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 42px; align-items: start; background: var(--paper); }
.intro-section > p { margin-top: 10px; font-size: 18px; }
.latest-section, .features-section, .resources-section { background: var(--surface); }
.history-section, .media-section { background: #e7fbff; }
.section-heading { max-width: 800px; margin-bottom: 26px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; margin-bottom: 22px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 12px; background: white; color: var(--ink); }

.story-grid, .resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story-card, .resource-card, .lead-feature, .qr-card, .video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(30,23,20,0.06);
}
.story-card { display: grid; align-content: start; gap: 12px; min-height: 270px; }
.story-card .tag, .resource-card .tag { width: fit-content; border-radius: 999px; padding: 6px 10px; color: white; background: var(--green); font-size: 12px; font-weight: 950; }
.story-card button, .feature-list button { justify-self: start; border: 0; border-radius: 7px; padding: 10px 13px; color: white; background: var(--dark); font-weight: 900; }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.timeline article { position: relative; border-top: 5px solid var(--red); border-radius: 8px; padding: 18px; background: var(--paper); }
.timeline strong { color: var(--red); font-size: 13px; }

.feature-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: 18px; }
.lead-feature { min-height: 340px; display: grid; align-content: end; background: linear-gradient(145deg, #fffdf9, #f8e8cc); }
.feature-list { display: grid; gap: 12px; }
.feature-list button { width: 100%; min-height: 76px; text-align: left; background: var(--blue); }

.manifesto-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(0, 189, 227, 0.35);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #e6fbff 58%, #fffaa3);
}

.manifesto-callout h3 {
  font-size: 28px;
}

.media-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.65fr); gap: 18px; align-items: stretch; }
.video-card video, .video-card img { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--dark); object-fit: cover; }
.qr-card img { display: block; width: min(260px, 100%); margin: 0 auto 16px; }
.resource-card { display: grid; gap: 12px; }
.resource-card a { color: var(--red); font-weight: 950; }

.visit-section { background: var(--navy); color: white; }
.visit-section p { color: #e6fbff; }
.visit-section img { justify-self: center; width: min(260px, 100%); border-radius: 8px; background: white; padding: 12px; }

.site-footer { display: flex; justify-content: space-between; gap: 40px; color: white; background: #15120f; }
.site-footer img { width: 118px; height: 82px; border-radius: 8px; object-fit: cover; }
.site-footer p { max-width: 540px; color: #f0dfc4; }
.footer-links { display: grid; gap: 8px; text-align: right; }
.footer-links a { color: #fff7eb; text-decoration: none; font-weight: 850; }

dialog { width: min(760px, calc(100vw - 30px)); border: 0; border-radius: 8px; padding: 28px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,0.35); }
dialog::backdrop { background: rgba(0,0,0,0.6); }
.icon-button { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--dark); color: white; font-size: 26px; line-height: 1; }

@media (max-width: 940px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  .intro-section, .visit-section, .feature-layout, .media-grid { grid-template-columns: 1fr; }
  .manifesto-callout { align-items: flex-start; flex-direction: column; }
  .story-grid, .resource-grid, .timeline { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  main > section, .site-footer { padding: 46px 20px; }
  h1 { font-size: 40px; }
  .toolbar, .story-grid, .resource-grid, .timeline { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .footer-links { text-align: left; }
}
