/* base.css — typography, body, links, @font-face declarations.
   GT Sectra is the brand serif (display + text roles). Instrument Sans is the
   brand sans (body + UI role). Both self-hosted, woff2 preferred. */

/* ─── GT Sectra (text/serif cuts) ─────────────────────────────── */
@font-face {
  font-family: 'GT Sectra';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Book.woff2') format('woff2');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Book-Italic.woff2') format('woff2');
  font-weight: 350;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Regular-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── GT Sectra Display (≥36px headline cuts) ─────────────────── */
@font-face {
  font-family: 'GT Sectra Display';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Display-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra Display';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Display-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra Display';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Display-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Sectra Display';
  src: url('/assets/fonts/gt-sectra/GT-Sectra-Display-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Instrument Sans (variable woff2, weights 400-700) ───────── */
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans/InstrumentSans-Variable.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Italic is a separate static cut (Google Fonts only ships a non-variable italic). */
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans/InstrumentSans-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ─── Root + body ────────────────────────────────────────────── */
html {
  font-size: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  letter-spacing: -0.01em;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* ─── Headings ────────────────────────────────────────────────
   H1–h3 use the brandbook’s GT Sectra Book (350) cut.
   H4–h6 stay on Instrument Sans for continuity with body and UI text. */
h1, .h1 {
  font-family: var(--font-serif);
  font-weight: var(--fw-book);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

h2, .h2 {
  font-family: var(--font-serif);
  font-weight: var(--fw-book);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

h3, .h3 {
  font-family: var(--font-serif);
  font-weight: var(--fw-book);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
}

h5, .h5 {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h5);
  line-height: var(--lh-snug);
}

h6, .h6 {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h6);
  line-height: var(--lh-snug);
}

p {
  max-width: 70ch;
}

a {
  color: var(--color-text);
}

/* Links no longer underline (site-wide decision, 2026-07). Unclassed links —
   footer columns, team-tile contacts, body copy — get a subtle dim as their
   hover/focus feedback so they stay discoverable without decoration. */
a:not([class]) {
  transition: opacity var(--dur-fast) var(--ease-out);
}
a:not([class]):hover,
a:not([class]):focus-visible {
  opacity: 0.72;
}

::selection {
  background-color: var(--rf-black);
  color: var(--rf-white);
}
