/* ============================================================
   base.css — reset, fonts, base typography, buttons, container
   Loads after tokens.css.
   ============================================================ */

/* ---------- @font-face (local files; run download-fonts.ps1 first) ---------- */
/* Each family accepts woff2 / woff / ttf / otf — drop whatever format you have
   into assets/fonts/ with the matching base name; the browser picks the one
   that exists. Missing formats 404 silently. */
@font-face {
  font-family: 'Stretch Pro Regular';
  src: url('../assets/fonts/stretch-pro-regular.woff2') format('woff2'),
       url('../assets/fonts/stretch-pro-regular.woff') format('woff'),
       url('../assets/fonts/stretch-pro-regular.ttf') format('truetype'),
       url('../assets/fonts/stretch-pro-regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Designer Regular';
  src: url('../assets/fonts/designer-regular.woff2') format('woff2'),
       url('../assets/fonts/designer-regular.woff') format('woff'),
       url('../assets/fonts/designer-regular.ttf') format('truetype'),
       url('../assets/fonts/designer-regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-300.woff2') format('woff2'),
       url('../assets/fonts/satoshi-300.woff') format('woff'),
       url('../assets/fonts/satoshi-300.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-400.woff2') format('woff2'),
       url('../assets/fonts/satoshi-400.woff') format('woff'),
       url('../assets/fonts/satoshi-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-500.woff2') format('woff2'),
       url('../assets/fonts/satoshi-500.woff') format('woff'),
       url('../assets/fonts/satoshi-500.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-700.woff2') format('woff2'),
       url('../assets/fonts/satoshi-700.woff') format('woff'),
       url('../assets/fonts/satoshi-700.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-bg);
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: var(--fw-bold); color: var(--c-ink); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
p  { color: var(--c-ink); }
.text-muted { color: var(--c-muted); }
.eyebrow {
  font-size: var(--fs-tag);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--c-primary);
}
.display { font-family: var(--f-display); }
.decor   { font-family: var(--f-decor); }

/* ---------- Layout container ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--pad-section); }

/* stack utility: consistent vertical rhythm */
.stack > * + * { margin-top: var(--gap-stack); }

/* ---------- Buttons (primary = brand color, per notes) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--r-pill);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn-primary {
  background: var(--c-accent);          /* phosphor lime */
  color: var(--c-ink);
}
.btn-primary:hover { background: #b3d600; transform: translateY(-2px); }
.btn-ico { width: 34px; height: 34px; flex: none; }

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  box-shadow: inset 0 0 0 1.5px var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary); color: var(--c-on-primary); transform: translateY(-2px); }

/* accent (green) used for active/emphasis states, not default buttons */
.is-accent { background: var(--c-accent); color: var(--c-on-accent); }

/* ---------- Appear-on-scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0.001;
    transform: translateY(26px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
