/*
 * STØD MEDICAL — TACTICAL MINIMALISM DESIGN SYSTEM
 * colors_and_type.css
 * ─────────────────────────────────────────────────────────────────────────────
 * Base + semantic CSS custom properties.
 * Import this file first; then reference variables in your stylesheets.
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ── FONTS (self-hosted, latin + latin-ext) ── */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Barlow'; src: url("../fonts/barlow-300.woff2") format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url("../fonts/barlow-400.woff2") format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url("../fonts/barlow-500.woff2") format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url("../fonts/barlow-600.woff2") format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url("../fonts/barlow-700.woff2") format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
/* ── BARLOW — LOCAL FONT FACES ──────────────────────────────────────────── */
/* ── FONT FACE STACK ─────────────────────────────────────────────────────── */
:root {
  --font-primary: 'Barlow', 'Arial Narrow', sans-serif;
  --font-primary-condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* ── WEIGHTS ─────────────────────────────────────────────────────────── */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ── LETTER SPACING ──────────────────────────────────────────────────── */
  --tracking-tight:  -0.01em;
  --tracking-normal:  0em;
  --tracking-wide:    0.08em;   /* used on uppercase labels/headers */
  --tracking-widest:  0.16em;   /* classification stamps, metadata */

  /* ── LINE HEIGHT ─────────────────────────────────────────────────────── */
  --leading-tight:  1.15;
  --leading-normal: 1.5;
  --leading-loose:  1.75;
}

/* ══════════════════════════════════════════════════════════════════════════
   BASE COLOR PALETTE
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Off-blacks — warm undertone, never pure #000 */
  --color-ink-900:  #141210;   /* deepest — used for key text on white */
  --color-ink-800:  #1E1B18;   /* primary body text */
  --color-ink-700:  #2C2924;   /* headings on light bg */

  /* Warm grays */
  --color-gray-600: #4A4640;
  --color-gray-500: #6B6560;
  --color-gray-400: #908A84;
  --color-gray-300: #BAB4AE;
  --color-gray-200: #D8D3CD;
  --color-gray-100: #EAE6E1;
  --color-gray-050: #F4F1EE;

  /* Backgrounds */
  --color-bg-white:  #F7F5F2;   /* warm white — primary background */
  --color-bg-field:  #EDEAE5;   /* secondary background — subtle warmth */
  --color-bg-dark:   #1E1B18;   /* inverted sections */

  /* ── ACCENT — Muted Steel Blue (primary) ──────────────────────────────── */
  --color-accent-700: #2E4F6A;
  --color-accent-600: #3A617F;
  --color-accent-500: #4A7494;   /* primary accent */
  --color-accent-400: #6A90AA;
  --color-accent-300: #9AB5C7;
  --color-accent-100: #D6E4ED;

  /* ── ACCENT — Olive / Khaki (secondary) ───────────────────────────────── */
  --color-olive-700: #424832;
  --color-olive-600: #555D3F;
  --color-olive-500: #6B744E;   /* olive accent */
  --color-olive-400: #8A9268;
  --color-olive-300: #B0B88E;
  --color-olive-100: #E0E4D0;

  /* ── STATUS / SEMANTIC SIGNAL ─────────────────────────────────────────── */
  --color-signal-critical: #8B2E2E;   /* muted red — critical / alert */
  --color-signal-caution:  #8B6E2E;   /* muted amber — caution */
  --color-signal-nominal:  #2E6B4A;   /* muted green — nominal / clear */
  --color-signal-unknown:  #4A4640;   /* gray — unconfirmed */
}

/* ══════════════════════════════════════════════════════════════════════════
   SEMANTIC COLOR VARIABLES
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Text */
  --fg-primary:   var(--color-ink-800);
  --fg-secondary: var(--color-gray-600);
  --fg-tertiary:  var(--color-gray-400);
  --fg-inverse:   var(--color-bg-white);
  --fg-accent:    var(--color-accent-600);

  /* Backgrounds */
  --bg-primary:   var(--color-bg-white);
  --bg-secondary: var(--color-bg-field);
  --bg-dark:      var(--color-bg-dark);
  --bg-accent:    var(--color-accent-500);

  /* Borders / Rules */
  --border-hairline:  var(--color-gray-200);
  --border-default:   var(--color-gray-300);
  --border-strong:    var(--color-gray-500);
  --border-accent:    var(--color-accent-500);
  --border-anchor:    var(--color-ink-800);   /* thick vertical rule */

  /* Interactive */
  --interactive-default: var(--color-accent-500);
  --interactive-hover:   var(--color-accent-600);  /* accent-600 on dark bg for visible contrast */
  --interactive-active:  var(--color-accent-700);
  --interactive-muted:   var(--color-gray-300);
}

/* ══════════════════════════════════════════════════════════════════════════
   TYPE SCALE — SEMANTIC VARS
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Size scale */
  --text-xs:   10px;
  --text-sm:   12px;
  --text-base: 14px;
  --text-md:   16px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  42px;
  --text-4xl:  56px;
  --text-5xl:  72px;
}

/* ── APPLIED TYPE ROLES ───────────────────────────────────────────────────── */
:root {
  /* Display / Hero */
  --type-display-font:    var(--font-primary-condensed);
  --type-display-size:    var(--text-4xl);
  --type-display-weight:  var(--weight-bold);
  --type-display-leading: var(--leading-tight);
  --type-display-tracking: var(--tracking-wide);
  --type-display-transform: uppercase;

  /* Heading 1 */
  --type-h1-font:    var(--font-primary);
  --type-h1-size:    var(--text-2xl);
  --type-h1-weight:  var(--weight-bold);
  --type-h1-leading: var(--leading-tight);
  --type-h1-tracking: var(--tracking-wide);
  --type-h1-transform: uppercase;

  /* Heading 2 */
  --type-h2-font:    var(--font-primary);
  --type-h2-size:    var(--text-xl);
  --type-h2-weight:  var(--weight-semibold);
  --type-h2-leading: var(--leading-tight);
  --type-h2-tracking: var(--tracking-wide);
  --type-h2-transform: uppercase;

  /* Heading 3 */
  --type-h3-font:    var(--font-primary);
  --type-h3-size:    var(--text-lg);
  --type-h3-weight:  var(--weight-semibold);
  --type-h3-leading: var(--leading-normal);
  --type-h3-tracking: var(--tracking-normal);
  --type-h3-transform: none;

  /* Body */
  --type-body-font:    var(--font-primary);
  --type-body-size:    var(--text-base);
  --type-body-weight:  var(--weight-regular);
  --type-body-leading: var(--leading-normal);
  --type-body-tracking: var(--tracking-normal);

  /* Body small */
  --type-body-sm-size:   var(--text-sm);
  --type-body-sm-weight: var(--weight-light);

  /* Label — UI element labels, field captions, nav items */
  --type-label-font:    var(--font-primary);
  --type-label-size:    var(--text-xs);
  --type-label-weight:  var(--weight-semibold);
  --type-label-tracking: var(--tracking-widest);
  --type-label-transform: uppercase;

  /* Code / Reference / Identifier */
  --type-mono-font:    var(--font-mono);
  --type-mono-size:    var(--text-sm);
  --type-mono-weight:  var(--weight-regular);
  --type-mono-tracking: var(--tracking-normal);

  /* Metadata — dates, coordinates, classification strings */
  --type-meta-font:    var(--font-mono);
  --type-meta-size:    var(--text-xs);
  --type-meta-weight:  var(--weight-regular);
  --type-meta-tracking: var(--tracking-widest);
  --type-meta-transform: uppercase;
  --type-meta-color:   var(--fg-secondary);
}

/* ══════════════════════════════════════════════════════════════════════════
   SPACING SCALE
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
}

/* ══════════════════════════════════════════════════════════════════════════
   BORDER & RULE SYSTEM
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --rule-hairline: 0.5px solid var(--border-hairline);
  --rule-thin:     1px solid var(--border-default);
  --rule-medium:   1px solid var(--border-strong);
  --rule-accent:   2px solid var(--border-accent);
  --rule-anchor:   3px solid var(--border-anchor);  /* vertical anchor line */

  --radius-none:  0;
  --radius-sm:    2px;   /* only used on badges / tags */
  --radius-default: 0;   /* tactical minimalism = no rounding by default */
}

/* ══════════════════════════════════════════════════════════════════════════
   SHADOW / ELEVATION
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* No decorative shadows — tactical documents use borders, not elevation */
  --shadow-none: none;
  --shadow-inset: inset 0 0 0 1px var(--border-hairline);
  --shadow-document: 0 1px 4px rgba(20, 18, 16, 0.08), 0 0 0 1px rgba(20,18,16,0.04);
}

/* ══════════════════════════════════════════════════════════════════════════
   MOTION
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --duration-fast:   80ms;  /* @kind other */
  --duration-normal: 140ms; /* @kind other */
  --duration-slow:   240ms; /* @kind other */
  --ease-default: cubic-bezier(0.2, 0, 0.38, 0.9); /* @kind other */
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --grid-columns: 12; /* @kind other */
  --grid-gutter:  var(--space-6);
  --content-max:  1120px;
  --content-narrow: 720px;

  /* Anchor line — the signature thick vertical rule */
  --anchor-width: 3px;
  --anchor-color: var(--color-ink-800);
}

/* ══════════════════════════════════════════════════════════════════════════
   GLOBAL BASE RESETS (opt-in — apply to :root or body)
   ══════════════════════════════════════════════════════════════════════════ */
.uk-base,
.uk-base * {
  box-sizing: border-box;
  font-style: normal;  /* Never italic */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.uk-base {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  line-height: var(--leading-normal);
  color: var(--fg-primary);
  background: var(--bg-primary);
}

/* ── UTILITY CLASSES ──────────────────────────────────────────────────────── */
.uk-label {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.uk-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.uk-anchor-rule {
  border-left: var(--rule-anchor);
  padding-left: var(--space-4);
}

.uk-divider {
  border: none;
  border-top: var(--rule-thin);
  margin: 0;
}


/* ── SITE ─────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg-white); }
a { color: var(--color-accent-500); text-decoration: none; }
a:hover { color: var(--color-accent-700); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-accent-500); outline-offset: 2px; }
.nav-link { position: relative; color: var(--color-ink-800) !important; text-decoration: none !important; }
.nav-link:hover { color: var(--color-accent-600) !important; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 2px; background: var(--color-accent-500); }
.btn-outline-dark:hover { border-color: var(--color-bg-white) !important; background: rgba(247,245,242,0.08) !important; color: var(--color-bg-white) !important; text-decoration: none !important; }
.btn-primary:hover { background: var(--color-accent-600) !important; text-decoration: none !important; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-outline:hover { border-color: var(--color-ink-800) !important; background: var(--color-bg-field) !important; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .nav-links { gap: 16px !important; }
  .nav-links .nav-link { font-size: 11px !important; letter-spacing: 0.08em !important; }
  .rgrid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-form { padding: 20px !important; }
  .hero-title { font-size: 40px !important; }
}
