/* ── Design tokens (from BRAND_GUIDELINES.md) ──────────── */
:root {
  --canvas:       #11151D;
  --surface-elev: #191F2A;
  --surface-card: #1D2532;
  --surface-inset:#171E29;
  --border-subtle:#354154;
  --text-white:   #FFFFFF;
  --text-grey:    #C0C8D4;
  --text-slate:   #8B95A5;
  --accent-cyan:  #00D2FF;
  --accent-blue:  #0052FF;
  --card-radius:  16px;
  --card-shadow:  0 8px 32px rgba(0, 0, 0, 0.45),
                  0 2px 8px rgba(0, 0, 0, 0.3);

  /* Background image overlay — increase to darken, decrease to reveal more. */
  --main-background-overlay-opacity: 0.86;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ── Page canvas ───────────────────────────────────────── */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--canvas);
  color: var(--text-grey);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-align: center;
}

/* ── Header / footer bars ──────────────────────────────── */
.site-header,
.site-footer {
  background-color: var(--surface-elev);
  padding: 1rem 1.5rem;
  flex-shrink: 0;
  width: 100%;
}

.site-header {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 1rem 1.5rem 1rem 1.5rem;
}

/* ── Header brand link ─────────────────────────────────── */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 4px;
}

.header-brand:hover {
  opacity: 0.85;
}

.header-brand:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.header-emblem {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.header-wordmark {
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-footer {
  font-size: 0.8125rem;
  color: var(--text-slate);
  letter-spacing: 0.01em;
  margin-top: auto;
}

/* ── Main content area ─────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  width: 100%;
  background-color: var(--canvas);
  background-image:
    linear-gradient(
      rgba(17, 21, 29, var(--main-background-overlay-opacity)),
      rgba(17, 21, 29, var(--main-background-overlay-opacity))
    ),
    url("/assets/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Central card ──────────────────────────────────────── */
.card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 3rem 2.5rem;
  max-width: 32rem;
  width: 100%;
}

/* ── Emblem ────────────────────────────────────────────── */
.emblem {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
}

/* ── Wordmark ──────────────────────────────────────────── */
.wordmark {
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.brand-white {
  color: var(--text-white);
  font-weight: 900;
}

.brand-cyan {
  color: var(--accent-cyan);
  font-weight: 300;
}

/* ── Tagline ───────────────────────────────────────────── */
.tagline {
  font-size: clamp(0.6875rem, 1.8vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
}

/* ── Announcement ──────────────────────────────────────── */
.announcement {
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* ── Description ───────────────────────────────────────── */
.description {
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  font-weight: 400;
  color: var(--text-grey);
  margin-bottom: 0.5rem;
}

/* ── Links ─────────────────────────────────────────────── */
a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #4DE4FF;
}

a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Responsive: narrow screens ────────────────────────── */
@media (max-width: 480px) {
  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card {
    padding: 2rem 1.25rem;
  }

  .wordmark {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .brand-white,
  .brand-cyan {
    display: block;
  }

  .emblem {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
  }

  .tagline {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
