/* ============================================================
   Pathogenomix Design System — Colors & Type
   ------------------------------------------------------------
   Primary palette derived from brand artwork:
   - Teal (primary logo)   #006D85
   - Deep Blue (Single)    #185E8F
   - Orange (Mixed)        #F26A37
   - Yellow (NGS)          #FEB810
   Typefaces:
   - Foundry Gridnik    — wordmark, display ALL-CAPS headers, UI chrome
   - Inter              — body copy, long-form text, running UI (the brand's Galaxie
                          Polaris is not served on the web; no web licence)
   ============================================================ */

/* ---------- FONT FACES ---------- */
/* Foundry Gridnik (headings and interface labels): licensed web fonts from the MyFonts
   kit, two styles only, Light and Medium. Text set in Regular falls to Medium, and bold
   words in headlines are Medium thickened by the browser. The notice below came with
   the kit and stays with these rules. */
/**
 * @license
 * MyFonts Webfont Build ID 3867246, 2020-12-16T11:57:38-0500
 * 
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are 
 * explicitly restricted from using the Licensed Webfonts(s).
 * 
 * You may obtain a valid license at the URLs below.
 * 
 * Webfont: Foundry Gridnik Light by The Foundry
 * URL: https://www.myfonts.com/collections/the-foundry

 * Webfont: Foundry Gridnik Medium by The Foundry
 * URL: https://www.myfonts.com/collections/the-foundry
 
 * © 2026 MyFonts Inc. */
@font-face {
  font-family: 'Foundry Gridnik';
  src: url('../fonts/FoundryGridnik-Light.woff2') format('woff2'), url('../fonts/FoundryGridnik-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Foundry Gridnik';
  src: url('../fonts/FoundryGridnik-Medium.woff2') format('woff2'), url('../fonts/FoundryGridnik-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* Inter (body text): open-source, SIL Open Font License 1.1, hosted on the site itself
   (licence text in ../fonts/Inter-LICENSE.txt). Variable weight, so one file covers every
   weight; the extended-Latin files load only on pages that need those letters. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  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: 'Inter';
  src: url('../fonts/Inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-italic-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
  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: 'Inter';
  src: url('../fonts/Inter-italic-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- TOKENS ---------- */
:root {
  /* ===== BRAND COLORS ===== */
  --pgx-teal-900: #00303C;
  --pgx-teal-800: #00485A;
  --pgx-teal-700: #005A6E;
  --pgx-teal-600: #006D85;   /* primary brand teal — the logo color */
  --pgx-teal-500: #208799;
  --pgx-teal-400: #57A7B4;
  --pgx-teal-300: #8FC4CC;
  --pgx-teal-200: #C2DEE4;
  --pgx-teal-100: #E5F1F3;
  --pgx-teal-050: #F4F9FA;

  --pgx-blue-700: #0F4066;
  --pgx-blue-600: #185E8F;   /* "Single" product hero */
  --pgx-blue-500: #2E7FB3;
  --pgx-blue-400: #5CA2CD;
  --pgx-blue-300: #9BC6DE;

  --pgx-orange-700: #B84416;
  --pgx-orange-600: #DB5A24;
  --pgx-orange-500: #F26A37;   /* "Mixed" product hero */
  --pgx-orange-400: #F6905F;
  --pgx-orange-300: #FAB590;
  --pgx-orange-100: #FDE3D5;

  --pgx-yellow-600: #D89B00;
  --pgx-yellow-500: #FEB810;   /* "NGS" product hero */
  --pgx-yellow-400: #FECA4B;
  --pgx-yellow-300: #FEDD87;
  --pgx-yellow-100: #FFF0D3;

  /* ===== NEUTRALS ===== */
  --pgx-ink:      #0B2026;    /* headings on light */
  --pgx-graphite: #2E4449;    /* body on light */
  --pgx-slate:    #52686D;    /* secondary text */
  --pgx-muted:    #8A9A9E;    /* tertiary, captions */
  --pgx-line:     #D8E1E4;    /* borders, dividers */
  --pgx-line-soft:#ECF1F2;
  --pgx-surface:  #F6F9FA;    /* page bg (off-white) */
  --pgx-card:     #FFFFFF;    /* card bg */
  --pgx-white:    #FFFFFF;

  /* ===== SEMANTIC (status) ===== */
  --pgx-success: #2F9D6E;
  --pgx-warning: #E5A11A;
  --pgx-danger:  #C24132;
  --pgx-info:    var(--pgx-teal-600);

  /* ===== FOREGROUND ROLES ===== */
  --fg-1: var(--pgx-ink);
  --fg-2: var(--pgx-graphite);
  --fg-3: var(--pgx-slate);
  --fg-4: var(--pgx-muted);
  --fg-brand: var(--pgx-teal-600);
  --fg-on-brand: #FFFFFF;

  /* ===== BACKGROUND ROLES ===== */
  --bg-page:    var(--pgx-surface);
  --bg-card:    var(--pgx-card);
  --bg-subtle:  var(--pgx-teal-050);
  --bg-brand:   var(--pgx-teal-600);
  --bg-brand-soft: var(--pgx-teal-100);

  /* ===== TYPE FAMILIES ===== */
  --font-display: 'Foundry Gridnik', 'Space Grotesk', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, Menoloe, monospace;

  /* ===== TYPE SCALE ===== */
  --fs-display-xl: clamp(56px, 7vw, 96px);
  --fs-display-l:  clamp(44px, 5.5vw, 72px);
  --fs-display-m:  clamp(36px, 4vw, 56px);
  --fs-h1: 40px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-body-lg: 18px;
  --fs-body:    16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-eyebrow: 13px;

  /* ===== LINE HEIGHT ===== */
  --lh-tight: 1.05;
  --lh-snug:  1.2;
  --lh-body:  1.55;
  --lh-long:  1.7;

  /* ===== LETTER SPACING ===== */
  --tr-display: -0.01em;
  --tr-wordmark:  0.06em;  /* Foundry Gridnik all-caps looks best with light tracking */
  --tr-eyebrow:   0.14em;
  --tr-caption:   0.04em;

  /* ===== SPACING (8pt base + 4pt) ===== */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* ===== RADII (generally modest; brand leans geometric) ===== */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* ===== SHADOWS ===== */
  --shadow-1: 0 1px 2px rgba(11, 32, 38, 0.06), 0 1px 1px rgba(11, 32, 38, 0.04);
  --shadow-2: 0 4px 12px rgba(11, 32, 38, 0.08), 0 1px 2px rgba(11, 32, 38, 0.04);
  --shadow-3: 0 12px 32px rgba(11, 32, 38, 0.12), 0 4px 8px rgba(11, 32, 38, 0.06);
  --shadow-brand: 0 10px 28px rgba(0, 109, 133, 0.25);
  --ring-focus: 0 0 0 3px rgba(0, 109, 133, 0.35);

  /* ===== GRADIENTS (product-sheet style hero) ===== */
  --grad-hero-teal:   linear-gradient(135deg, #2FA4B7 0%, #0E6B84 60%, #004E63 100%);
  --grad-hero-blue:   linear-gradient(135deg, #5CA2CD 0%, #245E8E 60%, #0F4066 100%);
  --grad-hero-orange: linear-gradient(135deg, #F89B6F 0%, #F26A37 60%, #D04A1A 100%);
  --grad-hero-yellow: linear-gradient(135deg, #FFD672 0%, #FEB810 60%, #E89800 100%);

  /* ===== MOTION ===== */
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-enter:    cubic-bezier(0, 0, 0.2, 1);
  --ease-exit:     cubic-bezier(0.4, 0, 1, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 480ms;
}

/* ---------- BASE ELEMENT STYLES ---------- */
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  background: var(--bg-page);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-display);
  color: var(--fg-1);
  text-transform: uppercase;
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: 0.02em;
  color: var(--fg-1);
  text-transform: uppercase;
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--fg-1);
  text-transform: uppercase;
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.35;
  color: var(--fg-1);
  margin: 0;
}
p  { margin: 0 0 var(--sp-4); }

.display-xl { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-display-xl); line-height: var(--lh-tight); letter-spacing: var(--tr-display); text-transform: uppercase; }
.display-l  { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-display-l);  line-height: var(--lh-tight); letter-spacing: 0.01em; text-transform: uppercase; }
.display-m  { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display-m);  line-height: var(--lh-tight); letter-spacing: 0.01em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--fg-brand);
}
/* The "> LABEL" tagline treatment used under the wordmark */
.tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-brand);
}
.tagline::before { content: ">  "; font-weight: 400; opacity: 0.9; }

.caption, small {
  font-size: var(--fs-caption);
  color: var(--fg-3);
  letter-spacing: var(--tr-caption);
}

code, kbd, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
code {
  background: var(--pgx-teal-050);
  color: var(--pgx-teal-800);
  border: 1px solid var(--pgx-line);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-xs);
}

a {
  color: var(--fg-brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,109,133,0.25);
  transition: color var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard);
}
a:hover { color: var(--pgx-teal-700); border-bottom-color: var(--pgx-teal-700); }

hr { border: 0; border-top: 1px solid var(--pgx-line); margin: var(--sp-6) 0; }

::selection { background: var(--pgx-teal-200); color: var(--pgx-teal-900); }
