:root {
  --paper: #f3eee6;
  --ink: #1c1915;
  --mute: #6e665c;
  --rule: #e2d8c8;
  --measure: 38rem;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: 1.1875rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #e6d4bc;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 2;
  background: var(--paper);
  padding: 0.35rem 0.55rem;
  outline: 1px solid var(--ink);
}

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

a:hover { text-decoration-thickness: 1.5px; }

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

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.75rem 1.5rem 5.5rem;
}

.label {
  margin: 0;
  font-variant: small-caps;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mute);
}

.home-head h1,
.essay-head h1 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0.55rem 0 0;
}

.home-head h1 {
  font-size: clamp(2.15rem, 5vw, 3rem);
}

.lede-block {
  margin-top: 2.1rem;
}

.lede-block p,
.essay p {
  margin: 0 0 1.05rem;
  text-wrap: pretty;
  hanging-punctuation: first last;
}

.writing {
  margin-top: 3.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}

.entries {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
}

.entries li + li {
  margin-top: 1.7rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--rule);
}

.entry-title {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0.4rem 0 0.45rem;
}

.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }

.dek {
  margin: 0;
  color: var(--ink);
}

.parts {
  margin: 0.45rem 0 0;
  color: var(--mute);
  font-size: 0.98rem;
}

.site-foot {
  margin-top: 3.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.site-foot p { margin: 0.35rem 0; }

.quiet {
  color: var(--mute);
  font-size: 0.98rem;
}

.essay-head .back {
  font-size: 1rem;
  text-decoration: none;
}

.essay-head .back:hover { text-decoration: underline; }

.essay-head .label { margin-top: 1.5rem; }

.essay-head h1 {
  font-size: clamp(2.05rem, 4.6vw, 2.7rem);
  margin-top: 0.45rem;
  text-wrap: balance;
}

.essay-dek {
  margin: 1rem 0 0;
  font-size: 1.28rem;
  line-height: 1.4;
  max-width: 28ch;
}

.essay { margin-top: 2.3rem; }
.essay a { text-decoration: none; }
.essay a:hover { text-decoration: underline; }
.invite a { text-decoration: underline; }
.home-head + .lede-block a { white-space: nowrap; }

.essay .lede::first-letter {
  float: left;
  font-size: 3.35em;
  line-height: 0.78;
  padding: 0.06em 0.08em 0 0;
  font-weight: 500;
}

.essay h2 {
  font-size: 1.32rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 2.5rem 0 0.85rem;
}

.plate {
  margin: 2rem 0 2.15rem;
}

.plate img,
.plate svg {
  display: block;
  width: 100%;
  height: auto;
}

.plate figcaption {
  margin-top: 0.55rem;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--mute);
}

.invite {
  margin-top: 1.6rem;
  font-size: 1.2rem;
}

.colophon {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--mute);
  font-size: 0.98rem;
}

.colophon p { margin: 0.3rem 0; }

@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .page { padding: 2.4rem 1.2rem 4rem; }
  .essay-dek { font-size: 1.15rem; }
  .entry-title { font-size: 1.28rem; }
}

@media print {
  .skip, .back { display: none; }
  body { font-size: 12pt; }
  .page { max-width: none; padding: 0; }
  a { text-decoration: none; }
}

.keep { white-space: nowrap; }
