/* ============================================
   VOYNOVA DESIGN SYSTEM
   Navy #001F3F  ·  Gold #D4AF37  ·  Matte finish
   Instrument Serif (display) · Inter (body)
   ============================================ */

: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;

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

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

  /* Widths */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1280px;

  /* Fonts */
  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* --- LIGHT MODE (default: dark navy) ---
     For Voynova we invert the usual convention: DARK is the primary brand mode.
     Light mode is available via toggle for daytime reading. */
}

/* PRIMARY (DARK) — Voynova navy */
:root, [data-theme="dark"] {
  --color-bg:            #0a1628;
  --color-surface:       #0e1d33;
  --color-surface-2:     #13253f;
  --color-surface-offset:#182c47;
  --color-surface-hi:    #1e3555;
  --color-divider:       rgba(212, 175, 55, 0.10);
  --color-border:        rgba(212, 175, 55, 0.18);
  --color-border-strong: rgba(212, 175, 55, 0.35);

  --color-text:          #f4efe1;   /* warm off-white */
  --color-text-muted:    #a8b2c1;
  --color-text-faint:    #6a7689;
  --color-text-inverse:  #0a1628;

  --color-primary:       #D4AF37;   /* metallic gold */
  --color-primary-hover: #e8c04a;
  --color-primary-active:#b8952a;
  --color-primary-soft:  rgba(212, 175, 55, 0.14);
  --color-primary-glow:  rgba(212, 175, 55, 0.25);

  --color-navy-deep:     #001F3F;
  --color-navy:          #1e3a8a;

  --color-success:       #4ade80;
  --color-success-soft:  rgba(74, 222, 128, 0.14);
  --color-warning:       #fbbf24;
  --color-warning-soft:  rgba(251, 191, 36, 0.14);
  --color-error:         #f87171;
  --color-error-soft:    rgba(248, 113, 113, 0.14);
  --color-info:          #7dd3fc;
  --color-info-soft:     rgba(125, 211, 252, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 0 1px rgba(212, 175, 55, 0.20), 0 8px 24px rgba(212, 175, 55, 0.12);
}

[data-theme="light"] {
  --color-bg:            #f5f1e6;
  --color-surface:       #ffffff;
  --color-surface-2:     #faf6ea;
  --color-surface-offset:#efe9d7;
  --color-surface-hi:    #e6dfc9;
  --color-divider:       rgba(0, 31, 63, 0.08);
  --color-border:        rgba(0, 31, 63, 0.14);
  --color-border-strong: rgba(0, 31, 63, 0.28);

  --color-text:          #0a1628;
  --color-text-muted:    #4a5568;
  --color-text-faint:    #8a95a5;
  --color-text-inverse:  #f4efe1;

  --color-primary:       #96721c;
  --color-primary-hover: #7a5c15;
  --color-primary-active:#5c4610;
  --color-primary-soft:  rgba(150, 114, 28, 0.12);
  --color-primary-glow:  rgba(212, 175, 55, 0.30);

  --shadow-sm: 0 1px 2px rgba(0, 31, 63, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 31, 63, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 31, 63, 0.14);
  --shadow-gold: 0 0 0 1px rgba(150, 114, 28, 0.20), 0 8px 24px rgba(150, 114, 28, 0.12);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
  overflow-x: hidden;
}

body { overflow-x: hidden; }

body {
  min-height: 100dvh;
  line-height: 1.55;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.05), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(30, 58, 138, 0.10), transparent 45%);
  background-attachment: fixed;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.08), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0, 31, 63, 0.05), transparent 45%);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }
.dash__main p { max-width: none; }

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

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

a, button, [role="button"], input, select, textarea {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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