:root {
  --paper: #f3f3e9;
  --ink: #403428;
  --ink-soft: #6f6354;
  --line: #ddd6c7;
  --hover: #8a5a34;
  --measure: 40rem;
  --nav-measure: 56rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); }
.nav-inner {
  max-width: var(--nav-measure);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
}
.brand {
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.nav-links a {
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--hover); }

/* Type */
main { padding: 3.6rem 0 1rem; }
h1 {
  font-weight: normal;
  font-size: 2.55rem;
  line-height: 1.13;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.lead { font-size: 1.42rem; line-height: 1.4; margin: 0 0 2rem; }
h2 {
  font-weight: normal;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 2.8rem 0 0.9rem;
}
.eyebrow {
  font-size: 0.73rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
p { margin: 0 0 1.2rem; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--hover); }

/* Breadcrumb */
.crumb { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 2rem; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--hover); }
.crumb span { margin: 0 0.5rem; opacity: 0.6; }

/* Index lanes (essays, studio) */
.lanes { margin: 2.4rem 0 1rem; border-top: 1px solid var(--line); }
.lane {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.lane:hover { color: var(--hover); }
.lane:hover h3 { color: var(--hover); }
.lane h3 { font-weight: normal; font-size: 1.3rem; margin: 0 0 0.35rem; }
.lane p { margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 1rem; }
.lane .go {
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cta { margin: 3rem 0 0.5rem; }
.cta a { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Studio signpost on homepage */
.signpost { margin: 2.8rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.signpost h2 { margin-top: 0; }

/* Subscribe */
.subscribe { margin: 2.8rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink-soft); }
.subscribe a { color: var(--ink-soft); }

/* Essay / prose body */
.prose p:first-of-type { margin-top: 0; }
.prose h2 { font-size: 1.32rem; }
.postmeta { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 2rem; }

/* Sources block (scoped feel, matches endure restraint) */
.sources { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources .eyebrow { margin-bottom: 0.9rem; }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); margin-bottom: 0.5rem; }
.sources a { color: var(--ink-soft); }

/* ===== POETRY ===== */

/* Master directory toggle: collapses the whole jump-link index */
.directory {
  margin: 2.4rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.directory > summary {
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 0 1.2rem;
  cursor: pointer;
  list-style: none;
  outline: none;
}
.directory > summary::-webkit-details-marker { display: none; }
.directory > summary::before {
  content: "+";
  margin-right: 0.6rem;
  display: inline-block;
  width: 0.7rem;
}
.directory[open] > summary::before { content: "\00D7"; }
.directory > summary:hover { color: var(--hover); }
.dir-body { padding-bottom: 1.4rem; }

/* Year label inside the directory */
.dir-yr { font-size: 1.15rem; color: var(--ink); margin: 1.6rem 0 0.3rem; }
.dir-yr:first-child { margin-top: 0; }

/* Month label: sentence case, tight */
.dir-month { font-size: 0.95rem; color: var(--ink-soft); margin: 0.7rem 0 0.2rem; }

/* Directory item: fixed two-column row, aligned, no wrapping run-on */
.dir-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  column-gap: 0.75rem;
  padding: 0.16rem 0;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}
.dir-item:hover { color: var(--hover); }
.dir-when { color: var(--ink-soft); font-size: 0.92rem; white-space: nowrap; }
.dir-title { font-size: 1rem; }
.dir-item .sep { color: var(--ink-soft); margin: 0 0.35rem; }

/* Per-year poem sections: collapse the full poems for a year */
.poems { margin-top: 2.5rem; }
.poem-year { border-bottom: 1px solid var(--line); }
.poem-year > summary {
  font-size: 1.5rem;
  padding: 0.7rem 0 0.2rem;
  cursor: pointer;
  list-style: none;
  outline: none;
}
.poem-year > summary::-webkit-details-marker { display: none; }
.poem-year > summary::before {
  content: "+";
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-right: 0.7rem;
  display: inline-block;
  width: 0.8rem;
}
.poem-year[open] > summary::before { content: "\00D7"; }
.poem-year > summary:hover { color: var(--hover); }
.poem-year > .poem:first-of-type { padding-top: 0.6rem; }

/* Poem */
.poem {
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}
.poem:first-child { padding-top: 0; }
.poem:last-of-type { border-bottom: none; }
.poem .stamp { font-size: 0.8rem; color: var(--ink-soft); display: block; margin: 0 0 0.4rem; }
.poem .poem-title { font-weight: normal; font-size: 1.3rem; margin: 0 0 0.9rem; }
.poem .body { margin: 0; }
.poem .body .stanza { margin: 0 0 1.1rem; line-height: 1.5; }
.poem .body .stanza:last-child { margin-bottom: 0; }
.poem .spoken { font-size: 0.9rem; display: inline-block; margin-top: 0.9rem; }
.to-top { font-size: 0.71rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; display: inline-block; margin-top: 1rem; }
.to-top:hover { color: var(--hover); }

.placeholder { color: var(--ink-soft); margin-top: 1.5rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 4rem; }
.foot-inner {
  max-width: var(--nav-measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}
.foot a { color: var(--ink-soft); }
.foot .elsewhere a { margin-right: 1.2rem; }

@media (max-width: 600px) {
  body { font-size: 18px; }
  main { padding: 2.6rem 0 1rem; }
  h1 { font-size: 2.05rem; }
  .lead { font-size: 1.22rem; }
  .nav-inner { padding: 1.1rem 1.2rem; }
}