/* ==========================================================================
   apway · Foundations
   Colors, type, spacing, motion — the atomic layer.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400..900;1,400..900&family=Archivo+Narrow:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* --------------------------------------------------------------------
     COLOR · the palette
     Black dominates. White is the stage. Orange is the silver lining —
     use it for <= 10% of any composition.
     -------------------------------------------------------------------- */

  /* Core */
  --jet-black:     #000000;
  --racing-orange: #FF3D00;
  --pure-white:    #FFFFFF;

  /* Neutral scale — black-biased */
  --ink-950: #050505;
  --ink-900: #0B0B0B;
  --ink-800: #141414;
  --ink-700: #1F1F1F;
  --ink-600: #2B2B2B;
  --ink-500: #3D3D3D;
  --ink-400: #5C5C5C;
  --ink-300: #8A8A8A;
  --ink-200: #C4C4C4;
  --ink-100: #E8E8E8;
  --ink-050: #F5F5F5;

  /* Orange — the accent, narrow range */
  --orange-600: #E03400;
  --orange-500: #FF3D00;  /* brand */
  --orange-400: #FF6A3D;
  --orange-300: #FFA17A;  /* use sparingly */
  --orange-glow: rgba(255, 61, 0, 0.35);

  /* Semantic — foreground */
  --fg-1: var(--pure-white);     /* primary on dark */
  --fg-2: var(--ink-200);        /* secondary on dark */
  --fg-3: var(--ink-400);        /* tertiary on dark */
  --fg-accent: var(--racing-orange);

  /* Semantic — foreground (on light) */
  --fg-1-invert: var(--jet-black);
  --fg-2-invert: var(--ink-600);
  --fg-3-invert: var(--ink-400);

  /* Semantic — background */
  --bg-1: var(--jet-black);      /* primary canvas */
  --bg-2: var(--ink-900);        /* elevated surface */
  --bg-3: var(--ink-800);        /* higher surface */
  --bg-line: var(--ink-700);     /* hairlines, borders */
  --bg-invert: var(--pure-white);

  /* Semantic — status (kept quiet, brand-aligned) */
  --status-go:     #6BE06B;
  --status-warn:   #FFB800;
  --status-stop:   var(--racing-orange);

  /* --------------------------------------------------------------------
     TYPE
     Archivo (display, racing-italic when slanted)
     Geist (body)
     JetBrains Mono (data / timings / code)
     -------------------------------------------------------------------- */

  --font-display: 'Archivo', 'Archivo Narrow', system-ui, sans-serif;
  --font-display-condensed: 'Archivo Narrow', 'Archivo', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Type scale — modular, 1.25 (major third) */
  --text-3xs: 10px;
  --text-2xs: 11px;
  --text-xs:  12px;
  --text-sm:  14px;
  --text-md:  16px;
  --text-lg:  18px;
  --text-xl:  22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --text-6xl: 84px;
  --text-7xl: 112px;
  --text-8xl: 144px;

  /* Weights */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

  /* Leading */
  --leading-tight: 1.02;
  --leading-snug:  1.15;
  --leading-normal: 1.45;
  --leading-loose: 1.7;

  /* Tracking */
  --track-tighter: -0.04em;
  --track-tight:   -0.02em;
  --track-normal:  0em;
  --track-wide:    0.04em;
  --track-wider:   0.1em;
  --track-widest:  0.18em; /* for ALL CAPS labels */

  /* --------------------------------------------------------------------
     SPACE — 4px base
     -------------------------------------------------------------------- */
  --space-0: 0;
  --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;
  --space-32: 128px;

  /* --------------------------------------------------------------------
     RADIUS — mostly sharp. A snail is slippery, an F1 chassis is sharp.
     -------------------------------------------------------------------- */
  --radius-0: 0;
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 8px;
  --radius-pill: 999px;

  /* --------------------------------------------------------------------
     ELEVATION — quiet. Speed doesn't float; it streaks.
     -------------------------------------------------------------------- */
  --shadow-0: none;
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 0 1px var(--racing-orange), 0 0 24px var(--orange-glow);
  --shadow-hairline-top: inset 0 1px 0 rgba(255,255,255,0.06);
  --shadow-hairline-bot: inset 0 -1px 0 rgba(255,255,255,0.06);

  /* --------------------------------------------------------------------
     MOTION — fast, linear-ish. Confidence, not bounce.
     -------------------------------------------------------------------- */
  --ease-drive:     cubic-bezier(0.2, 0.8, 0.2, 1);       /* default */
  --ease-launch:    cubic-bezier(0.7, 0, 0.84, 0);        /* accel in */
  --ease-coast:     cubic-bezier(0.16, 1, 0.3, 1);        /* decel out */
  --ease-linear:    linear;

  --dur-instant: 80ms;
  --dur-fast:    160ms;
  --dur-base:    240ms;
  --dur-slow:    420ms;

  /* --------------------------------------------------------------------
     LAYOUT
     -------------------------------------------------------------------- */
  --container-sm: 640px;
  --container-md: 960px;
  --container-lg: 1280px;
  --container-xl: 1440px;
  --hairline: 1px solid var(--bg-line);
}

/* ==========================================================================
   Semantic element defaults
   ========================================================================== */

.apw-display-1,
.apw-h-hero {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-style: italic;
  font-size: clamp(56px, 9vw, var(--text-8xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--track-tighter);
  text-transform: uppercase;
}

.apw-h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-style: italic;
  font-size: var(--text-6xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-tighter);
  text-transform: uppercase;
}

.apw-h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-4xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--track-tight);
}

.apw-h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--track-tight);
}

.apw-eyebrow,
.apw-label {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-widest);
  color: var(--fg-2);
}

.apw-body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--fg-2);
  text-wrap: pretty;
}

.apw-body-lg {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--fg-2);
}

.apw-small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--fg-3);
}

.apw-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0;
}

/* Helpful utility: the signature slanted wordmark-style text */
.apw-italic-caps {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: var(--track-tight);
}
