:root {
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --rule: #44433e;
}
.site-header { position: relative; }
.site-header nav, .menu-toggle { font-size: .75rem; }
main { margin: auto; }
.cover {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.4rem;
  min-height: min(74svh, 50rem);
  padding: 2rem 0;
}
.kicker, .num, .imprint { font-size: .8rem; letter-spacing: .17em; }
.num { color: var(--lime); }
.cover h1 {
  font: 500 clamp(2rem, 6.4svh, 4.9rem)/1.2 var(--serif);
  margin: 0;
  writing-mode: vertical-rl;
  white-space: nowrap;
}
.copy {
  width: min(88%, 32em);
  margin: clamp(2.5rem, 6vw, 6rem) auto;
  font-size: 1.125rem;
  line-height: 1.82;
  line-break: strict;
}
.cover + .copy { margin-top: 0; }
.copy p { margin: 0 0 1.25em; }
.copy p:last-child { margin-bottom: 0; }
figure {
  margin: 0 auto;
  width: min(92%, 76rem);
}
figure img { display: block; width: 100%; height: auto; }
figcaption { margin-top: .5rem; color: #bbb7b1; font-size: .78rem; }
.contents, .pairs, .chapterhead, .ending {
  width: min(88%, 68rem);
  margin: clamp(4rem, 8vw, 8rem) auto;
}
.contents { border-top: 1px solid var(--rule); scroll-margin-top: 2rem; }
.entry {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--rule);
}
.entry strong { font-size: clamp(1.3rem, 2.8vw, 2.5rem); line-height: 1.55; }
.entry small { display: block; margin-top: .45rem; font-size: 1.125rem; line-height: 1.82; }
.entry:hover strong, .back:hover, .chapterhead a:hover { color: var(--lime); }
.back { display: inline-block; margin-top: 1.25rem; padding: .75rem 0; text-decoration: underline; text-underline-offset: .35em; }
.chapterhead h1, .ending h2 {
  font: 600 clamp(2rem, 4.2vw, 3.5rem)/1.5 var(--serif);
  margin: 1.4rem 0 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ending { text-align: center; }
.ending .copy { text-align: left; width: min(100%, 32em); }
.ending p:last-child { margin-top: 2.5em; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1.25em 1fr;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--rule);
  padding: .52em 0;
  font-size: clamp(1.25rem, 5.7vw, 4.8rem);
  line-height: 1.45;
  font-weight: 800;
}
.pair:last-child { border-bottom: 1px solid var(--rule); }
.pair b { font: 400 .48em/1 Arial, sans-serif; color: var(--lime); }
.pair:nth-child(odd) span:first-child, .pair:nth-child(even) span:last-child {
  font-family: var(--serif); font-weight: 500;
}
.spread {
  width: min(92%, 76rem);
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5%;
  align-items: center;
}
.spread figure, .spread .copy { width: 100%; margin: 0; }
.invitation { font-size: 1.45em; color: var(--lime); }
.imprint { border-top: 1px solid var(--rule); padding: 2rem 6%; color: var(--gray); }
@media (max-width: 700px) {
  .spread { display: block; }
  .spread .copy { width: 95.6%; margin: 2rem auto; }
  .entry { grid-template-columns: 1.4rem 1fr auto; gap: .55rem; }
  .chapterhead h1, .ending h2 { font-size: clamp(2rem, 8.5vw, 2.375rem); }
  .pair { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
