:root {
  --charcoal: #1a1a18;
  --dark-walnut: #281e17;
  --walnut: #50301d;
  --light-walnut: #8b6037;
  --cream: #fef3da;
  --soft-cream: #f8f1e5;
  --muted: #6c6257;
  --line: #d8c8b2;
  --red: #9e3b32;
  --olive: #777a4e;
  --white: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shadow: 0 24px 60px rgba(40, 30, 23, 0.15);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--soft-cream);
}

body {
  margin: 0;
  color: var(--charcoal);
  background:
    linear-gradient(rgba(80, 48, 29, 0.035) 1px, transparent 1px),
    var(--soft-cream);
  background-size: 100% 38px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

img { max-width: 100%; }

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--charcoal);
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 0.22rem;
  box-shadow: 0 5px 16px rgba(40, 30, 23, 0.2);
}

.brand span { display: flex; flex-direction: column; }

.brand strong {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

nav a {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover { color: var(--red); }

.hero {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(80, 48, 29, 0.22);
  box-shadow: var(--shadow);
}

.hero-intro {
  position: relative;
  z-index: 2;
  width: min(800px, calc(100% - 3rem));
  margin: clamp(-2.25rem, -3vw, -1.4rem) auto 0;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.4rem, 5vw, 4rem);
  text-align: center;
  background: rgba(254, 243, 218, 0.97);
  border-top: 4px solid var(--red);
  box-shadow: 0 18px 40px rgba(40, 30, 23, 0.12);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5vw, 4.35rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }

.hero-intro > p:not(.eyebrow) {
  max-width: 650px;
  margin: 1.2rem auto 0;
  color: #4f463d;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.2rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border: 2px solid var(--walnut);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

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

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

.button-secondary {
  color: var(--walnut);
  background: transparent;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--walnut);
}

.section {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-heading { max-width: 790px; }

.about { border-top: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: 2.6rem;
}

.lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.55;
}

.hymnal-note {
  position: relative;
  padding: 2rem 2rem 2rem 5.1rem;
  color: var(--white);
  background: var(--dark-walnut);
  box-shadow: 12px 12px 0 var(--line);
}

.hymnal-note p { margin: 0; }

.note-number {
  position: absolute;
  left: 1.25rem;
  top: 1.3rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.weekly {
  width: 100%;
  max-width: none;
  padding-right: max(1.5rem, calc((100% - 1120px) / 2));
  padding-left: max(1.5rem, calc((100% - 1120px) / 2));
  color: var(--white);
  background: var(--dark-walnut);
}

.light-heading .eyebrow { color: #df9c87; }
.light-heading h2 { color: var(--cream); }
.light-heading > p:last-child { max-width: 650px; color: #d8cdc3; }

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin: 3rem 0 0;
  padding: 1px;
  list-style: none;
  background: rgba(254, 243, 218, 0.23);
}

.week-grid li {
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  padding: 1.25rem 1rem;
  background: #33261d;
}

.week-grid li:nth-child(2n) { background: #3b2c21; }

.week-grid span {
  color: #dda798;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.week-grid strong {
  margin-top: auto;
  padding-top: 3rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
}

.week-grid small {
  display: block;
  margin-top: 0.7rem;
  color: #cfc3b9;
  font-size: 0.88rem;
  line-height: 1.5;
}

.visit-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.visit-card > div > p:not(.eyebrow) {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: #554a40;
  font-size: 1.05rem;
}

.visit-card .button-row { justify-content: flex-start; }

.text-link {
  color: var(--walnut);
  font-size: 0.95rem;
  font-weight: 800;
}

blockquote {
  margin: 0;
  padding: 2rem 0 2rem 2rem;
  border-left: 5px solid var(--red);
}

blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-style: italic;
  line-height: 1.35;
}

blockquote cite {
  display: block;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer {
  padding: 3.2rem max(1.5rem, calc((100% - 1120px) / 2)) 2rem;
  color: #d9cec6;
  background: #17120f;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img { width: 5.5rem; border-radius: 0.2rem; }

.footer-brand strong {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.footer-brand p { margin: 0.2rem 0 0; }

.disclaimer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.4rem;
  padding: 1.5rem 0;
  border-top: 1px solid #493a31;
  border-bottom: 1px solid #493a31;
}

.disclaimer p {
  margin: 0;
  color: #bfb2a8;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  color: #9f9187;
  font-size: 0.82rem;
}

.footer-bottom div { display: flex; gap: 1rem; }

@media (max-width: 980px) {
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .week-grid li:last-child { grid-column: 1 / -1; min-height: 11rem; }
  .week-grid li { min-height: 13rem; }
}

@media (max-width: 760px) {
  .site-header { width: min(100% - 2rem, 1180px); }
  .brand small { display: none; }
  nav { gap: 0.9rem; }
  nav a { font-size: 0.82rem; }
  .hero { width: 100%; }
  .hero-image { border-right: 0; border-left: 0; }
  .hero-intro { width: calc(100% - 2rem); }
  .section { width: min(100% - 2rem, 1120px); }
  .about-grid,
  .visit-card,
  .disclaimer { grid-template-columns: 1fr; }
  .visit-card { padding: 2rem 1.25rem; }
  blockquote { padding: 0 0 0 1.25rem; }
}

@media (max-width: 520px) {
  .site-header { align-items: flex-start; }
  .brand img { width: 3.35rem; height: 3.35rem; }
  .brand strong { max-width: 7rem; font-size: 1rem; }
  nav { padding-top: 0.8rem; }
  nav a:nth-child(2) { display: none; }
  .hero-intro { margin-top: -0.8rem; padding: 1.5rem 1rem 1.8rem; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hymnal-note { padding: 4.8rem 1.4rem 1.5rem; }
  .week-grid { grid-template-columns: 1fr; }
  .week-grid li,
  .week-grid li:last-child { grid-column: auto; min-height: 10.5rem; }
  .week-grid strong { padding-top: 1.8rem; }
  .footer-bottom { flex-direction: column; }
}

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