/* ══════════════════════════════════════════════════════════════
   base.css — Reset & Global Defaults
   Universal styles shared by every page.
   ══════════════════════════════════════════════════════════════ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-kerning: normal;
  font-optical-sizing: auto;
  color: var(--fg);
  background: var(--bg);
  letter-spacing: 0;
}

/* Page-load progress line */
body::before {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 1px;
  background: color-mix(in oklch, var(--surface), transparent 18%);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

body.motion-ready::before {
  animation: page-line var(--motion-slow) var(--ease-cinematic) 120ms forwards;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
address {
  font-weight: var(--paragraph-weight);
  letter-spacing: var(--paragraph-tracking);
}

.kicker,
.section-kicker {
  letter-spacing: 0.16em;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

/* ── Shared utility classes ───────────────────────────────── */
.section {
  padding: var(--section-y) var(--page-x);
  border-bottom: var(--line);
}

.section-kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 200;
  line-height: 1.12;
  text-wrap: balance;
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
