﻿/* St. John's Episcopal Church â€” Sunday worship landing page */

:root {
  --navy-950: #102638;
  --navy-900: #17324a;
  --navy-800: #234763;
  --cranberry: #9b3040;
  --cranberry-dark: #762333;
  --gold: #c7a46a;
  --gold-soft: #ead9b9;
  --ink: #202b33;
  --muted: #64717a;
  --cream: #f7f3ed;
  --paper: #fffdf9;
  --line: rgba(32, 43, 51, 0.14);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 38, 56, 0.12);
  --shadow-soft: 0 10px 30px rgba(16, 38, 56, 0.09);
  --shadow-lift: 0 16px 40px rgba(16, 38, 56, 0.13);
  --radius: 4px;
  --radius-sm: 3px;
  --content: 1180px;
  --display: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--white);
  background: var(--cranberry);
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

[id] {
  scroll-margin-top: 104px;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

address {
  font-style: normal;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--cranberry);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link:focus-visible,
.menu-toggle:focus-visible,
.primary-nav a:focus-visible,
.gallery-card:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Top line and header */
.topline {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-950);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 20px;
}

.topline p {
  margin: 0;
}

.topline-message {
  color: var(--gold-soft);
  font-weight: 600;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 38, 56, 0.05);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 53px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.1;
}

.brand-place {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-nav a:not(.nav-cta):hover {
  color: var(--cranberry);
}

.primary-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  color: var(--white);
  background: var(--cranberry);
  border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-nav .nav-cta:hover {
  background: var(--cranberry-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy-900);
  background: transparent;
  cursor: pointer;
}

.menu-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  transition: transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  transform: rotate(90deg);
}

/* Shared type and buttons */
.eyebrow {
  margin: 0 0 13px;
  color: var(--cranberry);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--gold-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

h1,
h2 {
  color: var(--navy-900);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  line-height: 1.03;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--cranberry);
}

.button-primary:hover {
  background: var(--cranberry-dark);
}

.button-light {
  color: var(--navy-900);
  background: var(--gold-soft);
}

.button-light:hover {
  background: var(--white);
}

.button-quiet {
  min-height: auto;
  padding: 10px 0;
  color: var(--navy-900);
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
}

.button-quiet:hover {
  color: var(--cranberry);
  border-color: var(--cranberry);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 160ms ease, border-color 160ms ease, gap 160ms ease;
}

.text-link:hover {
  gap: 13px;
  color: var(--cranberry);
  border-color: var(--cranberry);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.hero::before {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(155, 48, 64, 0.13);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  top: -105px;
  right: -75px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(155, 48, 64, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 625px;
  align-items: center;
  gap: clamp(42px, 8vw, 105px);
  padding-top: 74px;
  padding-bottom: 80px;
}

.hero-grid > *,
.service-layout > *,
.welcome-grid > *,
.visit-grid > * {
  min-width: 0;
}

.hero-copy {
  max-width: 580px;
}

.hero-copy h1 {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 8vw, 7.25rem);
  line-height: 0.92;
}

.hero-lede {
  max-width: 490px;
  margin-bottom: 13px;
  color: var(--navy-800);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.35;
}

.hero-support {
  max-width: 440px;
  margin-bottom: 28px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 25px;
}

.hero-note {
  display: flex;
  max-width: 420px;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-note a {
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-note a:hover {
  color: var(--cranberry);
}

.note-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-visual {
  width: min(100%, 465px);
  justify-self: end;
}

.hero-image-frame {
  position: relative;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.hero-image-frame::before {
  display: none;
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 0.8;
  object-fit: cover;
  object-position: center;
}

.image-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-rule {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--cranberry) 0 31%, var(--gold) 31% 39%, var(--navy-900) 39% 100%);
}

/* Worship */
.worship-section {
  padding: 110px 0 120px;
  color: var(--white);
  background: var(--navy-900);
}

.section-heading {
  margin-bottom: 52px;
}

.centered-heading {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered-heading h2,
.centered-heading p {
  color: var(--white);
}

.centered-heading > p:last-child {
  max-width: 600px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
}

.service-layout {
  display: grid;
  max-width: 1050px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  background: var(--cranberry);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.service-card::after {
  position: absolute;
  right: -55px;
  bottom: -85px;
  width: 245px;
  height: 245px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  content: "";
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 33px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.service-season {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 999px;
  font-size: 0.62rem;
}

.service-time {
  margin-bottom: 7px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(3.7rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.service-time span {
  color: var(--gold-soft);
  font-size: 0.35em;
  letter-spacing: 0;
  vertical-align: top;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.service-card > p {
  max-width: 430px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.8);
}

.service-details {
  display: grid;
  gap: 7px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.service-details strong {
  display: inline-block;
  width: 68px;
  color: var(--gold-soft);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.visit-notes {
  display: grid;
  gap: 14px;
}

.note-card {
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.note-number {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.note-card h3 {
  margin-bottom: 7px;
  color: var(--white);
  font-size: 1.25rem;
}

.note-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.91rem;
}

.note-card a {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.note-card a:hover {
  color: var(--white);
}

.coffee-card {
  border-color: rgba(199, 164, 106, 0.62);
}

/* Welcome */
.welcome-section {
  padding: 120px 0;
  background: var(--paper);
}

.welcome-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(45px, 9vw, 120px);
}

.welcome-image-wrap {
  position: relative;
  padding: 13px 13px 13px 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.welcome-image-wrap::after {
  position: absolute;
  z-index: -1;
  right: 28px;
  bottom: -25px;
  left: 28px;
  height: 80%;
  border: 1px solid var(--gold);
  content: "";
}

.welcome-image-wrap img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.welcome-image-label {
  position: absolute;
  right: -1px;
  bottom: -1px;
  padding: 11px 15px;
  color: var(--white);
  background: var(--navy-900);
  font-family: var(--display);
  font-size: 0.95rem;
}

.welcome-copy {
  max-width: 500px;
}

.welcome-copy h2 {
  max-width: 470px;
}

.welcome-copy p:not(.eyebrow) {
  color: var(--muted);
}

.welcome-copy .text-link {
  margin-top: 10px;
}

/* Clergy */
.clergy-section {
  padding: 24px 0 140px;
  background: var(--paper);
}

.clergy-card {
  display: grid;
  max-width: 1020px;
  align-items: center;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  padding: 60px 64px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  background: var(--cream);
}

.clergy-mark {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(16, 38, 56, 0.14);
}

.clergy-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clergy-copy h2 {
  margin-bottom: 9px;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

.clergy-role {
  margin-bottom: 15px;
  color: var(--cranberry);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.clergy-copy > p:not(.eyebrow):not(.clergy-role) {
  max-width: 590px;
  margin-bottom: 17px;
  color: var(--muted);
}

/* Gallery */
.gallery-section {
  padding: 110px 0 125px;
  background: var(--cream);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.gallery-heading h2 {
  max-width: 580px;
  margin-bottom: 0;
}

.gallery-heading > p {
  max-width: 260px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-auto-rows: 230px;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 14px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: var(--navy-900);
  cursor: zoom-in;
}

.gallery-card-large {
  grid-row: span 2;
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card-season {
  grid-column: 1 / -1;
  grid-row: span 2;
  min-height: 0;
}

.gallery-card-full {
  grid-column: 1 / -1;
  grid-row: span 2;
  min-height: 0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

.gallery-card:nth-child(1) img {
  object-position: center 42%;
}

.gallery-card:nth-child(3) img {
  object-position: center 55%;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.gallery-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 18px 16px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(16, 38, 56, 0.85));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 200ms ease;
}

.gallery-card:hover .gallery-overlay,
.gallery-card:focus-visible .gallery-overlay {
  opacity: 1;
}

/* Visit */
.visit-section {
  padding: 110px 0 120px;
  color: var(--white);
  background: var(--navy-900);
}

.visit-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(45px, 10vw, 140px);
}

.visit-section h2 {
  max-width: 570px;
  color: var(--white);
}

.visit-lede {
  max-width: 570px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  padding: 13px 28px 25px;
  color: var(--navy-900);
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.contact-line {
  display: grid;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: 5px;
}

.contact-label {
  color: var(--cranberry);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-line address,
.contact-line a {
  color: var(--navy-900);
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.35;
  text-decoration: none;
}

.contact-line a {
  overflow-wrap: anywhere;
}

.contact-line a:hover {
  color: var(--cranberry);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-small {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.visit-directions {
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.directions-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}

.directions-heading .eyebrow {
  margin-bottom: 0;
}

.directions-heading h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.direction-card {
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.direction-card h4 {
  margin: 0 0 9px;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 1.15rem;
}

.direction-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .visit-directions {
    margin-top: 42px;
    padding-top: 28px;
  }

  .directions-heading {
    display: block;
    margin-bottom: 18px;
  }

  .directions-heading .eyebrow {
    margin-bottom: 10px;
  }

  .directions-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.68);
  background: var(--navy-950);
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
}

.footer-brand img {
  width: 32px;
  height: 40px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.7);
}

.footer-name,
.footer-place {
  margin: 0;
}

.footer-name {
  font-family: var(--display);
  font-size: 1rem;
}

.footer-place {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-copy {
  margin: 0;
  text-align: right;
}

/* Lightbox */
.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 30px;
  place-items: center;
  background: rgba(9, 22, 32, 0.93);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  max-width: min(1000px, 92vw);
  max-height: 90vh;
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox figcaption {
  padding-top: 12px;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 1.05rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 17px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* Responsive */
@media (max-width: 900px) {
  .primary-nav {
    gap: 18px;
  }

  .primary-nav a {
    font-size: 0.8rem;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
    gap: 45px;
    padding-top: 60px;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 8vw, 5.6rem);
  }

  .service-layout,
  .visit-grid {
    gap: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-card-large {
    grid-row: span 2;
  }

  .gallery-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 32px), var(--content));
  }

  .topline-inner {
    min-height: 31px;
    justify-content: center;
    text-align: center;
  }

  .topline-inner p:first-child {
    display: none;
  }

  .topline-message {
    font-size: 0.65rem;
  }

  .header-inner {
    width: min(calc(100% - 24px), var(--content));
    min-height: 72px;
    gap: 12px;
  }

  .brand {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-name,
  .brand-place {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: flex !important;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .brand-mark {
    width: 35px;
    height: 44px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-place {
    font-size: 0.58rem;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 15px 28px rgba(16, 38, 56, 0.12);
  }

  .primary-nav.is-open {
    display: grid;
    gap: 3px;
  }

  .primary-nav a {
    padding: 11px 8px;
    font-size: 0.92rem;
  }

  .primary-nav .nav-cta {
    justify-content: center;
    margin-top: 8px;
    padding: 12px 15px;
    border-radius: var(--radius);
  }

  .hero-grid,
  .welcome-grid,
  .service-layout,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 45px;
    padding-top: 56px;
    padding-bottom: 70px;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3.5rem, 17vw, 5.5rem);
  }

  .hero-copy,
  .hero-lede,
  .hero-support,
  .hero-note {
    width: 100%;
    max-width: 100%;
  }

  .hero-lede,
  .hero-support,
  .hero-note {
    overflow-wrap: anywhere;
  }

  .hero-lede {
    font-size: 1.22rem;
  }

  .hero-visual {
    width: min(100%, 440px);
    justify-self: start;
  }

  .hero-image-frame::before {
    right: -14px;
    bottom: -17px;
    left: 17px;
  }

  .worship-section,
  .welcome-section,
  .gallery-section,
  .visit-section {
    padding-top: 78px;
    padding-bottom: 84px;
  }

  .centered-heading {
    margin-bottom: 35px;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .service-layout {
    max-width: 540px;
  }

  .service-card {
    padding: 30px 25px;
  }

  .visit-notes {
    gap: 10px;
  }

  .welcome-grid {
    gap: 50px;
  }

  .welcome-image-wrap {
    width: calc(100% - 12px);
  }

  .clergy-section {
    padding-bottom: 84px;
  }

  .clergy-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 25px;
  }

  .clergy-mark {
    width: 200px;
    max-width: 62%;
    margin-inline: auto;
  }

  .gallery-heading {
    display: block;
  }

  .gallery-heading > p {
    max-width: 400px;
    margin-top: 16px;
  }

  .gallery-grid {
    grid-auto-rows: 128px;
    gap: 8px;
  }

  .gallery-overlay {
    opacity: 1;
    padding: 28px 12px 11px;
    font-size: 0.64rem;
  }

  .visit-grid {
    gap: 38px;
  }

  .contact-card {
    padding-right: 22px;
    padding-left: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .footer-copy {
    text-align: left;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox figcaption {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 31px;
    height: 39px;
  }

  .brand-name {
    font-size: 0.84rem;
  }

  .brand-place {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  .hero-grid {
    gap: 32px;
    padding-top: 45px;
    padding-bottom: 58px;
  }

  .hero-copy h1 {
    font-size: clamp(3.15rem, 17vw, 4.5rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .service-time {
    font-size: 3.45rem;
  }

  .contact-card {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Announcements page */
.subpage-hero {
  padding: 92px 0 86px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.subpage-hero-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.subpage-shield {
  width: 72px;
  height: 90px;
  flex: 0 0 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.subpage-hero h1 {
  max-width: 720px;
  margin-bottom: 13px;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.subpage-hero p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.15rem;
}

.announcements-section {
  padding: 100px 0 120px;
  background: var(--cream);
}

.announcements-heading {
  max-width: 700px;
}

.announcements-heading h2 {
  margin-bottom: 12px;
}

.announcements-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.announcement-list {
  display: grid;
  max-width: 820px;
  gap: 15px;
}

.announcement-card {
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.announcement-card-empty {
  border-style: dashed;
  border-color: rgba(155, 48, 64, 0.45);
  background: transparent;
  box-shadow: none;
}

.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 13px;
  color: var(--cranberry);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.announcement-card h3 {
  margin-bottom: 9px;
  color: var(--navy-900);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.announcement-card p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 700px) {
  .subpage-hero {
    padding: 68px 0 62px;
  }

  .subpage-hero-inner {
    align-items: flex-start;
    gap: 18px;
  }

  .subpage-shield {
    width: 48px;
    height: 60px;
    flex-basis: 48px;
  }

  .subpage-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .announcements-section {
    padding: 72px 0 82px;
  }

  .announcement-card {
    padding: 23px 20px;
  }
}

/* Calendar */
.calendar-section {
  padding: 100px 0 90px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.calendar-heading {
  max-width: 700px;
}

.calendar-heading h2 {
  margin-bottom: 12px;
}

.calendar-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.calendar-heading a {
  color: var(--cranberry);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calendar-heading a:hover {
  color: var(--cranberry-dark);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 10px;
}

.calendar-weekdays span {
  color: var(--cranberry);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day,
.calendar-pad {
  min-height: 132px;
  padding: 9px 10px 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.calendar-pad {
  background: transparent;
  border-style: dashed;
  border-color: rgba(16, 38, 56, 0.08);
}

.day-num {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-900);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.calendar-day.has-worship {
  border-color: rgba(155, 48, 64, 0.4);
  background: var(--cream);
}

.cal-events {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cal-event {
  padding: 6px 8px;
  border-left: 3px solid var(--navy-800);
  background: rgba(16, 38, 56, 0.05);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.cal-event span {
  display: block;
  margin-top: 2px;
  color: #3f4b54;
  font-size: 0.66rem;
  font-weight: 600;
}

.cal-worship {
  border-left-color: var(--cranberry);
  background: rgba(155, 48, 64, 0.09);
  color: var(--cranberry-dark);
}

.cal-worship-alt {
  border-left-color: var(--navy-800);
  background: rgba(23, 50, 74, 0.08);
  color: var(--navy-900);
}

.cal-prayer {
  border-left-color: var(--gold);
  background: rgba(190, 145, 60, 0.14);
  color: #6d5216;
}

.cal-office {
  border-left-color: var(--navy-800);
  background: rgba(23, 50, 74, 0.07);
  color: var(--navy-900);
}

.cal-meeting {
  border-left-color: #4b6b4a;
  background: rgba(75, 107, 74, 0.11);
  color: #2f4a2e;
}

.cal-study {
  border-left-color: #6b4a7a;
  background: rgba(107, 74, 122, 0.1);
  color: #46304f;
}

.cal-feast {
  border-left-color: var(--gold);
  background: rgba(155, 48, 64, 0.12);
  color: var(--cranberry-dark);
  font-style: italic;
}

.calendar-notes {
  max-width: 720px;
  margin-top: 34px;
  padding: 24px 28px;
  border-left: 3px solid var(--cranberry);
  background: var(--cream);
}

.calendar-notes h3 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 1.3rem;
}

.calendar-notes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .calendar-day,
  .calendar-pad {
    min-height: 0;
    padding: 8px;
  }

  .cal-event {
    padding: 5px 6px;
    font-size: 0.63rem;
  }

  .cal-event span {
    font-size: 0.6rem;
  }
}

@media (max-width: 700px) {
  .calendar-section {
    padding: 72px 0 66px;
  }

  .calendar-weekdays {
    display: none;
  }

  .calendar-days {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .calendar-pad {
    display: none;
  }

  .calendar-day {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px 16px;
  }

  .day-num {
    margin-bottom: 0;
    font-size: 1.3rem;
  }

  .cal-event {
    font-size: 0.85rem;
  }

  .cal-event span {
    font-size: 0.78rem;
  }
}

/* Soft edges for content cards */
.service-card,
.note-card,
.contact-card,
.clergy-mark,
.announcement-card,
.direction-card,
.calendar-day,
.calendar-pad,
.calendar-notes {
  border-radius: var(--radius);
}

@media print {
  .topline,
  .site-header,
  .menu-toggle,
  .lightbox,
  .hero-actions {
    display: none !important;
  }

  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body,
  .hero,
  .worship-section,
  .welcome-section,
  .clergy-section,
  .gallery-section,
  .visit-section,
  .site-footer,
  .service-card,
  .note-card,
  .clergy-card,
  .contact-card {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }

  .worship-section *,
  .visit-section *,
  .service-card *,
  .note-card *,
  .contact-card * {
    color: #000000 !important;
    text-shadow: none !important;
  }

  .section,
  .worship-section,
  .welcome-section,
  .clergy-section,
  .gallery-section,
  .visit-section {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .hero-grid {
    min-height: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .hero-image-frame,
  .welcome-image-wrap,
  .clergy-mark {
    box-shadow: none !important;
  }

  .service-card,
  .note-card,
  .contact-card,
  .clergy-mark,
  .announcement-card,
  .direction-card,
  .calendar-day,
  .calendar-pad,
  .calendar-notes {
    border-radius: 0 !important;
  }

  .service-time,
  .eyebrow,
  .section-title,
  h1,
  h2,
  h3,
  .contact-label,
  .contact-line a,
  .contact-line address {
    color: #000000 !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline;
  }

  .button {
    border-color: #000000 !important;
    box-shadow: none !important;
  }

  .gallery-overlay {
    display: none !important;
  }
}
