:root {
  --blue-950: #061438;
  --blue-900: #0a225f;
  --blue-800: #123a9a;
  --blue-700: #1d4fc2;
  --blue-600: #2e66e6;
  --pink-700: #cc176a;
  --pink-600: #ec2f87;
  --pink-500: #ff4f9a;
  --pink-300: #ff9ac8;
  --pink-100: #ffe1ef;
  --blush: #fff1f7;
  --paper: #fff8fb;
  --surface: #ffffff;
  --ink: #0c1d4a;
  --muted: #606a8c;
  --line: rgba(18, 58, 154, 0.14);
  --shadow: 0 26px 70px rgba(8, 28, 80, 0.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(3, 12, 42, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 4px;
}
.poems-shell { width: min(100% - 44px, 1240px); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-900);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.poems-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 79, 154, .18);
  background: rgba(255, 248, 251, .92);
  backdrop-filter: blur(18px);
}
.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.poems-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-950);
  text-decoration: none;
}
.poems-brand span {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blush);
  box-shadow: 0 8px 24px rgba(18, 58, 154, .14);
}
.poems-brand img { width: 100%; height: 100%; object-fit: cover; }
.poems-brand strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.poems-nav { display: flex; align-items: center; gap: clamp(17px, 2.4vw, 30px); }
.poems-nav a {
  position: relative;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 780;
  letter-spacing: .02em;
  text-decoration: none;
}
.poems-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--pink-500));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}
.poems-nav a:hover { color: var(--blue-900); }
.poems-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.poems-menu-button {
  min-width: 48px;
  min-height: 44px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue-900);
  font-size: .7rem;
  font-weight: 800;
}

/* Shared type */
.poems-eyebrow, .footer-kicker {
  margin: 0 0 15px;
  color: var(--pink-600);
  font-size: .69rem;
  font-weight: 820;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.collection-hero h1, .section-intro h2, .results-heading h2, .empty-collection h3,
.poem-page-header h1, .comments-section h2, .not-found h1, .poems-footer h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.05em;
}
.poems-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--pink-600);
  border-radius: 999px;
  background: var(--pink-600);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

/* Image heroes */
.collection-hero, .poem-page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background-color: var(--blue-950);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}
.collection-hero { min-height: min(680px, calc(100svh - 78px)); display: grid; align-items: center; padding: clamp(48px, 6vw, 76px) 0; }
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 17, 57, .95) 0%, rgba(6, 26, 81, .82) 40%, rgba(9, 29, 78, .32) 72%, rgba(6, 15, 48, .56) 100%),
    radial-gradient(circle at 76% 26%, rgba(255, 57, 146, .38), transparent 34%),
    linear-gradient(0deg, rgba(4, 13, 43, .54), transparent 46%);
}
.collection-hero::before, .poem-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 84%);
}
.collection-hero-grid, .poem-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, .75fr);
  align-items: center;
  gap: clamp(54px, 8vw, 118px);
}
.collection-hero-grid > *, .poem-hero-grid > *, .collection-layout > *, .theme-gallery > *, .poem-grid > *, .comments-grid > *, .footer-grid > * { min-width: 0; }
.hero-copy { max-width: 760px; }
.hero-theme-name {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.collection-hero .poems-eyebrow, .poem-page-header .poems-eyebrow { color: var(--pink-300); text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.collection-hero h1 {
  max-width: 820px;
  font-size: clamp(3.25rem, 6.2vw, 6.8rem);
  line-height: .94;
  text-wrap: balance;
  text-shadow: 0 8px 42px rgba(3, 10, 35, .35);
}
.collection-lede {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.79);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}
.poem-search { max-width: 600px; display: grid; gap: 9px; margin-top: 34px; }
.poem-search label { color: rgba(255,255,255,.76); font-size: .7rem; font-weight: 780; }
.search-control {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(3,12,42,.18);
  backdrop-filter: blur(18px);
}
.search-control input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #fff;
}
.search-control input::placeholder { color: rgba(255,255,255,.58); }
.search-control input:focus { outline: 0; }
.search-control button {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--pink-500);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}
.floating-poems {
  position: relative;
  min-height: 420px;
  display: grid;
  align-content: center;
}
.floating-poems > span {
  position: absolute;
  top: 44%;
  left: 40%;
  color: rgba(255,255,255,.55);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.floating-poem {
  position: absolute;
  max-width: min(260px, 70%);
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(5, 21, 69, .43);
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(.82rem, 1.15vw, 1rem);
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 13px 40px rgba(3,12,42,.24);
  backdrop-filter: blur(13px);
  transition: opacity .18s ease, transform .22s ease, background .22s ease, border-color .22s ease;
  animation: poem-float 6s ease-in-out infinite;
}
.floating-poem.is-changing { opacity: 0; transform: translateY(4px) scale(.98); }
.floating-poem:hover { z-index: 2; border-color: var(--pink-300); background: rgba(236,47,135,.82); transform: translateY(-5px) scale(1.03); }
.floating-poem-1 { top: 5%; left: 7%; animation-delay: -.8s; }
.floating-poem-2 { top: 17%; right: 1%; animation-delay: -2.4s; }
.floating-poem-3 { top: 43%; left: 0; animation-delay: -3.2s; }
.floating-poem-4 { top: 55%; right: 4%; animation-delay: -1.4s; }
.floating-poem-5 { bottom: 6%; left: 13%; animation-delay: -4.2s; }
.floating-poem-6 { bottom: 2%; right: 8%; animation-delay: -2s; }
@keyframes poem-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.hero-scroll {
  position: absolute;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-scroll i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-style: normal; }

/* Theme gallery */
.themes-section {
  padding: clamp(76px, 10vw, 132px) 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(255,79,154,.15), transparent 28%),
    radial-gradient(circle at 92% 80%, rgba(46,102,230,.2), transparent 30%),
    var(--blue-950);
  color: #fff;
}
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 46px;
}
.section-intro h2 { max-width: 820px; font-size: clamp(3.1rem, 6.5vw, 6.6rem); line-height: .96; }
.section-intro > p { margin: 0; color: rgba(255,255,255,.66); font-family: var(--serif); font-size: 1.05rem; }
.theme-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.theme-card {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(25px, 3.6vw, 42px);
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 30px;
  background-color: var(--blue-900);
  background-image: var(--theme-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 80px rgba(1,8,30,.23);
}
.theme-card:first-child { grid-column: 1 / -1; min-height: 560px; }
.theme-card-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3,12,42,.3), transparent 64%),
    linear-gradient(180deg, rgba(3,12,42,.24), rgba(5,19,61,.08) 48%, rgba(4,14,46,.78));
  transition: background .3s ease;
}
.theme-card:hover .theme-card-shade {
  background:
    linear-gradient(90deg, rgba(3,12,42,.24), transparent 64%),
    linear-gradient(180deg, rgba(3,12,42,.18), rgba(5,19,61,.04) 48%, rgba(4,14,46,.7));
}
.theme-card-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 15px; }
.theme-card-heading > span { color: var(--pink-300); font-family: var(--serif); font-size: 1.22rem; }
.theme-card-heading p { margin: 0 0 6px; color: rgba(255,255,255,.62); font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.theme-card-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4.4rem); font-weight: 400; letter-spacing: -.05em; line-height: .98; text-shadow: 0 3px 24px rgba(1,8,30,.72); }
.theme-card-heading h3 a { text-decoration: none; }
.theme-card-heading small { padding-top: 7px; color: rgba(255,255,255,.62); font-size: .65rem; }
.theme-poem-links { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-top: auto; padding-top: 100px; }
.theme-poem-links a {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(7,23,70,.46);
  color: #fff;
  font-family: var(--serif);
  font-size: .78rem;
  line-height: 1.25;
  text-decoration: none;
  backdrop-filter: blur(10px);
}
.theme-poem-links a:hover { border-color: var(--pink-300); background: var(--pink-600); }
.theme-enter { align-self: flex-end; margin-top: 23px; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.theme-enter span { color: var(--pink-300); font-size: 1rem; }

/* Collection */
.collection-section { padding: clamp(72px, 9vw, 118px) 0; background: linear-gradient(180deg, var(--blush), #fff 28%, var(--paper)); }
.collection-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: clamp(38px, 6vw, 76px); }
.collection-filters { position: sticky; top: 106px; display: grid; gap: 36px; }
.filter-group h2 { margin: 0 0 13px; color: var(--blue-950); font-size: .69rem; letter-spacing: .13em; text-transform: uppercase; }
.filter-links { display: grid; border-top: 1px solid var(--line); }
.filter-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .73rem; text-decoration: none; }
.filter-links a.active, .filter-links a:hover { color: var(--pink-700); font-weight: 800; }
.filter-links small { color: #8a94b3; }
.alphabet-links { display: flex; flex-wrap: wrap; gap: 6px; }
.alphabet-links a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: .67rem; text-decoration: none; }
.alphabet-links a.active, .alphabet-links a:hover { border-color: var(--pink-600); background: var(--pink-600); color: #fff; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.results-heading h2 { max-width: 780px; font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: .98; }
.results-heading > span { flex: none; color: var(--muted); font-size: .72rem; }
.poem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.poem-card {
  min-height: 440px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 172px 1fr;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(10,34,95,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.poem-card:hover { transform: translateY(-5px); border-color: rgba(236,47,135,.35); box-shadow: var(--shadow); }
.poem-card.featured { border-color: rgba(236,47,135,.48); }
.poem-card-art { background-image: linear-gradient(180deg, rgba(6,20,56,.06), rgba(6,20,56,.35)), var(--card-image); background-position: center; background-size: cover; }
.poem-card-content { min-width: 0; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 30px); }
.poem-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.poem-number { color: var(--pink-600); font-family: var(--serif); font-size: 1.45rem; }
.poem-card-top > span:last-child { color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.poem-card h3 { margin: 28px 0 16px; font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.8rem); font-weight: 400; line-height: 1.06; letter-spacing: -.035em; overflow-wrap: anywhere; }
.poem-card h3 a { text-decoration: none; }
.poem-categories { display: flex; flex-wrap: wrap; gap: 7px; }
.poem-categories a, .poem-page-meta a { padding: 5px 9px; border: 1px solid rgba(18,58,154,.16); border-radius: 999px; color: var(--blue-700); font-size: .61rem; font-weight: 800; text-decoration: none; }
.read-poem { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 26px; color: var(--pink-700); font-size: .72rem; font-weight: 820; text-decoration: none; }
.read-poem span { font-size: 1rem; transition: transform .2s ease; }
.read-poem:hover span { transform: translateX(5px); }
.poem-pagination-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 15px 18px;
  border: 1px solid rgba(18,58,154,.16);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, var(--blush));
  box-shadow: 0 14px 40px rgba(10,34,95,.06);
}
.pagination-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.pagination-pages a, .pagination-pages span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-800);
  font-size: .7rem;
  font-weight: 800;
  text-decoration: none;
}
.pagination-pages a:hover, .pagination-pages span.active { border-color: var(--pink-600); background: var(--pink-600); color: #fff; }
.pagination-direction { color: var(--blue-800); font-size: .7rem; font-weight: 820; text-decoration: none; }
.pagination-direction:hover { color: var(--pink-700); }
.pagination-direction.disabled { color: #a8adc0; }
.empty-collection { display: grid; justify-items: start; padding: clamp(42px, 7vw, 80px); border: 1px dashed rgba(18,58,154,.28); border-radius: 26px; background: var(--blush); }
.empty-collection > span { color: var(--pink-500); font-size: 2rem; }
.empty-collection h3 { margin-top: 20px; font-size: clamp(2rem, 4vw, 3.6rem); }
.empty-collection p { max-width: 620px; color: var(--muted); }

/* Individual poem */
.poem-page {
  background:
    linear-gradient(180deg, rgba(255,248,251,.95), rgba(255,241,247,.91)),
    var(--reading-image) center / cover fixed;
}
.poem-page-header { min-height: 520px; display: grid; align-items: center; padding: clamp(48px, 6vw, 76px) 0; }
.poem-page-header .hero-wash { background: linear-gradient(90deg, rgba(4,17,57,.94), rgba(8,29,87,.75) 50%, rgba(5,16,53,.4)), linear-gradient(0deg, rgba(4,13,43,.6), transparent 55%); }
.poem-title-wrap { max-width: 850px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: rgba(255,255,255,.58); font-size: .65rem; }
.breadcrumb a { color: rgba(255,255,255,.82); text-decoration: none; }
.poem-page-header h1 { font-size: clamp(3rem, 6.4vw, 6.6rem); line-height: .94; text-wrap: balance; text-shadow: 0 10px 45px rgba(3,10,35,.35); overflow-wrap: anywhere; }
.poem-page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.poem-page-meta a { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(9px); }
.poem-byline-row { display: flex; align-items: center; gap: 18px; margin-top: 25px; }
.poem-byline { margin: 0; color: rgba(255,255,255,.7); font-size: .73rem; }
.poem-byline strong { color: var(--pink-300); }
.poem-byline-row button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: transparent; color: #fff; font-size: .65rem; font-weight: 780; cursor: pointer; }
.poem-related { min-height: 360px; }
.poem-reading-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: clamp(58px, 8vw, 96px); }
.poem-reading-intro p { margin: 0; color: var(--blue-900); font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.6rem); }
.poem-reading-intro span { color: var(--pink-700); font-size: .66rem; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.poem-reading-layout { display: grid; grid-template-columns: 125px minmax(0, 760px); justify-content: center; gap: clamp(34px, 7vw, 88px); padding: clamp(34px, 5vw, 58px) 0 clamp(76px, 10vw, 128px); }
.reading-aside { position: sticky; top: 112px; align-self: start; display: grid; justify-items: center; gap: 15px; color: var(--muted); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; }
.reading-line { width: 1px; height: 90px; background: linear-gradient(var(--blue-600), var(--pink-500)); }
.reading-aside a { color: var(--pink-700); font-size: .64rem; font-weight: 800; text-decoration: none; }
.poem-body { position: relative; padding: clamp(36px, 6vw, 72px); border: 1px solid rgba(236,47,135,.2); border-radius: 32px; background: rgba(255,255,255,.96); color: #1c2c59; font-family: var(--serif); font-size: clamp(1.18rem, 2vw, 1.48rem); line-height: 2.05; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.poem-body-mark { position: absolute; top: 17px; left: 23px; color: var(--pink-100); font-family: var(--serif); font-size: 7rem; line-height: 1; pointer-events: none; }
.poem-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(66px, 9vw, 108px); }
.poem-pagination a { display: grid; gap: 7px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; }
.poem-pagination a.next { text-align: right; }
.poem-pagination small { color: var(--muted); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.poem-pagination strong { color: var(--blue-800); font-family: var(--serif); font-size: 1rem; font-weight: 400; }

/* Comments */
.comments-section { padding: clamp(72px, 9vw, 114px) 0; border-top: 1px solid var(--line); background: linear-gradient(135deg, var(--blush), #fff 62%); }
.comments-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); align-items: start; gap: clamp(42px, 7vw, 90px); }
.comments-section h2 { font-size: clamp(2.5rem, 4.6vw, 4.4rem); line-height: 1; }
.comment-stack { display: grid; gap: 23px; margin-top: 32px; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 15px; padding-top: 23px; border-top: 1px solid var(--line); }
.comment-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--blue-700), var(--pink-600)); color: #fff; font-family: var(--serif); }
.comment header { display: flex; justify-content: space-between; gap: 15px; }
.comment header strong { font-size: .78rem; }
.comment time { color: var(--muted); font-size: .63rem; }
.comment p, .no-comments { color: var(--muted); font-family: var(--serif); }
.comment-form { display: grid; gap: 16px; padding: clamp(25px, 4vw, 40px); border: 1px solid rgba(236,47,135,.22); border-radius: 27px; background: #fff; box-shadow: 0 22px 60px rgba(10,34,95,.08); }
.comment-form > p:not(.poems-eyebrow) { margin: 0; color: var(--muted); font-size: .77rem; }
.comment-form label { display: grid; gap: 6px; color: var(--blue-950); font-size: .7rem; font-weight: 780; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--pink-500); background: #fff; }
.comment-form textarea { resize: vertical; }
.comment-form .poems-button { justify-self: start; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice { margin-top: 22px; padding: 12px 15px; border-radius: 10px; font-size: .74rem; }
.notice.success { background: #e6f4ec; color: #245b3c; }
.notice.error { background: #ffe1ed; color: #8c2050; }

/* Footer and system pages */
.not-found { min-height: 70vh; display: grid; align-items: center; padding: 80px 0; }
.not-found h1 { max-width: 800px; font-size: clamp(3.4rem, 8vw, 7rem); line-height: .98; }
.not-found p:not(.poems-eyebrow) { color: var(--muted); }
.poems-footer { padding: clamp(74px, 9vw, 116px) 0 30px; background: var(--blue-950); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr .72fr; gap: clamp(44px, 8vw, 110px); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 42px; color: #fff; font-family: var(--serif); text-decoration: none; }
.footer-brand img { width: 50px; height: 50px; border-radius: 16px; object-fit: cover; }
.footer-kicker { color: var(--pink-300); }
.poems-footer h2 { max-width: 760px; font-size: clamp(2.8rem, 5.8vw, 5.8rem); line-height: 1; }
.footer-grid > div:last-child { align-self: end; }
.footer-grid > div:last-child > p { margin-top: 0; color: rgba(255,255,255,.69); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.footer-links a { color: #fff; font-size: .72rem; font-weight: 780; text-decoration-color: var(--pink-500); text-underline-offset: 4px; }
.footer-bottom { display: flex; align-items: start; justify-content: space-between; gap: 22px; margin-top: 66px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.55); font-size: .68rem; }
.poems-name-note { max-width: 520px; color: rgba(255,255,255,.7); font-size: .7rem; line-height: 1.6; text-align: center; }
.poems-name-note strong { color: var(--pink-300); }

/* All public headings share one uppercase editorial treatment. */
main :where(h1, h2, h3),
.poems-footer h2 {
  font-family: var(--serif);
  font-style: normal;
  text-transform: uppercase;
}

/* Keep every public poem title typographically consistent without changing its stored text. */
:where(
  .floating-poem,
  .theme-poem-links a,
  .poem-card h3,
  .poem-page-header h1,
  .poem-pagination strong
) {
  max-width: 100%;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .collection-hero-grid, .poem-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr); gap: 30px; }
  .section-intro, .comments-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-intro > p { max-width: 600px; }
  .collection-layout { grid-template-columns: 1fr; }
  .collection-filters { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { max-width: 720px; }
}

@media (max-width: 860px) {
  .poems-header { background: var(--paper); backdrop-filter: none; }
  body.menu-open::before { opacity: 1; pointer-events: auto; }
  .poems-menu-button { display: block; padding-inline: 17px; }
  .poems-nav {
    position: fixed;
    inset: 78px 0 0 auto;
    width: min(89vw, 410px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px 24px max(28px, env(safe-area-inset-bottom));
    border-left: 1px solid rgba(255,79,154,.22);
    background: linear-gradient(155deg, #fff, var(--blush));
    box-shadow: -24px 28px 70px rgba(7,24,71,.2);
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, clip-path .28s ease, visibility .28s;
  }
  .poems-nav.open { opacity: 1; clip-path: inset(0); visibility: visible; pointer-events: auto; }
  .poems-nav a { min-height: 62px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--blue-950); font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
  .poems-nav a::before { color: var(--pink-600); font-family: var(--sans); font-size: .63rem; font-weight: 800; }
  .poems-nav a:nth-child(1)::before { content: "01"; }
  .poems-nav a:nth-child(2)::before { content: "02"; }
  .poems-nav a:nth-child(3)::before { content: "03"; }
  .poems-nav a:nth-child(4)::before { content: "04"; }
  .poems-nav a:nth-child(5)::before { content: "05"; }
  .poems-nav a::after { position: static; width: auto; height: auto; background: none; color: var(--pink-600); content: "→"; transform: none; }
  .collection-hero { min-height: auto; }
  .collection-hero-grid, .poem-hero-grid { grid-template-columns: 1fr; }
  .floating-poems { min-height: 300px; }
  .theme-gallery { grid-template-columns: 1fr; }
  .theme-card:first-child { grid-column: auto; min-height: 480px; }
  .poem-grid { grid-template-columns: 1fr; }
  .poem-reading-layout { grid-template-columns: 1fr; }
  .reading-aside { position: static; display: flex; justify-content: space-between; }
  .reading-line { width: 70px; height: 1px; }
}

@media (max-width: 600px) {
  .poems-shell { width: min(100% - 30px, 1240px); }
  .nav-inner { min-height: 72px; }
  .poems-brand span { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
  .poems-brand strong { font-size: .98rem; }
  .poems-nav { top: 72px; }
  .collection-hero { padding: 44px 0 62px; background-position: 76% center; }
  .hero-wash {
    background:
      linear-gradient(180deg, rgba(4,17,57,.58), rgba(4,17,57,.74) 58%, rgba(4,13,43,.84)),
      radial-gradient(circle at 74% 18%, rgba(255,57,146,.22), transparent 36%);
  }
  .collection-hero h1 { font-size: clamp(2.55rem, 12vw, 3.9rem); }
  .collection-lede { font-size: .97rem; }
  .search-control { border-radius: 17px; }
  .search-control button { padding-inline: 14px; }
  .floating-poems { min-height: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px; padding: 28px 0 4px; }
  .floating-poems > span { position: static; width: 100%; margin-bottom: 2px; }
  .floating-poem, .floating-poem-1, .floating-poem-2, .floating-poem-3, .floating-poem-4, .floating-poem-5, .floating-poem-6 { position: static; min-height: 44px; max-width: 100%; display: inline-flex; align-items: center; padding: 10px 13px; font-size: .8rem; animation: none; }
  .hero-scroll { right: 15px; bottom: 15px; }
  .section-intro { gap: 20px; }
  .section-intro h2 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .theme-card, .theme-card:first-child { min-height: 470px; padding: 23px; border-radius: 24px; }
  .theme-card-heading { grid-template-columns: 28px minmax(0, 1fr); }
  .theme-card-heading small { grid-column: 2; }
  .theme-card-heading h3 { font-size: 2.6rem; }
  .theme-poem-links { padding-top: 70px; }
  .collection-filters { grid-template-columns: 1fr; }
  .results-heading { align-items: start; flex-direction: column; }
  .poem-card { min-height: 410px; grid-template-rows: 145px 1fr; }
  .poem-pagination-nav { grid-template-columns: 1fr 1fr; gap: 14px; padding: 15px; }
  .pagination-pages { grid-column: 1 / -1; grid-row: 1; }
  .pagination-direction:last-child { text-align: right; }
  .poem-page-header { min-height: auto; padding: 48px 0 56px; background-position: 70% center; }
  .poem-page-header .hero-wash { background: linear-gradient(180deg, rgba(4,17,57,.56), rgba(8,29,87,.7) 56%, rgba(4,13,43,.86)); }
  .poem-page-header h1 { font-size: clamp(2.55rem, 12vw, 3.9rem); }
  .poem-related { min-height: 300px; }
  .poem-reading-intro { align-items: start; flex-direction: column; gap: 10px; }
  .poem-body { padding: 38px 24px; border-radius: 24px; font-size: 1.15rem; line-height: 1.95; }
  .poem-pagination { grid-template-columns: 1fr; }
  .poem-pagination span:empty { display: none; }
  .poem-pagination a.next { text-align: left; }
  .comment-form .poems-button { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .poems-name-note { max-width: none; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
