.editorial-post {
  --paper: #fff;
  --rule: #cac8b9;
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-link-color: #47553b;
  --bs-link-hover-color: #293421;
  --bs-link-color-rgb: 71, 85, 59;
  --bs-link-hover-color-rgb: 41, 52, 33;
}
.editorial-post #title-block-header { margin: 0; }
.post-header {
  background: #e3e5d6;
  color: #303427;
}
.post-intro {
  width: min(100%, 60rem);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 4.25rem) var(--gutter);
}
.post-illustrated {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  background: var(--cover-paper, #dfa8b1);
  color: var(--cover-ink, #29231f);
}
.post-illustrated .post-intro { align-self: center; }
.post-painting { position: relative; min-height: clamp(19rem, 31vw, 34rem); }
.post-painting img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 33%;
  border-bottom-left-radius: 25% 58%;
}
.post-painting img[src$="/sgd/cover.webp"] { object-position: 16% top; }
.post-header h1.title {
  max-width: 25ch;
  margin: 0;
  color: inherit;
  font: 600 clamp(2.3rem, 4.5vw, 4.9rem)/1.02 var(--sans);
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.post-header .description, .post-header .subtitle {
  max-width: 58ch;
  margin: 1.15rem 0 0;
  font: 400 clamp(1.12rem, 1.5vw, 1.45rem)/1.45 var(--serif);
}
.post-header .description p:last-child { margin-bottom: 0; }
.post-header .quarto-title-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  margin-top: 1.65rem;
  font: 500 .875rem/1.5 var(--sans);
}
.post-header .quarto-title-meta-heading {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.post-header .quarto-title-meta-contents p { margin: 0; }
.post-header .quarto-title-meta > div + div { padding-inline-start: 1rem; border-inline-start: 1px solid currentColor; }
.editorial-post main.content {
  color: var(--ink);
  font: 400 clamp(1.0625rem, 1.35vw, 1.1875rem)/1.68 var(--serif);
}
.editorial-post main.content a { text-underline-offset: .15em; }
.editorial-post #quarto-sidebar { background-color: var(--paper); }
.editorial-post #TOC a:is(.active, :hover) {
  color: var(--bs-link-color);
  border-inline-start-color: currentColor;
}
.editorial-post main.content section > :is(h1, h2, h3, h4) {
  color: inherit;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.17;
  text-wrap: pretty;
}
.editorial-post main.content section > :is(h1, h2) { border-color: var(--rule); }
.editorial-post :is(figcaption, .column-margin, details.code-fold > summary) {
  font: 400 .875rem/1.5 var(--sans);
  color: #55554a;
}
.editorial-post .callout { background: var(--paper); }
.editorial-post .colophon { grid-column: screen; border-top: 1px solid var(--rule); }

@media (max-width: 40rem) {
  .post-illustrated { grid-template-columns: 1fr; }
  .post-painting { grid-row: 1; min-height: 0; height: clamp(10rem, 43vw, 16rem); }
  .post-painting img { border-radius: 0 0 18% 0 / 0 0 55% 0; }
  .post-intro { padding: 1.6rem max(var(--gutter), 1.15rem); }
}
@media (max-width: 62rem) {
  .editorial-post main :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
  .editorial-post main :is(table.table, .math.display) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  .editorial-post main .math.inline {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    vertical-align: middle;
  }
}
@media print {
  .editorial-post :is(.masthead, .colophon, .post-painting) { display: none; }
  .post-header { display: block; background: white; color: black; }
  .post-intro { padding: 0 0 1rem; }
}
