/* Foundations — ported from the Intro Church source */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-primary); color: var(--color-bg); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.97;
}
h1 em, h2 em, h3 em { font-style: normal; color: var(--color-primary); }

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; }
p { text-wrap: pretty; }

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

/* Sections — Intro rhythm */
section { padding: var(--section-pad) var(--side-pad); }

/* Tag pill (section eyebrow) — exact Intro */
.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 8px 20px; border-radius: 999px;
  margin-bottom: 34px;
}

/* Scroll reveal — exact Intro */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* Accessibility helpers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  background: var(--color-dark); color: var(--color-bg);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 2000; transition: top 200ms var(--ease);
}
.skip-link:focus { top: 0; }

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