/* Manrope, self-hosted. One variable file per subset covers every weight the
   site uses, so there is no request to a font CDN and nothing blocks first paint
   on a third-party DNS lookup and TLS handshake. */
@font-face{
  font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;
  src:url("manrope-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;
  src:url("manrope-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* TT-Bio site foundation. Shared by the landing page and the benchmark page.
   Page-specific structure stays in each page's own <style> block. */

:root{
  /* ground */
  --paper:#fbfbfc; --white:#ffffff; --wash:#f1f2f4;
  /* ink, four steps */
  --ink:#15171a; --ink-2:#484d54; --ink-3:#7e848c; --ink-4:#b4b9bf;
  /* rules */
  --rule:#e6e8ea; --rule-2:#d2d6da;
  --accent:#15171a; --accent-2:#000000; --accent-wash:#f1f2f4;

  /* the benchmark page's chart JS writes these names into SVG attributes,
     so they alias the canonical ink scale rather than duplicating values */
  --bg:var(--paper); --surface:var(--white);
  --fg:var(--ink); --fg-muted:var(--ink-2); --fg-faint:var(--ink-3);
  --line:var(--rule); --line-strong:var(--rule-2);
  --pill-bg:var(--wash); --pill-fg:var(--ink-2);

  --display:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --sans:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,monospace;

  /* one spacing scale, so both pages breathe at the same intervals */
  --s-1:8px; --s-2:14px; --s-3:22px; --s-4:34px; --s-5:52px; --s-6:76px;
  --gutter:32px; --shell:1120px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  font-weight:400;
  line-height:1.6;
  letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* one shell, so the logo and the first character of text land on the same
   x on every page of the site */
.wrap{max-width:var(--shell);margin:0 auto;padding:0 var(--gutter)}
.measure{max-width:60ch}

a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
::selection{background:var(--ink);color:var(--paper)}

/* Type. Shared face, weight and tracking; each page sets its own sizes so the
   hero can be large without forcing the benchmark title to match. */
h1,h2{font-family:var(--display);font-weight:300;margin:0;text-wrap:balance}
h1{line-height:1.03;letter-spacing:-.038em}
h2{line-height:1.12;letter-spacing:-.032em}
h3,h4{font-family:var(--display);font-weight:600;letter-spacing:-.014em;line-height:1.3;margin:0}

.eyebrow{
  font-size:.78rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-3);margin:0 0 var(--s-2);
}

/* Numbers align in columns everywhere, in the text face rather than a
   second, mismatched monospace voice. */
.num,td.n,th.n,.bval,.facts .n{font-variant-numeric:tabular-nums}
code,kbd,samp,pre{font-family:var(--mono)}

nav{display:flex;align-items:center;gap:26px;padding:30px 0 0;flex-wrap:wrap;row-gap:12px}
nav .brand{display:inline-flex;line-height:0}
nav .brand img{height:24px;width:auto;display:block}
nav .sp{margin-left:auto}
nav a.lnk{
  font-size:.94rem;color:var(--ink-2);text-decoration:none;
  padding-bottom:2px;border-bottom:1px solid transparent;transition:.18s;
}
nav a.lnk:hover{color:var(--ink);border-bottom-color:var(--rule-2)}
nav a.lnk[aria-current="page"]{color:var(--ink);font-weight:600}

.btn{
  display:inline-block;font:inherit;font-size:.98rem;font-weight:600;text-decoration:none;
  padding:12px 26px;border:1px solid transparent;border-radius:2px;transition:.18s;
}
.btn.solid{background:var(--ink);color:var(--paper)}
.btn.solid:hover{background:var(--accent-2)}
.btn.line{border-color:var(--rule-2);color:var(--ink-2)}
.btn.line:hover{border-color:var(--ink);color:var(--ink)}

footer{
  border-top:1px solid var(--rule);padding:30px 0 64px;color:var(--ink-3);font-size:.9rem;
  display:flex;gap:24px;flex-wrap:wrap;align-items:center;
}
footer a{color:var(--ink-2);text-decoration:none}
footer a:hover{color:var(--ink)}

@media (max-width:640px){
  :root{--gutter:20px}
  body{font-size:16px}
  /* the four links get their own row rather than running off the edge */
  nav{gap:20px;padding-top:22px}
  nav .brand{flex:0 0 100%}
  nav .sp{display:none}
  footer{padding-bottom:48px;gap:18px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  /* scroll-reveal sections start at opacity 0; with motion off they must
     simply be present, not wait for an observer that will never animate */
  .reveal{opacity:1!important;transform:none!important}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important}
}
