@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-500-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2")
    format("woff2");
}

:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --surface-muted: #fafafa;
  --line: #e4e4e7;
  --text: #18181b;
  --text-muted: #52525b;
  /* The red scale from home.css: links in bright red, hover and chips in wine, blush tints. */
  --red-900: #6e1416;
  --red-700: #a01e21;
  --red-600: #bd2a2e;
  --red-50: #fcf4f3;
  --primary: var(--red-600);
  --primary-strong: var(--red-900);
  --primary-container: var(--red-50);
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f0f12;
    --surface-muted: #141417;
    --line: #2a2a30;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --red-900: #ff8278;
    --red-700: #b42328;
    --red-600: #f4615a;
    --red-50: #241113;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--primary-strong);
}
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

main .wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: var(--red-700);
}
nav.site {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
}
nav.site a {
  color: var(--text-muted);
  text-decoration: none;
}
nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--primary);
}

main {
  padding: 3rem 0 4rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.5rem;
}
h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.25rem;
}
p,
ul {
  margin: 0 0 1rem;
}
ul {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.375rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--text-muted);
}
.meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-top: 2rem;
  background: var(--surface);
}
.card p:last-child {
  margin-bottom: 0;
}

.placeholder {
  background: var(--primary-container);
  color: var(--primary-strong);
  padding: 0 0.25rem;
  border-radius: 0.25rem;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
footer.site a {
  color: var(--text-muted);
}

.draft {
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
