/* Grace Bible Fellowship — black, gold and warm stone, after their original theme */
:root {
  --ink: #2b2a28;
  --muted: #5c5a55;
  --black: #1c1b1a;
  --gold: #ffc800;
  --gold-dark: #e6b400;
  --maroon: #7f2323;
  --stone: #f5f2ea;
  --line: #e2ddd0;
  --white: #fff;
  --head: "Fjalla One", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--black); }
h1, h2, h3 { font-family: var(--head); font-stretch: condensed; font-weight: 700; line-height: 1.15; color: var(--black); letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--black); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { background: var(--black); border-top: 5px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { color: var(--white); text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; padding: .5rem 0; }
.brand:hover { color: var(--white); }
.brand { min-width: 0; }
.brand-name { font-family: var(--head); font-stretch: condensed; font-weight: 700; font-size: clamp(.98rem, 4.2vw, 1.3rem); letter-spacing: .04em; text-transform: uppercase; }
@media (min-width: 600px) { .brand-name { letter-spacing: .06em; } }
.nav-toggle { flex: none; }
.brand-tag { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.35); border-radius: 6px; padding: .5rem .8rem; font: 700 .9rem var(--body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; min-height: 44px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-top: 1px solid rgba(255,255,255,.12); padding: .5rem 1.25rem 1.25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; color: var(--white); text-decoration: none; font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; padding: .8rem .25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
@media (min-width: 1160px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: stretch; }
  .site-nav a { border: 0; padding: 0 .85rem; line-height: 68px; font-size: .85rem; }
  .site-nav a[aria-current="page"] { background: var(--gold); color: var(--black); }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--black); overflow: hidden; }
.hero picture, .hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img.hero-bg { object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,18,.55) 0%, rgba(20,19,18,.72) 100%); }
.hero-inner { position: relative; z-index: 1; text-align: center; padding: clamp(4.5rem, 14vw, 9rem) 0 clamp(4rem, 12vw, 8rem); }
.hero h1 { color: var(--white); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: break-word; margin-bottom: .4em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.verse { font-style: italic; font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 54ch; margin: 0 auto 2rem; color: #f4efe2; }
.verse cite { display: block; font-style: normal; font-weight: 700; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin-top: .6rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 700; letter-spacing: .04em; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--body); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-dark); color: var(--black); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--gold); }

/* Inner page banner (their rowing banner) */
.page-head { position: relative; color: var(--white); background: #3a352b url("img/rowing-sm.webp") center 70% / cover no-repeat; }
@media (min-width: 800px) { .page-head { background-image: url("img/rowing.webp"); } }
.page-head::after { content: ""; position: absolute; inset: 0; background: rgba(28,27,26,.5); }
.page-head .wrap { position: relative; z-index: 1; padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.page-head h1 { color: var(--white); margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.page-head p { margin: .5rem 0 0; color: #f4efe2; max-width: 60ch; font-size: 1.1rem; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--maroon); margin-bottom: .5rem; }
.page-head .eyebrow, .dark .eyebrow { color: var(--gold); }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section.alt { background: var(--stone); }
.section.dark { background: var(--black); color: #ece8dd; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark a { color: var(--gold); }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.split img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.12); }

.solas { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .5rem; }
.solas li { font-family: var(--head); font-stretch: condensed; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em; padding-left: 1.4rem; position: relative; }
.solas li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; background: var(--gold); border-radius: 2px; }

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards.two { grid-template-columns: repeat(2, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; border-top: 4px solid var(--gold); }
.section.alt .card { border-color: var(--line); border-top-color: var(--gold); }
.card h3 { margin-bottom: .25rem; }
.card .role { color: var(--maroon); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .75rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 700; text-decoration: none; }
.card-link::after { content: " →"; }

/* Messages */
.message { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.message-meta { padding: 1.1rem 1.25rem; }
.message-meta h3 { margin: 0 0 .15rem; font-size: 1.25rem; }
.message-meta p { margin: 0; color: var(--muted); font-size: .95rem; }
.player { position: relative; background: #2a2926; aspect-ratio: 2 / 1; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame { position: relative; aspect-ratio: 4 / 3; background: #2a2926; border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Schedule */
.times { list-style: none; margin: 0; padding: 0; }
.times li { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.times li:last-child { border-bottom: 0; }
.times .t { font-weight: 700; min-width: 6.5rem; color: var(--black); }

/* Beliefs */
.beliefs { counter-reset: none; }
.belief { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.belief:last-child { border-bottom: 0; }
.belief h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); display: flex; gap: .75rem; align-items: baseline; }
.belief h2 .num { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gold); color: var(--black); font-size: 1.1rem; flex: none; }
.refs { color: var(--muted); font-size: .93rem; font-style: italic; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.toc a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; background: var(--stone); border: 1px solid var(--line); text-decoration: none; color: var(--black); font-weight: 700; font-size: .92rem; }
.toc a:hover { background: var(--gold); }

/* Gallery */
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: .9rem; } }
.gallery a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
.lightbox { position: fixed; inset: 0; background: rgba(10,10,10,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: var(--gold); color: var(--black); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }

/* Links */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .link-list { grid-template-columns: repeat(2, 1fr); } }
.link-list a { display: block; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); height: 100%; }
.link-list a:hover { border-color: var(--gold); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.link-list strong { display: block; font-family: var(--head); font-stretch: condensed; font-size: 1.35rem; color: var(--black); letter-spacing: .03em; }
.link-list span { color: var(--muted); font-size: .95rem; }

/* Form */
.form { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); }
@media (min-width: 640px) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form .row > div { display: grid; gap: .35rem; }
.form .row > div + div { margin-top: 1rem; }
@media (min-width: 640px) { .form .row > div + div { margin-top: 0; } }
.form label { font-weight: 700; font-size: .95rem; }
.form input, .form textarea { width: 100%; font: inherit; color: inherit; padding: .75rem .85rem; border: 1px solid #bdb7a8; border-radius: 8px; background: #fffdf8; min-height: 48px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--black); outline: 3px solid rgba(255,200,0,.6); outline-offset: 0; }
.form .field { display: grid; gap: .35rem; }
.form button { justify-self: start; }
.req { color: var(--maroon); }

/* Footer */
.site-footer { background: var(--black); color: #d9d4c7; padding: 3.5rem 0 2.5rem; border-top: 5px solid var(--gold); font-size: .98rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: var(--gold); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer li a { display: inline-block; padding: .1rem 0; }
.footer-name { font-family: var(--head); font-stretch: condensed; font-size: 1.4rem; color: var(--white); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: #b5b0a3; margin-bottom: 1.25rem; }

.center { text-align: center; }
.mt { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
