/* ─────────────────────────────────────────────────────────────
   acoco · base — reset, typography, focus, shared primitives
   ───────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
}

p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ── layout primitive ───────────────────────────────────────── */

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section-y); }

/* ── shared type primitives ─────────────────────────────────── */

.section-h {
  font-family: var(--display);
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  max-width: 18ch;
}

.lede {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 640px;
}

/* Mono uppercase eyebrow. Carried over from the original —
   it reads as a system label, matching the mock's own chrome. */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-mono);
  font-weight: 400;
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-2);
}

.eyebrow-h { color: var(--ink-2); }

/* ── icons ──────────────────────────────────────────────────── */

/* The original set "→" and "✦" as text, but neither glyph exists
   in DM Sans, DM Mono or Geist — both silently fell back to a
   system face. These are the same marks drawn to match. */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -.125em;
}

/* ── buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--fast) var(--ease),
              color var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-ink {
  background: var(--ink);
  color: #141210;
}
.btn-ink:hover { background: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); }

.btn-lg {
  height: 52px;
  padding-inline: 28px;
  font-size: 16px;
}

/* ── focus ──────────────────────────────────────────────────── */

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

.skip {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #141210;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--fast) var(--ease);
}
.skip:focus-visible { transform: none; }

/* ── a11y helper ────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── section reveals ─────────────────────────────────────────────
   .has-reveal is added by JS, so the hidden starting state never
   applies to a page without scripts. Each section's parts carry an
   --i index and scale in staggered as the section arrives.
   ─────────────────────────────────────────────────────────────── */

.has-reveal [data-rise] {
  opacity: 0;
  transform: scale(.965) translateY(14px);
}

/* Panels whose own surface would distort if scaled fade only. */
.has-reveal [data-rise="fade"] { transform: none; }

.has-reveal .is-in [data-rise] {
  opacity: 1;
  transform: none;
  transition:
    opacity .42s var(--ease),
    transform .52s var(--ease);
  transition-delay: calc(var(--i, 0) * 30ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .has-reveal [data-rise] { opacity: 1; transform: none; }
}
