:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-raise: #101826;
  --bg-deep: #0b121c;
  --line: rgba(126, 231, 255, 0.38);
  --cyan: #8eecff;
  --cyan-strong: #d7f7ff;
  --gold: #f0b429;
  --text: #f4f7fb;
  --muted: #c5d2e0;
  --danger: #ffb4b4;
  --ok: #b8f3d4;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  --display: Bahnschrift, "Segoe UI", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(56, 178, 255, 0.16), transparent 55%),
    radial-gradient(900px 420px at 110% 8%, rgba(240, 180, 41, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("/assets/menu.jpg");
  background-size: cover;
  opacity: 0.07;
  z-index: -1;
}

img { max-width: 100%; height: auto; }

a { color: var(--cyan-strong); }
a:hover { color: white; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0.2rem 0 0.8rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.6rem; }
h3 { margin: 0.3rem 0; }

p { margin: 0 0 0.9rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  color: black;
  padding: 0.6rem 1rem;
  z-index: 5;
}

.skip:focus { top: 1rem; }

.site-header, .site-footer, main {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid rgba(240, 180, 41, 0.55);
}

.desktop-nav, .site-footer nav, .menu nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.desktop-nav a, .site-footer nav a, .menu a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.desktop-nav a[aria-current="page"], .menu a[aria-current="page"] {
  color: var(--cyan-strong);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.menu { display: none; }

.menu summary {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--cyan-strong);
  list-style: none;
}

.menu summary::-webkit-details-marker { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0 2rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.zia { width: 1.2rem; height: 1.2rem; color: var(--gold); flex: none; }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.2rem 0; }

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--cyan);
  background: #082033;
  color: var(--cyan-strong);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 0 24px rgba(90, 215, 255, 0.16);
  cursor: pointer;
}

.button-gold, button.button-gold {
  border-color: var(--gold);
  color: #fff6dd;
  box-shadow: 0 0 24px rgba(240, 180, 41, 0.12);
}

.button:hover, button.button:hover { background: #123049; color: white; }

.is-disabled {
  opacity: 0.6;
  box-shadow: none;
}

.frame {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.72);
  box-shadow: var(--shadow);
}

.hero-figure { margin: 0; overflow: hidden; }
.hero-figure img { display: block; width: 100%; }

.section { padding: 1.5rem 0 2rem; }

.section-head { max-width: 44rem; margin-bottom: 1.2rem; }

.feature-grid, .note-grid, .download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.download-grid, .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel {
  background: rgba(16, 24, 38, 0.88);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(240, 180, 41, 0.05);
}

.panel img { width: 64px; height: 64px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: center;
}

.art-frame img { display: block; width: 100%; }
.art-frame figcaption, .card-tile figcaption { color: var(--muted); font-size: 0.95rem; padding: 0.7rem 0.2rem 0; }

.footage { max-width: 72rem; }

.footage-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0c1422;
}

.footage-slide {
  margin: 0;
  width: 100%;
  height: 100%;
}

.footage-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c1422;
}

.footage-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.9rem;
}

.footage-arrow {
  min-width: 3rem;
  padding-inline: 0.9rem;
  font-size: 1.25rem;
  line-height: 1;
}

.footage-status {
  margin: 0;
  min-width: 4rem;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem 1.25rem;
}

.card-tile { margin: 0; scroll-snap-align: start; }
.card-tile img { display: block; width: 100%; border: 1px solid rgba(240, 180, 41, 0.45); }
.card-tile figcaption { display: grid; gap: 0.15rem; }
.card-tile strong { color: var(--text); }

.ranks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 0;
}

.ranks li {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
}

.ranks img { width: min(100%, 120px); }

.cta {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
}

.cta img { width: 180px; border: 1px solid rgba(240, 180, 41, 0.5); }

.page-head { padding: 1.5rem 0 0.5rem; max-width: 46rem; }

.prose-block { max-width: 46rem; padding-bottom: 2rem; }
.prose-block li { margin: 0.35rem 0; }
.prose-block code {
  font-family: Consolas, "Courier New", monospace;
  color: var(--cyan-strong);
}

.form { display: grid; gap: 0.9rem; max-width: 42rem; margin-bottom: 2rem; }
.form.narrow { max-width: 28rem; }

.field { display: grid; gap: 0.35rem; }
label { font-weight: 650; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  background: #0c1422;
  border: 1px solid rgba(142, 236, 255, 0.45);
  font: inherit;
}

textarea { min-height: 10rem; resize: vertical; }

input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.hint { color: var(--muted); margin: 0; font-size: 0.95rem; }
.field-error { color: var(--danger); margin: 0; }

.banner { padding: 0.8rem 1rem; border: 1px solid var(--line); max-width: 42rem; }
.banner.error { border-color: var(--danger); color: var(--danger); }
.banner.ok { border-color: var(--ok); color: var(--ok); }

.check { display: flex; align-items: center; gap: 0.6rem; }
.check input { width: 1.2rem; height: 1.2rem; min-height: 0; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.status { display: inline-block; padding: 0.45rem 0.75rem; border: 1px solid var(--line); }
.status.online { color: var(--ok); border-color: var(--ok); }
.status.offline { color: var(--gold); border-color: var(--gold); }

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(126, 231, 255, 0.2);
  margin-top: 1rem;
}

.wordmark { width: min(280px, 70%); height: auto; }

.site-footer p { color: var(--muted); }

.admin-flag {
  margin: 1rem 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gold);
  color: #ffe7ad;
}

.admin-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.admin-list a {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  padding: 0.9rem 1rem;
  background: rgba(16, 24, 38, 0.88);
  border: 1px solid var(--line);
  color: var(--text);
}
.admin-list span, .facts { color: var(--muted); }

.pill {
  display: inline-block;
  width: fit-content;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}
.pill.new { color: var(--cyan-strong); }
.pill.reviewed { color: var(--gold); }
.pill.closed { color: var(--muted); }

.facts { display: grid; gap: 0.45rem; margin: 1rem 0; }
.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 0.6rem; }
.facts dt { color: var(--gold); }

.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
}

.inline-danger { margin-top: 0.5rem; }

@media (max-width: 900px) {
  .hero, .split, .feature-grid, .download-grid, .note-grid, .cta, .ranks {
    grid-template-columns: 1fr;
  }
  .site-header { flex-wrap: wrap; }
  .desktop-nav { display: none; }
  .menu { display: block; margin-left: auto; }
  .menu[open] { flex-basis: 100%; }
  .menu nav { display: grid; padding: 0.2rem 0 0.8rem; }
  .card-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .facts div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
