
:root {
  --ink: #171512;
  --charcoal: #26221f;
  --paper: #fbfaf6;
  --linen: #eee8dc;
  --clay: #9f5135;
  --clay-dark: #7c3c27;
  --gold: #cfaa56;
  --sage: #59756a;
  --blue: #25486f;
  --line: rgba(23, 21, 18, .14);
  --shadow: 0 18px 45px rgba(38, 34, 31, .14);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-150%);
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border: 2px solid #111;
  z-index: 50;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  color: var(--charcoal);
}

.brand span {
  color: #6a625b;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.pill {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--line);
  background: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  color: #fff;
  background: var(--clay);
  box-shadow: 0 10px 24px rgba(159, 81, 53, .22);
}

.pill:hover { background: var(--clay-dark); }

.pill.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 26px;
  align-items: stretch;
}

.hero-copy {
  min-height: 560px;
  display: grid;
  align-content: end;
  padding: 34px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(38, 34, 31, .74), rgba(38, 34, 31, .26)),
    url("/assets/images/worship.jpg") center/cover;
  color: #fff;
  overflow: hidden;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  color: inherit;
}

h1 {
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 700;
}

.hero-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-actions .pill.secondary {
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .32);
}

.week-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.week-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.service {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.time {
  display: grid;
  place-items: center;
  min-height: 82px;
  border-radius: 18px;
  color: #fff;
  background: var(--blue);
  text-align: center;
  font-weight: 850;
}

.time span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  opacity: .86;
}

.service h3 { font-size: 18px; }

.service p {
  margin: 6px 0 12px;
  color: #675f58;
  font-size: 14px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
}

.section-head p {
  max-width: 450px;
  margin: 0;
  color: #665f58;
}

.media-grid,
.connect-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.panel {
  min-height: 260px;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(38, 34, 31, .08);
}

.panel.image {
  display: grid;
  align-content: end;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.panel.image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.64));
}

.panel.image > * {
  position: relative;
  z-index: 1;
}

.panel h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.panel p {
  margin: 0 0 16px;
  color: #655d56;
}

.panel.image p { color: rgba(255, 255, 255, .86); }

.placeholder {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 18px;
  border: 1px dashed rgba(23, 21, 18, .28);
  background:
    linear-gradient(135deg, rgba(207, 170, 86, .13), rgba(89, 117, 106, .13)),
    #fff;
  color: #5e574f;
  text-align: center;
  padding: 18px;
  font-weight: 800;
}

.story {
  background: var(--charcoal);
  color: #fff;
}

.story .section-head p,
.story .panel p { color: rgba(255, 255, 255, .72); }

.story .panel {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
}

.sermon-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.sermon-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.sermon-card img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: 18px;
}

audio { width: 100%; margin-top: 12px; }

.audio-placeholder {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--linen);
  color: #5f574f;
  font-size: 14px;
  font-weight: 800;
}

.footer {
  padding: 34px 24px;
  color: #fff;
  background: var(--charcoal);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer a { color: #fff; }

@media (max-width: 900px) {
  .topbar-inner { grid-template-columns: 1fr; padding: 16px 20px; }
  .nav { justify-content: start; }
  .hero,
  .sermon-band,
  .footer-inner { grid-template-columns: 1fr; }
  .hero-copy { min-height: 480px; }
  .media-grid,
  .connect-grid,
  .story-grid { grid-template-columns: 1fr; }
  .section-head { display: grid; }
}

@media (max-width: 560px) {
  .hero,
  .section { padding-left: 16px; padding-right: 16px; }
  .hero-copy,
  .week-card { border-radius: 20px; padding: 22px; }
  .service { grid-template-columns: 1fr; }
  .time { min-height: 62px; }
  .sermon-card { grid-template-columns: 1fr; }
}
