/* ==========================================================================
   TYPE SYSTEM: Geist Sans, Geist Mono, Geist Serif (vercel.com/font, v1.9.2)

   Loaded after every other stylesheet. It does two things:

   1. Swaps the site's base face from Helvetica to Geist Sans by redefining
      the three family tokens the other stylesheets already read
      (--font-display, --font-body, --home-font). Sizes, weights, colours and
      line heights are untouched, so every element keeps its place in the
      hierarchy. Geist Sans shares Helvetica's Swiss lineage, so the grid
      reads the same.

   2. Gives each typographic ROLE its own family token (--role-*). A variant
      on <html data-type="..."> decides which roles go to Serif or Mono.
      The site renders whichever variant the <html> tag names (all three
      pages ship "minimal"). With no data-type at all, every role is Sans.

   How the three faces divide the work (see TYPOGRAPHY.md for the research):

   - Sans carries everything a visitor reads at length and everything they
     operate: body copy, navigation, subheads, the resume, the index rows.
   - Serif is a display face. Geist Serif ships one weight with hairlines
     thinned 50% for high-density screens. It is drawn for headlines and
     quotes, never small text, and never bold or italic (there are none, and
     faux styles are switched off below). It shares Sans's 710 cap height
     and 530 x-height, so swapping it in never moves a line.
   - Mono marks things that are counted, dated or catalogued: index numbers,
     dates, places, counters, tags. It is never used for running prose.

   The Glean product recreations keep SF Pro (they are faithful copies of a
   real product UI) and the hand-drawn annotations keep Caveat.
   ========================================================================== */

@font-face {
    font-family: 'Geist';
    src: url('Fonts/Geist/Geist-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('Fonts/Geist/Geist-Italic-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('Fonts/Geist/GeistMono-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* The static Regular cut (round dots, ELSH 0). The variable file only adds
   the Square / Triangle / Heart dot shapes, which this site does not use. */
@font-face {
    font-family: 'Geist Serif';
    src: url('Fonts/Geist/GeistSerif-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ff-sans: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ff-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --ff-serif: 'Geist Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

    /* The tokens styles.css, home.css and gallery.css already read. */
    --font-display: var(--ff-sans);
    --font-body: var(--ff-sans);
    --home-font: var(--ff-sans);

    /* Roles. Everything defaults to Sans; variants reassign below. */
    --role-display: var(--ff-sans);  /* Home headline: BRYCE PARSONS / PRODUCT DESIGNER */
    --role-title: var(--ff-sans);    /* Case-study and section titles, gallery themes */
    --role-tagline: var(--ff-sans);  /* The grey line under a case-study title */
    --role-quote: var(--ff-sans);    /* The Prefontaine quote in the footer */
    --role-label: var(--ff-sans);    /* Uppercase wayfinding: row names, eyebrows, / LABELS */
    --role-index: var(--ff-sans);    /* Counted and dated things: #2, MAY - AUG 2026, 1 / 6 */
    --role-numeral: var(--ff-sans);  /* Pure numerals only (#2, 1 / 6, 100%) */
    --role-caption: var(--ff-sans);  /* Figure captions */
}

/* --------------------------------------------------------------------------
   Variants
   -------------------------------------------------------------------------- */

/* 1. BALANCED. Sans-led; Serif for the few lines that act as
   headlines (case-study titles, section titles, taglines, gallery themes)
   and the quote; Mono for counted and dated metadata. */
:root[data-type="balanced"] {
    --role-title: var(--ff-serif);
    --role-tagline: var(--ff-serif);
    --role-quote: var(--ff-serif);
    --role-index: var(--ff-mono);
    --role-numeral: var(--ff-mono);
}

/* 2. MINIMAL (shipped). Almost all Sans, closest to the current Helvetica site. One
   serif moment (the quote) and Mono only on bare numerals. */
:root[data-type="minimal"] {
    --role-quote: var(--ff-serif);
    --role-numeral: var(--ff-mono);
}

/* 3. TECHNICAL. Sans for reading; Mono for the whole wayfinding layer
   (labels, eyebrows, indices, captions), the way Vercel's own product uses
   Geist Mono; Serif kept to the tagline and the quote. */
:root[data-type="technical"] {
    --role-tagline: var(--ff-serif);
    --role-quote: var(--ff-serif);
    --role-label: var(--ff-mono);
    --role-index: var(--ff-mono);
    --role-numeral: var(--ff-mono);
    --role-caption: var(--ff-mono);
}

/* 4. EDITORIAL. Serif becomes the display voice, home headline included,
   as a magazine masthead; Sans stays on all body and UI; Mono on metadata. */
:root[data-type="editorial"] {
    --role-display: var(--ff-serif);
    --role-title: var(--ff-serif);
    --role-tagline: var(--ff-serif);
    --role-quote: var(--ff-serif);
    --role-index: var(--ff-mono);
    --role-numeral: var(--ff-mono);
}

/* --------------------------------------------------------------------------
   Role assignments. The html prefix lifts these one step above the base
   stylesheets' single-class rules without reaching for !important.
   -------------------------------------------------------------------------- */

html .home-name,
html .home-role,
html .home-lede {
    font-family: var(--role-display);
}

html .project-summary-title,
html .case-section-title,
html .gallery-label {
    font-family: var(--role-title);
}

html .project-summary-tagline {
    font-family: var(--role-tagline);
}

html .footer-quote,
html .site-footer .footer-quote {
    font-family: var(--role-quote);
}

html .acc-label,
html .acc-header-link,
html .case-section-eyebrow,
html .project-summary-label,
html .project-summary-team-label,
html .project-summary-site-name,
html .footer-label,
html .site-footer .footer-label,
html .site-header-link__label,
html .doc-heading,
html .gallery-label__note,
html .gallery-chip,
html .gallery-control,
html .gallery-modal__title {
    font-family: var(--role-label);
}

html .acc-tag,
html .doc-date,
html .doc-location,
html .home-place {
    font-family: var(--role-index);
}

html .acc-num,
html .glean-agents-deck__counter,
html .gallery-label__count,
html .gallery-zoom,
html .gallery-modal__num {
    font-family: var(--role-numeral);
    font-variant-numeric: tabular-nums;
}

html .case-section-caption,
html .glean-agents-deck__caption {
    font-family: var(--role-caption);
}

/* --------------------------------------------------------------------------
   Per-face corrections. Sizes, weights and colours stay as the base
   stylesheets set them; only what a face physically needs changes here.
   -------------------------------------------------------------------------- */

/* Geist Serif has a single weight and no italic. Never let the browser
   smear a fake bold or slant onto it. */
:root[data-type="balanced"] :is(.project-summary-title, .case-section-title, .gallery-label, .project-summary-tagline, .footer-quote),
:root[data-type="minimal"] .footer-quote,
:root[data-type="technical"] :is(.project-summary-tagline, .footer-quote),
:root[data-type="editorial"] :is(.home-name, .home-role, .home-lede, .project-summary-title, .case-section-title, .gallery-label, .project-summary-tagline, .footer-quote) {
    font-synthesis: none;
    font-weight: 400;
}

/* The quote is the one Serif line set below headline size. At the footer's
   16px the hairlines go thin against the dark ground, so it steps up to a
   size the face was drawn for, and the attribution drops back to Sans. */
:root:is([data-type="balanced"], [data-type="minimal"], [data-type="technical"], [data-type="editorial"]) .footer-quote {
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.footer-quote__by {
    display: block;
    margin-top: 6px;
    font-family: var(--ff-sans);
    font-size: 14px;
    letter-spacing: 0;
    opacity: 0.7;
}

/* Serif display lines read slightly loose at the base stylesheets' tracking;
   a hair of negative tracking matches Vercel's own headline setting. */
:root:is([data-type="balanced"], [data-type="editorial"]) :is(.case-section-title, .project-summary-title) {
    letter-spacing: -0.01em;
}

:root[data-type="editorial"] :is(.home-name, .home-role, .home-lede) {
    letter-spacing: -0.01em;
}

/* Mono is wider than Sans at the same size, so the generous tracking the
   uppercase Sans labels use would push them apart. Tighten it. */
:root[data-type="technical"] .project-summary-label,
:root[data-type="technical"] .project-summary-team-label {
    letter-spacing: 0.08em;
}

:root[data-type="technical"] .case-section-eyebrow {
    letter-spacing: 0.02em;
    font-weight: 400;
}

:root[data-type="technical"] .project-summary-site-name {
    letter-spacing: 0.02em;
}

:root[data-type="technical"] :is(.case-section-caption, .glean-agents-deck__caption) {
    font-size: 11px;
    letter-spacing: 0;
    line-height: 1.5;
}

/* Mono metadata sits a touch smaller so a date or place reads at the same
   width as the Sans text beside it. */
:root:is([data-type="balanced"], [data-type="technical"], [data-type="editorial"]) :is(.doc-date, .doc-location) {
    font-size: 11px;
    letter-spacing: 0;
}
