/* ============================================================
   AC|DC Shared Design Tokens & Base Styles
   Used by: privacy.html, terms.html, accessibility.html,
            styleguide.html
   Tokens mirror those in index.html (kept in sync).
   ============================================================ */

:root {
  /* Brand */
  --bolt: #ff0a2e;
  --bolt-soft: #ff3355;
  --bolt-deep: #b3001b;

  /* Surfaces */
  --bg: #030303;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.72);
  --fg-dim: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --surface: rgba(10, 10, 10, 0.4);

  /* Spacing scale (8pt grid — Apple HIG / Material) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Type scale — Apple HIG Dynamic Type styles at default Large size,
     expressed in rem so the user's browser font-size setting actually
     scales the page (the web equivalent of Dynamic Type). Passes
     WCAG 1.4.4 (Resize Text) at 200% zoom. */
  --t-large-title: 2.125rem; /* 34px — Large Title */
  --t-title-1:     1.75rem;  /* 28px — Title 1 */
  --t-title-2:     1.375rem; /* 22px — Title 2 */
  --t-title-3:     1.25rem;  /* 20px — Title 3 */
  --t-headline:    1.0625rem;/* 17px — Headline (semibold) */
  --t-body:        1rem;     /* 16px — Body / Callout */
  --t-subhead:     0.9375rem;/* 15px — Subhead */
  --t-footnote:    0.8125rem;/* 13px — Footnote (smallest text in the system) */

  /* Motion */
  --easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-short: 200ms;
  --duration-medium: 320ms;
}

* { box-sizing: border-box; }

/* font-size: 100% (do NOT set an absolute size) so the user's browser
   font-size preference is the rem unit base. This is the web equivalent
   of Apple Dynamic Type — required for WCAG 1.4.4. */
html { background: var(--bg); scroll-behavior: smooth; font-size: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 500;
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
  min-height: 100vh;
}

/* Legacy class name kept for backwards compatibility — the .mono / .font-mono
   utility now renders the body face (Roboto 500), not a true monospace font.
   Used for tracked-out uppercase labels that previously had a "data readout"
   feel. */
.font-mono, .mono {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ============ Screen-reader only (visually hidden) ============ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Skip link (WCAG 2.4.1) ============ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 12px 16px;
  background: var(--bolt);
  color: #fff;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: var(--t-footnote);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 100;
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; }

/* ============ Focus (WCAG 2.4.7 / 2.4.11) ============ */
:focus-visible {
  outline: 2px solid var(--bolt);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6);
}

/* ============ Top bar (sticky logo only — no chrome) ============ */
/* The topbar holds nothing but the logo. Sticky-positioned so it stays in
   the corner as the user scrolls; transparent + zero-padding so it never
   draws a horizontal band across the page. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  pointer-events: none; /* the logo itself re-enables pointer events */
}
.topbar-brand {
  position: absolute;
  top: 0;
  left: 24px;
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
  pointer-events: auto;
  /* Negative top margin pulls the rectangular logo's bounding box up so the
     visible glyph sits a bit closer to the viewport top. */
  margin-top: -8px;
  /* Brand glow on the logo to match the lightning theme. */
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--bolt) 40%, transparent));
  transition: filter 200ms ease;
}
.topbar-brand:hover,
.topbar-brand:focus-visible {
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--bolt) 75%, transparent));
}
.topbar-brand .brand-logo {
  height: 120px;
  width: 120px;
  display: block;
}
.topbar-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.topbar-nav a {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: var(--t-footnote);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-muted);
  padding: 12px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 200ms ease, background 200ms ease;
}
.topbar-nav a:hover,
.topbar-nav a:focus-visible { color: var(--fg); background: var(--surface); }
.topbar-nav a[aria-current='page'] {
  color: var(--bolt);
  border-bottom: 1px solid var(--bolt);
}

/* ============ Page shell ============ */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-eyebrow {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: var(--t-footnote);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bolt);
  margin: 0 0 12px;
}
.page-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: var(--t-large-title);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--fg);
}
.page-meta {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: var(--t-footnote);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 48px;
}
.page-section { margin-top: 48px; }
.page-section h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: var(--t-title-1);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--fg);
}
.page-section h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: var(--t-title-2);
  letter-spacing: 0.06em;
  margin: 32px 0 12px;
  color: var(--fg);
}
.page-section p,
.page-section li {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 500;
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--fg-muted);
}
.page-section ul {
  padding-left: 22px;
  margin: 12px 0 16px;
}
.page-section li { margin: 6px 0; }
.page-section a {
  color: var(--bolt);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-section a:hover { color: var(--bolt-soft); }
.page-section .italic { font-style: italic; color: var(--muted); }
.page-section .legal-contact {
  margin: 16px 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--bolt);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.page-section .legal-contact p { margin: 4px 0; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: var(--t-footnote);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 200ms ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--fg); }
.footer-copy {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: var(--t-footnote);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0;
}

