:root {
  --ink: #251c18;
  --muted: #806f62;
  --wine: #7d2728;
  --gold: #b18a4d;
  --paper: #f4ead7;
  --paper-deep: #e8d8bb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #211915;
  font-family: Georgia, "Times New Roman", serif;
  text-rendering: optimizeLegibility;
}

::selection { color: #fff9ed; background: var(--wine); }

.page-shell {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 18%, rgb(255 255 255 / .44), transparent 30%),
    linear-gradient(135deg, var(--paper) 0%, #f8f0df 52%, var(--paper-deep) 100%);
}

.paper-grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(97deg, transparent 0 5px, rgb(76 49 29 / .035) 6px 7px),
    repeating-linear-gradient(7deg, transparent 0 9px, rgb(255 255 255 / .2) 10px 11px);
  mix-blend-mode: multiply;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 25px 0 22px;
  border-bottom: 1px solid rgb(91 58 35 / .25);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.masthead p { margin: 0; }
.edition { justify-self: end; }
.wordmark { display: flex; align-items: baseline; width: fit-content; color: var(--wine); text-decoration: none; text-transform: none; }
.wordmark span { font-size: 31px; font-weight: 700; line-height: .7; }
.wordmark i { margin-left: -2px; font-family: Georgia, serif; font-size: 16px; letter-spacing: .03em; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 720px) 150px;
  justify-content: center;
  align-items: center;
  min-height: calc(100svh - 155px);
  padding: 56px 32px 64px;
}

.margin-note { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 56px; color: var(--muted); }
.margin-note p { margin: 0; font-size: 10px; line-height: 1.8; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.margin-note time { margin-top: auto; font-size: 12px; letter-spacing: .22em; }
.vertical-rule { width: 1px; height: 74px; background: linear-gradient(var(--gold), transparent); }

.poem-card { position: relative; padding: 42px 74px 46px; border: 1px solid rgb(114 75 44 / .26); box-shadow: 0 22px 70px rgb(52 31 19 / .12), inset 0 0 80px rgb(255 255 255 / .24); background: rgb(255 250 239 / .34); }
.poem-card::before, .poem-card::after { content: ""; position: absolute; width: 24px; height: 24px; border-color: var(--gold); opacity: .65; }
.poem-card::before { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.poem-card::after { right: 14px; bottom: 14px; border-right: 1px solid; border-bottom: 1px solid; }

.eyebrow { display: flex; justify-content: center; align-items: center; gap: 11px; color: var(--wine); }
.eyebrow p { margin: 0; font-family: Arial, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow span { color: var(--gold); font-size: 8px; }
h1 { margin: 14px 0 10px; font-size: clamp(40px, 6vw, 66px); font-weight: 400; line-height: 1; letter-spacing: -.035em; text-align: center; }
.flourish { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); }
.flourish span { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish span:last-child { transform: rotate(180deg); }
.flourish i { font-style: normal; font-size: 17px; }

.poem-text { margin-top: 35px; font-size: clamp(19px, 2.5vw, 25px); line-height: 1.72; letter-spacing: .004em; }
.stanza + .stanza { margin-top: 20px; }
.stanza p { margin: 0; opacity: 0; transform: translateY(8px); animation: reveal .75s cubic-bezier(.2,.65,.3,1) forwards; animation-delay: calc(.18s + var(--line) * .09s); }
.stanza p::first-letter { color: var(--wine); }

.signature { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgb(91 58 35 / .18); }
.signature span { color: var(--wine); font-size: 18px; font-style: italic; }
.signature small { color: var(--muted); font-family: Arial, sans-serif; font-size: 9px; letter-spacing: .13em; text-align: right; text-transform: uppercase; }
.quote-mark { align-self: start; padding-top: 10px; color: rgb(125 39 40 / .14); font-size: 140px; line-height: 1; }

.page-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 20px 0 24px; border-top: 1px solid rgb(91 58 35 / .25); color: var(--muted); font-family: Arial, sans-serif; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.page-footer p { margin: 0; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 850px) {
  .masthead { grid-template-columns: 1fr 1fr; width: min(100% - 36px, 680px); }
  .masthead p { display: none; }
  .hero { grid-template-columns: 1fr; padding: 34px 18px 44px; }
  .margin-note, .quote-mark { display: none; }
  .poem-card { width: min(100%, 680px); margin: 0 auto; padding: 38px clamp(22px, 7vw, 58px) 40px; }
  .page-footer { width: min(100% - 36px, 680px); }
}

@media (max-width: 530px) {
  .masthead { padding-top: 20px; }
  .edition { font-size: 8px; }
  .hero { min-height: auto; }
  .poem-card { padding-inline: 20px; }
  .poem-text { font-size: clamp(17px, 4.55vw, 21px); line-height: 1.65; }
  .signature { align-items: start; flex-direction: column; }
  .signature small { text-align: left; }
  .page-footer { align-items: start; flex-direction: column; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stanza p { opacity: 1; transform: none; animation: none; }
}
