/* ============================================================
   Shadow Blade: Stealth Assassin — Compliance Site
   Dossier / case-file design language. One accent, used sparingly.
   ============================================================ */

:root {
  --bg: #0a0c10;
  --surface: #14171d;
  --surface-raised: #1a1e25;
  --border: #262b33;
  --border-strong: #363c47;
  --text: #c7ccd1;
  --text-heading: #f1f3f5;
  --text-muted: #858d98;   /* ≥4.98:1 on every surface (was #7d8590: 4.48:1 on raised) */
  --accent: #b3293d;       /* lines, borders, focus rings only */
  --accent-text: #e5566a;  /* accent used as TEXT: ≥4.67:1 on every surface (#b3293d was 2.6–3.1:1) */
  --accent-dim: #7a1f2d;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-width: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-heading);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
a:hover { border-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-heading);
  text-transform: uppercase;
  border: none;
}
.brand:hover { color: var(--accent); }
.site-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: none;
}
.site-nav a:hover { color: var(--text-heading); }

/* Hero (index) */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}
.hero .eyebrow { display: block; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 5rem); margin: 0; text-transform: uppercase; }
.hero .subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.25rem 0 1.5rem;
}
.hero p.lede { max-width: 60ch; font-size: 1.05rem; color: var(--text); }
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
/* the single call to action: Google's official badge, unmodified */
.cta { display: inline-block; margin-top: 1.5rem; border: none; line-height: 0; }
.cta img { display: block; width: 200px; height: auto; }
.cta:hover { border: none; }
.cta:focus-visible { outline-offset: 4px; border-radius: 10px; }

/* Dossier cards */
.dossier {
  /* inset with width/margin, not padding — padding would show the 1px-gap
     background colour as bands beside the cards */
  width: calc(100% - 4rem);
  max-width: 836px;
  margin: 1rem auto 5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.dossier-card { background: var(--surface); padding: 1.75rem; border: none; display: block; }
.dossier-card:hover { background: var(--surface-raised); }
.dossier-card .eyebrow { display: block; margin-bottom: 0.75rem; }
.dossier-card .card-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-heading); text-transform: uppercase; margin: 0 0 0.4rem; }
.dossier-card .card-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Legal document pages */
.doc { max-width: var(--max-width); margin: 0 auto; padding: 3.5rem 2rem 5rem; }
.doc-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.doc-meta .updated { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; margin: 0 0 0.5rem; }
.doc .intro { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.doc section { margin-bottom: 2.25rem; padding-left: 1.1rem; border-left: 2px solid var(--border); transition: border-color 0.2s ease; }
.doc section:hover { border-left-color: var(--accent-dim); }
.doc h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 0.75rem; }
.doc h2 .num { color: var(--accent-text); font-family: var(--font-mono); font-size: 0.85rem; margin-right: 0.5rem; }
.doc h3 { font-size: 0.95rem; text-transform: none; color: var(--text-heading); margin: 1.1rem 0 0.5rem; }
.doc p, .doc li { color: var(--text); font-size: 0.97rem; }
.doc ul, .doc ol { padding-left: 1.25rem; margin: 0.75rem 0; }
.doc li { margin-bottom: 0.4rem; }
.doc strong { color: var(--text-heading); }
.doc .callout { background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--accent); padding: 1rem 1.25rem; margin: 1rem 0; font-size: 0.9rem; }
.doc .callout p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.site-footer a { border: none; color: var(--text-muted); }
.site-footer a:hover { color: var(--accent-text); }
.site-footer p { margin: 0.4rem 0; }
.site-footer .legal-note { font-size: 0.7rem; }

/* 404 */
.lost { max-width: var(--max-width); margin: 0 auto; padding: 6rem 2rem; text-align: center; }
.lost h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin: 0.5rem 0; text-transform: uppercase; }
.lost p { color: var(--text-muted); }

@media (max-width: 640px) {
  .site-header { padding: 1rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 2rem; grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 360px; }
  .dossier { width: calc(100% - 2.5rem); grid-template-columns: 1fr; }
  .doc { padding: 2.5rem 1.25rem 3rem; }
}
