/*
 * ANTI-FORMULA
 * Global — Reset · Type · Layout · Utilities
 */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400;1,8..60,600&family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  background: var(--specimen-black);
  color: var(--lab-white);
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }
ul   { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.wrap {
  max-width: var(--g-max);
  margin: 0 auto;
  padding-left: var(--g-margin);
  padding-right: var(--g-margin);
  width: 100%;
}

section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* ─── TYPE SCALE ─────────────────────────────────────────────── */

/* Display — hero */
.t-display {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

/* Section headline */
.t-headline {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Sub-heading */
.t-subhead {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
}

/* Body — default (Source Serif 4 400 18px set on body) */

/* Lead / large body */
.t-lead {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
}

/* Label / mono */
.t-label {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Section number */
.t-section-num {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
}

/* Mono small */
.t-mono-sm {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ─── COLORS ─────────────────────────────────────────────────── */
.c-muted     { color: var(--muted); }
.c-red       { color: var(--signal-red); }
.c-dark-body { color: var(--dark-body); }
.c-dark-mid  { color: var(--dark-mid); }

/* ─── RULES ──────────────────────────────────────────────────── */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--hairline);
  border: none;
}
.rule--dark { background: var(--dark-rule); }
.rule--red  { height: 2px; background: var(--signal-red); }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 14px 28px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--fill {
  background: var(--signal-red);
  color: var(--lab-white);
}
.btn--fill:hover { background: #A1202B; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--lab-white);
  color: var(--lab-white);
}
.btn--outline:hover {
  background: var(--lab-white);
  color: var(--specimen-black);
}

.btn--outline-dark {
  background: transparent;
  border: 1px solid var(--specimen-black);
  color: var(--specimen-black);
}
.btn--outline-dark:hover {
  background: var(--specimen-black);
  color: var(--lab-white);
}

.btn--ghost {
  padding: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 3px;
}
.btn--ghost:hover { border-bottom-color: var(--lab-white); }

/* ─── TAGS ───────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.tag--dark {
  border-color: var(--dark-rule);
  color: var(--dark-mid);
}

/* Signal Red accent — structural only, max one per view */
.accent { color: var(--signal-red); font-style: normal; }

/* ─── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { font-size: 17px; }
  section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .btn { padding: 13px 22px; font-size: 13px; }
}
