/* AGNI-adjacent poetry layout: hub index + full poem pages (GradMag) */

/* ——— Hub (poetry.html) ——— */
.poetry-back {
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #555;
  text-decoration: none;
}
.poetry-back:hover { text-decoration: underline; color: #1a1a1a; }

.poetry-hub__tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  text-align: center;
  max-width: 32em;
  margin: 0.25rem auto 2.25rem;
  line-height: 1.55;
  font-weight: 400;
}

.poetry-index__kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888;
  margin: 0 0 1.25rem;
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

ul.poetry-cards {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  border-top: 1px solid #e8e8e8;
}
ul.poetry-cards > li { margin: 0; padding: 0; }

a.poetry-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.65rem 0.5rem 1.75rem;
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.18s ease;
}
a.poetry-card h2 { transition: color 0.15s ease; }
@media (hover: hover) {
  a.poetry-card:hover { background: #fafafa; }
  a.poetry-card:hover h2 { color: #0d0d0d; }
}

a.poetry-card h2,
.poetry-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 400;
  margin: 0 0 0.4rem;
  color: #1a1a1a;
  line-height: 1.2;
}
.poetry-card__by { font-size: 0.88rem; color: #4a4a4a; margin: 0 0 0.5rem; }
.poetry-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5c5c5c;
  margin: 0 0 0.4rem;
  max-width: 40em;
}
.poetry-card__more {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin: 0.4rem 0 0;
}
a.poetry-card .poetry-card__more { color: #555; }
a.poetry-card:hover .poetry-card__more { text-decoration: underline; text-underline-offset: 0.15em; }
.poetry-card__meta {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9a9a9a;
  margin: 0.35rem 0 0;
}
.poetry-card__meta--online { color: #1a1a1a; font-weight: 600; }

/* ——— Single poem page ——— */
.poetry-breadcrumb {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a8a8a;
  margin: 0 0 0.5rem;
}
.poetry-breadcrumb a { color: #666; text-decoration: none; }
.poetry-breadcrumb a:hover { text-decoration: underline; }

.poem-article {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  box-sizing: border-box;
}
.poem-article--single { padding-top: 0.5rem; }
.poem-article h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0.35rem 0 0.4rem;
  color: #111;
  letter-spacing: -0.02em;
}
.poem-article .poem-byline {
  font-size: 0.98rem;
  color: #3d3d3d;
  margin: 0 0 0.2rem;
}
.poem-article .poem-byline .role { color: #666; font-weight: 500; }
.poem-article .poem-pub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin: 0.75rem 0 2.5rem;
}
.poem-article .poem-pub--online { color: #1a1a1a; font-weight: 600; }
.poem-article .poem-text p {
  font-size: 1.06rem;
  line-height: 1.9;
  color: #2a2a2a;
  margin: 0 0 1.15rem;
  font-weight: 400;
}
.poem-article .poem-text p:last-of-type { margin-bottom: 0; }
.poem-article .poem-text .poem-dent {
  display: block;
  padding-left: 1.35em;
  margin: 0;
  text-indent: 0;
}

.poem-article hr.poem-explain-sep {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 2.25rem 0 1.4rem;
}
.poem-article .poem-prose p {
  font-size: 0.94rem;
  line-height: 1.78;
  color: #444;
  margin: 0 0 1rem;
  max-width: 40em;
}
.poem-article .poem-prose p:last-child { margin-bottom: 0; }
.poem-article pre.poem-board {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  background: #f4f4f4;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  padding: 0.8rem 1rem;
  margin: 0.3rem 0 1.1rem;
  max-width: 12.5rem;
  color: #1a1a1a;
}

.poem-article + .poem-article { margin-top: 0; } /* if needed */

.poem-index-footer {
  margin: 2.5rem 1.5rem 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}
.poem-skip-link {
  position: absolute;
  left: -99rem;
  top: 0.5rem;
  z-index: 10;
}
.poem-skip-link:focus { left: 0.5rem; background: #fff; padding: 0.2rem 0.5rem; }
