/* ============================================================
   base.css — Reset, CSS variables, typography scale
   Cryptographic Signal aesthetic: precision technical + severe minimal
   ============================================================ */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */

:root {
  /* Color palette */
  --bg:          #0A0C0F;
  --surface:     #111318;
  --border:      #1C2028;
  --text:        #E8EDF2;
  --text-dim:    #6B7280;
  --signal:      #00E87A;
  --signal-dim:  rgba(0, 232, 122, 0.12);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing — 8px base unit */
  --sp-1:   8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Layout */
  --max-width:      1200px;
  --hero-split:     58fr 42fr;
  --nav-height:     64px;

  /* Transitions */
  --t-fast:  150ms ease;
  --t-base:  250ms ease;
  --t-slow:  400ms ease;
}

/* ============================================================
   CSS Reset
   ============================================================ */

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

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================================
   Typography Scale
   ============================================================ */

/* Display — Space Grotesk */
.t-display-xl {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.t-display-lg {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.t-display-md {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.t-display-sm {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

/* Mono — DM Mono */
.t-mono-lg {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.t-mono-base {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.t-mono-sm {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.t-mono-xs {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* Eyebrow labels */
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   Color Utilities
   ============================================================ */

.c-text      { color: var(--text); }
.c-text-dim  { color: var(--text-dim); }
.c-signal    { color: var(--signal); }
.c-bg        { color: var(--bg); }

/* ============================================================
   Structural Utilities
   ============================================================ */

.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;
}

/* Focus visible — keyboard nav only */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ============================================================
   Selection
   ============================================================ */

::selection {
  background-color: var(--signal-dim);
  color: var(--signal);
}
