/* ============================================================
   base.css — self-hosted fonts, reset, base typography,
   layout utilities, buttons, and the section scaffold.
   Component-specific styles live in components.css.
   ============================================================ */

/* ---------- Self-hosted fonts (variable woff2) ---------- */
/* Bricolage Grotesque — display (opsz + wght axes) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter Tight — body / UI (wght axis) */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-mid) ease, color var(--dur-mid) ease;
}

/* ---------- Layout utility ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-6); }
}

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

/* ---------- Typography ---------- */
/* Display type: pinned optical size + tight tracking → compact, not stretched. */
.disp {
  font-family: var(--disp);
  font-variation-settings: 'opsz' 30, 'wght' 700;
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: .94;
}
.ey {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-fg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: var(--text-md);
  padding: 13px 22px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:hover {
  background: var(--red-press);
  border-color: var(--red-press);
  box-shadow: 0 0 0 4px rgba(255, 25, 38, .16);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--red);
}
.btn .arw { transition: transform .25s; }
.btn:hover .arw { transform: translateX(3px); }
.btn .badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--red);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
}
.btn-o {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-o:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  box-shadow: none;
}
.btn-o:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--red);
}

/* ---------- Section scaffold ---------- */
.sec {
  padding: var(--sec-y) 0;
  scroll-margin-top: 84px;
  transition: background var(--dur-mid), color var(--dur-mid);
}
.sec--alt { background: var(--surface-2); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-7);
  margin-bottom: var(--space-9);
}
.sec-head h2 {
  font-size: var(--text-h2);
  text-transform: uppercase;
}
/* Aside description only — direct child, so it doesn't hit the eyebrow <p> */
.sec-head > p {
  color: var(--fg-2);
  max-width: 34ch;
  text-align: right;
  font-size: var(--text-md);
}
@media (max-width: 640px) {
  .sec { padding: var(--space-11) 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head > p { text-align: left; }
}

/* ---------- Motion: page-load rise ---------- */
.rise {
  opacity: 0;
  transform: translateY(20px);
  animation: rise .85s var(--ease-out) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

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