/* ==========================================================================
   EG Technology & Risk Advisory — base.css
   Design tokens, reset, typography primitives.
   ========================================================================== */

:root {
  /* Color */
  --bg:            #060709;
  --bg-2:          #0B0D10;
  --surface:       #111419;
  --surface-2:     #171B21;
  --text:          #F4F6F8;
  --text-dim:      #929AA5;
  --text-faint:    #78818D;
  --accent:        #E0A24F;
  --accent-btn:    #E0A24F;
  --accent-soft:   #C98A3E;
  --accent-fg:     #0A0A0B;
  --cyan:          #E8B36A;
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --danger:        #E8685B;
  --ok:            #5BC98E;

  /* Type */
  --font-display: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.8rem + 3vw, 4.4rem);
  --step-5:  clamp(3rem, 2rem + 5vw, 6.5rem);

  /* Space */
  --s-1: 0.5rem;
  --s-2: 0.875rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;
  --s-8: 10rem;

  /* Geometry */
  --radius:    4px;
  --radius-lg: 10px;
  --maxw:      1320px;
  --gutter:    clamp(1.25rem, 4vw, 3.5rem);

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast:    0.22s;
  --t-base:    0.45s;
  --t-slow:    0.9s;

  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -0.015em; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, canvas { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* Focus — visible, consistent, never removed. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

/* Utility type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}

.lede {
  font-size: var(--step-1);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 54ch;
}

.dim { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }
