/* ============================================
   BASE — Reset, Typography, Global Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-ink);
  background-color: var(--color-white);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Section Defaults ── */
.section {
  padding-block: var(--space-20);
}

.section--alt {
  background-color: var(--color-surface);
}

/* ── Section Header ── */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  color: var(--color-ink);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-border);
}

/* ── Typography Utilities ── */
.text-display {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
}

.text-italic {
  font-style: italic;
}

.text-center { text-align: center; }
.text-muted  { color: var(--color-ink-soft); }

/* ── Accessibility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Fade-up animation utility ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up--delay-1 { transition-delay: 100ms; }
.fade-up--delay-2 { transition-delay: 200ms; }
.fade-up--delay-3 { transition-delay: 300ms; }
