:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #20211e;
  --muted: #696b63;
  --line: #d9d9d0;
  --accent: #b4472d;
  --accent-dark: #83341f;
  --mint: #dce9df;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#20211e12 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-dark);
}

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  width: min(1240px, calc(100% - 48px));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

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

.site-header nav a[aria-current="page"],
.site-header nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 550px;
  padding-block: 88px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.6fr);
  gap: 72px;
  align-items: end;
  animation: arrive 650ms ease-out both;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.aside-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 22px;
  font-family: var(--serif);
  font-size: 4.35rem;
  font-weight: 400;
  line-height: 0.99;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 400;
}

.hero-intro {
  max-width: 510px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(3px, -2px);
}

.hero-aside {
  padding: 22px 0 2px 22px;
  border-left: 1px solid var(--line);
}

.hero-aside .aside-label {
  display: block;
  margin-bottom: 15px;
}

.hero-aside > a {
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  align-items: center;
  gap: 8px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  text-decoration: none;
}

.hero-aside > a span:first-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.hero-aside > a span:last-child {
  color: var(--accent);
}

.hero-aside > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
}

.content-section {
  padding-block: 52px 78px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.section-heading h2,
.listing-header h1 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.1;
}

.section-heading > a {
  margin-bottom: 4px;
}

.post-list {
  border-top: 1px solid var(--line);
}

.post-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 20px;
  gap: 24px;
  align-items: start;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}

.post-row time {
  padding-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.post-row h2,
.post-row h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
}

.post-row h2 a,
.post-row h3 a {
  text-decoration: none;
}

.post-row p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.row-arrow {
  color: var(--accent);
  font-size: 1.05rem;
}

.empty-note {
  margin: 0;
  padding: 23px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}

.endnote-band {
  background: var(--mint);
}

.endnote-inner {
  min-height: 220px;
  padding-block: 42px;
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 28px;
  align-items: center;
}

.endnote-inner > p:nth-child(2) {
  max-width: 440px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.2;
}

.endnote-inner .text-link {
  white-space: nowrap;
}

.site-footer {
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.site-footer a {
  text-decoration: none;
}

.listing {
  min-height: 65vh;
  padding-block: 90px 100px;
  animation: arrive 500ms ease-out both;
}

.listing-header {
  max-width: 680px;
  margin-bottom: 42px;
}

.listing-header h1,
.article-header h1 {
  margin-top: 12px;
  font-size: 4rem;
}

.listing-intro {
  margin-top: 15px;
  color: var(--muted);
}

.article {
  padding-block: 70px 110px;
  animation: arrive 500ms ease-out both;
}

.article-header {
  max-width: 760px;
  margin: 0 auto 48px;
}

.back-link {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.article-header h1 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
}

.article-deck {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.15rem;
}

.prose {
  max-width: 680px;
  margin-inline: auto;
  font-size: 1.05rem;
}

.prose h2,
.prose h3 {
  margin-top: 2em;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
}

.prose h2 {
  font-size: 2rem;
}

.prose h3 {
  font-size: 1.5rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.25em;
}

.prose a {
  color: var(--accent-dark);
}

.prose blockquote {
  margin: 1.7em 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.prose pre {
  overflow-x: auto;
  padding: 18px;
  background: #e9e8e1;
  font-size: 0.85rem;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .wrap,
  .site-header,
  .site-footer {
    width: min(100% - 36px, 600px);
  }

  .site-header {
    min-height: 72px;
  }

  .wordmark {
    font-size: 1.3rem;
  }

  .site-header nav {
    gap: 15px;
  }

  .site-header nav a {
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding-block: 68px 62px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    max-width: 600px;
    font-size: 3.25rem;
  }

  .hero-aside {
    max-width: 440px;
  }

  .content-section {
    padding-block: 42px 55px;
  }

  .section-heading h2,
  .listing-header h1,
  .article-header h1 {
    font-size: 2.8rem;
  }

  .post-row {
    grid-template-columns: 1fr 18px;
    gap: 6px 12px;
  }

  .post-row time {
    grid-column: 1;
  }

  .post-row > div {
    grid-column: 1;
  }

  .post-row .row-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .endnote-inner {
    padding-block: 36px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .endnote-inner > p:nth-child(2) {
    font-size: 1.6rem;
  }

  .endnote-inner .text-link {
    margin-top: 8px;
  }

  .listing {
    padding-block: 65px 80px;
  }

  .article {
    padding-block: 48px 80px;
  }

  .article-header {
    margin-bottom: 35px;
  }

  .back-link {
    margin-bottom: 28px;
  }
}

@media (max-width: 430px) {
  .site-header nav {
    gap: 10px;
  }

  .site-header nav a {
    font-size: 0.76rem;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .section-heading > a {
    margin-top: 20px;
    font-size: 0.85rem;
  }

  .listing-header h1,
  .article-header h1 {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
