/* Design tokens: every colour, font and shared size lives here.
   Dark is the default; [data-theme="light"] on <html> switches to the light colours
   (set by js/theme-init.js and js/features/theme-switch.js). */

:root {
  color-scheme: dark;

  /* The premium look (30 November 2026): warm black, ivory and one cool ice blue as the accent
     (warm picture, cool accent: the blue of the snow and ice in the wallpapers). No rainbow.
     Accent colours are written in OKLCH, so a gradient between them never turns grey. */

  /* Page and text */
  --color-background: #0f0e0c;
  --color-text: #f2ede3;
  --color-text-soft: rgb(242 237 227 / 0.72);
  --color-text-muted: #9a9387;

  /* Lines, hover states and small label backgrounds */
  --color-line: rgb(242 237 227 / 0.1);
  --color-hover: rgb(242 237 227 / 0.06);
  --color-pill: rgb(242 237 227 / 0.06);

  /* Panels behind the mockups (pack cards, pop-up) */
  --color-frame: #191714;
  --color-frame-edge: rgb(242 237 227 / 0.06);

  /* Loading placeholders (skeleton.css) */
  --color-skeleton: #211e1a;
  --color-skeleton-shine: rgb(242 237 227 / 0.06);
  --color-skeleton-shape: #2d2924;

  /* Device mockups (devices.css) */
  --device-glow-opacity: 0.4;
  --device-floor-shadow: rgb(0 0 0 / 0.8);

  /* Dot grid behind the closing section, and the fade behind the top bar */
  --color-grid-dot: oklch(0.83 0.07 225 / 0.07);
  --color-nav-fade: rgb(15 14 12 / 0.88);

  /* Ice blue: the one accent colour (#96d2ea; 11.7 : 1 on the background). It goes on what we
     sell: the buy buttons and the chosen filter. */
  --color-accent: oklch(0.83 0.07 225);

  /* The main button: ice blue with dark text. */
  --color-button: var(--color-accent);
  --color-button-text: var(--color-background);
  --shadow-button: none;

  /* Notes on the legal pages: draft warning and fill-in placeholders. */
  --color-note: oklch(0.83 0.07 225);
  --color-note-background: oklch(0.83 0.07 225 / 0.1);
  --color-fill-in: #e8b4a0;
  --color-fill-in-background: rgb(232 180 160 / 0.12);

  /* A soft ice sheen (deep blue, almost white, deep blue), for small dots and lines.
     A copy lives in GRADIENT_STOPS in js/features/pixel-field.js: change both together. */
  --gradient-headline: linear-gradient(90deg in oklch, oklch(0.7 0.09 230) 0%, oklch(0.92 0.04 220) 50%, oklch(0.7 0.09 230) 100%);
  /* The accent of the titles ("SAVE WITH A BUNDLE": the last word, and half the line under it). */
  --color-title-accent: var(--color-accent);
  /* Open ring for the loading icon: a gap, then ice blue. */
  --gradient-spinner: conic-gradient(in oklch, transparent 0 18%, oklch(0.7 0.09 230) 40%, oklch(0.92 0.04 220) 80%, oklch(0.83 0.07 225));

  /* Fonts, corners, shadows, sizes and motion: the same in both themes
     (except the frame shadow, which is softer in light mode).
     The serif is in fonts/ (Cormorant Garamond, free under the OFL, fonts/OFL.txt), loaded by
     css/base.css: from our own site, so no visitor data goes to a font service. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;

  /* Small, crisp corners instead of round pills: calmer and more premium. */
  --radius-pill: 3px;
  --radius-frame: 6px;
  --shadow-frame: 0 24px 48px -12px rgb(0 0 0 / 0.6), 0 8px 16px -8px rgb(0 0 0 / 0.5);

  /* The space between the content and the edge of the screen: grows with the window, so the
     page never presses against the edge (24 px on a phone, up to 72 px on a wide screen). */
  --gutter: clamp(24px, 5vw, 72px);

  --nav-height: 64px;
  /* Easing: things that come in slow down at the end (--ease-out); things that move or change
     speed up and slow down (--ease-in-out). Never linear, except a spinner that turns at one speed. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

:root[data-theme="light"] {
  color-scheme: light;

  /* Ivory paper and dark ink */
  --color-background: #f5f1e8;
  --color-text: #1a1714;
  --color-text-soft: rgb(26 23 20 / 0.72);
  --color-text-muted: #6f675c;

  --color-line: rgb(26 23 20 / 0.12);
  --color-hover: rgb(26 23 20 / 0.05);
  --color-pill: rgb(26 23 20 / 0.05);

  --color-frame: #ece6da;
  --color-frame-edge: rgb(26 23 20 / 0.06);

  --color-skeleton: #e6e0d4;
  --color-skeleton-shine: rgb(255 255 255 / 0.5);
  --color-skeleton-shape: #d8d1c3;

  --device-glow-opacity: 0.3;
  --device-floor-shadow: rgb(0 0 0 / 0.3);

  --color-grid-dot: oklch(0.47 0.09 235 / 0.1);
  --color-nav-fade: rgb(245 241 232 / 0.88);

  /* Darker ice blue (#186286), so it stays readable on ivory (6 : 1); the button text is ivory. */
  --color-accent: oklch(0.47 0.09 235);
  --color-button-text: var(--color-background);
  --gradient-headline: linear-gradient(90deg in oklch, oklch(0.4 0.08 240) 0%, oklch(0.58 0.09 230) 50%, oklch(0.4 0.08 240) 100%);

  --color-note: oklch(0.47 0.09 235);
  --color-note-background: oklch(0.47 0.09 235 / 0.1);
  --color-fill-in: #a0452a;
  --color-fill-in-background: rgb(160 69 42 / 0.1);

  --shadow-frame: 0 24px 48px -16px rgb(0 0 0 / 0.16), 0 8px 16px -8px rgb(0 0 0 / 0.1);
}
