/**
 * page-in-memoriam.css
 *
 * Scoped styles for template-in-memoriam.php only.
 * Enqueue conditionally: is_page_template( 'template-in-memoriam.php' )
 *
 * All global styles (reset, vars, nav, buttons, footer, breadcrumb,
 * .seo-h1, .hero-headline) are already in main.css.
 *
 * Sections:
 *   1. Hero
 *   2. First Brother Spotlight
 *   3. Roll of Honor
 *   4. Poem
 *   5. Submission Note
 *   6. Responsive — max-width: 900px
 */


/* =============================================================================
   1. HERO
   ============================================================================= */

.memoriam-hero {
  padding: 140px 0 100px;
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 184, 184, 0.12);
}

.memoriam-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Eyebrow — italic serif with flanking rules on both sides */
.memoriam-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--silver);
  margin-bottom: 36px;
  font-weight: 500;
}

.memoriam-eyebrow::before,
.memoriam-eyebrow::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--silver);
}

/* Display headline — pulled from psp_page_headlines via .hero-headline in main.css.
   The .italic fragment inside it gets a page-specific override: block + smaller
   size so it reads as a subtitle line rather than inline continuation. */
.memoriam-hero .hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.memoriam-hero .hero-headline .italic {
  display: block;
  font-size: 0.75em;
  margin-top: 14px;
  letter-spacing: 0.02em;
  color: var(--silver-light);
  /* Override the silver-grad clip used on other pages — plain color here */
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--silver-light);
}

/* Dedication paragraph */
.memoriam-dedication {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: var(--silver-light);
  max-width: 620px;
  margin: 0 auto 56px;
  font-weight: 400;
}

/* Creed blockquote */
.memoriam-creed {
  padding: 48px 40px;
  border-top: 1px solid rgba(184, 184, 184, 0.2);
  border-bottom: 1px solid rgba(184, 184, 184, 0.2);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.memoriam-creed p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
}

/* Optional attribution — hidden via PHP when field is empty */
.memoriam-creed cite {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 600;
}


/* =============================================================================
   2. FIRST BROTHER SPOTLIGHT
   ============================================================================= */

.first-brother {
  padding: 120px 0;
  background: var(--black);
  border-bottom: 1px solid rgba(184, 184, 184, 0.08);
}

/* Section label with flanking rules */
.first-brother-label {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--silver);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.first-brother-label::before,
.first-brother-label::after {
  content: "";
  width: 64px;
  height: 1px;
  background: var(--silver);
}

/* Inverted card — light background on dark page */
.first-brother-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 48px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
  background: #ededed;
}

/* Dark top-bar accent on the card */
.first-brother-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: #0a0a0a;
}

/* "Sir" — small italic serif above the name */
.first-brother-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #5a5a5a;
  margin-bottom: 12px;
}

.first-brother-name {
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 54px);
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.first-brother-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: 16px;
  color: #2a2a2a;
  font-weight: 400;
}

.first-brother-dates .date-sep {
  font-size: 20px;
  color: #888;
  font-weight: 300;
}

/* Chapter name — outlined badge */
.first-brother-chapter {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 36px;
}

/* Memorial note — rules-separated italic paragraph */
.first-brother-note {
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a2a;
  max-width: 540px;
  margin: 0 auto;
  font-weight: 400;
}


/* =============================================================================
   3. ROLL OF HONOR
   ============================================================================= */

.roll {
  padding: 120px 0;
  background: var(--black);
  border-bottom: 1px solid rgba(184, 184, 184, 0.08);
}

.roll-intro {
  text-align: center;
  margin-bottom: 72px;
}

/* Section label with flanking rules */
.roll-intro-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--silver);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.roll-intro-label::before,
.roll-intro-label::after {
  content: "";
  width: 64px;
  height: 1px;
  background: var(--silver);
}

.roll-intro h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.005em;
}

.roll-intro h2 .italic {
  font-style: italic;
  font-weight: 500;
  color: var(--silver-light);
}

/* The list itself */
.roll-list {
  max-width: 880px;
  margin: 0 auto;
  list-style: none;
  border-top: 1px solid rgba(184, 184, 184, 0.15);
}

/* Each row: name block left, meta right */
.roll-entry {
  padding: 32px 8px;
  border-bottom: 1px solid rgba(184, 184, 184, 0.15);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  transition: background 0.3s;
}

.roll-entry:hover {
  background: rgba(184, 184, 184, 0.02);
}

.roll-name-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Honorific — "Sir" in small italic above the name */
.roll-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--silver);
  letter-spacing: 0.05em;
}

.roll-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

/* Right-aligned meta block */
.roll-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  align-items: flex-end;
}

.roll-dates {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--silver-light);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
}

.roll-dates .date-sep {
  color: var(--silver);
  font-weight: 300;
  font-size: 16px;
}

.roll-chapter {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 600;
}


/* =============================================================================
   4. POEM
   ============================================================================= */

.poem {
  padding: 140px 0;
  background: var(--black);
  border-bottom: 1px solid rgba(184, 184, 184, 0.08);
  position: relative;
}

.poem-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* Section label row with flanking rules */
.poem-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}

.poem-title-row::before,
.poem-title-row::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--silver-dark);
}

.poem-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--silver-dark);
  text-transform: uppercase;
  font-weight: 500;
}

.poem-heading {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

/* Wysiwyg output — all stanzas italic serif */
.poem-body {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.9;
  color: var(--silver-light);
  font-weight: 400;
  font-style: italic;
}

.poem-body p {
  margin-bottom: 1.6em;
}

.poem-body p:last-child {
  margin-bottom: 0;
}

/* Attribution — em-dash prepended via pseudo-element */
.poem-attribution {
  margin-top: 48px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.poem-attribution::before {
  content: "\2014";
  color: var(--silver);
}


/* =============================================================================
   5. SUBMISSION NOTE
   ============================================================================= */

.memoriam-note {
  padding: 80px 0 120px;
  background: var(--black);
  text-align: center;
}

.memoriam-note-inner {
  max-width: 560px;
  margin: 0 auto;
}

.memoriam-note h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.memoriam-note p {
  font-size: 15px;
  color: var(--silver-light);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}


/* =============================================================================
   6. RESPONSIVE — max-width: 900px
   ============================================================================= */

@media (max-width: 900px) {

  /* Hero */
  .memoriam-hero {
    padding: 72px 0 64px;
  }

  .memoriam-hero .hero-headline {
    font-size: clamp(36px, 9vw, 52px);
  }

  .memoriam-dedication {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .memoriam-creed {
    padding: 32px 24px;
  }

  .memoriam-creed p {
    font-size: 20px;
  }

  /* First Brother */
  .first-brother {
    padding: 64px 0;
  }

  .first-brother-card {
    padding: 44px 28px;
  }

  .first-brother-name {
    font-size: clamp(28px, 7vw, 38px);
  }

  /* Stack the dates vertically and drop the separator */
  .first-brother-dates {
    flex-direction: column;
    gap: 6px;
  }

  .first-brother-dates .date-sep {
    display: none;
  }

  /* Roll */
  .roll {
    padding: 64px 0;
  }

  /* Stack name and meta into a single column */
  .roll-entry {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 4px;
  }

  .roll-meta {
    text-align: left;
    align-items: flex-start;
  }

  .roll-name {
    font-size: 19px;
  }

  /* Poem */
  .poem {
    padding: 80px 0;
  }

  .poem-body {
    font-size: 16px;
    line-height: 1.8;
  }

  /* Submission note */
  .memoriam-note {
    padding: 56px 0 80px;
  }
}
