/* =========================================================
   Voois Design System — Colors & Type
   "Acoustic Architecture" — calm, premium, local-first
   =========================================================
   Font note: Söhne (the brand-recommended marketing face) is
   commercial. We substitute Inter Tight as the closest free
   geometric-grotesque match, and SF Pro for product UI via
   the system font stack. Replace via @font-face if licensed.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* ---------- Color tokens (raw) ---------- */
  --voois-ivory:          #F7F5F2; /* primary background */
  --voois-silver:         #ECE9E4; /* surface, cards */
  --voois-mist:           #D9D6D0; /* dividers, hairlines */
  --voois-graphite-muted: #5C5C57; /* secondary text */
  --voois-graphite:       #1F1F1D; /* primary text */
  --voois-ink:            #141413; /* near-black, dark mode bg */

  --voois-copper:         #B8734C; /* accent — record / CTA */
  --voois-copper-soft:    #D39A78; /* gradient stop, hover-tint */
  --voois-copper-deep:    #94572F; /* pressed accent */

  --voois-slate:          #5F7896; /* enterprise accent */
  --voois-slate-soft:     #A8B6C7;

  --voois-sage:           #73806F; /* success */
  --voois-sage-soft:      #9AA796;

  /* ---------- Semantic color tokens ---------- */
  --bg:            var(--voois-ivory);
  --bg-elev:       var(--voois-silver);
  --bg-translucent: rgba(247, 245, 242, 0.72);
  --surface:       #FFFFFF;
  --surface-soft:  var(--voois-silver);
  --hairline:      var(--voois-mist);
  --hairline-soft: rgba(31, 31, 29, 0.06);

  --fg:            var(--voois-graphite);
  --fg-muted:      var(--voois-graphite-muted);
  --fg-subtle:     #8A8983;
  --fg-on-accent:  #FFFFFF;

  --accent:        var(--voois-copper);
  --accent-hover:  var(--voois-copper-deep);
  --accent-soft:   var(--voois-copper-soft);
  --accent-tint:   rgba(184, 115, 76, 0.10);

  --success:       var(--voois-sage);
  --info:          var(--voois-slate);
  --recording:     var(--voois-copper);

  /* ---------- Gradients ---------- */
  --grad-warmth:  linear-gradient(180deg, #F7F5F2 0%, #ECE9E4 100%);
  --grad-copper:  linear-gradient(135deg, #B8734C 0%, #D39A78 100%);
  --grad-slate:   linear-gradient(135deg, #5F7896 0%, #A8B6C7 100%);
  --grad-fade-up: linear-gradient(180deg, rgba(247,245,242,0) 0%, var(--voois-ivory) 100%);

  /* ---------- Typography families ---------- */
  --font-display: "Inter Tight", "Söhne", "Suisse Int'l", -apple-system,
                  BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-ui:      -apple-system, BlinkMacSystemFont, "SF Pro Text",
                  "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-mono:    "SF Mono", ui-monospace, "JetBrains Mono", Menlo,
                  Consolas, monospace;

  /* ---------- Type scale (editorial) ---------- */
  --t-display:   clamp(56px, 7vw, 96px);
  --t-h1:        clamp(40px, 4.4vw, 64px);
  --t-h2:        clamp(28px, 2.6vw, 40px);
  --t-h3:        22px;
  --t-h4:        18px;
  --t-body:      17px;
  --t-body-sm:   15px;
  --t-caption:   13px;
  --t-micro:     11px;

  --lh-tight:    1.04;
  --lh-snug:     1.18;
  --lh-body:     1.55;
  --lh-loose:    1.7;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-eyebrow: 0.18em;

  /* ---------- Spacing scale (4-pt) ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* ---------- Radii ---------- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* ---------- Shadows (soft, dampened) ---------- */
  --shadow-xs: 0 1px 0 rgba(31,31,29,0.04);
  --shadow-sm: 0 1px 2px rgba(31,31,29,0.05), 0 0 0 1px rgba(31,31,29,0.04);
  --shadow-md: 0 4px 14px rgba(31,31,29,0.06), 0 1px 2px rgba(31,31,29,0.04);
  --shadow-lg: 0 16px 40px rgba(31,31,29,0.10), 0 2px 6px rgba(31,31,29,0.04);
  --shadow-xl: 0 28px 80px rgba(31,31,29,0.16), 0 4px 12px rgba(31,31,29,0.06);
  --shadow-inset-soft: inset 0 0 0 1px rgba(31,31,29,0.05);

  /* ---------- Motion ---------- */
  --ease-acoustic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:     cubic-bezier(0.32, 0.72, 0.30, 1);
  --dur-fast:    160ms;
  --dur-base:    240ms;
  --dur-slow:    420ms;
  --dur-ambient: 900ms;

  /* ---------- Layout ---------- */
  --max-w-text:    640px;
  --max-w-content: 1120px;
  --max-w-wide:    1280px;
}

/* =========================================================
   Base reset & base typography
   ========================================================= */

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   Semantic typographic primitives
   ========================================================= */

.v-display, h1.display {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: 0;
}

.v-h1, h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

.v-h2, h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  margin: 0;
}

.v-h3, h3 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.v-h4, h4 {
  font-family: var(--font-ui);
  font-size: var(--t-h4);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.v-body, p {
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--fg);
  margin: 0;
}

.v-body-sm { font-size: var(--t-body-sm); line-height: var(--lh-body); }

.v-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg-muted);
}

.v-caption {
  font-family: var(--font-ui);
  font-size: var(--t-caption);
  color: var(--fg-muted);
  letter-spacing: 0;
}

.v-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--fg-muted);
}

.v-mono, code, kbd {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
}

.v-accent { color: var(--accent); }
.v-muted  { color: var(--fg-muted); }

/* selection */
::selection {
  background: var(--accent-tint);
  color: var(--fg);
}
