:root {
  --ink: #ede7da;
  --muted: #b8b0a2;
  --paper: #1d1d1b;
  --paper-raised: #252522;
  --night: #111210;
  --red: #8f2925;
  --red-bright: #b5443e;
  --gold: #c8a96a;
  --line: rgba(200, 169, 106, 0.26);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(143, 41, 37, 0.17), transparent 34rem),
    var(--night);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

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

/* A web-sized export of the poster artwork lends its palette and atmosphere
   to the page without making visitors download the full-resolution source. */
body::after {
  position: fixed;
  inset: -1.5rem;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(17, 18, 16, 0.84), rgba(17, 18, 16, 0.96)),
    url("botc_bg.webp") center center / cover no-repeat;
  filter: blur(9px) saturate(0.9);
  transform: scale(1.04);
}

h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.02;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 70svh;
  place-items: end center;
  padding: 5rem 1.25rem 4rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
  background: transparent;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(to bottom, rgba(10, 11, 10, 0.2), rgba(17, 18, 16, 0.6)),
    radial-gradient(circle at 50% 28%, transparent 0, rgba(17, 18, 16, 0.12) 52%, rgba(17, 18, 16, 0.5) 100%);
}

.hero__inner { max-width: 48rem; }

.hero h1 {
  font-size: clamp(3rem, 12vw, 6.8rem);
  font-weight: 600;
  text-wrap: balance;
}

.hero__lead {
  max-width: 35rem;
  margin: 1.4rem auto 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.15rem);
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
  justify-content: center;
}

.hero__link {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__link span { margin-left: 0.5rem; color: var(--gold); }

.events-section {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5rem;
}

.about-section {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
  scroll-margin-top: 1.5rem;
}

.about-section > .section-heading {
  padding-top: 4.5rem;
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1rem;
}

.about-copy p { margin: 0 0 1.25rem; }

.about-copy__lead {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  line-height: 1.35;
}

.about-copy strong { color: var(--ink); font-weight: 600; }

.videos-section { margin-top: 3.5rem; }

.videos-heading {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.videos-heading h3 {
  font-size: clamp(1.8rem, 6vw, 2.7rem);
  line-height: 1.1;
}

.videos-heading > p:last-child { margin: 0.8rem 0 0; color: var(--muted); }

.videos-grid { display: grid; gap: 1.25rem; }

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: linear-gradient(145deg, var(--paper-raised), var(--paper));
  box-shadow: var(--shadow);
}

.video-frame { aspect-ratio: 16 / 9; background: #090a09; }

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h4 {
  margin: 1rem 1rem 0.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.video-card > p {
  margin: 0 1rem 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading { margin-bottom: 2rem; }
.section-heading h2 { font-size: clamp(2.4rem, 8vw, 4rem); }

.events-grid { display: grid; gap: 1.5rem; }

.events-archive { margin-top: 1.5rem; }

.events-archive summary {
  display: flex;
  width: fit-content;
  min-height: 2.75rem;
  cursor: pointer;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.events-archive summary::-webkit-details-marker { display: none; }

.events-archive summary::after {
  margin-left: 0.25rem;
  content: "↓";
  transition: transform 160ms ease;
}

.events-archive[open] summary::after { transform: rotate(180deg); }
.events-archive summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.events-archive__count { color: var(--muted); }

.events-archive__toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1rem 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(29, 29, 27, 0.72);
}

.events-archive__page-size {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.events-archive select,
.events-archive button {
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.events-archive select { padding: 0.35rem 2rem 0.35rem 0.65rem; }

.events-archive__pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
}

.events-archive__pagination button {
  cursor: pointer;
  padding: 0.4rem 0.65rem;
}

.events-archive__pagination button:disabled { cursor: default; opacity: 0.38; }
.events-archive__pagination span { color: var(--muted); font-size: 0.78rem; text-align: center; }
.events-archive__list { margin-top: 1rem; }

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: linear-gradient(145deg, var(--paper-raised), var(--paper));
  box-shadow: var(--shadow);
}

.event-card--expired {
  border-color: rgba(184, 176, 162, 0.16);
  background: linear-gradient(145deg, #222220, #1a1a18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.event-card--expired .event-card__image {
  filter: grayscale(1) contrast(0.82) brightness(0.7);
}

.event-card--expired .event-card__body { opacity: 0.72; }

.event-card__closed {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(184, 176, 162, 0.32);
  border-radius: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card__image-wrap {
  position: relative;
  min-height: 18rem;
  background: #292924;
}

.event-card__image-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  content: "";
  background: linear-gradient(transparent, rgba(18, 18, 16, 0.52));
}

.event-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.event-card__body { padding: 1.5rem; }

.event-card__title {
  margin-bottom: 1.15rem;
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 600;
}

.event-card__facts {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.event-card__fact {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.event-card__icon {
  width: 1.25rem;
  color: var(--gold);
  text-align: center;
}
.event-card__description { margin: 0 0 1.4rem; color: var(--muted); }

.registration-status {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
}

.event-card__actions { display: grid; gap: 0.75rem; }

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--red);
  border-radius: 0.2rem;
  color: #fff9ed;
  background: var(--red);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); background: var(--red-bright); }
.button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button--secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.button--secondary:hover { background: rgba(200, 169, 106, 0.08); }

.button--disabled {
  cursor: not-allowed;
  border-color: rgba(184, 176, 162, 0.24);
  color: var(--muted);
  background: rgba(184, 176, 162, 0.08);
}

.empty-state { padding: 2rem; border: 1px solid var(--line); color: var(--muted); text-align: center; }

footer {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(29, 29, 27, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform 160ms ease, background 160ms ease;
}

.back-to-top:hover { transform: translateY(-2px); background: var(--paper-raised); }
.back-to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.back-to-top[hidden] { display: none; }

@media (min-width: 42rem) {
  .events-section { padding-inline: 2rem; }
  .about-section { padding-inline: 2rem; }
  .event-card { display: grid; grid-template-columns: minmax(16rem, 0.82fr) 1.18fr; }
  .event-card__image-wrap, .event-card__image { min-height: 100%; }
  .event-card__body { padding: clamp(2rem, 5vw, 3.5rem); }
  .event-card__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-archive__toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-card:first-child { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .videos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-card:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
