/* =========================================================================
   Manam type scale, shared by every page (home, About, Team, profiles,
   Plots, Contact). The homepage (styles.css) is the reference: each token
   below is a size it already uses, named by role, so the same role renders
   at the same size everywhere. Load after fonts/fonts.css and before
   styles.css / pages.css.
   Kept out of /fonts/ on purpose: that folder is served immutable for a year
   (vercel.json), so edits here would never reach returning visitors.
   ========================================================================= */

/* Futura (headings): Medium, Medium Italic and Bold from the client's
   licensed copy, Latin subsets (U+0000-017F, punctuation, ₹, arrows).
   Montserrat (body, labels): SIL Open Font License, Latin variable subsets
   from Fontsource 5.1.1, so one file per style covers every weight. */
@font-face {
  font-family: "Futura";
  font-style: normal;
  font-weight: 400 500; /* Medium is the lightest cut: serves regular too */
  font-display: swap;
  src: url("fonts/Futura-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Futura";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/Futura-MediumItalic.woff2") format("woff2");
}
@font-face {
  font-family: "Futura";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Futura-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Montserrat-Var.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Montserrat-Var-Italic.woff2") format("woff2");
}

:root {
  /* Families: Futura for headings, Montserrat for body copy and labels,
     both self-hosted (above). */
  --font-display: "Futura", "Century Gothic", sans-serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  /* Small uppercase labels: same family as the body, tracked out (was a mono). */
  --font-mono: "Montserrat", system-ui, sans-serif;

  /* Heading (Futura) steps, weight 400. Ranges are phone to desktop. */
  --text-display: clamp(2.6rem, 6.5vw, 5.5rem); /* 42 to 88px: big label over a photo */
  --text-initials: clamp(2.4rem, 4.2vw, 3.6rem); /* 38 to 58px: initials on a team card */
  --text-h1: clamp(1.25rem, 4.6vw, 3.2rem);     /* 20 to 51px: hero tagline */
  --text-h2: clamp(1.6rem, 2.7vw, 2.4rem);      /* 26 to 38px: mixed-case section heading */
  --text-h2-caps: clamp(1.55rem, 2.9vw, 2.35rem); /* 25 to 38px: uppercase heading, page titles */
  --text-stat: clamp(2.4rem, 6vw, 4rem);        /* 38 to 64px: big stat figures */
  --text-h3: clamp(1.3rem, 1.9vw, 1.6rem);      /* 21 to 26px: sub-heading, card title */
  --text-name: clamp(1.1rem, 1.35vw, 1.25rem);  /* 18 to 20px: a person's name on a card */
  --text-qa: clamp(1.05rem, 1.3vw, 1.2rem);     /* 17 to 19px: bold question on a profile */

  /* Montserrat steps. Headings sit at about 2.2x the body size, so a
     heading and its copy read as one block rather than a poster over a caption. */
  --text-lead: clamp(1rem, 1.25vw, 1.15rem);    /* 16 to 18px: intro copy under a heading, profile About */
  --text-body: clamp(0.95rem, 1.1vw, 1.05rem);  /* 15 to 17px: body copy, line-height 1.65 */
  --text-body-sm: clamp(0.9rem, 1.05vw, 1rem);  /* 14 to 16px: copy in cards and lists, 1.6 */
  --text-small: 12px;                           /* sentence case: small link, note */
  --text-label: 11px;                           /* uppercase: eyebrow, nav, role, button */
  --text-fine: 10px;                            /* uppercase: fine print, small pill */

  /* Letter-spacing per role */
  --track-eyebrow: 0.28em;  /* section eyebrow (.kicker), weight 500 */
  --track-label: 0.16em;    /* nav links, roles, pill buttons */
  --track-fine: 0.12em;     /* fine print, footer base */
  --track-small: 0.04em;    /* --text-small */
  --track-caps: 0.03em;     /* uppercase headings */
}

/* Headings: capitals, evenly tracked and flat, on every page. Accent words
   inside a heading (<em>, script spans) match the rest of it: no italic, no
   size or case change. The html :is() prefix outranks the per-section
   rules (.display, .band-title em ...), so they need no edits of their own. */
html :is(h1, h2, h3, h4, .display) {
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}
html :is(h1, h2, h3, h4, .display) :is(em, i, span) {
  font-style: normal;
  text-transform: inherit;
  letter-spacing: inherit;
}
html :is(h1, h2, h3, h4, .display) :is(em, i) {
  font-size: 1em;
  padding: 0;
  color: inherit;
}

