/* Element defaults, the type scale and the page frame. Values come from tokens.css. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-wght.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;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display-latin.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--text-title);
  line-height: var(--leading-title);
}
h2 {
  font-size: var(--text-section);
  line-height: var(--leading-section);
  font-weight: var(--weight-semibold);
  letter-spacing: -.005em;
}
h3 {
  font-size: var(--text-card-title);
  line-height: var(--leading-card-title);
  font-weight: var(--weight-semibold);
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover { color: var(--gold-strong); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: var(--focus-w) solid var(--gold);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-xs);
}

::selection { background: var(--gold-line); color: var(--text); }

/* Figures line up in columns: digits of equal width wherever numbers are compared. */
.num, td.num, th.num, time, .ref { font-variant-numeric: tabular-nums; }
.num { text-align: right; }
.pencil { color: var(--text-2); }
.meta { font-size: var(--text-meta); line-height: var(--leading-meta); color: var(--text-3); }
.small { font-size: var(--text-table); line-height: var(--leading-table); }
.semibold { font-weight: var(--weight-semibold); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -10rem;
  z-index: var(--z-skip);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: var(--weight-semibold);
}
.skip-link:focus { top: var(--space-2); }

.icon { width: var(--icon); height: var(--icon); flex: none; }

/* Thin, dark scrollbars where the browser allows it. */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
