/* Benedict Melodies — shared styles. Palette matches the Musician Suite. */
:root {
  --obsidian: #070503;
  --surface: #110d08;
  --surface-light: #1b1610;
  --line: #3a2e1e;
  --gold: #d4af37;
  --gold-light: #ffe066;
  --gold-dark: #997a15;
  --bronze: #8c6227;
  --cream: #f3ebdd;
  --text: #e5e7eb;
  --muted: #a8a29a;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #000; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.serif { font-family: 'Cinzel', Georgia, serif; }
.metallic {
  background: linear-gradient(135deg, #fff3a1 0%, #d4af37 50%, #8c6227 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(212,175,55,.8);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,13,8,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,175,55,.2);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 46px; height: 46px; border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(212,175,55,.4));
}
.brand span { font-family: 'Cinzel', serif; font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--surface-light); border: 1px solid rgba(212,175,55,.2);
  padding: 4px; border-radius: 14px;
}
.nav a {
  color: #b5aea3; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; min-height: 40px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { background: var(--gold); color: #000; }

/* Hero */
.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 28% 45%, rgba(212,175,55,.10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 56px; align-items: center; position: relative; }
.medallion {
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(212,175,55,.18));
  animation: settle 1.4s cubic-bezier(.2,.8,.2,1) both;
}
.medallion img { width: 100%; height: 100%; border-radius: 50%; }
.medallion::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,243,161,.32) 48%, rgba(255,255,255,.12) 52%, transparent 62%);
  background-size: 260% 100%; background-position: 150% 0;
  mix-blend-mode: screen;
  animation: sweep 7s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { background-position: 150% 0; } 45%, 100% { background-position: -60% 0; } }
@keyframes settle { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .medallion, .medallion::after { animation: none; }
}
.hero h1 { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; margin: 14px 0 18px; }
.verse {
  font-family: 'Cinzel', serif; font-size: 18px; line-height: 1.6; color: var(--cream); margin: 0;
  border-left: 0; padding: 0;
}
.verse cite { display: block; margin-top: 10px; font-style: normal; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero p.lead { color: var(--muted); margin: 22px 0 28px; max-width: 520px; }

.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 14px;
  font-weight: 700; font-size: 15px;
}
.btn-gold { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); color: #000; box-shadow: 0 6px 20px rgba(212,175,55,.18); }
.btn-gold:hover { color: #000; filter: brightness(1.1); }
.btn-ghost { border: 1px solid rgba(212,175,55,.35); color: var(--gold); background: var(--surface-light); }
.btn-ghost:hover { background: rgba(212,175,55,.1); }

/* Sections */
section.block { padding: 56px 0; border-top: 1px solid rgba(212,175,55,.12); }
.section-head { margin-bottom: 28px; max-width: 720px; }
.section-head h2 { font-family: 'Cinzel', serif; font-size: clamp(26px, 3.4vw, 36px); margin: 8px 0 10px; color: var(--gold-light); line-height: 1.2; }
.section-head p { color: var(--muted); margin: 0; }

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

.card {
  background: var(--surface); border: 1px solid rgba(212,175,55,.28);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.4);
  display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 18px;
}
.card h3 { font-family: 'Cinzel', serif; font-size: 20px; margin: 0; color: var(--gold-light); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.card.glow { box-shadow: 0 0 15px rgba(212,175,55,.15); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.35); color: var(--gold); }

.listen-row { display: flex; flex-wrap: wrap; gap: 12px; }

.quote-panel {
  background: linear-gradient(180deg, var(--surface-light), var(--surface));
  border: 1px solid rgba(212,175,55,.28); border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.quote-panel blockquote { margin: 0; font-family: 'Cinzel', serif; font-size: clamp(18px, 2.4vw, 24px); color: var(--cream); line-height: 1.5; }
.quote-panel cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.about p { color: #cfc8bd; max-width: 720px; }

.uploader {
  background: var(--surface); border: 1px solid rgba(212,175,55,.28); border-radius: var(--radius);
  padding: 28px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 22px; align-items: start;
}
.uploader h2 { font-family: 'Cinzel', serif; color: var(--gold-light); font-size: 24px; margin: 0 0 10px; }
.uploader p { margin: 0 0 12px; color: #cfc8bd; }
.uploader ul { margin: 0 0 14px; padding-left: 20px; color: #cfc8bd; }
.uploader li { margin: 4px 0; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: 'Cinzel', serif; font-size: clamp(30px, 4vw, 42px); margin: 8px 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-family: 'Cinzel', serif; color: var(--gold-light); font-size: 22px; margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid rgba(212,175,55,.15); }
.legal h3 { color: var(--gold); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 22px 0 6px; }
.legal p, .legal li { color: #d6d0c6; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(212,175,55,.5); word-break: break-word; }
.callout { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.3); border-radius: 14px; padding: 16px 18px; color: var(--cream); }

/* Footer */
.site-footer { border-top: 1px solid rgba(212,175,55,.2); background: var(--surface); padding: 40px 0 28px; margin-top: 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand .serif { font-size: 18px; font-weight: 700; }
.footer-brand small { display: block; color: var(--muted); font-size: 13px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212,175,55,.35); background: var(--surface-light); color: var(--gold); font-size: 17px;
}
.socials a:hover { background: rgba(212,175,55,.12); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(212,175,55,.12); font-size: 14px; align-items: center; }
.footer-links a { color: var(--gold); min-height: 32px; display: inline-flex; align-items: center; }
.footer-verse { margin-top: 14px; color: var(--muted); font-size: 13px; }
.footer-verse em { font-family: 'Cinzel', serif; font-style: normal; color: #cfc8bd; }

@media (max-width: 900px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .medallion { max-width: 300px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .btns { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .uploader { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header .wrap { justify-content: center; }
  .brand span { font-size: 18px; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  section.block { padding: 44px 0; }
  .card, .uploader, .quote-panel { padding: 20px; }
}
