/* ==========================================================================
   Spencer County Church of Christ
   Taylor Made Designs

   Plain by intention. Churches of Christ worship without ornament, and the
   page follows: one serif, a quiet palette, and generous space. The one bold
   move is the hero, where the meeting times are the headline, because that is
   the only thing a first-time visitor actually needs from this page.
   ========================================================================== */

:root {
  /* Deep pine reads rural and settled. Brass, not gold, keeps it from
     tipping into decoration. */
  --ink:      #1C2A24;
  --pine:     #2E4A3C;
  --brass:    #9A7736;
  --stone:    #626B64;
  --paper:    #FBFAF7;
  --shell:    #F1EFE9;
  --line:     #DEDBD2;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Set larger than typical. A good part of this congregation is reading
     it on a phone without glasses to hand. */
  --fs-base: 1.125rem;
  --fs-lede: 1.3125rem;
  --fs-sm:   0.9375rem;
  --fs-xs:   0.8125rem;

  --gap:  clamp(1.5rem, 4vw, 3rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2.5rem); }

.vh {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- headings ---------- */

h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; }

h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }

.lede {
  font-size: var(--fs-lede);
  color: var(--stone);
  max-width: 62ch;
  margin: 1rem 0 0;
}

.kicker {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: var(--brass);
  margin: 0 0 .75rem;
}

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.75rem;
}

.wordmark {
  font-size: 1.0625rem; line-height: 1.2; font-weight: 600;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.wordmark span { color: var(--brass); font-weight: 400; }

.nav ul {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
}
.nav a {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--stone);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }

.nav-toggle {
  display: none; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: var(--fs-sm);
  background: none; border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink); padding: .5rem .85rem; cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 16px; height: 2px; background: var(--ink);
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; }
.bars::after  { top: 5px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- hero ---------- */

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--band); }

.hero-inner {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}

.hero h1 { max-width: 14ch; }

/* The schedule is the point of the page, so it is set like a headline
   rather than like a table. */
.schedule {
  margin: 2rem 0 0; padding: 1.75rem 0 0;
  border-top: 2px solid var(--ink);
  display: grid; gap: .85rem;
}
.schedule .slot {
  display: grid; grid-template-columns: 7.5rem 1fr;
  align-items: baseline; gap: 1rem;
}
.schedule dt {
  font-family: var(--sans); font-size: var(--fs-xs);
  letter-spacing: .06em; color: var(--stone);
}
.schedule dd { margin: 0; font-size: 1.1875rem; color: var(--stone); }
.schedule dd b {
  display: inline-block; min-width: 4.25rem;
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  font-weight: 600; color: var(--ink); letter-spacing: -0.02em;
}

.hero-note { margin: 1.75rem 0 0; color: var(--stone); max-width: 42ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: var(--fs-sm);
  background: var(--pine); color: #fff;
  padding: .8rem 1.5rem; border-radius: 2px; text-decoration: none;
  transition: background .15s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.ghost {
  background: none; color: var(--pine);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.ghost:hover { background: var(--shell); color: var(--ink); }

.hero-img { margin: 0; }
.hero-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .schedule .slot { grid-template-columns: 6rem 1fr; }
}

/* ---------- bands ---------- */

.band { padding: var(--band) 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--shell); }

/* ---------- visit ---------- */

.visit-grid {
  margin-top: 2.75rem;
  display: grid; gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.visit-item h3 { margin-bottom: .5rem; }
.visit-item p { margin: 0; color: var(--stone); max-width: 42ch; }

/* ---------- about ---------- */

.about-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}

.sub {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem; color: var(--brass);
}

.journey { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.journey li {
  position: relative; padding-left: 1.5rem; margin-bottom: 1.15rem;
  max-width: 68ch; color: var(--stone);
}
.journey li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: .45rem; height: .45rem; background: var(--brass); border-radius: 50%;
}

.about-pics { display: grid; gap: 1rem; }
.about-pics img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-pics { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- leaders ---------- */

.leaders {
  margin-top: 2.75rem;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.leader img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 2px; background: var(--shell);
}
.leader h3 { margin-top: 1rem; }
.leader .role {
  margin: .2rem 0 0; font-family: var(--sans);
  font-size: var(--fs-xs); letter-spacing: .06em; color: var(--brass);
}

/* The preacher's bio is the most substantial writing on the page, so it
   gets the width to be read rather than being hidden behind a click. */
.leader.wide {
  grid-column: 1 / -1;
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  align-items: start;
  padding-top: 2.5rem; border-top: 1px solid var(--line);
}
.leader.wide h3 { margin-top: 0; }
.leader-body p { color: var(--stone); max-width: 64ch; }

@media (max-width: 700px) {
  .leader.wide { grid-template-columns: 1fr; }
  .leader.wide img { max-width: 14rem; }
}

/* ---------- our church ---------- */

.convictions { margin: 2.75rem 0 0; }
.convictions img {
  width: min(520px, 100%); margin-inline: auto;
  border: 1px solid var(--line); border-radius: 2px;
}

.gallery {
  margin-top: 2.5rem;
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.shot { display: block; border-radius: 2px; overflow: hidden; }
.shot img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .3s ease;
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.03); }

/* ---------- verses ---------- */

.verse-pair {
  margin-top: 2.75rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}
.verse {
  margin: 0; padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--brass);
}
.verse p {
  margin: 0; font-size: 1.25rem; line-height: 1.55; font-style: italic;
}
.verse cite {
  display: block; margin-top: .9rem; font-style: normal;
  font-family: var(--sans); font-size: var(--fs-sm); color: var(--stone);
}
.verse cite span { color: var(--brass); }

.verse-note {
  margin: 2.25rem 0 0; font-size: var(--fs-sm); color: var(--stone);
}

/* ---------- beliefs ---------- */

.qa { margin-top: 2.5rem; border-top: 1px solid var(--line); }

.qa details { border-bottom: 1px solid var(--line); }

.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.15rem 0; font-size: 1.1875rem; font-weight: 600;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; margin-left: auto; color: var(--brass);
  font-weight: 400; font-size: 1.5rem; line-height: 1;
}
.qa details[open] summary::after { content: "\2013"; }
.qa summary:hover { color: var(--pine); }

.answer { padding: 0 0 1.5rem; }
.answer p { margin: 0 0 1rem; color: var(--stone); max-width: 68ch; }
.answer p:last-child { margin-bottom: 0; }
.answer .ref {
  font-family: var(--sans); font-size: var(--fs-sm); color: var(--brass);
}

.video {
  position: relative; aspect-ratio: 16 / 9; width: min(560px, 100%);
  background: var(--ink); border-radius: 2px; overflow: hidden;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: none; border: 0; cursor: pointer;
  color: #fff; font-family: var(--sans); font-size: var(--fs-sm);
}
.video-play:hover { background: rgba(255, 255, 255, .06); }

/* ---------- contact ---------- */

.contact-grid {
  margin-top: 2.75rem;
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
}

.contact-cards { display: grid; gap: 1rem; }
.card {
  padding: 1.5rem; background: var(--shell); border-radius: 2px;
}
.card h3 { font-size: 1.0625rem; }
.card p { margin: .5rem 0 0; color: var(--stone); }
.card a { color: var(--pine); }

.map {
  position: relative; aspect-ratio: 4 / 3; min-height: 20rem;
  background: var(--shell); border: 1px solid var(--line); border-radius: 2px;
  display: grid; place-items: center; overflow: hidden;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-load {
  font-family: var(--sans); font-size: var(--fs-sm);
  background: var(--pine); color: #fff; border: 0; border-radius: 2px;
  padding: .8rem 1.5rem; cursor: pointer;
}
.map-load:hover { background: var(--ink); }
.map-alt {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  margin: 0; text-align: center;
  font-size: var(--fs-sm); color: var(--stone);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink); color: var(--shell);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.foot-inner { display: grid; gap: .85rem; }
.foot-name { margin: 0; font-size: 1.1875rem; font-weight: 600; }
.foot-meta, .foot-by {
  margin: 0; font-size: var(--fs-sm); color: rgba(241, 239, 233, .68);
}
.site-foot a { color: var(--shell); }
.site-foot a:hover { color: #fff; }

/* ---------- lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(28, 42, 36, .93);
  display: grid; place-items: center; padding: 2rem;
}
.lb[hidden] { display: none; }
.lb img {
  max-width: 100%; max-height: 88vh; border-radius: 2px;
}
.lb-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: 0; color: #fff;
  font-size: 2.5rem; line-height: 1; cursor: pointer; padding: .25rem .5rem;
}