/* /styles/02-base.css */
/* Typography & body baseline */

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  background: var(--bg-base);
  color: var(--text-primary);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  transition: background var(--duration-base) var(--ease-out-quart),
              color var(--duration-base) var(--ease-out-quart);
}

h1, h2, h3, h4 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.italic-display, em.serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

p { color: var(--text-secondary); max-width: 65ch; }

a {
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out-quart);
}

a:hover { color: var(--accent-glow); }

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [data-cursor] { cursor: none; }
}