: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%);
  overflow-x: hidden;
}

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;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 4vw, 48px);
  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; z-index: 1; 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); }

.hero-app-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(7, 26, 53, 0.28);
}

.hero-app-card img {
  width: min(170px, 100%);
  justify-self: center;
  border-radius: 8px;
  padding: 8px;
  background: white;
}

.hero-app-card .eyebrow {
  color: var(--red);
}

.hero-app-card h2 {
  margin-top: 4px;
  font-size: clamp(24px, 2.8vw, 32px);
}

.hero-app-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.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); }
.recording-section, .nations-section { background: #fff8d6; }
.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, .assistant-card, .video-card, .project-grid article, .signup-form, .deadline-card, .app-concierge-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; }

.recording-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  color: white;
  background:
    linear-gradient(135deg, rgba(7, 26, 53, 0.92), rgba(238, 49, 36, 0.82)),
    url("assets/calypso-calypso-hero.jpeg") center / cover;
}

.recording-hero p:not(.eyebrow) {
  max-width: 800px;
  color: #fff6d0;
  font-size: 18px;
}

.deadline-card {
  display: grid;
  gap: 12px;
  align-content: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.deadline-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.deadline-card strong {
  font-size: 28px;
  line-height: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  margin-bottom: 18px;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.signup-form .section-heading,
.full-span {
  grid-column: 1 / -1;
}

.signup-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid rgba(0, 189, 227, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: #f8feff;
}

.form-section legend {
  padding: 0 8px;
  color: var(--red);
  font-weight: 950;
}

.form-section textarea,
.form-section .checkbox-grid,
.form-section .form-note {
  grid-column: 1 / -1;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(0, 189, 227, 0.2);
  border-radius: 7px;
  padding: 10px;
  background: white;
  font-weight: 750;
}

.checkbox-grid input {
  width: auto;
  margin-top: 3px;
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.agreement {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted) !important;
  font-weight: 750 !important;
}

.agreement input {
  width: auto;
  margin-top: 4px;
}

.form-status {
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.app-concierge-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff, #e6fbff 58%, #fffaa3);
}

.app-concierge-card h3 {
  font-size: 30px;
}

.app-concierge-card img {
  justify-self: center;
  width: min(240px, 100%);
  border-radius: 8px;
  padding: 12px;
  background: white;
  box-shadow: 0 16px 44px rgba(30,23,20,0.08);
}

.assistant-entry-card {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
}

.assistant-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: white;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 243, 63, 0.9), rgba(238, 49, 36, 0.96) 42%, rgba(7, 26, 53, 1) 72%);
  box-shadow: 0 16px 34px rgba(7, 26, 53, 0.2);
  font-weight: 950;
  letter-spacing: 0;
}

.assistant-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  margin-top: 14px;
  padding: 0 16px;
  color: white;
  background: var(--red);
  font-weight: 950;
  text-decoration: none;
}

.assistant-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.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); }

.picture-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.feature-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  box-shadow: 0 20px 54px rgba(30,23,20,0.12);
}

.feature-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.feature-photo figcaption {
  padding: 12px 14px;
  color: #fff7eb;
  background: #15120f;
  font-size: 13px;
  font-weight: 800;
}

.roy-cape-feature {
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(248, 232, 204, 0.96)),
    url("assets/calypso-calypso-hero.jpeg") center / cover;
}

.secondary-features {
  grid-template-columns: 1fr;
}

.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;
}

.manifesto-feature {
  scroll-margin-top: 96px;
}

.manifesto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.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; }
.assistant-card {
  display: grid;
  align-content: start;
  gap: 12px;
  background: linear-gradient(145deg, #ffffff, #e6fbff 62%, #fffaa3);
}

.assistant-card .assistant-icon {
  width: 96px;
  height: 96px;
}

.visit-assistant {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.visit-assistant .assistant-note { color: #e6fbff; }
.resource-card { display: grid; gap: 12px; }
.resource-card a { color: var(--red); font-weight: 950; }

.nation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nation-grid a {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 189, 227, 0.32);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(30,23,20,0.05);
}

.nation-grid span {
  font-size: 24px;
}

.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; }

.assistant-floating-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  gap: 1px;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: white;
  background: var(--red);
  box-shadow: 0 20px 50px rgba(7, 26, 53, 0.28);
  font-weight: 950;
  text-decoration: none;
}

.assistant-floating-button span {
  align-self: end;
  font-size: 12px;
}

.assistant-floating-button strong {
  align-self: start;
  font-size: 20px;
}

.assistant-widget {
  position: fixed;
  right: 22px;
  bottom: 112px;
  z-index: 41;
  width: min(390px, calc(100vw - 34px));
  border: 1px solid rgba(0, 189, 227, 0.4);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 80px rgba(7, 26, 53, 0.32);
  max-height: min(620px, calc(100vh - 132px));
  overflow: auto;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.assistant-widget.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.assistant-widget:target {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.assistant-widget-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.assistant-widget h2 {
  font-size: 27px;
}

.assistant-widget .primary-button {
  width: 100%;
  margin-top: 14px;
}

.assistant-close {
  position: static;
  flex: 0 0 auto;
}

.assistant-prompts {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.assistant-prompts span {
  border: 1px solid rgba(0, 189, 227, 0.25);
  border-radius: 7px;
  padding: 9px 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.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(920px, calc(100vw - 30px)); max-height: min(86vh, 980px); border: 0; border-radius: 8px; padding: 28px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,0.35); overflow: auto; }
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; }

#dialog-content p {
  font-size: 17px;
}

.story-link-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.story-link-list button {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}

.story-link-list strong {
  font-size: 18px;
}

.story-link-list span {
  color: var(--muted);
  line-height: 1.5;
}

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

@media (max-width: 640px) {
  main > section, .site-footer { padding: 46px 20px; }
  .site-header { gap: 16px; padding: 12px 20px; }
  .brand img { width: 50px; height: 50px; }
  nav { width: 100%; gap: 12px 16px; font-size: 13px; }
  .hero-section { width: 100%; max-width: 100vw; min-height: 74vh; overflow: hidden; }
  .hero-content { width: 100%; max-width: min(calc(100vw - 40px), 350px); min-width: 0; padding-bottom: 32px; }
  h1 { width: 100%; max-width: min(calc(100vw - 40px), 350px); font-size: 32px; line-height: 1.04; overflow-wrap: break-word; }
  .hero-content p:not(.eyebrow) { max-width: min(calc(100vw - 40px), 350px); font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .primary-button, .secondary-button { width: 100%; text-align: center; }
  .hero-app-card {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: min(calc(100vw - 40px), 350px);
    margin-bottom: 26px;
    padding: 12px;
  }
  .hero-app-card .assistant-icon { width: 76px; height: 76px; }
  .hero-app-card h2 { font-size: 21px; }
  .hero-app-card p:not(.eyebrow) { font-size: 13px; line-height: 1.35; }
  .assistant-open-button { width: 100%; }
  .assistant-floating-button { right: 14px; bottom: 14px; width: 68px; height: 68px; }
  .assistant-widget { right: 14px; bottom: 92px; }
  .ticker-band { display: grid; grid-template-columns: 1fr; width: 100%; max-width: 100vw; }
  .ticker-band span { text-align: center; }
  .toolbar, .story-grid, .resource-grid, .timeline, .signup-form, .nation-grid, .form-section, .checkbox-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .footer-links { text-align: left; }
  .feature-photo img { min-height: 280px; }
  dialog { width: calc(100vw - 24px); padding: 22px; }
}
