/* ─────────── EmSA brand fonts (Futura BT) ─────────── */
/* Jost / Source Code Pro deliberately not loaded from Google Fonts —
   the privacy notice declares no third-party CDN requests. The font-family
   stack still names them as fallbacks for systems that have them locally. */
@font-face {
  font-family: 'Futura BT';
  src: url('../fonts/Futura_Bk_BT_Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura BT';
  src: url('../fonts/Futura_Bk_BT_Book_Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Futura BT';
  src: url('../fonts/Futura_Md_BT_Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura BT';
  src: url('../fonts/Futura_Md_BT_Medium_Italic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Futura BT';
  src: url('../fonts/Futura_Md_BT_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura BT';
  src: url('../fonts/Futura_Md_BT_Bold_Italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ─────────── Colors ─────────── */

  /* Brand — Teal */
  --teal:        #1E9975;
  --teal-dark:   #157A5C;
  --teal-light:  #E6F5F0;
  --teal-deep:   #0E5A43;

  /* Brand — Gold / Amber */
  --gold:        #F0A22E;
  --gold-dark:   #C17529;
  --gold-soft:   #FDF3E1;

  /* Neutrals — Ink */
  --charcoal:    #2D2D2D;
  --ink:         #1A1A1A;

  /* Neutrals — Greys */
  --grey-50:     #FAFAFA;
  --grey-100:    #F5F5F5;
  --grey-200:    #E8E8E8;
  --grey-300:    #D0D0D0;
  --grey-400:    #AAAAAA;
  --grey-500:    #888888;
  --grey-600:    #666666;
  --grey-700:    #444444;

  /* ─────────── Typography ─────────── */
  --font-display: 'Futura BT', 'Jost', 'Century Gothic', 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
  --font-body:    'Futura BT', 'Jost', 'Century Gothic', Arial, sans-serif;
  --font-mono:    'Source Code Pro', 'Courier New', monospace;

  /* ─────────── Border Radius ─────────── */
  --radius-sm:   2px;
  --radius-md:   4px;

  /* ─────────── Shadows ─────────── */
  --shadow-sm:   0 2px 4px rgba(78, 59, 48, 0.08);
  --shadow-md:   0 4px 14px rgba(78, 59, 48, 0.12);

  /* ─────────── Icon shadow tiers ─────────── */
  --icon-shadow-strong:
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.85))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  --icon-shadow-soft:
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.30));
  /* Soft white halo for graphics on the dark hero, so grey artwork
     (e.g. the SPsec key shaft) separates from the dark background. */
  --icon-glow-soft:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.50));

  /* ─────────── Layout ─────────── */
  --max-w:       1180px;

  /* ─────────── Spacing scale ─────────── */
  --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-14:    56px;
  --space-16:    64px;
  --space-20:    80px;
  --space-24:    96px;

  /* ─────────── Section / container padding ─────────── */
  --section-y:    clamp(48px, 7vw, 80px);
  --container-x:  clamp(20px, 4vw, 48px);

  /* ─────────── Type scale ─────────── */
  --text-h1:      clamp(2rem, 4.4vw, 3.4rem);
  --text-h2:      clamp(1.5rem, 2.6vw, 2rem);
  --text-lead:    clamp(1.05rem, 1.5vw, 1.2rem);
  --text-body:    1rem;
  --text-sm:      0.875rem;
  --text-xs:      0.75rem;

  /* ─────────── Line heights ─────────── */
  --lh-tight:     1.1;
  --lh-snug:      1.4;
  --lh-normal:    1.6;
  --lh-relaxed:   1.7;

  /* ─────────── Letter spacing ─────────── */
  --ls-tight:     -0.02em;
  --ls-eyebrow:   0.14em;

  /* ─────────── Transitions ─────────── */
  --t-fast:       120ms ease;
  --t-base:       150ms ease;
  --t-slow:       180ms ease;

  /* ─────────── Header heights ─────────── */
  --header-h:     68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  color: var(--charcoal);
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: var(--space-8) 0 var(--space-4);
  letter-spacing: var(--ls-tight);
}

h1 {
  font-size: var(--text-h1);
  margin-top: var(--space-4);
}

h2 {
  font-size: var(--text-h2);
  margin-top: var(--space-16);
  line-height: var(--lh-snug);
}

h3 {
  font-size: 1.2rem;
  line-height: var(--lh-snug);
  letter-spacing: 0;
}

p, ul, ol {
  margin: 0 0 var(--space-4);
}

p {
  line-height: var(--lh-relaxed);
}

a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-base);
}

a:hover, a:focus {
  color: var(--teal-deep);
  text-decoration: none;
}

code, pre {
  font-family: var(--font-mono);
  background: var(--grey-100);
  border-radius: var(--radius-md);
}

code {
  padding: 0.1em 0.35em;
  font-size: 0.95em;
}

pre {
  padding: var(--space-4);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-8) var(--container-x) var(--section-y);
}

/* Landing-page layout: hero bleeds full-width and body-wrap handles
   its own container — main becomes a transparent passthrough. */
main:has(.hero) {
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: var(--space-4) 0 var(--space-8);
  font-size: var(--text-sm);
}

th, td {
  text-align: left;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--grey-200);
  vertical-align: top;
}

th {
  background: var(--grey-100);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
}
