/* ==========================================================
   ST MARY'S, CHORLEY — NEWSLETTERS
   Uses the shared site styles from style.css
   ========================================================== */

.newsletters-page {
  background: var(--paper);
}

.newsletter-shell {
  width: min(1100px, calc(100% - 44px));
  margin-inline: auto;
}

.newsletter-hero {
  position: relative;
  min-height: 570px;
  padding: 190px 0 85px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(75, 23, 32, .98), rgba(14, 21, 29, .97));
}



.newsletter-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(179, 149, 87, .18), transparent 18%),
    linear-gradient(90deg, rgba(8, 12, 17, .12), transparent 55%);
  pointer-events: none;
}

.newsletter-hero-inner {
  position: relative;
  z-index: 2;
}

.newsletter-kicker {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.newsletter-kicker.dark {
  color: var(--wine);
}

.newsletter-hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .93;
}

.newsletter-hero-copy {
  max-width: 610px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.75;
}

.latest-section {
  padding: 72px 0 82px;
  background: var(--cream);
}

.newsletter-loading,
.newsletter-error,
.newsletter-empty {
  padding: 42px;
  border: 1px solid var(--stone);
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

.newsletter-error p,
.newsletter-empty p {
  margin: 0;
}

.newsletter-error button {
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font: inherit;
  cursor: pointer;
}

.newsletter-empty span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 2rem;
}

.newsletter-empty h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--serif-display);
  font-weight: 500;
}

.latest-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 42px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.latest-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--wine));
}

.latest-card-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 2rem;
}

.latest-card-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
}

.latest-card-copy > p:last-child {
  max-width: 610px;
  margin: 12px 0 0;
  color: var(--muted);
}

.latest-date {
  margin: 12px 0 0;
  color: var(--wine);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.latest-card-action {
  min-width: 210px;
  text-align: center;
}

.newsletter-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  background: var(--wine);
  color: var(--white);
  text-decoration: none;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.newsletter-button:hover,
.newsletter-button:focus-visible {
  background: var(--navy);
  transform: translateY(-1px);
}

.latest-card-action span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: .68rem;
}

.archive-section {
  padding: 84px 0 96px;
  background: var(--paper);
}

.archive-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 60px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--stone);
}

.archive-heading h2,
.newsletter-help h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
}

.archive-heading > p {
  margin: 0;
  color: var(--muted);
}

.archive-years {
  margin-top: 18px;
}

.archive-year + .archive-year {
  margin-top: 46px;
}

.archive-year-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 4px;
  color: var(--wine);
  font-family: var(--serif-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.archive-year-heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--stone);
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--stone);
}

.archive-item-number {
  color: var(--gold);
  font-family: var(--serif-display);
  font-size: .9rem;
}

.archive-item-date {
  color: var(--navy);
  font-family: var(--serif-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.archive-item-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--serif-body);
  font-size: .7rem;
  font-weight: 400;
}

.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--wine);
  text-decoration: none;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.archive-link span {
  transition: transform .2s ease;
}

.archive-link:hover span {
  transform: translateX(3px);
}

.newsletter-help {
  padding: 72px 0;
  color: var(--white);
  background: var(--navy-deep);
}

.help-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.newsletter-help h2 {
  color: var(--white);
}

.newsletter-help .help-grid > div:last-child > p {
  margin: 0;
  color: rgba(255,255,255,.72);
}

.newsletter-text-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 22px;
  color: var(--gold-light);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Highlight current navigation item without affecting shared stylesheet */
.newsletters-page .primary-nav a[aria-current="page"]::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .latest-card {
    grid-template-columns: 72px 1fr;
  }

  .latest-card-action {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .archive-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .newsletter-shell {
    width: min(100% - 28px, 1100px);
  }

  .newsletter-hero {
    min-height: 510px;
    padding-top: 170px;
  }

  .newsletter-hero h1 {
    font-size: clamp(3.3rem, 15vw, 5rem);
  }

  .latest-section {
    padding: 42px 0 52px;
  }

  .latest-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
  }

  .latest-card-mark {
    width: 58px;
    height: 58px;
  }

  .latest-card-action {
    grid-column: auto;
  }

  .newsletter-button {
    width: 100%;
  }

  .archive-section {
    padding: 58px 0 68px;
  }

  .archive-item {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 17px 0;
  }

  .archive-link {
    grid-column: 2;
    justify-self: start;
  }

  .help-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .newsletter-hero {
    min-height: 470px;
  }

  .newsletter-loading,
  .newsletter-error,
  .newsletter-empty {
    padding: 30px 20px;
  }

  .archive-item-number {
    font-size: .78rem;
  }

  .archive-item-date {
    font-size: 1rem;
  }
}
