:root {
  --ink: #101c2c;
  --ink-soft: #26364b;
  --paper: #f7f8fa;
  --reading-paper: #fbfcfd;
  --white: #ffffff;
  --red: #e84837;
  --blue: #0f75a8;
  --line: #d9dde3;
  --muted: #637083;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.site-header { max-width: var(--max); margin: 0 auto; min-height: 84px; padding: 18px 30px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 2px; font-family: Georgia, serif; font-weight: 400; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-header nav a { color: var(--ink-soft); font-size: .92rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--red); }

.opening { max-width: var(--max); margin: 0 auto; padding: 72px 30px 92px; }
.opening-copy { max-width: 900px; padding-left: 24px; border-left: 7px solid var(--red); }
.kicker, .eyebrow { margin: 0 0 12px; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.title-accent { display: block; width: 52px; height: 4px; margin: 0 0 20px; background: var(--red); }
.opening h1, .section-heading h2, .author-band h2, .about-page h1, .poem-meta h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
.opening h1 { margin: 0 0 28px; font-size: clamp(3.25rem, 7vw, 6.5rem); }
.opening h1 em { color: var(--blue); font-weight: 400; }
.intro { max-width: 42rem; margin: 0 0 26px; color: var(--ink-soft); font-size: 1.08rem; }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 750; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link.light { color: white; }

.poem-text span, .entry-poem span { display: block; }
.stanza-gap { height: 1rem; }

.collection { padding: 88px max(30px, calc((100vw - var(--max)) / 2)); background: var(--reading-paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); }
.search input { width: min(370px, 42vw); padding: 13px 4px; border: 0; border-bottom: 2px solid var(--ink); outline: 0; background: transparent; color: var(--ink); }
.search input:focus { border-color: var(--red); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; padding: 24px 0 16px; border-top: 1px solid var(--line); }
.filters button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: white; cursor: pointer; font-size: .86rem; font-weight: 700; }
.filters button:hover, .filters button.active { color: white; border-color: var(--ink); background: var(--ink); }
.result-count { margin: 0 0 26px; color: var(--muted); font-size: .85rem; }

.poem-feed { border-top: 1px solid var(--line); }
.poem-entry { padding: 68px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(42px, 7vw, 92px); align-items: center; }
.poem-entry[hidden] { display: none; }
.poem-entry.is-reverse .entry-media { order: 2; }
.poem-entry.is-reverse .entry-copy { order: 1; }
.video-frame { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-feature { margin: 48px 0; padding: 58px; border: 0; background: var(--ink); color: #fff; }
.video-feature .entry-copy h3 a { color: #fff; }
.video-feature .entry-poem { color: #eef1f4; }
.video-feature .eyebrow { color: #ff7a6c; }
.poem-video { margin-bottom: 24px; }
.entry-media a { position: relative; display: block; background: #edf0f3; text-decoration: none; }
.photo-stack { position: relative; isolation: isolate; }
.photo-stack::before, .photo-stack::after { content: ""; position: absolute; inset: 8px -8px -8px 8px; z-index: 0; border: 1px solid var(--line); background: #fff; }
.photo-stack::after { inset: 4px -4px -4px 4px; }
.photo-stack img { position: relative; z-index: 1; }
.photo-count { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 7px 11px; color: #fff; background: rgba(16, 28, 44, .9); font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
.entry-media img { width: 100%; height: auto; max-height: 680px; object-fit: contain; }
.image-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: white; background: var(--blue); font-family: Georgia, serif; font-size: 6rem; }
.entry-copy { max-width: 540px; }
.entry-copy h3 { margin: 0 0 28px; font-family: Georgia, serif; font-size: clamp(2.3rem, 4.6vw, 4.8rem); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; }
.entry-copy h3 a { text-decoration: none; }
.entry-copy h3 a:hover { color: var(--red); }
.entry-poem { padding-left: 28px; border-left: 4px solid var(--red); font-family: Georgia, serif; font-size: clamp(1.08rem, 1.55vw, 1.3rem); line-height: 1.72; }
.no-results { padding: 60px 0; color: var(--muted); text-align: center; }

.serial-entry { display: block; }
.serial-heading { max-width: 850px; margin-bottom: 38px; }
.serial-heading h3 { margin: 0 0 22px; font-family: Georgia, serif; font-size: clamp(2.3rem, 4.6vw, 4.8rem); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; }
.serial-heading h3 a { text-decoration: none; }
.serial-introduction { max-width: 560px; padding-left: 28px; border-left: 4px solid var(--red); font-family: Georgia, serif; font-size: clamp(1.08rem, 1.55vw, 1.3rem); line-height: 1.72; }
.serial-introduction span, .serial-day-copy span { display: block; }
.serial-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.serial-day { min-width: 0; border-top: 4px solid var(--red); background: #f5f6f7; }
.serial-day figure { margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #e9ecef; }
.serial-day img { width: 100%; height: 100%; object-fit: contain; }
.serial-day-copy { padding: 28px 30px 32px; font-family: Georgia, serif; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.65; }
.serial-day-copy h4 { margin: 0 0 14px; color: var(--red); font-family: Arial, sans-serif; font-size: .86rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.author-band { padding: 100px max(30px, calc((100vw - var(--max)) / 2)); color: white; background: var(--ink); }
.author-band h2 { max-width: 850px; margin: 0 0 28px; font-size: clamp(2.5rem, 5vw, 5rem); }
.author-band > p:not(.kicker) { max-width: 680px; margin: 0 0 28px; color: #d7dee7; font-size: 1.08rem; }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 34px 30px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .85rem; }
.site-footer p { margin: 0; }

.poem-layout { max-width: 1040px; margin: 0 auto; padding: 70px 30px 110px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); column-gap: 70px; }
.poem-meta { grid-column: 1 / -1; max-width: 900px; margin-bottom: 52px; }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--red); }
.poem-meta h1 { max-width: 900px; margin: 0; font-size: clamp(3.2rem, 7vw, 7.5rem); overflow-wrap: anywhere; }
.media-summary { margin: 20px 0 0; color: var(--muted); font-size: .88rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.poem-visuals { grid-column: 1; }
.poem-visuals figure { margin: 0 0 24px; }
.poem-visuals img { width: 100%; max-height: 760px; object-fit: contain; object-position: left top; background: #edf0f3; }
.poem-visuals.martial-triptych { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.poem-visuals.martial-triptych figure { margin: 0; }
.poem-visuals.martial-triptych figure:nth-child(3) { grid-column: 1 / -1; margin-top: 6px; }
.poem-visuals.martial-triptych figure:nth-child(-n+2) img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.poem-visuals.martial-triptych figure:nth-child(3) img { width: 100%; aspect-ratio: auto; object-fit: contain; }
.poem-text { grid-column: 2; align-self: start; padding: 36px 0 36px 36px; border-left: 5px solid var(--red); font-family: Georgia, serif; font-size: clamp(1.15rem, 1.7vw, 1.42rem); line-height: 1.72; white-space: normal; }
.serial-page { display: block; max-width: var(--max); }
.serial-page .poem-meta { margin-bottom: 42px; }
.serial-page .detail-introduction { margin-bottom: 42px; }
.serial-page .serial-days { max-width: 1040px; }
.poem-pagination { max-width: 1040px; margin: 0 auto 90px; padding: 34px 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.poem-pagination a { text-decoration: none; }
.poem-pagination a.next { text-align: right; }
.poem-pagination span { display: block; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.poem-pagination strong { font-family: Georgia, serif; font-size: 1.25rem; }

.about-page { max-width: var(--max); margin: 0 auto; padding: 90px 30px 120px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: start; }
.about-page h1 { margin: 0 0 36px; font-size: clamp(4rem, 8vw, 8rem); }
.about-page section > p:not(.kicker) { max-width: 690px; color: var(--ink-soft); font-size: 1.08rem; }
.about-page .about-lead { color: var(--ink) !important; font-family: Georgia, serif; font-size: 1.6rem !important; line-height: 1.45; }
.about-page aside { min-height: 420px; padding: 60px; display: flex; flex-direction: column; justify-content: end; color: white; background: var(--blue); }
.about-page blockquote { margin: 0 0 22px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; }
.about-page cite { font-style: normal; font-weight: 750; }
.button-link { display: inline-block; margin-top: 18px; padding: 13px 20px; color: white; background: var(--ink); text-decoration: none; font-weight: 750; }
.button-link:hover { background: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .poem-entry { grid-template-columns: 1fr; }
  .poem-entry.is-reverse .entry-media, .poem-entry.is-reverse .entry-copy { order: initial; }
  .entry-copy { max-width: 680px; }
  .poem-layout { grid-template-columns: 1fr; }
  .poem-visuals, .poem-text { grid-column: 1; }
  .poem-visuals.martial-triptych { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poem-text { margin-top: 36px; }
  .serial-days { grid-template-columns: 1fr; }
  .about-page { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 18px; align-items: flex-start; }
  .brand span:last-child { display: none; }
  .site-header nav { gap: 14px; padding-top: 8px; }
  .site-header nav a { font-size: .82rem; }
  .opening { padding: 36px 18px 64px; gap: 36px; }
  .opening-copy { padding-left: 16px; }
  .opening h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .collection { padding: 64px 18px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search input { width: 100%; }
  .poem-entry { padding: 46px 0; gap: 30px; }
  .entry-media img { max-height: none; }
  .photo-count { top: 10px; right: 10px; }
  .video-feature { margin: 30px 0; padding: 30px 22px; }
  .entry-copy h3 { margin-bottom: 22px; }
  .entry-poem { padding-left: 20px; }
  .serial-introduction { padding-left: 20px; }
  .serial-day-copy { padding: 24px 22px 28px; }
  .author-band { padding: 72px 18px; }
  .site-footer { padding: 26px 18px; flex-direction: column; }
  .poem-layout { padding: 44px 18px 70px; }
  .poem-meta { margin-bottom: 36px; }
  .poem-meta h1 { font-size: clamp(3rem, 15vw, 5.5rem); }
  .poem-text { padding: 24px 0 24px 22px; }
  .poem-visuals.martial-triptych { gap: 10px; }
  .poem-pagination { margin-bottom: 56px; padding: 26px 18px 0; }
  .about-page { padding: 60px 18px 80px; }
  .about-page aside { min-height: 340px; padding: 36px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
