/* Brethren of Divinity — site look. Colors are set once here. */
:root {
  --cream: #fbf5e9; --paper: #fffdf8; --ink: #3b2a1a; --dim: #6e5a44;
  --gold: #b8862b; --gold-lt: #e2b65a; --brown: #5a3a1c; --line: #e6d8bd;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.6 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
h1, h2, h3 { font-family: var(--serif); color: var(--brown); line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
.small { font-size: .85rem; color: var(--dim); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }

/* ---- top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 2px solid var(--line);
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 8px 20px; box-shadow: 0 2px 10px rgba(90,58,28,.08); }
.brand img { height: 64px; width: auto; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.topbar nav a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; font-size: 1.02rem; }
.topbar nav a:hover, .topbar nav a[aria-current] { border-bottom-color: var(--gold); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; font: inherit; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--brown); cursor: pointer; }
@media (max-width: 860px) {
  .brand img { height: 48px; }
  .menu-btn { display: block; }
  .topbar nav { display: none; width: 100%; flex-direction: column; margin: 0; }
  .topbar.open nav { display: flex; }
}

/* ---- homepage banner */
.hero { position: relative; min-height: clamp(320px, 46vw, 560px); display: grid; place-items: center; text-align: center;
  background: url("../img/banner.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,250,238,.82) 0%, rgba(255,250,238,.5) 45%, rgba(255,250,238,0) 75%); }
.hero .msg { position: relative; max-width: 760px; padding: 24px; }
.hero h1 { text-shadow: 0 1px 0 #fff; }
.hero p { font-size: 1.2rem; color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.8); }

/* ---- buttons */
.btn { display: inline-block; text-decoration: none; background: var(--paper); color: var(--brown); border: 1px solid var(--gold);
  border-radius: 999px; padding: 8px 18px; margin: 4px 6px 4px 0; font-size: .95rem; }
.btn:hover { background: #fff3da; }
.btn.gold { background: linear-gradient(#e7bf6a, var(--gold)); color: #2a1a08; border-color: #9a6f22; font-weight: bold; }
.btn.big { font-size: 1.15rem; padding: 12px 28px; }

/* ---- section picture cards on the homepage */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tile { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(90,58,28,.15); transition: transform .15s; }
.tile:hover { transform: translateY(-3px); }

/* ---- content cards */
.cards { display: grid; gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(90,58,28,.08); }
.card .body { padding: 18px 22px; }
.card .date { color: var(--dim); font-size: .9rem; margin: -.2em 0 .5em; }
.video { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.embed { aspect-ratio: 16 / 9; background: #2b1d0f; display: grid; place-items: center; text-decoration: none; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.embed.soon { background: linear-gradient(135deg, #5a3a1c, #2b1d0f); color: #f3e3bf; text-align: center; font-size: 1.4rem; }
.embed.soon small { font-size: .95rem; color: var(--gold-lt); }
@media (max-width: 760px) { .video { grid-template-columns: 1fr; } }
.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.song audio { width: 100%; margin: 6px 0; }
.page-head { text-align: center; padding: 40px 20px 8px; }
.page-head img { max-width: 720px; margin: 0 auto 12px; border-radius: 14px; }
.page-head p { max-width: 720px; margin: 0 auto; color: var(--dim); }

/* ---- about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.about img { border-radius: 14px; box-shadow: 0 4px 16px rgba(90,58,28,.18); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.give { text-align: center; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- footer */
footer { text-align: center; padding: 32px 20px 40px; background: #f3e8d2; border-top: 2px solid var(--line); }
footer img { margin: 0 auto 8px; }
footer p { margin: 4px 0; }
