/* CSS variables */
:root {
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --gap: 20px;
  --text: #2d2d2d;
  --bg-default: #151916;
  --bg-teacher: #595454;
  --bg-singer: #19141c;
  --bg-agenda: #080556;
  --bg-credits: #202020;
  --font-body: Georgia, serif;
  --font-h1: "Lato", system-ui, sans-serif;
  --font-h2: "Adamina", Georgia, serif;
  --font-h5: "Montserrat", system-ui, sans-serif;
  --font-caption: var(--font-body);
}

/* Popover-open offset */
body:has(:popover-open) main {
  padding-top: calc(48px + 188px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a { color: inherit; }
html { font-family: var(--font-body); color: var(--text); background-color:#e5e5e7; }
header {
  position: relative;
  /* height: 100vh; */
  background-image: url(../images/header-hero.jpg);
  background-size: cover;
  background-position: center top;
  min-height: 45rem;
  max-height: 1400px;
  /* aspect-ratio: 1 /1; */
  padding-bottom: 1000px
}

[popovertarget] {
  border: unset;
  padding: unset;
  margin: unset;
  background: unset;
  font-size: 24px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 100;
}

[popover] {
  position: absolute;
  inset: 0;
  width: unset;
  height: unset;
  margin: unset;
  border: unset;
  padding: unset;
  overflow: unset;
  color: unset;
  background-color: unset;
  display: none;
  align-items: center;
}
[popover]:popover-open { display: flex; }
:popover-open { display: flex; flex-direction: column; width: 100%; height: 188px; top: 48px; }

@media all and (min-width: 800px) {
  [popovertarget] { display: none; }
  [popover] {
    position: relative;
    margin: 0 160px;
    gap: 20px;
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
  }
}

nav a {
  display: inline-block;
  padding: 10px;
  font-weight: 300;
  font-size: 1rem;
}

nav a:link,
nav a:visited {
  text-decoration: none;
  color: #2d2d2d;
  line-height: 1.1;
}

nav a:hover,
nav a:active {
  color: #7d7d7d;
  text-decoration: none;
  line-height: 1.1;
}

h1 {
  font-family: var(--font-h1);
  font-weight: 300;
  font-size: 4rem;
  line-height: 3.5rem;
}
h2 {
  font-family: var(--font-h2);
  font-weight: 100;
  font-size: 1.3rem;
  color: white;
}
h5 {
  font-family: var(--font-h5);
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.07rem;
  padding-top: 1rem;
  margin-bottom: 20px;
}
p {
  line-height: 1.2;
  letter-spacing: -0.01rem;
}
.section { padding: var(--space-5) calc(var(--space-5) * 2); background-color: var(--bg-default); color: white; }
.section-inner { max-width: 900px; margin: 2.5rem auto; font-weight: 200; line-height: 1; color: rgba(255,255,255,0.8); }
.section--teacher { background-color: var(--bg-teacher); }
.section--singer { background-color: var(--bg-singer); }
.section--agenda { background-color: var(--bg-agenda); }
.section--credits { background-color: var(--bg-credits); }

.header-container {
  max-width: 1200px;
  position: absolute;
  left: 4%;
  top: 7%;
}
.header-container-inner {
  max-width: 280px;
}

/* .main-block was unused; removed in HTML */

.header-intro-text {
  padding-top: 96px;
}

/* section and inner now cover shared layout */

.hero {
  float: none;
  display: block;
  width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  padding-top: 300px;
  padding-bottom: 330px;
  background-color: black;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  min-height: 12rem;
  object-fit: cover;

}
.hero--pianist { background-image: url("../images/pianist-hero.jpg"); }

.hero--teacher { background-image: url("../images/teacher-hero.jpg"); }

.section--singer .video-grid { padding-left: 0; padding-right: 0; }
.section-inner p { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.hero--singer { background-image: url("../images/singer-hero.jpg"); }
.hero--ana { background-image: url("../images/ana-hero.jpg"); }

/* section modifiers cover agenda/contact/credits */

/* Video Grid */
.video-grid {
  width: 100%;
  max-width: 640px;
  margin: 0px auto;
  display: grid;
  grid-gap: 20px;
  

  grid-template-columns: 1fr;
  justify-items: stretch;
  align-items: center;
  padding: 100px 20px;

  @media all and (min-width: 800px) {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    padding: 100px 100px;
  }
}

/* Ensure singer section video area retains its dark background */
#singer .video-grid {
  background-color: var(--bg-singer); /* #19141c */
  color: white; /* match original section text color */
}
.video-grid figure {
  padding-top: 0;
  min-height: 0;
  flex: 0;
}
.video-grid figure p {
  font-family: var(--font-caption);
  font-size: 0.9rem;
  line-height: 1.3;
  color: white;
}
.vimeo-responsive-video { width: 100%; }
.vimeo-responsive-video iframe { aspect-ratio: 16/9; width: 100%; height: auto; max-width: 640px; }
