:root {
  --bg: #0a0506;
  --wine: #3a0d16;
  --blood: #8b1530;
  --gold: #e8c36a;
  --gold-hot: #ffe7a0;
  --gold-deep: #9a6b24;
  --cream: #f6ead4;
  --muted: rgba(246, 234, 212, 0.62);
  --card: #14080c;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(139, 21, 48, 0.38), transparent 58%),
    radial-gradient(800px 500px at 110% 80%, rgba(154, 107, 36, 0.16), transparent 50%),
    var(--bg);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.4;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--gold); }
a:hover { color: var(--gold-hot); }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.6rem 1.1rem 3rem;
}

h1 {
  margin: 0 0 0.4rem;
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  background: linear-gradient(180deg, #fff4c8 0%, var(--gold) 42%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { color: var(--cream); max-width: 40rem; font-size: 1.35rem; }

.filters { display: flex; gap: 0.8rem; margin: 1rem 0 1.2rem; }
.filters a[aria-current="page"] { color: var(--gold-hot); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--cream);
  background: var(--card);
  border: 1px solid rgba(232, 195, 106, 0.28);
  border-radius: 0.9rem;
  overflow: hidden;
}

.card:hover { border-color: var(--gold); color: var(--cream); }

.thumb { position: relative; display: block; background: #000; }
.thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

.badge {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  background: rgba(10, 5, 6, 0.78);
  color: var(--gold-hot);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-family: Cinzel, serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-title, .card-by { padding: 0 0.75rem; }
.card-title { padding-top: 0.65rem; font-size: 1.2rem; }
.card-by { padding-bottom: 0.75rem; color: var(--muted); font-style: italic; }

.stage {
  padding: 0.45rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #ffe7a0, #c9973a 28%, #6b3d12 52%, #e8c36a 78%, #8a5a18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.stage img, .stage video {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
  border-radius: 0.7rem;
}

.meta { color: var(--muted); margin: 0.8rem 0; }
.meta a { font-style: italic; }
.desc { white-space: pre-wrap; max-width: 42rem; font-size: 1.3rem; }

.panel {
  max-width: 36rem;
  background: rgba(20, 8, 12, 0.88);
  border: 1px solid rgba(232, 195, 106, 0.35);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem 1.3rem;
}

label {
  display: block;
  margin: 0.9rem 0 0.25rem;
  font-family: Cinzel, serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

input[type="text"], input[type="password"], input[type="email"], input[type="file"], textarea, select {
  width: 100%;
  background: #0a0506;
  color: var(--cream);
  border: 1px solid var(--gold-deep);
  border-radius: 0.6rem;
  padding: 0.6rem 0.75rem;
  font: 1.15rem "Cormorant Garamond", Georgia, serif;
}

textarea { min-height: 7rem; resize: vertical; }

button.action, a.action {
  display: inline-block;
  margin-top: 1rem;
  background: var(--blood);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-family: Cinzel, serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

button.action:hover, a.action:hover { background: #6e1026; color: var(--gold-hot); }

.note, .error {
  border-radius: 0.7rem;
  padding: 0.7rem 0.9rem;
  max-width: 40rem;
}

.note { background: rgba(58, 13, 22, 0.75); border: 1px solid var(--gold); }
.error { background: rgba(139, 21, 48, 0.35); border: 1px solid #ffb4b4; }

.rule { color: var(--muted); font-size: 1.05rem; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1.2rem; }

.people, .admin-media { width: 100%; border-collapse: collapse; margin-top: 0.6rem; }
.people th, .people td, .admin-media td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid rgba(232, 195, 106, 0.2); vertical-align: top; }
.check { font-family: "Cormorant Garamond", Georgia, serif; letter-spacing: 0; text-transform: none; font-size: 1.1rem; color: var(--cream); }

.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  padding: 0 1rem 2rem;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-hot);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
