/* ============================================================
   ENGINEERED PREPAREDNESS — shared design tokens
   North star: deep navy, warm gold, paper neutrals, data-forward.
   ============================================================ */

/* Self-hosted fonts (was Google Fonts @import) — offline-capable + no third-party call. */
@import url('/fonts/fonts.css');

:root {
  /* Core brand */
  --navy:        #1F3A5F;
  --navy-700:    #1A3050;
  --navy-800:    #142B45;
  --navy-900:    #0F2236;
  --navy-ink:    #0B1A2B;

  --gold:        #C99700;
  --gold-600:    #B5860A;
  /* Text-weight gold for links and labels on paper — gold-600 only reaches ~3.5:1
     there. 15 files were already reaching for --gold-700 while it was undefined,
     so every one of those rules silently fell back to inherited ink. */
  --gold-700:    #8A6508;
  --gold-300:    #E3BC4E;
  --gold-tint:   #F3E7C4;

  /* Paper neutrals (warm) */
  --paper:       #F7F5F1;
  --paper-2:     #EFEBE3;
  --paper-3:     #E5DFD3;
  /* Paper behind the tool-card artwork. The art ships with a transparent
     background, so this is the colour it sits on — warm cream, matching the
     median of what the illustrations were drawn against (they had drifted
     across 47 different creams). Change it here and every card follows. */
  --card-art:    #FDF6E9;
  --ink:         #20211E;
  --ink-soft:    #4A4B45;
  --ink-faint:   #797A71;
  --line:        #D9D3C6;
  --line-soft:   #E7E2D7;

  /* Earthy supports (sparingly) */
  --olive:       #5B6B43;
  --kraft:       #C5B28A;
  --iron:        #4B5563;

  /* Functional risk scale — DATA ONLY, never decoration */
  --risk-1:      #2E7D52; /* low / green   */
  --risk-2:      #C99700; /* amber         */
  --risk-3:      #D97A2B; /* orange        */
  --risk-4:      #C0392B; /* high / red     */

  /* Type */
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15,34,54,.06), 0 2px 8px rgba(15,34,54,.05);
  --shadow:    0 4px 16px rgba(15,34,54,.08), 0 12px 40px rgba(15,34,54,.07);
  --shadow-lg: 0 20px 60px rgba(11,26,43,.18);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 17px;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }  /* the hidden attribute must beat component display rules like .btn (inline-flex) */
a[onclick] { cursor: pointer; }  /* anchors used as buttons (no href) otherwise show the text cursor */

/* shared atoms ------------------------------------------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* button system */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: var(--r);
  padding: 14px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  line-height: 1;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-300); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); }
.btn-ghost-light { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); color: #fff; }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }

/* risk gauge dot legend */
.riskdot { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }

/* the geometric ant glyph — the brand throughline (simple shapes only) */
.ant-glyph { display: block; }

/* selection */
::selection { background: var(--gold-tint); color: var(--navy-900); }

/* inline highlight — a soft gold "marker" behind text; reads on light or dark.
   Usage: <span class="hl">highlighted words</span>
   (For the gold italic emphasis seen in headings, use <em> inside a heading.) */
.hl { background-image: linear-gradient(transparent 55%, rgba(227,188,78,.40) 55%); border-radius: 1px; }
