/* Design tokens for polinafilina.com
   Theme is set on <html data-theme="light|dark">. Light is the default. */

:root,
[data-theme="light"] {
  /* Page */
  --bg: #FCFBF9;            /* page background, warm white */
  --surface: #F4F2EF;       /* About section band */
  --card: #FFFFFF;          /* All projects cards */
  --tabs-bg: #F1EEEA;       /* tab bar track */
  --line: #E4E0DA;          /* hairlines, borders */
  --line-soft: #E8E4DE;     /* card border, stack row lines */

  /* Text */
  --ink: #14172E;           /* main text, primary buttons, strong rules */
  --ink-2: #2E3147;         /* hero intro */
  --ink-3: #3E4155;         /* secondary paragraphs */
  --muted: #5B5D6E;         /* labels, dates, small meta */
  --on-ink: #FCFBF9;        /* text on --ink buttons */

  /* Image placeholders */
  --ph-a: #EEEBE6;

  /* Hero stars */
  --star-1: #14172E;
  --star-2: #3B3F66;
  --star-3: #8A8DA8;

  /* Contact block */
  --contact-bg: #14172E;
  --contact-text: #FCFBF9;
  --contact-border: transparent;
}

[data-theme="dark"] {
  --bg: #0E1024;
  --surface: #141731;
  --card: #171A33;
  --tabs-bg: #1E2244;
  --line: #2A2E55;
  --line-soft: #2A2E55;

  --ink: #ECEAF6;
  --ink-2: #D9D8EA;
  --ink-3: #C9CBE0;
  --muted: #A9ADC8;
  --on-ink: #0E1024;

  --ph-a: #1C2042;

  --star-1: #ECEAF6;
  --star-2: #A9ADC8;
  --star-3: #6E74B8;

  --contact-bg: #171A33;
  --contact-text: #ECEAF6;
  --contact-border: #2A2E55;
}

/* The Recent projects band looks the same in both themes. */
:root {
  --band-bg: #171A33;
  --band-text: #ECEAF6;
  --feature-card: #F2EFE9;
  --feature-ink: #171A33;
  --feature-tag: #5A5E7A;
  --feature-meta: #4A4E6A;
  --browser-chrome: #22264A;
  --browser-dot: #4A4F80;
  --browser-url: #A9ADC8;
  --browser-ph-a: #2A2F58;
  --peek-1: #DCD8EE;
  --peek-2: #C3BEDD;

  --contact-meta: #B9BCD8;
  --contact-rule: #3A3F6A;

  /* Pointer firework stars: one set for dark surfaces, one for light (same as the hero stars) */
  --spark-on-dark-1: #ECEAF6;
  --spark-on-dark-2: #A9ADC8;
  --spark-on-dark-3: #6E74B8;
  --spark-on-light-1: #14172E;
  --spark-on-light-2: #3B3F66;
  --spark-on-light-3: #8A8DA8;

  /* Type */
  --font-sans: "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radii */
  --r-pill: 999px;
  --r-card: 20px;
  --r-feature: 24px;
  --r-media: 14px;

  /* Layout */
  --container: 1280px;
  --gutter: 48px;
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
}
