@font-face {
  font-family: "Bricolage Display";
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-display.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  --display: "Bricolage Display", "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

body {
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  background-size: 28px 28px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

h1,
h2,
h3,
.post h2 {
  font-family: var(--display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.post h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}

.standfirst {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
}

p {
  text-wrap: pretty;
}

blockquote.scene {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.byline::before,
.post-date::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.6rem;
  background: var(--accent);
  vertical-align: 0.05em;
}

img.hero,
.post-thumb img {
  border-radius: 0;
}
