/* ==========================================================================
   Shared foundation — the "general style" used by every site in this repo
   (the CV and the showcase). Holds only what is common: the self-hosted font,
   design tokens, reset, base typography, and shared UI primitives.

   Each site links this file first, then its own stylesheet:
     <link rel="stylesheet" href="../shared/base.css">
     <link rel="stylesheet" href="site.css">
   ========================================================================== */

/* ---- Font (self-hosted, no external requests) --------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable-Italic.woff2") format("woff2");
}

/* ---- Design tokens ------------------------------------------------------ */

:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ink:           #1a1c20;
  --ink-soft:      #4a4f57;
  --muted:         #7a8089;
  --hairline:      #e4e6ea;
  --accent:        #3d5a80;
  --accent-muted:  #bdc8d4;
  --page:          #eef0f3;
  --sheet:         #ffffff;

  --measure: 50rem;

  --step--1: 0.78rem;
  --step-0:  0.95rem;
  --step-1:  1.1rem;
  --step-2:  1.5rem;
  --step-3:  2.6rem;
}

/* ---- Reset -------------------------------------------------------------- */

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

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

body,
h1, h2, h3,
p, dl, dd, ol, figure, address { margin: 0; }

ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ---- Base typography ---------------------------------------------------- */

body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink-soft);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---- Shared UI ----------------------------------------------------------- */

/* Small uppercase kicker above a heading (CV masthead, showcase hero). */
.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
