/* ─── Google Fonts — Poppins ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ─── Design tokens ─────────────────────────────────────────────────────── */

:root {
  /* Colour — light theme */
  --color-bg:         #ffffff;
  --color-fg:         #0a0a0a;
  --color-border:     #b8b8b8;
  --color-muted:      #4a4a4a;
  --color-subtle:     #eeeeee;
  --color-surface:    #f7f7f7;
  --color-accent:     #111111;
  --color-accent-hover: #000000;
  --color-accent-light: #e5e5e5;
  --color-primary-bg:  #111111;
  --color-primary-fg:  #ffffff;
  --color-primary-hover: #000000;
  --color-outline-hover-fg: #ffffff;
  --color-star:       rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-sans:  'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  var(--font-sans);

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.5rem;

  --leading-tight:  1.2;
  --leading-normal: 1.7;

  --font-light:  300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semi:   600;
  --font-bold:   700;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width:        1200px;
  --max-width-narrow:  720px;

  /* Border radius — rounded style */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Borders */
  --border-width: 1px;
  --border:       var(--border-width) solid var(--color-border);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);

  /* Transitions */
  --transition: 200ms ease;
}

/* ─── Dark theme ─────────────────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg:          #111111;
    --color-fg:          #f5f5f5;
    --color-border:      #555555;
    --color-muted:       #b0b0b0;
    --color-subtle:      #1d1d1d;
    --color-surface:     #181818;
    --color-accent:      #ffffff;
    --color-accent-hover:#d6d6d6;
    --color-accent-light:#2a2a2a;
    --color-primary-bg:  #2a2a2a;
    --color-primary-fg:  #f5f5f5;
    --color-primary-hover: #3d3d3d;
    --color-outline-hover-fg: #111111;
    --color-star:        rgba(255, 255, 255, 0.35);
  }
}

:root[data-theme="dark"] {
  --color-bg:          #111111;
  --color-fg:          #f5f5f5;
  --color-border:      #555555;
  --color-muted:       #b0b0b0;
  --color-subtle:      #1d1d1d;
  --color-surface:     #181818;
  --color-accent:      #ffffff;
  --color-accent-hover:#d6d6d6;
  --color-accent-light:#2a2a2a;
  --color-primary-bg:  #2a2a2a;
  --color-primary-fg:  #f5f5f5;
  --color-primary-hover: #3d3d3d;
  --color-outline-hover-fg: #111111;
  --color-star:        rgba(255, 255, 255, 0.35);
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
