/* =========================================================================
   FIVE EYES - design tokens
   colors_and_type.css

   Single source of truth for color, type, spacing, radii, and motion.
   All UI kits, slides, and document templates pull from this file.
   ========================================================================= */

/* --- Fonts -------------------------------------------------------------- */
/* Loaded from Google Fonts - substituted in for unavailable licensed faces.
   Spectral ≈ GT Sectra / Tiempos Headline / Canela
   Hanken Grotesk ≈ Söhne / GT America / ABC Diatype
   IBM Plex Mono ≈ Söhne Mono                                                */
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* === Color ============================================================ */
  /* Ink - primary dark, near-black navy. */
  --ink:          #0B1320;
  --ink-2:        #1A2333;
  --ink-3:        #3A4357;
  --ink-4:        #6C7385;   /* tertiary text on bone */

  /* Bone / paper - warm light surfaces. */
  --bone:         #F2EDE3;
  --paper:        #FAF7F1;
  --paper-2:      #E8E2D4;   /* subtle banding, table zebra */
  --rule:         #C9C1B0;   /* hairline rules on bone */
  --rule-soft:    #DED7C7;
  --rule-ink:     #2A3346;   /* hairline rules on ink */

  /* Bronze - single accent. Used sparingly. */
  --bronze:       #A07A3C;
  --bronze-deep:  #7B5C2A;
  --bronze-soft:  #C9A875;   /* on ink surfaces only */

  /* Eucalyptus - secondary accent, "approved" / "current" semantics. */
  --eucalyptus:   #3F5A4A;
  --eucalyptus-soft: #6B8170;

  /* Semantic. */
  --alert:        #7A2E2E;
  --alert-soft:   #C26F6F;

  /* Foreground / background semantic aliases.
     Use these inside components instead of raw color tokens where possible. */
  --bg:           var(--paper);
  --bg-elev:      #FFFFFF;
  --bg-banded:    var(--paper-2);
  --fg:           var(--ink);
  --fg-muted:     var(--ink-3);
  --fg-faint:     var(--ink-4);
  --accent:       var(--bronze);
  --link:         var(--ink);
  --link-hover:   var(--bronze-deep);
  --border:       var(--rule);
  --border-soft:  var(--rule-soft);

  /* === Type =========================================================== */
  --font-display: 'Spectral', 'Times New Roman', Georgia, serif;
  --font-body:    'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Type scale - modular-ish, hand-tuned for editorial feel. */
  --text-xs:      12px;   /* legal, table micro-caption */
  --text-sm:      14px;   /* secondary UI */
  --text-base:    16px;   /* body */
  --text-md:      18px;   /* lede / large body */
  --text-lg:      20px;
  --text-xl:      24px;
  --text-2xl:     32px;
  --text-3xl:     44px;   /* h2 */
  --text-4xl:     60px;   /* h1 */
  --text-5xl:     84px;   /* display */
  --text-6xl:     128px;  /* hero numeral */

  /* Line-heights. */
  --lh-tight:     1.04;   /* display */
  --lh-snug:      1.15;   /* headlines */
  --lh-base:      1.5;    /* body */
  --lh-relaxed:   1.65;   /* long-form lede */

  /* Tracking - negative on display, positive on small caps. */
  --tr-display:   -0.02em;
  --tr-headline:  -0.012em;
  --tr-body:      0;
  --tr-caps:      0.16em;  /* eyebrows, classification banners */
  --tr-wordmark:  0.18em;  /* the FIVE EYES wordmark */

  /* === Spacing - 4px base ============================================ */
  --space-1:      4px;
  --space-2:      8px;
  --space-3:      12px;
  --space-4:      16px;
  --space-5:      24px;
  --space-6:      32px;
  --space-7:      48px;
  --space-8:      64px;
  --space-9:      96px;
  --space-10:     128px;

  /* === Radii ========================================================= */
  --radius-sm:    2px;
  --radius-md:    4px;
  --radius-lg:    6px;
  /* No larger radii. Paper-sharp is the default. */

  /* === Borders ======================================================= */
  --border-thin:  1px solid var(--rule);
  --border-ink:   1px solid var(--ink);
  --border-soft-line: 1px solid var(--rule-soft);

  /* === Elevation =====================================================
     UI is shadow-free. The only shadow is document-on-desk for PDF previews. */
  --shadow-none:  none;
  --shadow-doc:   0 24px 64px -32px rgba(11,19,32,0.25),
                  0 2px 8px -2px rgba(11,19,32,0.06);

  /* === Motion ======================================================== */
  --ease:         cubic-bezier(0.2, 0.0, 0.2, 1);
  --dur:          160ms;
  --transition-color: color var(--dur) var(--ease),
                      background-color var(--dur) var(--ease),
                      border-color var(--dur) var(--ease);

  /* === Layout ======================================================== */
  --page-gutter:  clamp(24px, 5vw, 80px);
  --measure:      64ch;          /* long-form max width */
  --col-gutter:   24px;
}

/* === Base resets / element defaults ===================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
}

/* === Semantic type classes =============================================
   Use these in markup. They're the contract that components depend on. */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  color: var(--fg);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-4xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-display);
  color: var(--fg);
  margin: 0;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-headline);
  color: var(--fg);
  margin: 0;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: var(--tr-headline);
  color: var(--fg);
  margin: 0;
}

.h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-md);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--fg);
  margin: 0;
}

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--text-xl);
  line-height: var(--lh-relaxed);
  letter-spacing: 0;
  color: var(--fg);
  max-width: var(--measure);
}

.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--fg);
}

.body-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: var(--lh-base);
  color: var(--fg-muted);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  line-height: 1;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--fg-muted);
}

.kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bronze);
}

.numeral {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-6xl);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--fg);
  font-feature-settings: "lnum" 1, "ss01" 1;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0;
  color: var(--fg-muted);
}

.legal {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--fg-faint);
}

/* === Wordmark ========================================================== */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: var(--tr-wordmark);
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
  white-space: nowrap;
}

/* === Links ============================================================= */
a, .link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: var(--transition-color);
}
a:hover, .link:hover {
  color: var(--link-hover);
  text-decoration-color: var(--bronze);
}

/* === Hairline rule ===================================================== */
hr, .rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: var(--space-6) 0;
}

/* === Dark surface ====================================================== */
.surface-ink {
  background: var(--ink);
  color: var(--bone);
}
.surface-ink .h1,
.surface-ink .h2,
.surface-ink .h3,
.surface-ink .h4,
.surface-ink .display,
.surface-ink .lede,
.surface-ink .body { color: var(--bone); }
.surface-ink .eyebrow { color: var(--bronze-soft); }
.surface-ink .kicker  { color: var(--bronze-soft); }
.surface-ink hr, .surface-ink .rule { background: var(--rule-ink); }
.surface-ink a, .surface-ink .link { color: var(--bone); text-decoration-color: var(--rule-ink); }
.surface-ink a:hover, .surface-ink .link:hover { color: var(--bronze-soft); }

.surface-bone {
  background: var(--bone);
  color: var(--fg);
}

/* === Buttons =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 var(--space-5);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-color), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--ink-2); color: var(--bone); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bone); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--quiet:hover { background: var(--paper-2); color: var(--ink); }

.btn--bronze {
  background: var(--bronze);
  color: var(--ink);
}
.btn--bronze:hover { background: var(--bronze-deep); color: var(--bone); }

/* === Tag / chip ======================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.tag--eucalyptus { color: var(--eucalyptus); border-color: var(--eucalyptus); }
.tag--bronze     { color: var(--bronze-deep); border-color: var(--bronze); }
.tag--ink        { color: var(--bone); background: var(--ink); border-color: var(--ink); }

/* === Classification banner - gov use ================================== */
.banner-classification {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: #FFFFFF;
  background: #1F6B3A;            /* OFFICIAL / OFFICIAL:Sensitive - green */
  border-radius: 0;
}
.banner-classification--protected   { background: #2766B0; }   /* PROTECTED - blue */
.banner-classification--secret      { background: #C84A1A; }   /* SECRET - orange */
.banner-classification--top-secret  { background: #B6322A; }   /* TOP SECRET - red */
.banner-classification--unofficial  { background: #4A4A4A; }

/* === Print rules for document templates ================================ */
@media print {
  :root { --bg: #ffffff; }
  body { background: #fff; }
  .no-print { display: none !important; }
}
