/* Countryside Bible Church — site styles
   Colors come from the church logo: deep brown + wheat gold on cream. */

:root {
  --brown: #5D350E;        /* logo brown: buttons, links, accents */
  --ink: #3A2410;          /* body text, top bar, footer */
  --cream: #F8F2E7;        /* page background */
  --white: #FFFFFF;
  --line: #E8DCC8;
  --line-strong: #DCCBB0;
  --muted: #5A4636;
  --muted-2: #6B5644;
  --gold: #D9A42C;         /* decorative only (rules, accents on dark) */
  --gold-text: #A8721A;    /* gold that still reads on white at large sizes */
  --on-brown: #F8EEDC;
  --on-brown-soft: #F0D9A8;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar { background: var(--ink); color: #F3E8D6; font-size: 15px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: var(--white); }

/* Header */
.site-header { background: var(--white); border-bottom: 3px solid var(--gold); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand span { font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.1; }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--brown); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--brown); color: var(--brown); }
.btn-on-dark { background: var(--white); color: var(--brown); }
.btn-on-dark:hover { background: var(--on-brown); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Shared section bits */
.section { padding: 96px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brown); margin-bottom: 10px; }
.h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 18px; }
.lead { font-size: 20px; color: var(--muted); max-width: 32em; }
.muted { color: var(--muted-2); }
.text-link-row { display: flex; flex-wrap: wrap; gap: 6px 26px; font-weight: 700; margin-top: 24px; }
.text-link-row a { padding: 8px 0; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.0; }
.hero .lead { margin-top: 28px; }
/* Main photo: church-window arch with a gold edge */
.hero-photo { flex: 1 1 460px; min-width: 0; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border: 6px solid var(--gold); border-radius: 50% 50% 8px 8px / 32% 32% 8px 8px; }

/* Weekly schedule + about */
.week .wrap { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 88px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.week .card { flex: 1 1 460px; min-width: 0; }
.week .card h2 { font-size: 30px; margin-bottom: 18px; }
.schedule { margin: 0; }
.schedule div { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); }
.schedule div:last-child { border-bottom: 0; }
.schedule dt { font-weight: 600; }
.schedule dd { margin: 0 0 0 auto; font-weight: 700; color: var(--brown); white-space: nowrap; }
.about { flex: 1 1 460px; min-width: 0; padding: 8px 8px 0; }
.about p + p { margin-top: 16px; }

/* Ministries */
.ministries { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; margin-top: 44px; }
.ministry .num { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; color: var(--gold-text); }
.ministry h3 { font-size: 24px; margin: 12px 0 6px; }
.ministry p { color: var(--muted); }

/* Photo strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); background: var(--white); }
.strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Gospel band */
.gospel { background: var(--brown); color: var(--white); text-align: center; }
.gospel .wrap { max-width: 960px; padding-top: 104px; padding-bottom: 104px; }
.gospel .eyebrow { color: var(--on-brown-soft); font-size: 22px; margin-bottom: 20px; }
.gospel blockquote { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.8vw, 50px); line-height: 1.15; font-weight: 700; }
.gospel .ref { margin-top: 18px; font-weight: 700; color: var(--on-brown-soft); }
.gospel .body { margin: 32px auto 0; max-width: 36em; color: var(--on-brown); }
.gospel .btn { margin-top: 30px; }

/* Sermons */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; }
.section-head .h2 { margin-bottom: 0; }
.section-head > a { font-weight: 700; padding: 8px 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: #E9DCC6; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Leadership + visit */
.split .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.leadership { flex: 1 1 520px; min-width: 0; }
.leadership img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 8px 0 24px; }
.leadership h2 { font-size: 32px; margin-bottom: 4px; }
.leadership p + p { margin-top: 14px; }
.leadership h3 { font-size: 22px; margin: 36px 0 12px; }
.visit { flex: 1 1 400px; min-width: 0; background: var(--cream); }
.visit h2 { font-size: 32px; margin-bottom: 16px; }
.visit img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.visit .btn { margin-top: 20px; }

/* Inner pages */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 64px; padding-bottom: 48px; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); }
.page-head .lead { margin-top: 14px; }
.prose { max-width: 780px; }
.prose p + p { margin-top: 18px; }
.prose blockquote { margin: 32px 0; padding: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 700; color: var(--brown); }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--sans); font-size: 17px; font-style: normal; color: var(--muted-2); }
.beliefs { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.beliefs li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.beliefs li:first-child { padding-top: 0; }
.beliefs h2 { font-size: 24px; margin-bottom: 8px; }
.beliefs p + p { margin-top: 10px; }
.refs { display: block; margin-top: 8px; font-size: 16px; color: var(--muted-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 8px; font-size: 16px; color: var(--muted-2); }

/* Footer */
.site-footer { background: var(--ink); color: #F3E8D6; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding-top: 48px; padding-bottom: 48px; }
.site-footer img { height: 112px; width: auto; }
.site-footer .tagline { margin-top: 10px; font-family: var(--serif); font-style: italic; color: #E9D3A4; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 600; }
.footer-links a { color: var(--white); padding: 10px 0; }
.site-footer .fine { flex-basis: 100%; font-size: 15px; color: #D2BFA3; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 40px; }
  .brand span { font-size: 20px; }
  .brand img { height: 44px; }
  .nav { gap: 0 18px; }
  .card { padding: 24px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .gospel .wrap { padding-top: 72px; padding-bottom: 72px; }
}
