@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

:root {
  --paper: #f3ecdf;
  --sheet: #faf6ee;
  --ink: #1c140e;
  --soft: #3d3228;
  --faint: #5c4e3e;
  --rule: #6e2418;
  --link: #6e2418;
  --line: rgba(60, 40, 20, 0.18);
  --measure: 40rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", Palatino, "Palatino Linotype", serif;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 400;
}

a { color: var(--link); text-underline-offset: 0.14em; }
a:hover { color: #4d160e; }

:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--sheet);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 5;
}
.skip:focus { top: 0.75rem; }

.banner {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 238, 0.92);
}

.banner-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
}

.brand {
  font-family: "Cormorant Garamond", "EB Garamond", serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand small {
  display: block;
  font-family: "EB Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.site-nav a {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
  text-decoration-thickness: 1px;
}

.sheet {
  max-width: calc(var(--measure) + 4rem);
  margin: 1.5rem auto 3rem;
  padding: 2.4rem 2.2rem 2.6rem;
  background: var(--sheet);
  box-shadow: 0 0 0 1px var(--line);
}

.sheet > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.kicker {
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: var(--rule);
  margin: 0 0 0.4rem;
}

h1 {
  font-family: "Cormorant Garamond", "EB Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.35rem;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--rule);
  margin: 0.8rem auto 1.2rem;
  max-width: var(--measure);
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.ornament span { font-size: 1.15rem; line-height: 1; }

.byline {
  font-style: italic;
  color: var(--soft);
  margin: 0 0 1rem;
}

.memoir p { margin: 0 0 1rem; hyphens: auto; }

.memoir p.lede::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  float: left;
  font-size: 3.7rem;
  line-height: 0.78;
  padding: 0.12em 0.08em 0 0;
  color: var(--rule);
}

.edn {
  font-style: italic;
  font-size: 0.72em;
  line-height: 1;
  vertical-align: 0.35em;
  color: var(--faint);
  letter-spacing: 0;
  margin-left: 0.12em;
}

.sic {
  font-variant: small-caps;
  font-size: 0.78em;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
  color: var(--rule);
  margin-left: 0.12em;
}

.plate {
  margin: 1.4rem auto 1.6rem;
  max-width: var(--measure);
}

.plate img,
.plate picture,
.plate picture img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 36rem;
  object-fit: contain;
  background: #efe8da;
}

.plate-portrait img { max-width: 22rem; margin-inline: auto; }

figcaption {
  margin-top: 0.55rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--soft);
}

.kind {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.86rem;
  color: var(--rule);
  margin-bottom: 0.15rem;
}

.creditline { display: block; margin-top: 0.25rem; font-size: 0.92rem; }
.creditline a { color: var(--faint); }

.turn {
  max-width: calc(var(--measure) + 4rem);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: stretch;
}

.turn a {
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-height: 3.2rem;
}

.turn a:hover { color: var(--rule); }
.turn .next { text-align: right; align-items: flex-end; }
.turn .toc {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  align-items: center;
  justify-content: center;
}
.turn .label {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--faint);
}
.turn strong {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.25rem;
}

.colophon {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--faint);
  font-size: 1rem;
  font-style: italic;
}

.cover {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 3rem;
}

.cover-card {
  width: min(40rem, 100%);
  text-align: center;
  background: var(--sheet);
  box-shadow: 0 0 0 1px var(--line);
  padding: 1.6rem 1.3rem 2rem;
}

.cover-card h1 {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  margin-top: 0.6rem;
}

.cover-card .author {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  margin: 0.2rem 0 0.8rem;
}

.cover-card .plate { margin-top: 0.4rem; }
.cover-card .plate img { max-height: 28rem; }

.begin {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--rule);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--rule);
}
.begin:hover { background: var(--rule); color: #faf6ee; }

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { border-top: 1px solid var(--line); }
.toc-list a {
  display: flex;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0;
  align-items: baseline;
}
.toc-list a:hover { color: var(--rule); }
.toc-num {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--faint);
  min-width: 2.2rem;
  font-size: 0.95rem;
}
.toc-list em { font-family: "Cormorant Garamond", serif; font-style: normal; font-size: 1.35rem; }

.apparatus .note {
  border-left: 3px solid var(--rule);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--soft);
  font-style: italic;
}

.timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.timeline li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.timeline time {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--rule);
}
.context {
  display: inline-block;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--rule);
  border: 1px solid var(--rule);
  padding: 0 0.3rem;
  margin-right: 0.3rem;
  font-style: normal;
}

.credits article > h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.8rem;
  margin: 1.6rem auto 0.4rem;
}

.credit-block {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
}
.credit-block h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}
.credit-block p { margin: 0.15rem 0; font-size: 1.05rem; }
.credit-block dt { font-variant: small-caps; letter-spacing: 0.06em; color: var(--faint); float: left; clear: left; width: 5.5rem; }
.credit-block dd { margin: 0 0 0.15rem 5.8rem; }

.map-wrap img { width: 100%; height: auto; background: transparent; }

.names { columns: 2; gap: 1.5rem; padding-left: 1.1rem; }
.names li { break-inside: avoid; margin: 0.15rem 0; }

@media (max-width: 700px) {
  body { font-size: 1.12rem; }
  .sheet { margin: 0.6rem; padding: 1.3rem 1rem 1.6rem; }
  .memoir p.lede::first-letter { font-size: 3.1rem; }
  .turn { grid-template-columns: 1fr; padding: 0 0.6rem; }
  .turn .next { text-align: left; align-items: flex-start; }
  .timeline li { grid-template-columns: 1fr; gap: 0.15rem; }
  .names { columns: 1; }
  .credit-block dt { float: none; width: auto; }
  .credit-block dd { margin-left: 0; }
  .banner-inner { padding-inline: 0.9rem; }
}

@media print {
  body { background: white; }
  .banner, .turn, .skip, .colophon { display: none; }
  .sheet { box-shadow: none; margin: 0; }
  a { color: black; text-decoration: none; }
}
