:root {
  color-scheme: light;
  --paper: #f6f1e4;
  --ink: #24221e;
  --muted: #635b4f;
  --red: #812638;
  --red-dark: #62202e;
  --tint: #ede5d4;
  --line: #bcb19b;
  --rule: #393129;
  --editorial: Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.62 var(--ui);
}

p, h1, h2, h3, figure {
  margin: 0;
}

ol, ul {
  margin: 0;
  padding-inline-start: 1.3em;
}

img, amp-img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--red);
  text-underline-offset: .2em;
}

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

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red-dark);
  outline-offset: 4px;
}

summary {
  cursor: pointer;
}

.shell, .wrap {
  width: min(72.5rem, calc(100% - 4rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: .5rem auto auto .5rem;
  padding: .55rem .9rem;
  transform: translateY(-125%);
  background: var(--paper);
  color: var(--red-dark);
}

.skip-link:focus {
  transform: none;
}

.edition-bar {
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.edition-bar > .shell, .edition-bar > .wrap, .edition-inner {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: space-between;
  gap: .3rem 1.5rem;
  flex-wrap: wrap;
  padding-block: .35rem;
}

.edition-bar a {
  font-weight: 620;
}

.edition-links, .footer-links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem 1rem;
}

.masthead {
  padding-block: 1.4rem 1.1rem;
  text-align: center;
}

.masthead-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .85rem;
}

.masthead-inner, .wordmark {
  color: var(--ink);
  text-decoration: none;
}

.masthead-inner:hover, .wordmark:hover {
  color: var(--red-dark);
}

.wordmark {
  font: 700 clamp(2.6rem, 8.4vw, 6.05rem)/.94 var(--editorial);
  letter-spacing: -.073em;
}

.masthead-deck {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .93rem;
  letter-spacing: .035em;
}

.logo-slot {
  flex: 0 0 auto;
  width: clamp(2.6rem, 5.5vw, 4.25rem);
  aspect-ratio: 1;
}

img.logo-slot {
  height: auto;
}

.site-nav {
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
}

.nav-inner, .site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .1rem clamp(.6rem, 3.5vw, 2.5rem);
  list-style: none;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: .15rem;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--red);
  text-decoration: underline;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(17.5rem, 1fr);
  gap: 0 clamp(1.55rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2.4rem, 5.2vw, 4.5rem) clamp(2.25rem, 4.5vw, 3.5rem);
}

.lead {
  min-width: 0;
}

.kicker {
  color: var(--red);
  font-size: .875rem;
  font-weight: 730;
  letter-spacing: .078em;
  text-transform: uppercase;
}

.lead-title, .page-top h1, .article-head h1 {
  font: 700 clamp(2.7rem, 6.05vw, 5.3rem)/1.02 var(--editorial);
  letter-spacing: -.052em;
  text-wrap: balance;
}

.lead-title {
  max-width: 19ch;
  margin-block: .65rem 1rem;
}

.lead-deck, .page-top > p {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.23rem);
  line-height: 1.58;
}

.read-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .54rem .9rem;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--paper);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}

.read-link:hover {
  background: var(--red-dark);
  color: var(--paper);
}

.read-link {
  margin-top: 1.25rem;
}

.address-demo {
  max-width: 34rem;
  margin-top: 1.25rem;
  padding: .65rem 1rem .7rem;
  border-left: 3px solid var(--red);
  background: var(--tint);
  color: var(--ink);
  font: 650 clamp(.92rem, 2.1vw, 1.05rem)/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.address-path {
  color: var(--muted);
  font-weight: 450;
}

.address-host {
  color: var(--red-dark);
}

.address-key {
  display: block;
  margin-top: .23rem;
  color: var(--muted);
  font-family: var(--ui);
  font-size: .875rem;
  font-weight: 450;
  line-height: 1.45;
}

.desk {
  border-left: 1px solid var(--line);
  padding-inline-start: clamp(1.4rem, 3vw, 2.4rem);
  min-width: 0;
}

.desk h2, .section-heading h2, .article-body h2 {
  font: 700 clamp(1.65rem, 3.25vw, 2.4rem)/1.1 var(--editorial);
  letter-spacing: -.035em;
}

.desk h2 {
  margin-bottom: .72rem;
}

.short-list {
  padding: 0;
  list-style: none;
}

.short-list > li {
  padding-block: .68rem;
  border-top: 1px solid var(--line);
}

.short-list h3 {
  font-size: 1.01rem;
  font-weight: 730;
  line-height: 1.38;
}

.short-list h3 a {
  color: var(--ink);
}

.short-list p {
  margin-top: .26rem;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.54;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  padding-block: .68rem .65rem;
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--line);
}

.section-heading a {
  font-size: .9rem;
  font-weight: 660;
}

.post-grid, .browse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: clamp(2.4rem, 5vw, 4.5rem);
}

.post-card {
  min-width: 0;
  padding: 1.05rem clamp(.9rem, 2.5vw, 1.6rem) 1.18rem;
  border-bottom: 1px solid var(--line);
}

.post-card:not(:nth-child(3n)) {
  border-right: 1px solid var(--line);
}

.post-card:nth-child(3n + 1) {
  padding-inline-start: 0;
}

.post-card:nth-child(3n) {
  padding-inline-end: 0;
}

.post-card h2, .post-card h3 {
  margin-block: .43rem .5rem;
  font: 700 clamp(1.38rem, 2.35vw, 1.8rem)/1.16 var(--editorial);
  letter-spacing: -.026em;
}

.post-card h2 a, .post-card h3 a {
  color: var(--ink);
}

.post-card h2 a:hover, .post-card h3 a:hover {
  color: var(--red);
}

.post-card p:not(.kicker) {
  color: var(--muted);
  line-height: 1.52;
}

.breadcrumb {
  padding-block: 1.1rem;
  color: var(--muted);
  font-size: .875rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .65rem;
  list-style: none;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: .65rem;
  color: var(--muted);
}

.article-head, .page-top {
  min-width: 0;
  padding-block: .95rem 1.65rem;
  border-bottom: 1px solid var(--rule);
}

.article-head h1, .page-top h1 {
  margin-block: .35rem .66rem;
  font-size: clamp(2.45rem, 5.55vw, 4.75rem);
}

.page-top {
  margin-bottom: .9rem;
}

.article-view {
  max-width: 54rem;
}

.article-body {
  min-width: 0;
  max-width: 68ch;
  padding-block: 1.6rem clamp(2.25rem, 5vw, 3.6rem);
  font-size: 1.03rem;
  line-height: 1.68;
}

.article-body > p + p {
  margin-top: 1rem;
}

.article-body h2 {
  margin-block: 1.55rem .55rem;
  font-family: var(--editorial);
}

.article-body a {
  overflow-wrap: anywhere;
}

.article-body blockquote {
  margin: 1.2rem 0;
  padding: .65rem 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.more-notes {
  margin-block-end: 1.75rem;
}

.source-line {
  margin-top: 1.4rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.site-footer {
  border-top: 3px double var(--rule);
  color: var(--muted);
  font-size: .9rem;
}

.footer-inner, .site-footer > .shell, .site-footer > .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  padding-block: 1.1rem 1.4rem;
}

.site-footer nav, .site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .95rem;
  list-style: none;
  padding: 0;
}

@media (max-width: 780px) {
  .shell, .wrap {
    width: min(72.5rem, calc(100% - 2rem));
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .home-layout {
    padding-top: 1.8rem;
  }

  .desk {
    border-top: 3px double var(--rule);
    border-left: 0;
    padding: .75rem 0 0;
  }

  .post-grid, .browse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-card:nth-child(n) {
    border-right: 0;
    padding-inline: .85rem;
  }

  .post-card:nth-child(odd) {
    padding-inline-start: 0;
    border-right: 1px solid var(--line);
  }

  .post-card:nth-child(even) {
    padding-inline-end: 0;
  }
}

@media (max-width: 440px) {
  .wordmark {
    font-size: clamp(2rem, 9.3vw, 3rem);
  }

  .masthead {
    padding-block: 1.2rem .9rem;
  }

  .masthead-inner {
    gap: .3rem .48rem;
  }

  .nav-inner, .site-nav ul {
    gap: 0 .7rem;
  }

  .site-nav a {
    min-height: 2.35rem;
    font-size: .89rem;
  }

  .lead-title, .page-top h1, .article-head h1 {
    font-size: clamp(2rem, 9.75vw, 2.75rem);
  }

  .post-grid, .browse-grid {
    grid-template-columns: 1fr;
  }

  .post-card:nth-child(n) {
    padding-inline: 0;
    border-right: 0;
  }
}
