/* Poems & Fragments — editorial publication index */
.poems-index-page{
  background: var(--bg);
  color: var(--text);
}

.poems-index-page .site-header{
  background: rgba(13, 9, 10, 0.98);
  border-bottom-color: rgba(243, 235, 221, 0.2);
  backdrop-filter: none;
}

.poems-index-page .nav a{
  color: rgba(243, 235, 221, 0.76);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.poems-index-page .nav a[aria-current="page"]{
  color: #FFF8ED;
}

.poems-hero{
  border-top: 4px double var(--ink);
}

.poems-topline,
.poems-hero .section-label,
.archive-heading .section-label,
.archive-heading-meta,
.poem-entry time,
.poems-index-page .text-link,
.read-poem{
  color: var(--oxblood);
}

.poems-hero h1,
.archive-heading h2,
.compendium-outro h2,
.poem-entry-copy h3{
  color: var(--ink);
}

.poems-hero h2{
  color: var(--oxblood);
}

.poem-entry:hover h3,
.poem-entry:focus-visible h3{
  color: var(--oxblood);
}

.poems-hero{
  padding: clamp(2.25rem, 4.5vw, 3.75rem) 0 clamp(2.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}

.poems-topline{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--accent-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poems-hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: end;
}

.poems-hero h1{
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 4.6rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: none;
}

.poems-hero h2{
  margin: 13px 0 0;
  color: var(--oxblood);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
}

.poems-intro > p{
  max-width: 28ch;
  margin: 0 0 24px;
  color: var(--text);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-style: italic;
  line-height: 1.25;
}

.poems-intro .poems-subscriber-note{
  max-width: 34ch;
  margin: 0 0 18px;
  padding: 11px 14px;
  border-left: 3px solid var(--oxblood);
  background: rgba(134, 24, 42, 0.075);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.poems-subscriber-note strong{
  color: var(--oxblood);
  font-weight: 750;
}

.poems-index-page .text-link,
.read-poem{
  color: var(--accent-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: lowercase;
}

.poem-archive{
  padding: 42px 0 52px;
}

.archive-heading{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 18px;
}

.archive-heading-meta{
  margin: 0;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.archive-heading h2{
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
}

.poem-feed,
.paper-archive article{
  border-bottom: 1px solid var(--border);
}

.poem-feed > article,
.paper-archive article{
  border-top: 1px solid var(--border);
}

.poem-feed > article{
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.2);
}

.poem-entry{
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) minmax(190px, 250px);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
  padding: 26px 0;
  color: inherit;
  text-decoration: none;
}

.poem-entry time{
  align-self: start;
  padding-top: 5px;
  color: var(--accent-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.poem-entry-copy h3{
  max-width: 27ch;
  margin: 0 0 9px;
  color: #15110F;
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
  transition: color 0.2s ease;
}

.poem-entry-copy h3 span{
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.poem-entry-copy > p{
  max-width: 50ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.07rem;
  font-style: italic;
  line-height: 1.45;
}

.poem-entry-actions{
  display: flex;
  align-items: center;
  gap: 14px;
}

.poem-likes{
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 82px;
  padding: 6px 9px;
  border: 1px solid var(--note-border);
  background: var(--note-bg);
  color: var(--oxblood);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.poem-likes > span{
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.18rem;
  line-height: 0.8;
}

.poem-likes strong{
  font-size: 0.82rem;
  font-weight: 600;
}

.poem-likes small{
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.poem-reader-note{
  display: block;
  margin: -4px 0 18px 142px;
  padding: 12px 0 13px;
  border-top: 1px solid var(--border);
  border-left: 0;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.poem-reader-note:hover,
.poem-reader-note:focus-visible{
  background: var(--note-bg);
  border-left-color: var(--oxblood);
}

.poem-reader-note:focus-visible{
  outline: 1px solid var(--note);
  outline-offset: 3px;
}

.reader-note-label{
  display: block;
  margin-bottom: 4px;
  color: var(--oxblood);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.poem-reader-note q{
  display: block;
  max-width: 68ch;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.35;
}

.poem-reader-note cite{
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.poem-entry img{
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 240px;
  justify-self: end;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--ink) 38%, var(--border));
  background: var(--bg-soft);
  object-fit: contain;
  filter: saturate(0.9) contrast(0.98);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.poem-entry:hover h3,
.poem-entry:focus-visible h3{
  color: var(--note);
}

.poem-entry:hover img,
.poem-entry:focus-visible img{
  filter: saturate(1) contrast(1);
  transform: translateY(-2px);
}

.poem-entry:focus-visible{
  outline: 1px solid var(--note);
  outline-offset: 8px;
}

.archive-note{
  width: fit-content;
  max-width: 34ch;
  margin: 18px 4% 18px auto;
  color: var(--note);
  font-size: 1.08rem;
}

.reader-notes{
  padding: 48px 0 52px;
  border-top: 1px solid var(--border);
  background: var(--note-bg);
}

.reader-notes-heading{
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px 40px;
  align-items: baseline;
  margin-bottom: 24px;
}

.reader-notes-heading .section-label{
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.reader-notes-heading h2{
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
}

.reader-notes-heading > p:last-child{
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.08rem;
  font-style: italic;
}

.reader-notes-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reader-note{
  position: relative;
  display: block;
  padding: 24px 24px 21px;
  border: 1px solid var(--note-border);
  background: rgba(243, 235, 221, 0.48);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reader-note:hover,
.reader-note:focus-visible{
  background: rgba(243, 235, 221, 0.78);
  transform: translateY(-2px);
}

.reader-note:focus-visible{
  outline: 1px solid var(--note);
  outline-offset: 5px;
}

.reader-note-mark{
  display: block;
  margin-bottom: 14px;
  color: var(--oxblood);
  font-size: 1.15rem;
}

.reader-note blockquote{
  max-width: 34ch;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  line-height: 1.3;
}

.reader-note cite{
  display: block;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1.55;
  text-transform: uppercase;
}

.reader-note cite em{
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.05em;
  text-transform: none;
}

.paper-archive{
  padding: 42px 0 46px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.published-poems{
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.published-poems article{
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 19px 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

.published-poems article:last-child{
  border-bottom: 0;
}

.published-poem-date,
.published-poems article > a{
  color: var(--oxblood);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
}

.published-poems h3{
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.1;
}

.published-poems p{
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.published-poems article > a{
  white-space: nowrap;
  text-decoration: none;
}

.local-entry img{
  object-position: center 30%;
}

.paper-note{
  max-width: 30ch;
  margin: 22px 0 0 auto;
  color: var(--note);
  font-size: 1.08rem;
}

.compendium-outro{
  padding: 44px 0 50px;
}

.compendium-outro-grid{
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: end;
}

.compendium-outro h2{
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 500;
  line-height: 1.02;
}

.compendium-outro-grid > div:last-child > p{
  max-width: 46ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 800px){
  .poems-hero-grid,
  .compendium-outro-grid,
  .reader-notes-heading{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .poems-intro > p{
    max-width: 34ch;
  }

  .poem-entry{
    grid-template-columns: 82px minmax(0, 1fr) minmax(150px, 190px);
    gap: 24px;
  }
}

@media (max-width: 620px){
  .poems-index-page .site-header{
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .poems-index-page .header-inner{
    align-items: flex-start;
    gap: 8px;
  }

  .poems-index-page .nav{
    gap: 7px 13px;
  }

  .poems-index-page .nav a{
    font-size: 0.59rem;
  }

  .poems-topline{
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .poems-hero h1{
    font-size: clamp(2.9rem, 15vw, 4.1rem);
  }

  .archive-heading{
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .archive-heading-meta{
    margin-top: 3px;
  }

  .poem-entry{
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 21px 0 24px;
  }

  .poem-feed > article{ padding-inline: 13px; }

  .published-poems article{
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .poem-entry time{
    padding-top: 0;
  }

  .poem-entry img{
    grid-row: 2;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    justify-self: start;
  }

  .poem-entry-copy{
    grid-row: 3;
  }

  .poem-reader-note{
    margin: -3px 0 15px;
  }

  .poem-entry-copy h3{
    max-width: none;
    font-size: 1.55rem;
  }

  .archive-note{
    margin-right: 0;
  }

  .reader-notes-grid{
    grid-template-columns: 1fr;
  }
}
