/*
 * Faith Matters Article Page Styles
 * Matches FM email visual language with proper reading ergonomics
 */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #6B6B6B;
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  font-size: 18px;
  line-height: 1.7;
  color: #365614;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

/* Canonical anchor state baseline. */
:where(a, a:link, a:visited, a:hover, a:active, a:focus) {
  color: inherit;
  text-decoration: none;
}

:where(a:focus-visible) {
  outline: 2px solid #A27E2D;
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT — 780px readable column
   ───────────────────────────────────────────────────────────── */

.fm-article {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  background: #FFFFFF;
}

.fm-article-inner {
  padding: 0 48px;
}

@media (max-width: 600px) {
  .fm-article-inner {
    padding: 0 24px;
  }
}

/* ─────────────────────────────────────────────────────────────
   HEADER — FM brand bar
   ───────────────────────────────────────────────────────────── */

.fm-header {
  background: #FFFFFF;
  text-align: center;
  padding: 0;
  border-bottom: 1px solid #A27E2D;
}

.fm-header a {
  display: inline-block;
}

.fm-header img {
  display: block;
  max-width: 100%;
  height: auto;
}

.fm-pub-bar {
  background: #A27E2D;
  height: 28px;
  line-height: 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   BRACKETED SECTION HEADLINE — ○─| the Q |─○
   Matches FM email "FRAY T treatment"
   ───────────────────────────────────────────────────────────── */

.fm-section-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 30px;
  background: #D6E2C0;
}

/* Circle — 5px cell with 3px+1px border circle inside, directly adjacent to bracket */
.fm-bracket-circle {
  width: 5px;
  height: 5px;
  border: 1px solid #365614;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bracket — 61w × 29h, horizontal line touches circle, vertical at far end */
.fm-bracket-left,
.fm-bracket-right {
  width: 61px;
  height: 29px;
  flex-shrink: 0;
  position: relative;
}

/* Left bracket: vertical on RIGHT, horizontal extends LEFT to touch circle */
.fm-bracket-left::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 29px;
  background: #365614;
}

.fm-bracket-left::after {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 60px;
  height: 1px;
  background: #365614;
}

/* Right bracket: vertical on LEFT, horizontal extends RIGHT to touch circle */
.fm-bracket-right::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 29px;
  background: #365614;
}

.fm-bracket-right::after {
  content: '';
  position: absolute;
  right: 0;
  top: 14px;
  width: 60px;
  height: 1px;
  background: #365614;
}

.fm-headline-text {
  padding: 0 20px;
  font-size: 32px;
  line-height: 1;
  color: #365614;
  white-space: nowrap;
}

.fm-headline-text strong {
  font-weight: 700;
  font-style: normal;
}

.fm-headline-text em {
  font-weight: 400;
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────
   HERO — green panel with photo + headline
   ───────────────────────────────────────────────────────────── */

.fm-hero {
  background: #6B8B3E;
  display: flex;
  align-items: stretch;
}

.fm-hero-image {
  width: 280px;
  flex-shrink: 0;
  background: #365614;
}

.fm-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-hero-text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 32px 40px;
}

.fm-hero h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.fm-hero-subhead {
  background: #365614;
  padding: 16px 36px;
  text-align: center;
}

.fm-hero-subhead p {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  color: #FFFFFF;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .fm-section-headline {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fm-bracket-left,
  .fm-bracket-right {
    width: 21px;
  }

  .fm-bracket-left::after,
  .fm-bracket-right::after {
    width: 20px;
  }

  .fm-headline-text {
    padding: 0 12px;
    font-size: 28px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .fm-hero {
    flex-direction: column;
  }

  .fm-hero-image {
    width: 100%;
    height: auto;
  }

  .fm-hero-image img {
    height: auto;
  }

  .fm-hero-text {
    background: #365614;
    padding: 24px 36px 16px;
  }

  .fm-hero h1 {
    font-size: 30px;
  }

  .fm-hero-subhead {
    background: #365614;
    padding: 0 36px 24px;
    text-align: left;
  }
}

/* ─────────────────────────────────────────────────────────────
   Q&A SECTION — light green background
   ───────────────────────────────────────────────────────────── */

.fm-qa-section {
  background: #D6E2C0;
  padding: 32px 36px 48px;
}

/* Q&A pairs — 30px spacing between pairs */
.fm-qa-pair {
  margin-bottom: 30px;
}

/* Question box — Q: and text, both vertically centered */
.fm-qa-question {
  display: flex;
  align-items: center;
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #365614;
}

/* Q: marker — vertically centered with question text */
.fm-qa-marker {
  flex-shrink: 0;
  padding-right: 14px;
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  font-style: normal;
  color: #97B16D;
}

/* Question text — right padding to force 2-line wrap */
.fm-qa-text {
  flex: 1;
  padding-right: 30%;
}

/* Answer — no left padding, just top spacing */
.fm-qa-answer {
  padding-top: 16px;
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #365614;
}

.fm-qa-answer p {
  margin: 0;
}

.fm-qa-answer p + p {
  margin-top: 16px;
}

/* Article image — centered between Q&A pairs */
.fm-article-image {
  margin: 30px auto;
  text-align: center;
}

.fm-article-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .fm-qa-marker {
    font-size: 32px;
  }

  .fm-qa-text {
    padding-right: 0;
  }
}

/* ─────────────────────────────────────────────────────────────
   REUSABLE DIVIDER — ○─────────○
   ───────────────────────────────────────────────────────────── */

.fm-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.fm-divider-dot {
  width: 5px;
  height: 5px;
  border: 1px solid #365614;
  border-radius: 50%;
  flex-shrink: 0;
}

.fm-divider-line {
  width: 150px;
  height: 1px;
  background: #365614;
}

/* ─────────────────────────────────────────────────────────────
   FILM NOTE & BIO SECTIONS
   ───────────────────────────────────────────────────────────── */

.fm-film-note {
  padding: 0 5%;
  text-align: center;
}

.fm-film-note-text {
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
  color: #365614;
}

.fm-film-note-text a {
  color: #365614;
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────
   CALLOUT — inline reference link (tighter to content above)
   ───────────────────────────────────────────────────────────── */

.fm-callout {
  padding: 0;
  margin-top: -14px;
  margin-bottom: 30px;
  text-align: center;
}

.fm-callout-text {
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
  color: #365614;
}

.fm-callout-text a {
  color: #365614;
  text-decoration: underline;
}

.fm-bio {
  background: #365614;
  padding: 40px 48px;
  color: #D6E2C0;
}

/* Bio image — centered at top of bio section */
.fm-bio-image {
  margin: 0 auto 24px;
  text-align: center;
}

.fm-bio-image img {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.fm-bio-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #97B16D;
  margin-bottom: 16px;
}

.fm-bio p {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.6;
}

.fm-bio p:last-child {
  margin-bottom: 0;
}

.fm-bio a {
  color: #D6E2C0;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .fm-bio {
    padding: 32px 24px;
  }
}

/* ─────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────── */

.fm-nav {
  background: #FFFFFF;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #A27E2D;
}

.fm-button {
  display: inline-block;
  background: #A27E2D;
  color: #FFFFFF;
  padding: 0 32px;
  height: 35px;
  line-height: 35px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.2s;
  max-width: 100%;
  box-sizing: border-box;
}

.fm-button:hover {
  opacity: 0.9;
}

.fm-button--green {
  background: #6B8B3E;
}

/* ─────────────────────────────────────────────────────────────
   SIGN-OFF
   ───────────────────────────────────────────────────────────── */

.fm-signoff {
  background: #FFFFFF;
  padding: 40px 48px;
  text-align: center;
  border-top: 1px solid #A27E2D;
}

.fm-signoff-logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.fm-signoff-contact {
  font-size: 16px;
  color: #808285;
  line-height: 1.5;
  margin-bottom: 24px;
}

.fm-signoff-contact a {
  color: #808285;
  text-decoration: none;
}

@media (max-width: 600px) {
  .fm-signoff {
    padding: 32px 24px;
  }
}

/* ─────────────────────────────────────────────────────────────
   LEGAL
   ───────────────────────────────────────────────────────────── */

.fm-legal {
  background: #D1D3D4;
  padding: 42px 48px;
  border-top: 1px solid #A27E2D;
}

.fm-legal p {
  font-size: 16px;
  line-height: 1.6;
  color: #58595B;
  margin: 0 0 16px 0;
}

.fm-legal p:last-child {
  margin-bottom: 0;
}

.fm-legal a {
  color: #58595B;
  text-decoration: underline;
}

.fm-legal-code {
  font-size: 10px;
  text-align: center;
  color: #58595B;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .fm-legal {
    padding: 32px 24px;
  }
}
