@font-face {
  font-family: "Alegreya";
  src: url("fonts/Alegreya-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --night: #0d1424;
  --panel: #151f36;
  --edge: #2a3a5e;
  --gold: #f2c14e;
  --gold-deep: #c8952c;
  --ink: #e9e3d4;
  --muted: #a9b2c8;
  --rune: #6fc3ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Alegreya", Georgia, "Times New Roman", serif;
}

a { color: var(--rune); text-underline-offset: 0.18em; }
a:hover { color: #a6dbff; }

h1, h2, h3 {
  font-family: "Alegreya", Georgia, serif;
  color: var(--gold);
  line-height: 1.2;
  font-weight: 800;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }

/* Header and footer shared by every page */
.site-head {
  border-bottom: 1px solid var(--edge);
  background: rgba(13, 20, 36, 0.92);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 34px; height: auto; }
.site-head nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--gold); }

.site-foot {
  margin-top: 64px; border-top: 1px solid var(--edge);
  color: var(--muted); font-size: 0.95rem;
}
.site-foot .wrap { padding-top: 20px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-foot a { color: var(--muted); }

/* Landing page: logo in the sky, heroes visible below, status at the foot */
.hero {
  position: relative; overflow: hidden;
  height: min(calc(100svh - 58px), 940px); min-height: 560px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  background: #1b2a4a url("heroes.webp") center 62% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,20,36,0.35) 0%, rgba(13,20,36,0) 30%, rgba(13,20,36,0) 62%, rgba(13,20,36,0.85) 88%, var(--night) 100%);
}
.hero-inner, .hero-foot { position: relative; z-index: 1; text-align: center; padding: 0 16px; }
.hero-inner { padding-top: clamp(16px, 4vh, 40px); }
.hero-foot { padding-bottom: 36px; }
.hero-logo { width: min(210px, 52vw); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.55)); }
.tagline {
  margin: 4px 0 0; color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 800; font-size: 0.95rem; display: inline-block; padding: 4px 14px; border-radius: 6px;
  background: rgba(13,20,36,0.62); text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}
.status {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--gold-deep); background: rgba(13,20,36,0.75); color: var(--ink); font-weight: 600;
}
.hero-logo { display: block; margin: 0 auto; }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero {
    height: auto; min-height: 0; padding: 56px 32px 64px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
    column-gap: 56px; align-content: center; justify-content: center; max-width: 1100px; margin: 0 auto;
    background: none;
  }
  .hero::after { display: none; }
  .hero-inner { grid-column: 1; grid-row: 1; align-self: end; padding: 0; }
  .hero-foot { grid-column: 1; grid-row: 2; align-self: start; padding: 24px 0 0; }
  .hero-logo { width: 320px; }
  .tagline { background: none; font-size: 1.05rem; }
  .hero-art {
    display: block; grid-column: 2; grid-row: 1 / span 2;
    height: min(74vh, 640px); width: auto; border-radius: 18px;
    border: 1px solid var(--gold-deep); box-shadow: 0 18px 48px rgba(0,0,0,0.5);
  }
}
body { background: radial-gradient(ellipse at 30% 0%, #1c2a4a 0%, var(--night) 60%) fixed var(--night); }

.pitch { text-align: center; }
.pitch p { color: var(--ink); font-size: 1.15rem; }

.features { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: 16px; }
.features h3 { margin: 0 0 6px; font-size: 1.1rem; }
.features p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Text pages (privacy, support) */
.doc { padding-top: 32px; }
.doc h1 { font-size: 2.1rem; margin: 0 0 4px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 4px 0; }
.summary {
  background: var(--panel); border: 1px solid var(--edge); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 8px;
}
.summary p { margin: 0; }
.contact-card {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 12px;
  padding: 18px; margin: 16px 0 8px; text-align: center;
}
.contact-card a { font-size: 1.25rem; font-weight: 700; word-break: break-all; }
details { background: var(--panel); border: 1px solid var(--edge); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details[open] summary { color: var(--gold); margin-bottom: 6px; }
details p { margin: 6px 0 0; color: var(--ink); }
