/* Shared styles for avlambofgod.com: warm black, cream, and gold. */
:root {
  --bg: #0f0d0b;
  --surface: #17140f;
  --surface-2: #201b14;
  --ink: #f3ece0;
  --muted: #b4a993;
  --gold: #d9b779;
  --gold-dim: rgba(217, 183, 121, 0.35);
  --line: rgba(217, 183, 121, 0.2);
  --error: #e8a090;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
}
body.centered { display: grid; place-items: center; padding: 48px 16px; }

/* Soft dawn light rising from below */
body::before {
  content: "";
  position: fixed;
  inset: auto -20% -45% -20%;
  height: 90vh;
  background: radial-gradient(ellipse at center, rgba(217,183,121,0.22) 0%, rgba(217,183,121,0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: rise 9s ease-out both;
  z-index: 0;
}
@keyframes rise { from { opacity: 0; transform: translateY(8%); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

main { position: relative; z-index: 1; width: 100%; }

/* Faint empty-tomb artwork along the bottom of the viewport, behind content. */
.bg-art {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: max(100vw, 900px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.bg-art img { display: block; width: 100%; height: auto; opacity: .12; }
.page { max-width: 640px; margin: 0 auto; padding: 64px 16px 96px; }
.page.wide { max-width: 1040px; }
.center { text-align: center; }

.fade > * { animation: fade 1.4s ease-out both; }
.fade > *:nth-child(2) { animation-delay: .2s; }
.fade > *:nth-child(3) { animation-delay: .4s; }
.fade > *:nth-child(4) { animation-delay: .6s; }
.fade > *:nth-child(5) { animation-delay: .8s; }
.fade > *:nth-child(n+6) { animation-delay: 1s; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 13vw, 112px);
  line-height: .95;
  letter-spacing: -.01em;
}
.title.sm { font-size: clamp(44px, 10vw, 72px); }
.composer {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 4vw, 26px);
  color: var(--muted);
  margin-top: 16px;
}
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 180px;
  margin: 40px auto;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.rule::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.rule span { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.date {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .04em;
}
.note { margin-top: 14px; font-size: 15px; color: var(--muted); }
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  font: 500 13px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.btn.primary { background: var(--gold); color: var(--bg); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.small { min-height: 36px; padding: 8px 14px; font-size: 11px; letter-spacing: .14em; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Forms */
form { text-align: left; }
.field { margin-bottom: 22px; }
label, .label {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
input, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  font: 16px var(--sans);
}
input:focus, select:focus { border-color: var(--gold); outline: none; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Performance choices */
.choices { display: grid; gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice .card { transition: border-color .2s, background .2s; }
.choice input:checked + .card { border-color: var(--gold); background: var(--surface-2); }
.choice input:focus-visible + .card { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice input:disabled { cursor: default; }
.choice input:disabled + .card { opacity: .5; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px 20px;
}
.card .when { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.card .where { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tag { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

.message { margin: 16px 0; padding: 14px 16px; border-left: 2px solid var(--gold); background: var(--surface); }
.message.error { border-color: var(--error); color: var(--error); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.code { font-family: var(--serif); font-size: 40px; letter-spacing: .12em; color: var(--gold); }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 20px 0; }
dl.details dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
dl.details dd { margin: 0; }
footer.site { margin-top: 56px; text-align: center; font-size: 13px; color: var(--muted); }
/* Organizer credit: plain body text by design (Church guidance: don't imitate the Church wordmark). */
.presented { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); letter-spacing: 0; text-transform: none; }
footer.site .presented + p { margin-top: 8px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  body::before, .fade > * { animation: none; }
}
