/*
 * S2-Brand Production Typography: self-hosted, bulletproof @font-face.
 * Fonts are served locally from /brand/fonts/ (no external CDN call, no third-party
 * dependency, no privacy leak, deterministic offline rendering). Orbitron ships as a
 * single variable file (wght 400-900); Quantico ships as static 400/700 cuts.
 * Source: Google Fonts, SIL Open Font License 1.1. font-display: swap keeps text
 * visible while the face loads.
 */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/brand/fonts/orbitron-variable-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Quantico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/brand/fonts/quantico-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Quantico';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/brand/fonts/quantico-700-latin.woff2') format('woff2');
}

/* Token defaults (the s2-dark look). The runtime theme controller (#239) overrides
 * every one of these on :root from the active theme's JSON, so a dropped-in team
 * theme restyles the header and any other var() consumer without touching this file. */
:root {
  --s2-bg-stealth: #0F1012;
  --s2-bg-chassis: #1C1E21;
  --s2-glow-gold: #FFD700;
  --s2-glow-orange: #E28714;
  --s2-text-pure: #FFFFFF;
  /* The wordmark on a light background. Stealth rather than a pure #000000, so
     nothing outside the palette enters the brand. */
  --s2-text-inverse: #0F1012;
  --s2-text-secondary: rgba(255, 255, 255, 0.64);
  --s2-divider: rgba(255, 215, 0, 0.15);
  --s2-tracking-wide: 0.18em;
  --s2-tracking-mega: 0.32em;
  --s2-font-body: "Quantico", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s2-font-display: "Orbitron", "Quantico", system-ui, -apple-system, sans-serif;
}

.s2-header-container {
  background-color: var(--s2-bg-stealth);
  border-bottom: 1px solid var(--s2-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-family: var(--s2-font-display);
}

.s2-brand-lockup { display: flex; align-items: center; gap: 20px; }
.s2-text-block { display: flex; flex-direction: column; justify-content: center; }

.s2-title-main {
  color: var(--s2-text-pure);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: var(--s2-tracking-wide);
}

.s2-tagline-sub {
  color: var(--s2-glow-orange);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.2;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: var(--s2-tracking-mega);
  opacity: 0.95;
  text-shadow: 0 0 8px color-mix(in srgb, var(--s2-glow-orange) 30%, transparent);
}

.s2-divider {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--s2-glow-gold), transparent);
  opacity: 0.7;
}

.s2-btn-access {
  background: transparent;
  color: var(--s2-glow-gold);
  border: 1px solid var(--s2-glow-gold);
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--s2-tracking-wide);
  cursor: pointer;
  clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 10% 100%, 0 70%);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.s2-btn-access:hover {
  background-color: var(--s2-glow-gold);
  color: var(--s2-bg-stealth);
  box-shadow: 0 0 15px var(--s2-glow-gold);
  transform: translateY(-1px);
}
