/* Fidelity Endeavor — base element defaults.
   Sets the paper canvas, the type defaults, sensible links. Kept minimal:
   the system speaks through hairlines and space, not through element chrome. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

/* Headlines — always serif, sentence case, regular weight */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--size-display-l); }
h2 { font-size: var(--size-display-m); }
h3 { font-size: var(--size-display-s); }
h4 { font-size: var(--size-title); line-height: var(--leading-title); letter-spacing: 0; }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

em { font-style: italic; }        /* emphasis is italic, not bold */
strong { font-weight: var(--weight-body-medium); }

/* Links — ink, underlined on the hairline; slow physical fade */
a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  transition: border-color var(--dur-base) var(--ease-physical),
              opacity var(--dur-base) var(--ease-physical);
}
a:hover { border-bottom-color: var(--ink); }

/* Eyebrow — the only all-caps treatment in the system */
.fe-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1;
}

/* Hairline rule — used instead of boxes and cards */
.fe-rule { border: 0; border-top: 1px solid var(--rule); height: 0; margin: 0; }

::selection { background: var(--ink); color: var(--paper); }
