@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-v15-latin.woff2") format("woff2");
}

:root {
  --paper: #f7f6f2;
  --ink: #1b1b19;
  --muted: #5d5c56;
  --rule: #d8d5cb;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141413;
    --ink: #ebeae4;
    --muted: #a19f97;
    --rule: #34332f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 120ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wordmark svg {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
}

main {
  flex: 1;
}

.lede {
  margin: clamp(4rem, 14vh, 8.5rem) 0 0;
  max-width: 34ch;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.meta {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
}

.block {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(3.5rem, 9vh, 5.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1.5rem;
}

.block > h2 {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.intro {
  margin: 0 0 0.25rem;
}

.items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.items li {
  padding: 1.25rem 0;
}

.items li + li {
  border-top: 1px solid var(--rule);
}

.items li:last-child {
  padding-bottom: 0;
}

.item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.item-head h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.status {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.items li p {
  margin: 0.35rem 0 0;
  font-size: 1.0625rem;
}

.demo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  background: #141413;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.items li p.demo-note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.writing li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
}

.writing li:first-child {
  padding-top: 0.15rem;
}

.writing time {
  flex: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.facts {
  margin: 0.15rem 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding-bottom: 0.6rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

.notfound h1 {
  margin: clamp(4rem, 14vh, 8.5rem) 0 0;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
}

.notfound p {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

@media (max-width: 34rem) {
  .page {
    padding: 1.5rem 1.25rem 2rem;
  }

  .block {
    grid-template-columns: 1fr;
  }

  .block > h2 {
    margin: 0;
  }

  .writing li {
    flex-direction: column;
  }

  .facts div {
    grid-template-columns: 5rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

.mark-bg {
  fill: currentColor;
}

.mark-u {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2.6;
}
