/*
  Cosmic Rewind theme — every color and font in the app comes from here.
  Based on the founder's welcome-screen design.
  (If --c-bg changes, also update theme_color/background_color in manifest.webmanifest
  and the theme-color meta tag in index.html.)
*/

/* Montserrat (SIL Open Font License), self-hosted so it works offline. Variable weight 200–600. */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-italic-latin.woff2") format("woff2");
  font-weight: 200 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Fonts */
  --font-wordmark: "Montserrat", "Helvetica Neue", Arial, sans-serif;  /* COSMIC REWIND title (thin, wide caps) */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;   /* headings */
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --weight-wordmark: 200;
  --weight-display: 400;

  /* Brand gradient: peach → pink → purple */
  --c-peach: #f9b776;
  --c-pink: #e879b0;
  --c-purple: #8b5cf6;
  --g-brand: linear-gradient(90deg, var(--c-peach), var(--c-pink) 55%, var(--c-purple));
  --g-brand-vertical: linear-gradient(180deg, var(--c-peach), var(--c-pink) 55%, var(--c-purple));

  /* Surfaces and text */
  --c-bg: #05030b;          /* near-black from the design */
  --c-bg-deep: #000000;     /* behind album art */
  --c-surface: #121016;     /* cards */
  --c-field: #07060a;       /* inside pill fields */
  --g-border: linear-gradient(90deg, rgba(249, 183, 118, .55), rgba(232, 121, 176, .45), rgba(139, 92, 246, .55)); /* field outlines */
  --c-surface-2: #1c1922;   /* inputs, raised */
  --c-border: #2c2833;
  --c-text: #ffffff;
  --c-muted: #aaa4b6;
  --c-accent: var(--c-peach);  /* links, highlights, numbers */
  --c-accent-ink: #1a0f14;     /* dark text on the gradient / peach */
  --c-danger: #f08a8a;

  /* Starfield (all screens except welcome) */
  --c-star-dim: rgba(255, 255, 255, 0.35);
  --c-star: rgba(255, 255, 255, 0.6);
  --c-star-bright: rgba(255, 255, 255, 0.9);

  /* Spotify brand color — keep as is per Spotify's guidelines */
  --c-spotify: #1ed760;
  --c-spotify-ink: #000000;

  /* Shape */
  --radius: 14px;
  --art-radius: 4px;        /* Spotify allows small corner radius on artwork only */
}
