/* ==================================================
   ARIANNA HOGAN — INDIVIDUAL POEM PAGE TEMPLATE
   Save this file as: css/page-poem.css

   Use for:
   - illumination.html
   - sea-glass.html
   - cloak.html
   - phoenix.html
   - etc.

   To change the hero image per poem page, edit the inline style in the HTML:
   <section class="poem-hero" style="--hero-image: url('assets/img/poetry/card-illumination.jpg');">

   Palette:
   black, charcoal, bone, smoky blush, sepia.
   No gold.
================================================== */


/* -----------------------------
   1. BRAND VARIABLES
   These control the whole poem-page colour system.
----------------------------- */

:root {
  --black: #050505;
  --boudoir-black: #0B0808;
  --charcoal: #1C1C1C;
  --soft-black: #14100F;

  --bone: #F3EADF;
  --ivory: #FAF8F5;

  --blush-smoke: #D8B8B3;
  --blush: #F3E3DF;
  --sepia: #8A6F52;

  --line: rgba(243, 234, 223, 0.14);
  --max-width: 1240px;
}


/* -----------------------------
   2. BASIC RESET
   Removes browser default spacing and keeps sizing predictable.
----------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--bone);
  font-family: "Lato", sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-bottom: 1.25rem;
}


/* -----------------------------
   3. GLOBAL CONTAINER
   Keeps content centred and prevents it stretching too wide.
----------------------------- */

.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}


/* -----------------------------
   4. HEADER / NAVIGATION
   Top navigation for individual poem pages.
----------------------------- */

.poem-header {
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
  padding: 1.35rem 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bone);
}

.logo span {
  display: block;
  margin-top: 0.16rem;

  font-family: "Lato", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blush-smoke);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(243, 234, 223, 0.74);
}

.nav-links a:hover {
  color: var(--blush-smoke);
}


/* -----------------------------
   5. HERO SECTION
   Full cinematic opening section.
   The background image comes from the HTML variable:
   style="--hero-image: url('assets/img/poetry/your-image.jpg');"
----------------------------- */

.poem-hero {
  position: relative;
  min-height: 84vh;

  display: grid;
  align-items: center;
  overflow: hidden;

  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

/* Darkens the hero image so the text is readable. */
.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(5, 5, 5, 0.25),
      rgba(5, 5, 5, 0.86)
    ),
    radial-gradient(
      circle at 50% 30%,
      rgba(138, 111, 82, 0.18),
      transparent 34%
    );
}

/* Holds the hero title and subtitle above the overlay. */
.hero-inner {
  position: relative;
  z-index: 2;

  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

/* Small uppercase label, e.g. "The Narcissus Collection". */
.eyebrow,
.note-kicker {
  font-family: "Lato", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blush-smoke);
  font-weight: 700;
  margin-bottom: 1.3rem;
}

/* Main poem title in typewriter style. */
.poem-hero h1 {
  font-family: "Courier Prime", monospace;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--bone);

  text-shadow: 0 0 26px rgba(243, 234, 223, 0.16);
  margin-bottom: 1.4rem;
}

/* Subtitle under the title. */
.hero-subtitle {
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: rgba(243, 234, 223, 0.82);
}

/* Small scroll cue under the hero subtitle. */
.read-cue {
  display: inline-block;
  margin-top: 2rem;

  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blush-smoke);
}


/* -----------------------------
   6. COLLECTION NOTE
   Short atmospheric note before the poem begins.
----------------------------- */

.collection-note {
  padding: clamp(3rem, 6vw, 5rem) 0;

  background:
    linear-gradient(
      180deg,
      rgba(5, 5, 5, 1),
      rgba(11, 8, 8, 1)
    );

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-grid {
  max-width: 820px;
}

/* Large literary note text. */
.collection-note p:not(.note-kicker) {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: var(--blush-smoke);
}


/* -----------------------------
   7. POEM SECTION
   Main poem reading area.
----------------------------- */

.poem-section {
  padding: clamp(5rem, 9vw, 8rem) 0;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(138, 111, 82, 0.08),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      var(--black),
      var(--boudoir-black)
    );
}

/* Narrower column for poem readability. */
.poem-container {
  max-width: 760px;
}

/* Title block above the poem text. */
.poem-title-block {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.poem-title-block h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  font-weight: 500;
  line-height: 0.95;
  color: var(--bone);
}

/* Actual poem body: typewriter-style text. */
.poem-body,
.poem-ending {
  font-family: "Courier Prime", monospace;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgba(243, 234, 223, 0.9);
}

.poem-body p {
  margin-bottom: 1.9rem;
}


/* -----------------------------
   8. REFRAIN STYLE
   For repeated lines such as "illumination."
----------------------------- */

.refrain {
   margin: 0.5rem 0 1.5rem;
    color: ivory;
    font-style: italic;
   
}


/* -----------------------------
   9. DRAMATIC ENDING
   Gives the final stanza its own visual weight.
----------------------------- */

.poem-ending {
  margin-top: clamp(5rem, 10vw, 8rem);
  padding-top: clamp(4rem, 8vw, 6rem);

  border-top: 1px solid rgba(216, 184, 179, 0.28);

  text-align: center;
  min-height: 70vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.poem-ending p {
  margin-bottom: 1.8rem;
}

/* Final word of the poem, e.g. "Illumination." */
.final-word {
  font-family: "Courier Prime", monospace;
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--blush-smoke);
  letter-spacing: 0.06em;
  text-shadow: 0 0 22px rgba(216, 184, 179, 0.16);
}


/* -----------------------------
   10. PREVIOUS / NEXT POEM NAVIGATION
----------------------------- */

.poem-nav {
  background: var(--boudoir-black);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.poem-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.nav-card {
  border: 1px solid rgba(243, 234, 223, 0.12);
  padding: 1.4rem;
  background: rgba(243, 234, 223, 0.035);
  transition: 0.25s ease;
}

.nav-card:hover {
  border-color: rgba(216, 184, 179, 0.38);
  transform: translateY(-3px);
}

.nav-card span {
  display: block;
  margin-bottom: 0.35rem;

  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush-smoke);
}

.nav-card strong {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--bone);
}


/* -----------------------------
   11. FOOTER
----------------------------- */

.poem-footer {
  background: var(--black);
  color: rgba(243, 234, 223, 0.62);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.82rem;
}


/* -----------------------------
   12. RESPONSIVE STYLES
   Adjusts layout for tablets and phones.
----------------------------- */

@media (max-width: 840px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
  }

  .poem-hero h1 {
    letter-spacing: 0.08em;
  }

  .poem-nav-grid {
    grid-template-columns: 1fr;
  }

  .refrain {
    margin-left: 0;
  }
}
