:root {
  --paper: #f3ead6;
  --paper-deep: #ebe1c8;
  --ink: #1c1610;
  --ink-soft: #4a4034;
  --rule: #1c1610;
  --rule-thin: rgba(28, 22, 16, 0.35);
  --measure: 38rem;
}

* { box-sizing: border-box; }

html {
  background: var(--paper-deep);
}

body {
  margin: 0 auto;
  max-width: 46rem;
  min-height: 100vh;
  padding: 1.25rem 1.25rem 3rem;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  padding: 0.25rem 0.5rem;
}

.masthead {
  text-align: center;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 3px solid var(--rule);
  margin-bottom: 1.75rem;
}

.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.masthead .name {
  display: block;
  font-family: "Cormorant Garamond", "Palatino Linotype", serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 14vw, 5.6rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-transform: none;
}

.author-line {
  margin: 0.7rem 0 0.15rem;
  font-style: italic;
  font-size: 1.05rem;
}

.motto {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.desk {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.45rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desk a {
  color: var(--ink);
  text-decoration: none;
}

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

.lead h1,
.issue h1,
.contents h1,
.search-desk h1 {
  font-family: "Cormorant Garamond", "Palatino Linotype", serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.1;
  margin: 0.15rem 0 0.6rem;
}

.lead h1 a,
.issue h1 a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.deck {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.body { max-width: var(--measure); }

.body p { margin: 0 0 1em; }

.body p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2em;
  float: left;
  line-height: 0.75;
  padding: 0.08em 0.12em 0 0;
  font-weight: 600;
}

.body h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  margin: 1.6rem 0 0.6rem;
  font-weight: 600;
}

.body a { color: var(--ink); }

.body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.4rem auto;
  border: 1px solid var(--rule-thin);
  padding: 0.35rem;
  background: #f7f1e3;
}

.body figcaption,
.body img + em {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
}

.contents {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 2px solid var(--rule);
}

.contents h2,
.contents h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin: 0 0 0.8rem;
}

.contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contents li {
  display: grid;
  grid-template-columns: 6.2rem 1fr auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--rule-thin);
}

.contents time {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.contents a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

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

.dept {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.search-desk #search { margin-top: 1rem; }

.notice {
  font-style: italic;
  color: var(--ink-soft);
}

.colophon {
  margin-top: 3rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.colophon p { margin: 0.2rem 0; }

/* Pagefind restyle to paper */
.pagefind-ui { --pagefind-ui-primary: #1c1610; --pagefind-ui-text: #1c1610; --pagefind-ui-background: #f3ead6; --pagefind-ui-border: #1c1610; --pagefind-ui-font: "Source Serif 4", serif; }

@media (max-width: 640px) {
  body { padding: 1rem 0.9rem 2.4rem; font-size: 1.05rem; }
  .contents li { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media print {
  body { background: white; max-width: none; }
  .desk, .colophon { display: none; }
}
