/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:     56px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --transition: 150ms ease;
}

/* Light theme */
[data-theme="light"] {
  --bg:           #f2f0eb;
  --bg-subtle:    #e8e5de;
  --bg-card:      #ffffff;
  --bg-overlay:   rgba(242,240,235,0.92);
  --border:       rgba(0,0,0,0.08);
  --border-strong:rgba(0,0,0,0.14);
  --text-primary: #111110;
  --text-secondary:#6b6a67;
  --text-tertiary:#a5a4a0;
  --accent:       #3f6ea0;
  --accent-muted: rgba(63,110,160,0.12);
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.14);
}

/* Dark theme */
[data-theme="dark"] {
  --bg:           #0d0d0f;
  --bg-subtle:    #141416;
  --bg-card:      #1a1a1d;
  --bg-overlay:   rgba(13,13,15,0.92);
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.12);
  --text-primary: #edece9;
  --text-secondary:#8a8a8e;
  --text-tertiary:#55555a;
  --accent:       #6d9bd1;
  --accent-muted: rgba(109,155,209,0.16);
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.5);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 400ms ease, color 300ms ease;
}

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
.t-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.t-heading-xl {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.t-heading-lg {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.t-heading-md {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.t-body {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
}

.t-small {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

.t-muted { color: var(--text-secondary); }
.t-dim   { color: var(--text-tertiary); }
.t-accent{ color: var(--accent); }
