:root {
  --navy: #161c38;
  --navy-light: #212a4d;
  --gold: #f2c14e;
  --gold-dark: #c9962a;
  --parchment: #f6eedb;
  --ink: #2b2418;
  --muted: #6b5f4a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--parchment);
}

h1, h2, h3 { font-family: "Cinzel", Georgia, serif; line-height: 1.2; }
a { color: var(--gold-dark); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); background: #ffd56e; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-small { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* Hero: the banner already contains the title and tagline, so it's shown uncropped. */
.hero {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  margin: 0 auto;
  /* On screens wider than 16:9 the banner is narrower than the window; fill the sides with navy. */
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
  display: flex;
  flex-direction: column;
  color: #fff;
  background: url("assets/banner.jpg") center / cover no-repeat;
}
.nav { background: linear-gradient(rgba(22,28,56,0.85), rgba(22,28,56,0)); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-weight: 700;
}
.brand img { border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a:not(.btn) { color: #fff; text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--gold); }

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem 6%;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero .btn-ghost { background: rgba(22,28,56,0.75); border-color: var(--navy); }
.hero .btn-ghost:hover { background: var(--navy); }

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem clamp(1rem, 4vw, 2rem);
}
.section h2 { font-size: 2.2rem; margin: 0 0 0.5rem; color: var(--navy); }
.section-intro { margin: 0 0 2.5rem; color: var(--muted); font-size: 1.25rem; }

/* Videos */
.video-list { display: grid; gap: 2.5rem; }
.empty {
  margin: 0;
  padding: 2.5rem 2rem;
  background: #fffaf0;
  border-radius: 16px;
  text-align: center;
  font-size: 1.25rem;
  color: var(--muted);
}
.video-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  background: #fffaf0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(43,36,24,0.12);
}
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}
.player img, .player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  cursor: pointer;
  background: transparent;
}
.play::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 76px; height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(22,28,56,0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f2c14e' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% center / 40px no-repeat;
  border: 2px solid var(--gold);
  transition: transform 0.15s;
}
.play:hover::after { transform: translate(-50%, -50%) scale(1.1); }
.badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  font-weight: 700;
}
.video-info { padding: 1.5rem 1.75rem; }
.video-info h3 { margin: 0 0 0.75rem; font-size: 1.3rem; color: var(--navy); }
.video-info p { margin: 0 0 1rem; }

.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e6dbc2; }
.chapters li { border-bottom: 1px solid #e6dbc2; }
.chapters button, .chapters li > span {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
}
.chapters button { cursor: pointer; }
.chapters button:hover { color: var(--gold-dark); }
.chapters time { min-width: 3rem; font-weight: 500; color: var(--gold-dark); }

/* About */
.about {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  border-top: 1px solid #e6dbc2;
}
.about img { border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 40px rgba(242,193,78,0.45); }

/* Footer */
.footer {
  padding: 2rem 1rem;
  text-align: center;
  background: var(--navy);
  color: #c9cde0;
}
.footer a { color: var(--gold); }

@media (max-width: 800px) {
  .video-card { grid-template-columns: 1fr; }
  .about { flex-direction: column; text-align: center; }
  .nav-links a:not(.btn) { display: none; }
}

/* On phones the banner is too short to hold the buttons, so they sit just below it. */
@media (max-width: 600px) {
  .hero {
    aspect-ratio: auto;
    max-height: none;
    padding-top: 56.25vw; /* banner height at 16:9 */
    background: var(--navy) url("assets/banner.jpg") top center / 100% auto no-repeat;
  }
  .nav { position: absolute; top: 0; left: 0; right: 0; }
  .brand span { display: none; }
  .hero-content { padding: 1rem; flex: none; }
  .hero-actions .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
}
