:root {
  --ink: #d3d0d0;
  --paper: #2c2c2c;
  --line: #4b4b4a;
  --accent: #dcff3f;
  --bigtext: #b24bb9;
  --hover: #0055ff;
  --coverimage: url(assets/page_media/hero.jpeg);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
}

.navbar,
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 4vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
}
.navbar a:hover,
.site-header a:hover {
  text-shadow: 0 0px 6px var(--accent);
}
.navbar nav a:hover,
.navbar a:hover,
.site-header nav a:hover,
.site-header a:hover {
  font-size: x;
}
.brand {
  font-weight: 800;
  text-decoration: none;
}
.navbar nav,
.site-header nav {
  display: flex;
  gap: 1.25rem;
}
.navbar nav a,
.site-header nav a {
  font-size: 0.85rem;
  text-decoration: none;
}

.content-section,
.contact {
  padding: 7rem 9vw;
  align-items: center;
}

#biography {
  padding: 7rem 9vw;
  align-items: center;
  background-color: #302e36;
}
.biography-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto 0;
}

.biography-copy {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.biography-copy p {
  margin: 0;
}

.biography-copy p + p {
  margin-top: 0.6rem;
}

.biography-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  min-height: 105vh;
  padding: 0 9vw 7rem;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: 70vh;
  background-image: var(--coverimage);
  background-size: cover;
  /* Lowering the focal point crops roughly the top tenth from view. */
  background-position: 50% 80%;

  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);

}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 48vh;
  right: 0;
  left: 0;
  height: 28vh;
  background: linear-gradient(to bottom, transparent, var(--paper) 82%);
  pointer-events: none;
}
.hero-content {
  width: min(100%, 1050px);
  padding-top: calc(70vh - clamp(5.5rem, 10vw, 9rem));
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: var(--accent);
  text-shadow: 0 2px 16px rgb(0 0 0 / 75%);
}
h1,
h2 {
  max-width: 900px;
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
h1 {
  font-size: clamp(3.5rem, 11vw, 9rem);
}
.hero h1 {
  color: var(--bigtext);
  text-shadow: 0 3px 12px #0000009f;
}
.hero h1 span {
  display: block;
}
.hero h1 span:last-child {
  color: var(--bigtext);
  text-shadow: none;
}
h2 {
  font-size: clamp(2.3rem, 6vw, 5.4rem);
}

.contact h2{
  color: #1f202c;
}

.contact a{
    color: #0000009f;
}

.intro {
  max-width: 600px;
  margin: 2rem 0;
  font-size: 1.1rem;
  line-height: 1.55;
}
.hero .intro {
  color: var(--ink);
}
.button {
  padding: 0.85rem 1.1rem;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  text-decoration: none;
}



.work {
  border-top: 1px solid var(--line);
}

.work h2 {
    color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

/* The homepage previews exactly one gallery row. */
body:not(.work-page) .gallery .event-card:nth-child(n + 4) {
  display: none;
}

.work-actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.work-actions .button {
  display: inline-block;
}

.work-page .work {
  min-height: calc(100vh - 8rem);
}
figure {
  margin: 0;
  background: white;
  display: flex;
  flex-direction: column;
}
figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

figcaption {
  flex: 1;
  min-height: 3.8rem;
  padding: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  background: var(--line);
}
.event-cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
.event-cover img {
  transition: transform 180ms ease, opacity 180ms ease;
}
.event-cover:hover img,
.event-cover:focus-visible img {
  transform: scale(1.025);
  opacity: 0.86;
}
.event-cover:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.lightbox {
  width: min(92vw, 1100px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgb(0 0 0 / 88%);
}
.lightbox-panel {
  position: relative;
  background: #191919;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 60%);
}
.lightbox-title {
  margin: 0;
  padding: 1rem 4.5rem 1rem 1.25rem;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}
.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 0.45rem;
  right: 0.65rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-viewer {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  background: black;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.lightbox-navigation {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 3rem;
  height: 3rem;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 68%);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-previous {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}
.lightbox-details {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.lightbox-caption,
.lightbox-counter {
  margin: 0;
}
.lightbox-counter {
  flex: 0 0 auto;
  color: #aaa;
}
.lightbox button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.contact {
  background: var(--accent);
}
.contact p, .contact a{
  color: var(--bigtext);
}
.contact a {
  display: block;
  width: fit-content;
  margin-top: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
}

footer {
  padding: 1.25rem 4vw;
  font-size: 0.75rem;
  background: #302e36;
}

@media (max-width: 720px) {
  .navbar,
  .site-header {
    align-items: flex-start;
    gap: 1rem;
    flex-direction: row;
  }
  .content-section,
  .contact {
    padding: 5rem 6vw;
  }
  .biography-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .biography-image {
    width: min(100%, 420px);
    margin: 0 auto;
  }
  .hero {
    min-height: 92vh;
    padding: 0 6vw 5rem;
  }
  .hero::before {
    height: 62vh;
    background-position: 50% 70%;
  }
  .hero::after {
    top: 42vh;
    height: 26vh;
  }
  .hero-content {
    padding-top: calc(62vh - 4.5rem);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  body:not(.work-page) .gallery .event-card:nth-child(n + 3) {
    display: none;
  }
  .lightbox {
    width: 96vw;
  }
  .lightbox-title {
    font-size: 1rem;
  }
  .lightbox-navigation {
    width: 2.6rem;
    height: 2.6rem;
  }
  .lightbox-previous {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-details {
    font-size: 0.85rem;
  }
}

@media (max-width: 450px) {
  .navbar,
  .site-header {
    align-items: flex-start;
    gap: 1rem;
    flex-direction: row;
  }
  .content-section,
  .contact {
    padding: 5rem 6vw;
  }
  .biography-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .biography-image {
    width: min(100%, 420px);
    margin: 0 auto;
  }
  .hero {
    min-height: 92vh;
    padding: 0 6vw 5rem;
  }
  .hero::before {
    height: 62vh;
    background-position: 50% 70%;
  }
  .hero::after {
    top: 42vh;
    height: 26vh;
  }
  .hero-content {
    padding-top: calc(62vh - 4.5rem);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  body:not(.work-page) .gallery .event-card:nth-child(n + 3) {
    display: none;
  }
  .lightbox {
    width: 96vw;
  }
  .lightbox-title {
    font-size: 1rem;
  }
  .lightbox-navigation {
    width: 2.6rem;
    height: 2.6rem;
  }
  .lightbox-previous {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-details {
    font-size: 0.85rem;
  }
}
