@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600&display=swap");

:root {
  --ivory: #f8f3ea;
  --cream: #efe3cf;
  --linen: #d8c7ae;
  --gold: #d8a545;
  --gold-dark: #b9842e;
  --brown: #6f5a45;
  --charcoal: #3b332d;
  --white: #fffdf9;
  --border: rgba(111, 90, 69, 0.22);
  --shadow: 0 12px 34px rgba(59, 51, 45, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--ivory);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
blockquote {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

p {
  margin-top: 0;
}

.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;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 104px;
  padding: 16px clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(248, 243, 234, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 285px;
  max-width: 48vw;
  max-height: 82px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav > a:not(.nav-button) {
  padding: 12px 0;
  border-bottom: 1px solid transparent;
}

.site-nav > a:not(.nav-button):hover,
.site-nav > a:not(.nav-button):focus-visible {
  color: var(--gold-dark);
  border-color: var(--gold);
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.nav-button,
.button-solid {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}

.nav-button:hover,
.nav-button:focus-visible,
.button-solid:hover,
.button-solid:focus-visible {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.button-outline {
  color: var(--charcoal);
  background: transparent;
  border-color: var(--gold);
}

.button-outline:hover,
.button-outline:focus-visible {
  color: #fff;
  background: var(--gold);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 46px;
  height: 42px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--charcoal);
}

/* Hero */

.hero {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
  overflow: hidden;
  background: transparent;
}

.hero-copy {
  padding: clamp(60px, 7vw, 110px) clamp(28px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: transparent;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--gold);
  font-weight: 500;
}

.hero-line {
  margin: 30px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-art {
width: 100%;
height: auto;
overflow: hidden;
background: var(--transparent);
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Ministry pillars */

.pillars {
  padding: 48px clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.pillars article {
  padding: 4px clamp(16px, 2.4vw, 36px);
  text-align: center;
  border-right: 1px solid var(--border);
}

.pillars article:last-child {
  border-right: 0;
}

.line-icon {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.pillars h2 {
  margin: 14px 0 6px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pillars p {
  max-width: 230px;
  margin: 0 auto;
  font-size: 0.86rem;
}

/* Shared section styling */

.section {
  padding: clamp(74px, 8vw, 118px) clamp(20px, 6vw, 88px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.welcome h2,
.simple-section h2,
.prayer-section h2 {
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1;
}

.section-heading > p:last-child,
.simple-section > p:last-child {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

/* Study cards */

.study-grid {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.study-card {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  display: block;
  flex: none;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 4px 4px 0 0;
}

.image-one {
  background-image: url("study-psalm27.jpg");
}

.image-two {
  background-image: url("study-proverbs3.jpg");
}

.image-three {
  background-image: url("study-psalm46.jpg");
}

.image-four {
  background-image: url("study-proverbs16.jpg");
}

.image-five {
  background-image: url("study-matthew6.jpg");
}

.image-six {
  background-image: url("study-closing.jpg");
}

.card-copy {
  padding: 24px 20px 26px;
  display: flex;
  flex: 1;
  flex-direction: column;
  text-align: center;
}

.book {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-copy h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.card-copy p:not(.book) {
  margin-bottom: 18px;
  font-size: 0.84rem;
}

.card-copy a,
.text-link {
  margin-top: auto;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-copy a:hover,
.card-copy a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--brown);
}

/* Scripture banner */

.scripture-banner {
  padding: 74px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(216, 165, 69, 0.14), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(216, 165, 69, 0.11), transparent 30%),
    var(--cream);
  border-block: 1px solid var(--border);
}

.scripture-banner blockquote {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.12;
}

.scripture-banner cite {
  display: block;
  margin-top: 18px;
  color: var(--gold-dark);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Welcome */

.welcome {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--white);
}

.welcome-image {
  min-height: 520px;
}

.welcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-copy {
  padding: clamp(58px, 8vw, 112px);
  align-self: center;
}

.welcome-copy p {
  max-width: 650px;
}

/* Resources */

.simple-section {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.resource-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 2rem;
}

.resource-links a {
  display: block;
  color: #D8A545;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  transition: opacity .3s ease;
}

.resource-links a:hover {
  opacity: .75;
}

/* Monthly prayer */

.prayer-section {
  display: block;
  background: var(--cream);
  border-block: 1px solid var(--border);
}

.monthly-prayer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.monthly-prayer h2 {
  margin-bottom: 20px;
}

.prayer-introduction {
  max-width: 680px;
  margin: 0 auto 34px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.5;
}

.prayer-text {
  padding: clamp(28px, 5vw, 52px);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prayer-text p {
  margin-bottom: 18px;
}

.prayer-text p:last-child {
  margin-bottom: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  text-align: center;
}

.prayer-scripture {
  max-width: 700px;
  margin: 32px auto 0;
  color: var(--gold-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
}

/* Footer */

.site-footer {
  padding: 54px clamp(22px, 6vw, 88px) 26px;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1fr;
  gap: 42px;
  align-items: start;
  background: #efe6d6;
  border-top: 1px solid var(--border);
}

.footer-brand img {
  width: 120px;
  max-width: 100%;
  height: auto;
  margin: 0 0 14px;
  object-fit: contain;
  object-position: left center;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  font-size: 0.9rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  text-align: center;
}

/* Tablet */

@media (max-width: 1100px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 104px;
    right: 18px;
    left: 18px;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(59, 51, 45, 0.14);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    width: 100%;
    padding: 64px 24px 52px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 11vw, 5rem);
  }

  .hero-line {
    margin-top: 24px;
  }

  .button-row {
    justify-content: center;
  }

  .hero-art {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }

  .hero-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }

  .pillars article:nth-child(2) {
    border-right: 0;
  }

  .pillars article:nth-child(-n + 2) {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
  }

  .study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 700px) {
  .site-header {
    min-height: 82px;
    padding: 10px 16px;
  }

  .brand img {
    width: 205px;
    max-width: 68vw;
    max-height: 62px;
  }

  .site-nav {
    top: 82px;
  }

  .hero-copy {
    padding: 54px 20px 44px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.3rem);
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .hero-art {
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .hero-art img {
    object-fit: contain;
    object-position: center;
  }

  .pillars {
    grid-template-columns: 1fr;
    padding: 46px 22px;
  }

  .pillars article,
  .pillars article:nth-child(2),
  .pillars article:nth-child(-n + 2) {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .pillars article:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 72px 20px;
  }

  .study-grid {
    grid-template-columns: 1fr;
  }

  .welcome {
    grid-template-columns: 1fr;
  }

  .welcome-image {
    min-height: 360px;
  }

  .welcome-copy {
    padding: 62px 24px;
  }

  .prayer-text {
    padding: 28px 22px;
  }

  .prayer-introduction {
    font-size: 1.2rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand img {
    width: 105px;
  }

  .copyright {
    grid-column: auto;
  }
}

/* Small phones */

@media (max-width: 420px) {
  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  /* 404 PAGE */

  .error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: #F8F3EA;
  }

  .error-logo {
    width: 160px;
    margin-bottom: 2rem;
  }

  .error-page h1 {
    font-family: "Cormorant Garamond", serif;
    text-align: center;
    font-size: 3rem;
    color: #3B332D;
    margin-bottom: 1rem;
  }

  .error-text {
    max-width: 550px;
    color: #6B625A;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
  }

  .error-scripture {
    color: #D8A545;
    font-style: italic;
    margin-bottom: 2.5rem;
    line-height: 1.8;
  }

  .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #D8A545;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    transition: .3s;
  }

  .btn-primary:hover {
    background: #c79534;
    transform: translateY(-2px);
  }
}
