/* Site typography: ONE rule set shared by every page.
   - Display / headings (anything the design set in Crimson Pro at >= 24px, or inside h1-h6) -> Trjn Da Vinci
       upright text -> Trjn Da Vinci Text, italic -> Trjn Da Vinci Italic Display (the "Trjn Site" family below maps both).
   - Everything else (all body copy, labels, links, meta) -> Figtree.
   typography.js tags each text element with data-ft="display" | "body"; the nav wordmark, hero and Resume link set their own fonts. */
/* Unscaled faces used by the hero, the nav wordmark and the pills (all pages). */
@font-face{font-family:"Trjn Da Vinci";font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/TrjnDaVinci-Italic.woff2) format("woff2")}
@font-face{font-family:"Trjn Da Vinci Text";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/TrjnDaVinci-Text.woff2) format("woff2")}
/* "Trjn Site" = the same Trjn files, scaled (size-adjust) to Crimson Pro's widths so headings keep their original wrapping.
   (Trjn's letters are ~22% taller and wider than Crimson's; the hero + nav wordmark use the unscaled "Trjn Da Vinci" face directly.) */
@font-face{font-family:"Trjn Site";font-style:normal;font-weight:400;font-display:swap;size-adjust:91%;src:url(/fonts/TrjnDaVinci-Text.woff2) format("woff2")}
@font-face{font-family:"Trjn Site";font-style:italic;font-weight:400;font-display:swap;size-adjust:88%;src:url(/fonts/TrjnDaVinci-Italic.woff2) format("woff2")}
[data-ft="display"]{font-family:"Trjn Site","Crimson Pro",serif!important;font-weight:400!important;font-synthesis:none}
[data-ft="body"]{font-family:"Figtree",system-ui,sans-serif!important}
/* TYPE SCALE -- one set of text styles for the whole site. Edit the numbers here; typography.js snaps every text element to the nearest step
   (display/H1-H5 = Trjn Da Vinci, Lead/Body/Caption = Figtree), so the original hierarchy is kept but the styles are shared.
   Elements whose original line-height is < 1.15 (deliberately tight setups, e.g. the About collage) keep their own line-height AND letter-spacing via [data-nolh]. */
:root{
  --fs-display:84px;--lh-display:1.1;--ls-display:-.024em;
  --fs-h1:64px;--lh-h1:1.1;--ls-h1:-.024em;
  --fs-h2:42px;--lh-h2:1.15;--ls-h2:-.024em;
  --fs-h3:36px;--lh-h3:1.2;--ls-h3:-.028em;
  --fs-h4:28px;--lh-h4:1.2;--ls-h4:-.02em;
  --fs-h5:24px;--lh-h5:1.25;--ls-h5:-.03em;
  --fs-lead:22px;--lh-lead:1.4;--ls-lead:-.01em;
  --fs-body1:18px;--lh-body1:1.5;--ls-body1:-.005em;
  --fs-body2:16px;--lh-body2:1.5;--ls-body2:0em;
  --fs-body3:14px;--lh-body3:1.5;--ls-body3:.005em;
  --fs-caption:12px;--lh-caption:1.4;--ls-caption:.01em;
}
[data-fs="display"]{font-size:var(--fs-display)!important}
[data-fs="display"]:not([data-nolh]){line-height:var(--lh-display)!important;letter-spacing:var(--ls-display)!important}
[data-fs="h1"]{font-size:var(--fs-h1)!important}
[data-fs="h1"]:not([data-nolh]){line-height:var(--lh-h1)!important;letter-spacing:var(--ls-h1)!important}
[data-fs="h2"]{font-size:var(--fs-h2)!important}
[data-fs="h2"]:not([data-nolh]){line-height:var(--lh-h2)!important;letter-spacing:var(--ls-h2)!important}
[data-fs="h3"]{font-size:var(--fs-h3)!important}
[data-fs="h3"]:not([data-nolh]){line-height:var(--lh-h3)!important;letter-spacing:var(--ls-h3)!important}
[data-fs="h4"]{font-size:var(--fs-h4)!important}
[data-fs="h4"]:not([data-nolh]){line-height:var(--lh-h4)!important;letter-spacing:var(--ls-h4)!important}
[data-fs="h5"]{font-size:var(--fs-h5)!important}
[data-fs="h5"]:not([data-nolh]){line-height:var(--lh-h5)!important;letter-spacing:var(--ls-h5)!important}
[data-fs="lead"]{font-size:var(--fs-lead)!important}
[data-fs="lead"]:not([data-nolh]){line-height:var(--lh-lead)!important;letter-spacing:var(--ls-lead)!important}
[data-fs="body1"]{font-size:var(--fs-body1)!important}
[data-fs="body1"]:not([data-nolh]){line-height:var(--lh-body1)!important;letter-spacing:var(--ls-body1)!important}
[data-fs="body2"]{font-size:var(--fs-body2)!important}
[data-fs="body2"]:not([data-nolh]){line-height:var(--lh-body2)!important;letter-spacing:var(--ls-body2)!important}
[data-fs="body3"]{font-size:var(--fs-body3)!important}
[data-fs="body3"]:not([data-nolh]){line-height:var(--lh-body3)!important;letter-spacing:var(--ls-body3)!important}
[data-fs="caption"]{font-size:var(--fs-caption)!important}
[data-fs="caption"]:not([data-nolh]){line-height:var(--lh-caption)!important;letter-spacing:var(--ls-caption)!important}
/* body weights are snapped to 400 / 500 / 600 (original 300 -> 400, 700 -> 600) */
[data-ft="body"][data-fw="400"]{font-weight:400!important}
[data-ft="body"][data-fw="500"]{font-weight:500!important}
[data-ft="body"][data-fw="600"]{font-weight:600!important}

/* Font-flash guard: pages start hidden (class set by an inline <script> in <head>) and are revealed once typography.js has tagged the text
   and the Trjn/Figtree files are loaded (or after a short timeout), so nothing is ever shown in the old fonts. */
html.typo-pending body{opacity:0}
body{transition:opacity .18s ease}
