/* =============================================
   Base — reset, typography, shared primitives
   Loaded after tokens.css.
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

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

button {
  font: inherit;
  cursor: pointer;
}

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

/* ── Skip link ─────────────────────────────── */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
  font-size: var(--font-size-sm);
}
.skip-to-content:focus { left: 0; }

/* ── Eyebrow (small-caps label) ────────────── */
.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
}

/* ── Primary link (pill button) ────────────── */
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--duration-fast) var(--easing);
}
.primary-link:hover {
  background: var(--accent-hover);
  color: white;
}
.primary-link-lg {
  font-size: 15px;
  padding: 14px 28px;
}

/* ── Secondary link (text CTA) ─────────────── */
.quiet-link {
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  transition: color var(--duration-fast) var(--easing);
}
.quiet-link:hover { color: var(--ink); }

/* ── Layout shell ──────────────────────────── */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

/* ── Page-load fade ────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
main {
  animation: fade-in-up 0.45s var(--easing) both;
}
