/* =====================================================
   ARTIFEX Base — reset + element defaults (order 1)
   Replaces obo reset.css / main.css global element styles.
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px; /* fixed at all breakpoints — responsiveness via clamp() */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--bg-0);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink-900);
  line-height: 1.3;
  font-weight: 700;
}

p { margin: 0; }

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

ul, ol { list-style: none; }

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

button {
  font-family: inherit;
  font-size: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

hr { border: 0; border-top: 1px solid var(--line-200); }

:focus-visible {
  outline: 3px solid var(--brand-100);
  outline-offset: 2px;
}

::selection { background: var(--brand-100); }

/* ---- Layout primitives ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 140px;
}
.section--tint { background: var(--bg-50); }

/* ---- Section header pattern: eyebrow + title + lead ---- */
.eyebrow {
  display: block;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-900);
}

.section-lead {
  font-size: var(--text-body-lg);
  color: var(--ink-500);
  max-width: 640px;
  margin-top: var(--sp-6);
}

.accent { color: var(--brand-600); }

/* ---- Scroll reveal (GSAP adds the motion; hidden state here) ---- */
.reveal { opacity: 0; }
html.no-gsap .reveal { opacity: 1; }

/* ---- Screen-reader only (kept from gnuboard convention) ---- */
.sound_only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 1024px) {
  .section { padding-block: 96px; }
}

@media (max-width: 640px) {
  .section { padding-block: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
