/* ============================================
   BASE.CSS — Reset + design tokens
   Soltfiish.com
   ============================================ */

/* ----------- DESIGN TOKENS ----------- */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* 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;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 100ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 1040px;
  --content-wide: 1280px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body:    'Satoshi', 'Inter', system-ui, sans-serif;
}

/* ----------- CUSTOM PALETTE: Soltfiish ----------- */
/* 
  Dark-first design:
  Deep near-black backgrounds — not pure black, slightly warm
  Primary accent: electric cyan-teal (#00c4d4 range)
  Secondary warm gold for featured elements
  Minimal, high-signal color use
*/

:root,
[data-theme="dark"] {
  --color-bg:              #0d0f12;
  --color-surface:         #111419;
  --color-surface-2:       #161a20;
  --color-surface-offset:  #1c2028;
  --color-surface-hover:   #1e242d;
  --color-border:          rgba(255,255,255,0.08);
  --color-border-strong:   rgba(255,255,255,0.14);
  --color-divider:         rgba(255,255,255,0.06);

  --color-text:            #e8eaed;
  --color-text-muted:      rgba(232,234,237,0.55);
  --color-text-faint:      rgba(232,234,237,0.28);
  --color-text-inverse:    #0d0f12;

  --color-primary:         #00c4d4;
  --color-primary-hover:   #00afc0;
  --color-primary-dim:     rgba(0,196,212,0.12);
  --color-primary-border:  rgba(0,196,212,0.25);

  --color-gold:            #e8b86d;
  --color-gold-dim:        rgba(232,184,109,0.1);

  --color-success:         #4ade80;
  --color-warning:         #fbbf24;
  --color-error:           #f87171;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 32px rgba(0,196,212,0.12);
}

[data-theme="light"] {
  --color-bg:              #f6f7f8;
  --color-surface:         #ffffff;
  --color-surface-2:       #f9fafb;
  --color-surface-offset:  #f0f2f4;
  --color-surface-hover:   #e8ebed;
  --color-border:          rgba(0,0,0,0.08);
  --color-border-strong:   rgba(0,0,0,0.14);
  --color-divider:         rgba(0,0,0,0.05);

  --color-text:            #0d0f12;
  --color-text-muted:      rgba(13,15,18,0.55);
  --color-text-faint:      rgba(13,15,18,0.3);
  --color-text-inverse:    #f6f7f8;

  --color-primary:         #007a87;
  --color-primary-hover:   #005e6a;
  --color-primary-dim:     rgba(0,122,135,0.08);
  --color-primary-border:  rgba(0,122,135,0.2);

  --color-gold:            #b8860b;
  --color-gold-dim:        rgba(184,134,11,0.08);

  --color-success:         #16a34a;
  --color-warning:         #d97706;
  --color-error:           #dc2626;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 24px rgba(0,122,135,0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg:              #0d0f12;
    --color-surface:         #111419;
    --color-surface-2:       #161a20;
    --color-surface-offset:  #1c2028;
    --color-surface-hover:   #1e242d;
    --color-border:          rgba(255,255,255,0.08);
    --color-border-strong:   rgba(255,255,255,0.14);
    --color-divider:         rgba(255,255,255,0.06);
    --color-text:            #e8eaed;
    --color-text-muted:      rgba(232,234,237,0.55);
    --color-text-faint:      rgba(232,234,237,0.28);
    --color-text-inverse:    #0d0f12;
    --color-primary:         #00c4d4;
    --color-primary-hover:   #00afc0;
    --color-primary-dim:     rgba(0,196,212,0.12);
    --color-primary-border:  rgba(0,196,212,0.25);
    --color-gold:            #e8b86d;
    --color-gold-dim:        rgba(232,184,109,0.1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 32px rgba(0,196,212,0.12);
  }
}

/* ----------- RESET ----------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 250ms var(--transition), color 250ms var(--transition);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'], ol[role='list'] { list-style: none; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

::selection {
  background: var(--color-primary-dim);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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