:root {
  color-scheme: dark;

  --font-scale: 1;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --page: #071019;
  --page-raised: #0d1822;
  --panel: #111f2a;
  --panel-strong: #182a37;
  --text: #f4efe2;
  --text-muted: #b8c2c9;
  --line: #344653;
  --gold: #f2c14e;
  --gold-strong: #ffd76d;
  --red: #ef4d4d;
  --red-strong: #ff6767;
  --blue: #75d5ff;
  --shadow: 0 1.25rem 3.5rem rgb(0 0 0 / 0.38);
  --focus: 0 0 0 0.2rem #071019, 0 0 0 0.38rem #75d5ff;
  --content-width: 74rem;
  --radius: 1rem;
}

html[data-theme="light"] {
  color-scheme: light;

  --page: #f5f1e7;
  --page-raised: #fffaf0;
  --panel: #ffffff;
  --panel-strong: #eee5d4;
  --text: #1c252b;
  --text-muted: #52616b;
  --line: #c8bda9;
  --gold: #a66b00;
  --gold-strong: #7e5000;
  --red: #b52323;
  --red-strong: #8f1717;
  --blue: #006e9d;
  --shadow: 0 1.25rem 3.5rem rgb(65 49 24 / 0.18);
  --focus: 0 0 0 0.2rem #f5f1e7, 0 0 0 0.38rem #006e9d;
}

html[data-font-scale="90"] {
  --font-scale: 0.9;
}

html[data-font-scale="100"] {
  --font-scale: 1;
}

html[data-font-scale="110"] {
  --font-scale: 1.1;
}

html[data-font-scale="120"] {
  --font-scale: 1.2;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 18rem;
  background:
    radial-gradient(circle at 15% 5%, rgb(242 193 78 / 0.08), transparent 26rem),
    var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: calc(1rem * var(--font-scale));
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--gold);
  color: #101820;
  font-weight: 800;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(1rem);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  width: min(100% - 2rem, var(--content-width));
  min-height: 4.75rem;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgb(242 193 78 / 0.1);
  color: var(--gold-strong);
  font-size: 1.4rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.primary-nav {
  display: flex;
  gap: 1rem;
}

.primary-nav a,
.text-link {
  color: var(--text-muted);
  font-weight: 750;
  text-underline-offset: 0.25em;
}

.primary-nav a {
  text-decoration: none;
}

.primary-nav a:hover,
.text-link:hover {
  color: var(--gold-strong);
}

.accessibility-controls {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.control-button,
.font-menu button {
  min-height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.control-button {
  padding: 0.45rem 0.8rem;
}

.control-button:hover,
.font-menu button:hover {
  border-color: var(--gold);
}

.font-control {
  position: relative;
}

.font-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  grid-template-columns: 2.5rem auto 2.5rem;
  gap: 0.4rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--page-raised);
  box-shadow: var(--shadow);
}

.font-menu[hidden] {
  display: none;
}

.font-menu button {
  padding: 0.4rem 0.65rem;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(31rem, 72vh, 49rem);
  place-items: end start;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #071019;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: 50% center;
  filter: saturate(1.12) contrast(1.04);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(4 11 17 / 0.94) 0%, rgb(4 11 17 / 0.7) 39%, rgb(4 11 17 / 0.12) 74%),
    linear-gradient(0deg, rgb(4 11 17 / 0.9) 0%, transparent 52%);
}

.hero-content {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
  padding-block: clamp(5rem, 12vw, 9rem) 4.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1;
  text-wrap: balance;
}

.hero h1 {
  max-width: 10ch;
  color: #fff7dc;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  text-shadow: 0 0.15em 0.5em rgb(0 0 0 / 0.6);
}

.hero-copy {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: #f5efe2;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 650;
  text-shadow: 0 0.12em 0.4em rgb(0 0 0 / 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--gold);
  color: #101820;
}

.button-primary:hover {
  background: var(--gold-strong);
}

.button-secondary {
  border-color: rgb(255 255 255 / 0.42);
  background: rgb(5 12 18 / 0.6);
  color: #fff;
}

.button-secondary:hover {
  border-color: #fff;
  background: rgb(5 12 18 / 0.85);
}

.hero-badge {
  position: absolute;
  right: max(1rem, calc((100vw - var(--content-width)) / 2));
  bottom: 2rem;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 0.65rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 0.8rem;
  background: rgb(5 12 18 / 0.78);
  color: #fff;
  backdrop-filter: blur(0.6rem);
}

.hero-badge > span {
  grid-row: 1 / 3;
  color: var(--gold-strong);
  font-size: 1.5rem;
}

.hero-badge strong,
.hero-badge small {
  display: block;
}

.hero-badge small {
  color: #d4dde2;
}

.section {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section h2 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.status-chip {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.status-chip[data-state="live"] {
  border-color: var(--red);
  background: rgb(239 77 77 / 0.12);
  color: var(--red-strong);
}

.status-chip[data-state="upcoming"] {
  border-color: var(--blue);
  background: rgb(117 213 255 / 0.1);
  color: var(--blue);
}

.live-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.live-image-link {
  position: relative;
  display: block;
  min-height: 25rem;
  overflow: hidden;
  background: #02070a;
}

.live-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.live-image-link:hover .live-thumbnail {
  transform: scale(1.018);
}

.live-badge,
.play-button {
  position: absolute;
}

.live-badge {
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.35rem;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-badge[data-state="upcoming"] {
  background: #006e9d;
}

.live-badge[data-state="fallback"] {
  background: #3b4a54;
}

.play-button {
  top: 50%;
  left: 50%;
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.62);
  color: #fff;
  font-size: 1.6rem;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(0.35rem);
}

.live-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.live-details h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.live-details p:not(.eyebrow) {
  color: var(--text-muted);
}

.live-details .button {
  margin-top: 0.8rem;
}

.notice,
.community-note {
  color: var(--text-muted);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}

.community-feature {
  position: relative;
  display: block;
  min-height: 30rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.community-feature::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(3 9 14 / 0.95), rgb(3 9 14 / 0.05) 75%);
  content: "";
}

.community-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-feature-copy {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
}

.community-feature-copy strong,
.community-feature-copy small {
  display: block;
}

.community-feature-copy strong {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.1;
}

.community-feature-copy small {
  margin-top: 0.7rem;
  color: #dce4e8;
}

.community-posts {
  display: grid;
  gap: 0.85rem;
}

.community-post {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
}

.community-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(242 193 78 / 0.12);
  color: var(--gold-strong);
}

.community-post time {
  color: var(--gold-strong);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-post h3 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
}

.community-post p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.community-post a {
  color: var(--gold-strong);
  font-size: 1.35rem;
  text-decoration: none;
}

.community-note {
  margin: 1rem 0 0;
  font-size: 0.83rem;
}

.contact-panel {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.6rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(242 193 78 / 0.12), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}

.contact-panel p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.site-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  color: var(--gold-strong);
}

@media (max-width: 58rem) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .hero-badge {
    display: none;
  }

  .live-card,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .live-image-link {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .community-feature {
    min-height: 23rem;
  }
}

@media (max-width: 40rem) {
  .header-inner {
    width: min(100% - 1rem, var(--content-width));
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .control-button {
    padding-inline: 0.65rem;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 38rem;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgb(4 11 17 / 0.96) 0%, rgb(4 11 17 / 0.52) 70%, rgb(4 11 17 / 0.22)),
      linear-gradient(90deg, rgb(4 11 17 / 0.55), transparent);
  }

  .hero-content {
    width: min(100% - 1.25rem, var(--content-width));
    padding-bottom: 2rem;
  }

  .hero-actions,
  .hero-actions .button,
  .contact-panel .button {
    width: 100%;
  }

  .section {
    width: min(100% - 1.25rem, var(--content-width));
  }

  .section-heading,
  .contact-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-post {
    grid-template-columns: auto 1fr;
  }

  .community-post > a {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
