:root {
  --ink: #1a1612;
  --rule: #2a241c;
  --wine: #6b1224;
  --page: #f7f4ee;
}

* { box-sizing: border-box; }

html {
  background: #e8e2d6;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

article {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  padding: 8.5rem 1.4rem 4.5rem;
  overflow: visible;
}

.stain {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  height: auto;
}

/* Same rings as /blog/0, recolored as red wine. */
.stain-a {
  top: 1.8rem;
  left: -4.6rem;
  width: 24rem;
  opacity: 0.66;
  transform: scaleX(-1) rotate(-11deg);
}

.stain-b {
  right: -3.1rem;
  top: 42%;
  width: 16.5rem;
  opacity: 0.52;
  transform: rotate(22deg);
}

article > *:not(.stain) {
  position: relative;
  z-index: 1;
}

header.masthead {
  text-align: center;
  margin-bottom: 1.8rem;
}

.draft-banner {
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--wine);
  margin: 0 0 0.85rem;
}

header.masthead h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.55rem;
  line-height: 1.2;
}

.subtitle {
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 1.05rem;
}

.byline {
  margin: 0;
  font-size: 1.02rem;
}

.affil {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}

.affil a {
  color: inherit;
  text-decoration: none;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.affil a:hover { text-decoration: underline; }

header.masthead .rule {
  width: 28%;
  margin: 1.15rem auto 0;
  border: 0;
  border-top: 0.7px solid var(--rule);
}

h2 {
  font-size: 1.12rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  margin: 2.1rem 0 0.7rem;
}

p {
  margin: 0 0 0.7rem;
  text-align: justify;
  hyphens: auto;
}

p.lede { text-indent: 0; }

ol, ul {
  margin: 0.4rem 0 1rem 1.4rem;
  padding: 0;
}

li { margin: 0.25rem 0; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
}

hr {
  width: 42%;
  margin: 1.4rem auto;
  border: 0;
  border-top: 0.7px solid var(--rule);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0 1.2rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.28rem 0.6rem 0.28rem 0;
  border-bottom: 0.6px solid #cfc6b8;
}

thead th {
  border-bottom: 1.1px solid var(--rule);
}

blockquote {
  margin: 0.9rem 0 1.2rem 1.4rem;
  padding: 0;
  border: 0;
}

blockquote p {
  text-align: justify;
}

.aside {
  text-indent: 0;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
}

.kicker {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.2rem 0 0.4rem;
  text-indent: 0;
}

.todo {
  border-top: 0.7px dashed #cfc6b8;
  margin-top: 2rem;
  padding-top: 0.4rem;
}

footer.colophon {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: var(--page);
  border-top: 0.7px solid var(--rule);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  padding: 0.45rem 1rem 0.55rem;
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  article { padding: 5.5rem 1rem 3.5rem; }
  p { text-align: left; }
  blockquote { margin-left: 0.8rem; }
  .stain-a { left: -7.2rem; width: 20rem; top: 0.4rem; transform: scaleX(-1); }
  .stain-b { display: none; }
}

@media print {
  html, body { background: white; }
  footer.colophon { position: static; background: var(--page); }
  .stain { mix-blend-mode: multiply; }
}
