/* ==========================================================================
   ORVEQ — Design Tokens
   A premium, classic, editorial light theme.
   Warm-white palette, serif display + sans body, intentional spacing.
   ========================================================================== */

:root {
  /* ---- Color: surfaces ---- */
  --color-bg:           #fafaf7;   /* base warm white */
  --color-bg-elevated:  #ffffff;   /* cards, inputs, elevated surfaces */
  --color-bg-subtle:    #f3f3ef;   /* slightly recessed sections */
  --color-bg-muted:     #eeece6;   /* hover, subtle fill */
  --color-bg-inverse:   #1a1a1a;   /* dark sections */

  /* ---- Color: text ---- */
  --color-text:         #1a1a1a;   /* primary text */
  --color-text-secondary:#4a4a48;   /* secondary text */
  --color-text-tertiary: #8a8a86;   /* muted labels, captions */
  --color-text-inverse:  #fafaf7;   /* text on dark */
  --color-text-inverse-secondary: #c7c5be;

  /* ---- Color: accents ---- */
  --color-accent:       #1a1a1a;   /* primary button = near-black */
  --color-accent-hover: #2e2e2e;
  --color-border:       #e4e2dc;   /* hairline borders */
  --color-border-strong:#d0cec7;
  --color-focus:        #1a1a1a;
  --color-error:        #b3261e;
  --color-success:      #2d6a4f;

  /* ---- Typography: families ---- */
  --font-serif: "Newsreader", "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "SF Mono", "JetBrains Mono", "Fira Code", "Courier New", monospace;

  /* ---- Typography: scale (fluid, clamp-based) ---- */
  --fs-display: clamp(2.75rem, 6vw, 5.5rem);     /* hero headline */
  --fs-h1:      clamp(2.25rem, 4.5vw, 3.75rem);  /* section headlines */
  --fs-h2:      clamp(1.75rem, 3vw, 2.5rem);     /* sub-headlines */
  --fs-h3:      clamp(1.35rem, 2vw, 1.75rem);    /* feature titles */
  --fs-h4:      clamp(1.125rem, 1.5vw, 1.375rem);
  --fs-body:    clamp(1rem, 0.25vw + 0.95rem, 1.125rem);
  --fs-body-lg: clamp(1.125rem, 0.5vw + 1.05rem, 1.3rem);
  --fs-small:   0.875rem;
  --fs-xs:      0.75rem;
  --fs-eyebrow: 0.75rem;

  /* ---- Typography: metrics ---- */
  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-normal:  1.55;
  --lh-relaxed: 1.7;
  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;
  --tracking-widest:  0.16em;
  --tracking-display: -0.035em;

  /* ---- Typography: weights ---- */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* ---- Spacing scale ---- */
  --space-3xs: 0.25rem;   /*  4px */
  --space-2xs: 0.5rem;    /*  8px */
  --space-xs:  0.75rem;   /* 12px */
  --space-sm:  1rem;      /* 16px */
  --space-md:  1.5rem;    /* 24px */
  --space-lg:  2rem;      /* 32px */
  --space-xl:  3rem;      /* 48px */
  --space-2xl: 4rem;      /* 64px */
  --space-3xl: 6rem;      /* 96px */
  --space-4xl: 8rem;      /* 128px */
  --space-5xl: 10rem;     /* 160px */

  /* ---- Layout ---- */
  --container-max:      1280px;
  --container-narrow:   880px;
  --container-wide:     1440px;
  --container-padding:  clamp(1.25rem, 4vw, 3rem);
  --nav-height:         68px;

  /* ---- Radii ---- */
  --radius-sm:   4px;
  --radius-md:   6px;    /* buttons */
  --radius-lg:   10px;
  --radius-xl:   16px;
  --radius-pill: 999px;

  /* ---- Shadows (subtle, warm) ---- */
  --shadow-xs:  0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-sm:  0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow-md:  0 8px 24px rgba(26, 26, 26, 0.08);
  --shadow-lg:  0 20px 50px rgba(26, 26, 26, 0.10);
  --shadow-float: 0 30px 80px rgba(26, 26, 26, 0.14);

  /* ---- Transitions ---- */
  --ease-out:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft:  cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-fast:   0.15s;
  --dur-base:   0.3s;
  --dur-slow:   0.6s;
  --dur-reveal: 0.8s;

  /* ---- Z-index ---- */
  --z-base:    1;
  --z-nav:     100;
  --z-overlay: 200;
  --z-modal:   300;
}

/* Reduced motion token override */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-reveal: 0.01s;
    --dur-slow:   0.01s;
    --dur-base:   0.01s;
  }
}
