/* Standing alone, as the site's other pages don't yet: the site's styles that
   this page uses, from src/style.css, as scripts/chrome.js links that from
   pages that aren't. */

/* The build copies this file to the top of the site from @fontsource-variable/inter. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../inter-latin.woff2) format("woff2");
}

:root {
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --paper: #fff;
  --ink: #222;
  --muted: #666;
  --underline: #999;
  --accent: #f60;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212;
    --ink: #e6e6e6;
    --muted: #9a9a9a;
    --underline: #666;
    --accent: #ff7a26;
  }
}

/* A column 960px wide. */
body {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 992px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

h1, h2 {
  font-family: var(--sans);
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -.02em;
  margin: .75em 0 .5em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

p, ul {
  max-width: 720px;
}

a {
  color: inherit;
  text-decoration-color: var(--underline);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

.by {
  color: var(--muted);
  margin-top: 2em;
}
