@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --ink: #1c2b24;
  --deep: #101e18;
  --cream: #f4efe6;
  --paper: #fbf8f3;
  --gold: #b8924a;
  --gold-soft: #e6d3a4;
  --muted: #5a6a62;
  --line: rgba(28, 43, 36, 0.12);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(184, 146, 74, 0.16), transparent 55%),
    var(--cream);
}
::selection { background: #ead9b0; color: #1a160f; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #9a6b32; outline-offset: 4px; }

.skip {
  position: absolute;
  z-index: 40;
  left: 1rem;
  top: -4rem;
  padding: 1rem;
  background: white;
}
.skip:focus { top: 1rem; }

header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
  padding: 0.85rem max(4vw, 1.25rem);
  background: rgba(251, 248, 243, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(184, 146, 74, 0.75);
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold-soft);
  font-size: 1.15rem;
}
nav { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.55rem); }
nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
nav a[aria-current]:not(.portal)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 1px;
  background: var(--gold);
}
.portal, .button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.portal { background: var(--deep); color: var(--paper); font-size: 0.84rem; }
.button { background: var(--gold); color: #241c10; }
.button:hover, .portal:hover { transform: translateY(-1px); }
.button:hover { background: #c9a45d; }
.portal:hover { background: #1b3128; }
.menu { display: none; }
.wrap { width: min(1120px, 88%); margin-inline: auto; }

.hero, .mast { position: relative; color: white; background: var(--deep); }
.slide, .mast, .photo { background-position: center; background-size: cover; }
.church { --photo: url(church.webp); --tint: #243b2f; }
.bible { --photo: url(bible.webp); --tint: #5a4231; }
.computer { --photo: url(computer.webp); --tint: #254344; }
.slide, .mast {
  background-color: var(--tint);
  background-image:
    linear-gradient(180deg, rgba(8, 16, 12, 0.15), rgba(8, 16, 12, 0.28) 80%, rgba(8, 16, 12, 0.55)),
    linear-gradient(100deg, rgba(8, 16, 12, 0.92) 0%, rgba(8, 16, 12, 0.62) 46%, rgba(8, 16, 12, 0.12) 100%),
    var(--photo);
}
.slide {
  min-height: clamp(540px, 78vh, 760px);
  display: flex;
  align-items: center;
  padding: 5.5rem max(7vw, 1.5rem);
}
.hero-copy { max-width: 680px; }
.hero-copy > p:not(.eyebrow) {
  max-width: 34rem;
  color: #f3ecdf;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.65;
  margin: 1.35rem 0 1.8rem;
}
.eyebrow {
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 1rem;
}
.hero .eyebrow, .mast .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold-soft);
}
.hero .eyebrow::before, .mast .eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
}
h1, .hero h2 { font-size: clamp(3.1rem, 6.6vw, 6.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
h3 { font-size: 2rem; }

.explore { padding: 5.25rem 0 6rem; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 2rem 3rem;
  align-items: end;
}
.lede {
  margin: 0;
  max-width: 28ch;
  justify-self: end;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
  color: #3e5248;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-top: 2.4rem;
}
.card {
  display: block;
  background: var(--paper);
  border: 1px solid rgba(28, 43, 36, 0.08);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(16, 30, 24, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(16, 30, 24, 0.12);
}
.photo {
  aspect-ratio: 1.45;
  background-color: var(--tint);
  background-image: var(--photo);
  transform: scale(1.001);
  transition: transform 0.6s ease;
}
.card:hover .photo { transform: scale(1.045); }
.card > div:last-child { padding: 1.35rem 1.35rem 1.5rem; }
.card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.card h3 span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(184, 146, 74, 0.55);
  border-radius: 50%;
  font: 0.9rem "DM Sans", sans-serif;
  color: var(--gold);
}
.card p, .body p { line-height: 1.7; color: var(--muted); }
.card p { margin: 0.7rem 0 0; }

.mast { min-height: 340px; display: flex; align-items: flex-end; padding: 0; }
.mast .wrap { padding: 4.5rem 0 3rem; }
.body { padding: 4.25rem 0 5.5rem; min-height: 55vh; }
.body h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.body h2:not(:first-child) { margin-top: 2.4rem; }
.body p { max-width: 62ch; font-size: 1.05rem; }
.frame {
  max-width: none;
  margin-top: 1rem;
  padding: 2.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.55);
  text-align: center;
  letter-spacing: 0.03em;
}
.actions, .portal-grid {
  display: flex;
  gap: 1.15rem 1.4rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.actions a:not(.button) {
  font-weight: 600;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--gold);
}
.portal-grid { align-items: stretch; margin-bottom: 1.6rem; }
.portal-grid article {
  position: relative;
  flex: 1 1 240px;
  padding: 1.6rem 1.45rem 1.45rem;
  background: var(--paper);
  border: 1px solid rgba(28, 43, 36, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(16, 30, 24, 0.05);
}
.portal-grid article::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-bottom: 1.1rem;
  background: var(--gold);
}
.portal-grid h2 { font-size: 2.15rem; }
.portal-grid p { margin-bottom: 0; }

footer {
  background: var(--deep);
  color: #f3eadc;
  padding: 1.7rem 0;
  border-top: 1px solid rgba(184, 146, 74, 0.55);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
}
footer a:not(.brand) { text-underline-offset: 0.3em; text-decoration-color: rgba(230, 211, 164, 0.7); }
footer p { margin: 0; letter-spacing: 0.04em; color: rgba(243, 234, 220, 0.78); }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .slide { animation: arrive 0.8s ease, drift 24s ease-in-out infinite alternate; }
  .mast { animation: drift 24s ease-in-out infinite alternate; }
}
@keyframes arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drift {
  from { background-position: center 46%; }
  to { background-position: center 54%; }
}

@media (max-width: 880px) {
  header { position: relative; flex-wrap: wrap; gap: 0.7rem; }
  .menu {
    display: block;
    background: transparent;
    border: 1px solid rgba(28, 43, 36, 0.22);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    color: var(--ink);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
  }
  nav {
    display: none;
    flex-basis: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0 0.8rem;
  }
  nav.open { display: flex; }
  nav a { padding: 0.7rem 0.15rem; }
  nav a[aria-current]:not(.portal)::after { bottom: 0.45rem; width: 1.5rem; right: auto; }
  .portal { align-self: flex-start; margin-top: 0.35rem; }
}
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 0.8rem; }
  .lede { justify-self: start; font-size: 1.3rem; }
}
@media (max-width: 620px) {
  .slide { padding-inline: 6vw; }
  .cards { grid-template-columns: 1fr; }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .explore { padding-top: 3rem; }
  h1, .hero h2 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
}
