/* Fonts, reset and typography. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  line-height: var(--leading-normal);
  tab-size: 4;
}

body {
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button,
[role="button"] {
  background: none;
}
button:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
hr {
  border-top: 1px solid var(--border);
}
[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Type scale --------------------------------------------------------------- */

.text-display {
  font-size: var(--text-display);
  line-height: var(--text-display--line-height);
  letter-spacing: var(--text-display--letter-spacing);
  font-weight: var(--text-display--font-weight);
  text-wrap: balance;
}
.text-display-sm {
  font-size: var(--text-display-sm);
  line-height: var(--text-display-sm--line-height);
  letter-spacing: var(--text-display-sm--letter-spacing);
  font-weight: var(--text-display-sm--font-weight);
  text-wrap: balance;
}
.text-section {
  font-size: var(--text-section);
  line-height: var(--text-section--line-height);
  letter-spacing: var(--text-section--letter-spacing);
  font-weight: var(--text-section--font-weight);
  text-wrap: balance;
}
/* Erudite: text-[1.75rem] sm:text-page-title */
.text-page-title {
  font-size: var(--text-metric);
  line-height: var(--text-page-title--line-height);
  letter-spacing: var(--text-page-title--letter-spacing);
  font-weight: var(--text-page-title--font-weight);
  text-wrap: balance;
}
@media (min-width: 640px) {
  .text-page-title {
    font-size: var(--text-page-title);
  }
}
.text-metric {
  font-size: var(--text-metric);
  line-height: var(--text-metric--line-height);
  letter-spacing: var(--text-metric--letter-spacing);
  font-weight: var(--text-metric--font-weight);
  font-variant-numeric: tabular-nums;
}
.text-card-title {
  font-size: var(--text-card-title);
  line-height: var(--text-card-title--line-height);
  letter-spacing: var(--text-card-title--letter-spacing);
  font-weight: var(--text-card-title--font-weight);
}
/* Instrument Serif italic: the display accent, never body text. */
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--tracking-subtle);
}
/* Small uppercase mono label: sidebar groups, table heads, eyebrows. */
.label-caps {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}

/* Rich text written by HR (job descriptions). */
.prose {
  font-size: var(--text-md);
  line-height: var(--leading-reading);
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.prose a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
