/* tokens.css — Design tokens, font faces, custom properties */

@font-face {
  font-family: "Perfectly Nineties";
  src: url("../fonts/perfectly-nineties/PerfectlyNineties-Regular.otf") format("opentype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Perfectly Nineties";
  src: url("../fonts/perfectly-nineties/PerfectlyNineties-Italic.otf") format("opentype");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Denim";
  src: url("../fonts/denim/Denim-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Denim";
  src: url("../fonts/denim/Denim-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Denim";
  src: url("../fonts/denim/Denim-SemiBold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Denim WD";
  src: url("../fonts/denim/DenimWD-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Denim WD";
  src: url("../fonts/denim/DenimWD-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Denim WD";
  src: url("../fonts/denim/DenimWD-SemiBold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dark-first palette — hex for universal compatibility */
  --bg: #111219;
  --surface: #191b23;
  --fg: #e8e9ed;
  --muted: #9398a0;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #4b8aff;
  --accent-soft: #1a2240;
  --ink: #0a0b0f;
  --soft: #1d1f27;
  --success: #2a9d6a;
  --warn: #c49030;

  /* Sharp radii */
  --radius-lg: 4px;
  --radius-md: 2px;
  --radius-sm: 0;

  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.5);

  /* Spacing */
  --section-space-sm: 20px;
  --section-space-md: 64px;
  --section-space-lg: 92px;

  /* Type */
  --font-display: "Perfectly Nineties", "Denim WD", "Denim", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Denim", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

/* Light theme override (transformation page heroes) */
[data-theme="light"] {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --fg: #1a1b1e;
  --muted: #6b6f78;
  --border: rgba(0, 0, 0, 0.08);
  --soft: #edeef1;
}

@media (min-width: 680px) {
  :root {
    --section-space-sm: 34px;
    --section-space-md: 88px;
    --section-space-lg: 132px;
  }
}

@media (min-width: 980px) {
  :root {
    --section-space-sm: 44px;
    --section-space-md: 112px;
    --section-space-lg: 156px;
  }
}
