/* Church in Glasgow — design tokens */
:root {
  --green: #1b5e45;
  --green-deep: #133f30;
  --green-soft: #e9f0ea;
  --ink: #232f38;
  --ink-soft: #55636e;
  --paper: #ffffff;
  --stone: #f6f4ef;
  --line: #e3e0d8;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --measure: 38rem;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --pad-section: clamp(4rem, 10vw, 7rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 520;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { max-width: var(--measure); }

a { color: var(--green); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.accent-word { font-style: italic; color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-ghost {
  color: var(--green);
  border: 2px solid var(--green);
  padding: 0.75rem 1.8rem;
}
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--green-soft); }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.solid,
body.subpage .site-header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad-x);
  max-width: 72rem;
  margin: 0 auto;
}
.brand {
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand .brand-place { font-style: italic; }
.site-header.solid .brand,
body.subpage .brand { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-header.solid .nav-links a,
body.subpage .nav-links a { color: var(--ink); }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-links .nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
}
.nav-links .nav-cta:hover { background: var(--green-deep); text-decoration: none; }

/* dropdown */
.has-menu { position: relative; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
}
.site-header.solid .menu-btn,
body.subpage .menu-btn { color: var(--ink); }
.menu-btn::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  translate: -50% 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 40, 30, 0.12);
  padding: 0.5rem;
  min-width: 11rem;
  list-style: none;
  display: none;
}
.has-menu.open .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  color: var(--ink) !important;
  text-decoration: none;
}
.dropdown a:hover { background: var(--green-soft); text-decoration: none; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.solid .nav-toggle span,
body.subpage .nav-toggle span { background: var(--ink); }

@media (max-width: 47rem) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--pad-x) 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a,
  .menu-btn { color: var(--ink) !important; }
  .nav-links > li { border-bottom: 1px solid var(--stone); }
  .nav-links > li:last-child { border-bottom: none; padding-top: 0.9rem; }
  .nav-links a { display: block; padding: 0.85rem 0; }
  .nav-links .nav-cta { text-align: center; }
  .menu-btn { width: 100%; justify-content: space-between; padding: 0.85rem 0; }
  .dropdown {
    position: static;
    translate: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0.5rem 1rem;
  }
  body.nav-open .site-header { background: #fff; }
  body.nav-open .brand { color: var(--ink); }
  body.nav-open .nav-toggle span { background: var(--ink); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  place-items: end start;
  isolation: isolate;
  color: #fff;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(12, 28, 20, 0.78) 0%,
    rgba(12, 28, 20, 0.28) 55%,
    rgba(12, 28, 20, 0.25) 100%
  );
}
.hero-inner {
  padding: 0 var(--pad-x) clamp(3rem, 9vw, 6rem);
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #cfe3d3; }
.hero h1 {
  font-size: clamp(2.7rem, 9vw, 5rem);
  margin: 0.6rem 0 1rem;
  max-width: 15ch;
}
.hero p {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero .accent-word { color: #a9d3b1; }

.hero.short { min-height: 68svh; }

/* subpage hero */
.page-hero {
  background: var(--green-deep);
  color: #fff;
  padding: calc(var(--pad-section) + 3rem) var(--pad-x) var(--pad-section);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero .eyebrow { color: #a9d3b1; }
.page-hero h1 {
  font-size: clamp(2.3rem, 7vw, 3.8rem);
  margin-top: 0.6rem;
  max-width: 18ch;
}
.page-hero .wrap > p {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: #d9e7dc;
}

/* ---------- sections ---------- */
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--pad-section); }
.section.tinted { background: var(--stone); }
.section h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin: 0.5rem 0 1.1rem;
}
.section .eyebrow { color: var(--green); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* centered band */
.band-center { text-align: center; }
.band-center p { margin-inline: auto; }
.band-center .btn { margin-top: 1.6rem; }

/* split section */
.split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 54rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip > .split-media { order: 2; }
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}
.split-body p + p { margin-top: 1rem; }
.split-body .btn { margin-top: 1.6rem; }
.meta-line {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
}

/* photo band */
.photo-band {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(5rem, 14vw, 9rem);
}
.photo-band > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 34, 24, 0.62);
}
.photo-band .eyebrow { color: #a9d3b1; }
.photo-band h2 { font-size: clamp(2rem, 5.5vw, 3rem); margin: 0.5rem 0 1rem; }
.photo-band .btn { margin-top: 1.5rem; }

/* verse band */
.verse {
  background: var(--green-deep);
  color: #fff;
  text-align: center;
  padding: var(--pad-section) var(--pad-x);
}
.verse blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0 auto;
}
.verse cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a9d3b1;
}

/* ---------- prose pages ---------- */
.prose { max-width: var(--measure); }
.prose h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 2.6rem 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; margin-top: 1rem; }
.prose li + li { margin-top: 0.55rem; }

/* belief list */
.belief-list {
  list-style: none;
  padding: 0;
  max-width: 44rem;
  counter-reset: belief;
}
.belief-list li {
  counter-increment: belief;
  position: relative;
  padding: 1.4rem 0 1.4rem 3.6rem;
  border-bottom: 1px solid var(--line);
}
.belief-list li::before {
  content: counter(belief);
  position: absolute;
  left: 0;
  top: 1.3rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--green);
}
.belief-list .refs {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* what to expect list */
.expect {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  max-width: 44rem;
  display: grid;
  gap: 1rem;
}
.expect li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}
.expect strong { color: var(--green-deep); }

/* contact placeholder card */
.connect-card {
  background: var(--green-soft);
  border-radius: 20px;
  padding: clamp(1.8rem, 5vw, 3rem);
  max-width: 44rem;
}
.connect-card h2 { margin-top: 0; }
.connect-card dl { margin-top: 1.4rem; display: grid; gap: 0.9rem; }
.connect-card dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.connect-card dd { margin: 0.15rem 0 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer {
  background: #10231a;
  color: #bccfc1;
  padding: 3.5rem var(--pad-x) 2.5rem;
  font-size: 0.95rem;
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.25rem;
  color: #fff;
}
.footer-brand .brand-place { font-style: italic; }
.footer-tag { margin-top: 0.5rem; max-width: 22rem; }
.footer-nav { list-style: none; display: grid; gap: 0.55rem; }
.footer-nav a { color: #dce8de; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal {
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8aa192;
}
.footer-legal a { color: #8aa192; }

/* credits page */
.credit-list { list-style: none; padding: 0; max-width: 44rem; }
.credit-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
