/* ==========================================================================
   GenioBuzz — Base
   Design tokens + resets + typography.
   ========================================================================== */

:root {
  /* Color */
  --ink: #14161c;
  --ink-soft: #4a4e5a;
  --paper: #f7f7fb;
  --paper-raised: #ffffff;
  --line: #e3e4ee;

  --brand: #5b4bf0;
  --brand-ink: #241b8f;
  --brand-tint: #eeebff;

  --buzz: #ffc93c;
  --buzz-ink: #6b4c00;
  --buzz-tint: #fff6dd;

  --good: #1f9d63;
  --good-tint: #e4f7ee;
  --bad: #e0503a;
  --bad-tint: #fdeae7;

  --focus-ring: #241b8f;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Scale (fluid, 1.2-ish ratio) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.2vw, 2.4rem);
  --step-4: clamp(2.3rem, 1.9rem + 2vw, 3.4rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-1: 0 1px 2px rgba(20, 22, 28, 0.06), 0 6px 20px rgba(20, 22, 28, 0.06);
  --shadow-2: 0 2px 6px rgba(20, 22, 28, 0.08), 0 16px 40px rgba(20, 22, 28, 0.10);

  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f1f6;
    --ink-soft: #b9bcc9;
    --paper: #101119;
    --paper-raised: #181a24;
    --line: #262838;
    --brand-tint: #201c40;
    --buzz-tint: #332a10;
    --good-tint: #123424;
    --bad-tint: #3a1c17;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--space-4); color: var(--ink-soft); max-width: 68ch; }

a { color: var(--brand-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; display: block; }

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

ul, ol { padding-left: 1.2em; }

/* Accessible focus — never remove, only restyle */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-3); }

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