/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

/* ═══════════════════════════════════════════
   POETRY SITE — CHILD THEME STYLES
   ═══════════════════════════════════════════ */

:root {
  --ink:       #1a1a1a;
  --mid:       #4a4a4a;
  --muted:     #767676;
  --rule:      #e0d9d0;
  --parchment: #faf8f4;
  --accent:    #8b2c2c;
  --card-bg:   #f4f1ec;
  --white:     #ffffff;
  --radius:    5px;
  --ff-display: 'Georgia', serif;
  --ff-body:    Georgia, 'Times New Roman', serif;
  --ff-ui:      -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── GLOBAL ─── */
.poet-page, .poem-page, .archive-page {
  font-family: var(--ff-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════
   SINGLE POET PAGE
   ═══════════════════════════════════════ */

.poet-page {
  /* Hero is full-bleed; inner content is constrained below */
}

/* ── Hero Image — full width, no side padding ── */
.poet-hero {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 0;
  line-height: 0;       /* removes gap under img */
}
.poet-hero img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center top;   /* keep face visible */
  display: block;
}
.poet-hero-caption {
  font-family: var(--ff-ui);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  padding: 5px 16px;
  background: var(--parchment);
  line-height: 1.4;
  margin: 0;
}

/* ── Inner wrapper (title + columns + poems) ── */
.poet-header,
.poet-content-grid,
.poet-poems {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Title / Breadcrumb ── */
.poet-header {
  padding-top: 36px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 36px;
}
.poet-breadcrumb {
  font-family: var(--ff-ui);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.poet-breadcrumb a { color: var(--accent); text-decoration: none; }
.poet-breadcrumb a:hover { text-decoration: underline; }
.poet-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 6px;
}
.poet-website-link {
  font-family: var(--ff-ui);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}
.poet-website-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   TWO-COLUMN GRID
   Left  : Biography + era tags
   Right : Quick Facts sidebar (sticky)
   ══════════════════════════════════════════════ */
.poet-content-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 52px;
  align-items: start;
  margin-bottom: 52px;
}

/* Biography */
.poet-bio-col {}
.poet-bio {
  font-size: 17px;
  line-height: 1.85;
  font-weight: 300;
}
.poet-bio p { margin-bottom: 1em; }

/* Era tags */
.poet-era-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.poet-tag {
  font-family: var(--ff-ui);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 11px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--mid);
  background: var(--white);
}

/* ── Quick Facts sidebar (auto — all ACF fields rendered by PHP loop) ── */
.poet-facts-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0 20px;
  position: sticky;
  top: 24px;
}
.poet-facts-title {
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.poet-fact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.poet-fact-row:last-child { border-bottom: none; }
.poet-fact-key {
  font-family: var(--ff-ui);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.poet-fact-val {
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

/* ── Poems List — full width below grid ── */
.poet-poems {
  margin-bottom: 60px;
  border-top: 2px solid var(--rule);
  padding-top: 28px;
}
.poet-poems-title {
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 0;
}
.poet-poems ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.poet-poems ul li {
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
.poet-poems ul li a {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  text-decoration: none;
  display: block;
}
.poet-poems ul li a:hover { text-decoration: underline; }
.poet-poems-none {
  font-family: var(--ff-ui);
  font-size: 14px;
  color: var(--muted);
  padding: 16px 0;
}

/* ═══════════════════════════════════════
   SINGLE POEM PAGE
   ═══════════════════════════════════════ */

.poem-page {
  max-width: 860px;
  margin: 50px auto;
  padding: 0 24px;
}

/* ── Poem Header ── */
.poem-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 36px;
}
.poem-breadcrumb {
  font-family: var(--ff-ui);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.poem-breadcrumb a { color: var(--accent); text-decoration: none; }
.poem-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.1;
}
.poem-author-line {
  font-family: var(--ff-ui);
  font-size: 15px;
  color: var(--mid);
}
.poem-author-line a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.poem-author-line a:hover { text-decoration: underline; }

/* ── Poem Body ── */
.poem-body {
  font-size: 20px;
  line-height: 2.0;
  margin-bottom: 60px;
  white-space: pre-wrap;        /* preserve line breaks */
}
.poem-body p { margin-bottom: 1.4em; }

/* ── About Poet Box ── */
.poem-about-poet {
  border-top: 2px solid var(--rule);
  padding-top: 36px;
  margin-bottom: 50px;
}
.poem-about-title {
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.poem-about-box {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.poem-about-photo {
  width: 160px;
  flex-shrink: 0;
}
.poem-about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}
.poem-about-content { flex: 1; }
.poem-about-poet-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.poem-about-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 14px;
}
.poem-read-more {
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity .15s;
}
.poem-read-more:hover { opacity: .7; }

/* ── More Poems ── */
.poem-more-poems {
  border-top: 2px solid var(--rule);
  padding-top: 32px;
  margin-bottom: 50px;
}
.poem-more-title {
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.poem-more-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.poem-more-list li {
  border-bottom: 1px solid var(--rule);
  padding: 11px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.poem-more-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.poem-more-list a {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  text-decoration: none;
}
.poem-more-list a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   ARCHIVE: POETS LIST
   ═══════════════════════════════════════ */

.archive-page {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 24px;
}
.archive-page-title {
  font-size: 2.4rem;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}
.poet-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}
.poet-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s;
}
.poet-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.poet-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.poet-card-body { padding: 18px; }
.poet-card h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.poet-card h2 a { color: var(--ink); text-decoration: none; }
.poet-card h2 a:hover { color: var(--accent); }
.poet-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 14px;
}
.read-profile {
  font-family: var(--ff-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .05em;
}
.read-profile:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   ARCHIVE: POEMS LIST
   ═══════════════════════════════════════ */

.poem-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.poem-archive-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.poem-archive-list .poem-archive-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-style: italic;
  margin-bottom: 4px;
}
.poem-archive-list .poem-archive-title a {
  color: var(--ink);
  text-decoration: none;
}
.poem-archive-list .poem-archive-title a:hover { color: var(--accent); }
.poem-archive-byline {
  font-family: var(--ff-ui);
  font-size: 13px;
  color: var(--muted);
}
.poem-archive-byline a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.poem-archive-byline a:hover { text-decoration: underline; }

/* ── Pagination ── */
.archive-pagination {
  margin-top: 48px;
  text-align: center;
  font-family: var(--ff-ui);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {

  /* Hero image shorter on mobile */
  .poet-hero img { height: 320px; }

  /* Two-col → single col: bio then quick facts then poems */
  .poet-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Quick Facts: un-stick, sits naturally after bio */
  .poet-facts-sidebar { position: static; }

  /* Poem page about box */
  .poem-about-box { flex-direction: column; }
  .poem-about-photo { width: 140px; }

  /* Archive grid: 2 cols on tablet */
  .poet-archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .poet-hero img { height: 240px; }
  .poet-archive-grid { grid-template-columns: 1fr; }
}
