:root {
  color-scheme: light;
  --bg: #faf8f4;
  --bg-alt: #f3efe6;
  --surface: #ffffff;
  --text: #1a1d23;
  --muted: #5a5f68;
  --accent: #9c5d24;
  --accent-soft: #7d4a1d;
  --border: #e8e3d8;
  --max: 56rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
}

* { box-sizing: border-box; }

.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: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('images/star-watermark.svg');
  background-repeat: repeat;
  background-size: 480px 480px;
  background-position: center top;
  pointer-events: none;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 1.05vw + 14px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Header */
header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand-text {
  font-size: .98rem;
  line-height: 1.2;
}
.brand-text small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: .8rem;
}
.nav-cta {
  font-size: .92rem;
  font-weight: 500;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.nav-cta:hover {
  border-color: var(--accent);
  text-decoration: none;
  background: var(--bg-alt);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
}
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
h1 {
  font-size: clamp(2rem, 4.2vw + 1rem, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  font-weight: 600;
  max-width: 22ch;
}
.lede {
  font-size: clamp(1.05rem, .6vw + 1rem, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.lede cite {
  display: block;
  margin-top: .75rem;
  font-size: .9rem;
  font-style: normal;
  letter-spacing: .04em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero-centered { text-align: center; }
.hero-centered h1,
.hero-centered .lede { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-soft); text-decoration: none; }
.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* Pull-quote */
.quote {
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.quote p {
  font-size: clamp(1.1rem, .7vw + 1rem, 1.4rem);
  line-height: 1.5;
  margin: 0 0 .75rem;
  font-style: italic;
  letter-spacing: -.005em;
}
.quote cite {
  font-style: normal;
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* Sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section + section { border-top: 1px solid var(--border); }

/* Prose with side photo column — text on left, stacked photos on right */
.prose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.prose-text { min-width: 0; }
.prose-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  align-items: start;
}
.prose-photos figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}
.prose-photos img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 35%;
}

@media (min-width: 760px) {
  .prose-row {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 30%, 290px);
    gap: 2.5rem;
  }
  .prose-photos {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .prose-photos figure {
    aspect-ratio: auto;
  }
  .prose-photos img {
    height: auto;
    object-fit: initial;
  }
}

h2 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.1rem);
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 600;
}
.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 2.25rem;
}
.about-prose p {
  max-width: 60ch;
  margin: 0 0 1.25rem;
}
.about-prose p:last-of-type { margin-bottom: 2.25rem; }
.section-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 500;
}

/* Contact */
.contact {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.contact h2 { margin-bottom: .75rem; }
.contact p {
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto 1.75rem;
}
.email-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  transition: border-color .2s ease, transform .15s ease;
}
.email-pill:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.email-pill:active { transform: translateY(1px); }
.email-pill svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
}

/* Prayers page */
.prayer-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.prayer-toc a {
  font-size: .88rem;
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s ease, background .2s ease;
}
.prayer-toc a:hover {
  border-color: var(--accent);
  text-decoration: none;
  background: var(--bg-alt);
}

.prayer {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5rem;
}
.prayer:last-child { border-bottom: none; }
.prayer h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0;
}
.prayer blockquote {
  font-style: italic;
  margin: 0 0 .9rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--border);
  color: var(--text);
  line-height: 1.7;
  max-width: 62ch;
}
.prayer blockquote p { margin: 0 0 1rem; }
.prayer blockquote p:last-child { margin-bottom: 0; }
.prayer cite {
  font-style: normal;
  font-size: .88rem;
  color: var(--muted);
  letter-spacing: .04em;
}
.prayer-end {
  text-align: center;
  padding-top: 2rem;
}

/* Footer */
footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .88rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.footer-links a { color: var(--muted); margin-left: 1.25rem; }
.footer-links a:first-child { margin-left: 0; }

/* Subtle entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1       { animation-delay: .05s; }
  .hero .lede    { animation-delay: .15s; }
  .hero .hero-actions { animation-delay: .25s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
