:root {
  color-scheme: light;
  --page-bg: #fff4e8;
  --surface: rgba(255, 249, 243, 0.84);
  --surface-strong: #ffffff;
  --border: rgba(246, 130, 31, 0.18);
  --text: #1f140d;
  --muted: #705749;
  --accent: #f6821f;
  --accent-strong: #d96b10;
  --accent-soft: rgba(246, 130, 31, 0.12);
  --accent-warm: #ff6633;
  --accent-light: #fbad41;
  --shadow: 0 24px 60px rgba(134, 64, 12, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 102, 51, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(251, 173, 65, 0.24), transparent 24%),
    linear-gradient(180deg, #fffaf6 0%, var(--page-bg) 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.mode-switch-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.stack {
  margin-top: 28px;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 320px);
  gap: 28px;
  align-items: center;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 232, 0.94)),
    linear-gradient(135deg, rgba(255, 102, 51, 0.06), rgba(246, 130, 31, 0.08));
}

.hero-content {
  min-width: 0;
}

.eyebrow,
.section-kicker,
.spotlight-label,
.event-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.section-heading h2,
.event-card h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.hero-copy,
.spotlight-copy,
.event-copy {
  margin: 18px 0 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-note {
  margin: 14px 0 0;
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.spotlight-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.location-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 24px;
  padding: 28px;
  align-items: stretch;
}

.chaos-reef-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.2fr);
  gap: 0;
  overflow: hidden;
  margin-top: 20px;
  background:
    linear-gradient(135deg, rgba(246, 130, 31, 0.08), rgba(255, 102, 51, 0.12)),
    var(--surface);
}

.chaos-reef-media {
  margin: 0;
}

.chaos-reef-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.chaos-reef-copy {
  padding: 28px;
}

.chaos-reef-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.location-copy-block {
  min-width: 0;
}

.location-address {
  margin: 0;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.map-frame-wrap {
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.featured-event {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(255, 102, 51, 0.12), rgba(251, 173, 65, 0.16)),
    var(--surface);
}

.featured-event-media {
  margin: 0;
  min-height: 100%;
}

.featured-event-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.featured-event-copy {
  padding: 30px;
}

.featured-event h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.spotlight-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.office-photo-block {
  margin: 0;
}

.office-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
}

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

.event-card {
  padding: 28px;
}

.event-card h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.event-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.event-page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.event-hero {
  padding: 34px;
}

.event-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.8fr);
  gap: 20px;
  margin-top: 20px;
}

.event-detail-card,
.event-sidebar-card {
  padding: 28px;
}

.event-rich-copy,
.event-list,
.event-sidebar-list {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.event-rich-copy + .event-rich-copy,
.event-list + .event-rich-copy,
.event-rich-copy + .event-list {
  margin-top: 16px;
}

.event-list,
.event-sidebar-list {
  padding-left: 20px;
}

.event-sidebar-list li + li,
.event-list li + li {
  margin-top: 10px;
}

.video-placeholder {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
}

.video-embed-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.video-embed-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
}

.video-embed-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.video-embed-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
}

.site-footer {
  margin-top: 28px;
  padding: 24px 28px;
}

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

.footer-group {
  min-width: 0;
}

.footer-copy {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

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

.footer-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-link-label,
.footer-link-url {
  display: block;
}

.footer-link-url {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.project-credit {
  display: block;
  width: fit-content;
  margin: 12px 16px 20px auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(134, 64, 12, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.secondary-button {
  background: var(--accent);
  color: #ffffff;
}

.ghost-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 20px, 1080px);
    padding-top: 20px;
  }

  .hero,
  .featured-event,
  .location-card,
  .spotlight-card,
  .event-card {
    padding: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .featured-event {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .event-page-shell {
    width: min(100% - 20px, 980px);
    padding-top: 20px;
  }

  .event-hero,
  .event-detail-card,
  .event-sidebar-card,
  .site-footer {
    padding: 24px;
  }

  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .event-detail-grid {
    grid-template-columns: 1fr;
  }

  .featured-event-copy {
    padding: 24px;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .chaos-reef-card {
    grid-template-columns: 1fr;
  }

  .chaos-reef-copy {
    padding: 24px;
  }

  .spotlight-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}
