/*
 * playbacksoftware.com design tokens. The light values are the Coming Soon
 * splash's own (splash/wordpress-custom-html.html): ink on near-white,
 * hairline grids, Manrope titles over Inter text. Dark is the same page with the lights off.
 * docs/DESIGN.md explains each one; theme.json points the block editor at
 * these variables. Contrast ratios noted are against --bg.
 *
 * Copyright (c) 2026 Trevor Edwards / Playback Software
 */

/* Inter (variable, 100-900): OFL, served by the theme. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope (variable, 200-800) for titles: OFL, served by the theme. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Surfaces and text: the splash's ink on near-white. */
  --bg: #f9f9f9; /* the stage */
  --blend: #ffffff; /* header, footer and the fades into them */
  --panel: #ffffff; /* cards, fields */
  --panel-2: #f1f1f1; /* code, table heads, hover */
  --fg: #111111; /* 18.1:1 */
  --fg-2: #3a3a3a; /* body copy on long pages: 10.9:1 */
  --muted: #6a6a6a; /* labels, HUD, taglines: 5.1:1 */
  --control: #8c8c8c; /* field and button borders: 3.3:1 on white */
  --accent: #111111; /* the splash is monochrome; the accent is ink */
  --accent-ink: #ffffff; /* text on accent fills: 18.9:1 */
  --ok: #2f6b3a;
  --danger: #b3261e;

  /*
   * The ink and the blend as RGB channels, for the splash's translucent
   * effects: rgb(var(--ink) / 0.08) is the grid line.
   */
  --ink: 17 17 17;
  --blend-rgb: 255 255 255;
  --line: rgb(var(--ink) / 0.08); /* grids and hairlines */
  --line-2: rgb(var(--ink) / 0.14); /* dividers that must be seen */
  --accent-soft: rgb(var(--ink) / 0.16); /* rings */

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', var(--font-sans); /* titles */
  --weight-display: 600; /* hero and page titles */
  --weight-title: 700; /* card, section and content titles */
  --track-display: -0.02em;
  --track-title: -0.01em;
  --word-display: 0.08em; /* Manrope's space is narrow once tracked tight */
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --step-hero: clamp(2.25rem, 6.4vw + 0.5rem, 5.4rem); /* the home headline */
  --step-1: clamp(2.25rem, 3.6vw + 1rem, 3.75rem); /* page titles */
  --step-2: clamp(1.75rem, 1.6vw + 1rem, 2.375rem); /* section titles */
  --step-3: 1.5rem;
  --step-4: 1.25rem;
  --step-0: 1.0625rem; /* body */
  --step--1: 0.9375rem;
  --step--2: 0.8125rem;
  --label: 0.75rem; /* uppercase tracked labels */
  --track-label: 0.22em;
  --track-kicker: 0.36em;

  /* Space (4 px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;

  /* Shape and motion: square corners, quiet transitions. */
  --r: 2px;
  --r-pill: 999px;
  --shadow-lift: 0 1px 2px rgb(var(--ink) / 0.06), 0 12px 32px rgb(var(--ink) / 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms;
  --t: 300ms;

  /* Layout */
  --w-text: 42rem; /* about 70 characters of body text; rem, not ch, so headings share it */
  --w-page: 1200px;
  --gutter: clamp(1rem, 4.2vw, 3rem); /* the splash's gutter */
  --header-h: 88px;

  color-scheme: light;
}

/* Dark: the same page with the lights off. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e0e0e;
    --blend: #080808;
    --panel: #151515;
    --panel-2: #1d1d1d;
    --fg: #f2f2f2; /* 17.4:1 */
    --fg-2: #cfcfcf; /* 12.6:1 */
    --muted: #9a9a9a; /* 6.9:1, 6.4:1 on panel */
    --control: #6e6e6e; /* 3.8:1 */
    --accent: #f2f2f2;
    --accent-ink: #0e0e0e;
    --ok: #8fc79a;
    --danger: #ff8a7a;
    --ink: 242 242 242;
    --blend-rgb: 8 8 8;
    --shadow-lift: 0 1px 2px rgb(0 0 0 / 0.5), 0 12px 32px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e0e0e;
  --blend: #080808;
  --panel: #151515;
  --panel-2: #1d1d1d;
  --fg: #f2f2f2;
  --fg-2: #cfcfcf;
  --muted: #9a9a9a;
  --control: #6e6e6e;
  --accent: #f2f2f2;
  --accent-ink: #0e0e0e;
  --ok: #8fc79a;
  --danger: #ff8a7a;
  --ink: 242 242 242;
  --blend-rgb: 8 8 8;
  --shadow-lift: 0 1px 2px rgb(0 0 0 / 0.5), 0 12px 32px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}
