/* Patrick Zeller — static site styles */
:root {
  --blue: #9ba5bc;
  --blue-light: #c0c9dd;
  --blue-dark: #717e9a;
  --ink: #000;
  --paper: #fff;
  --display: "Montserrat", "Arial Black", sans-serif;
  --body: "Nunito Sans", "Avenir Next", Avenir, Arial, sans-serif;
  --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--blue);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 56px);
}
.social { display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.social a { display: block; width: 23px; height: 23px; }
.social svg, .social img { width: 100%; height: 100%; }
.site-footer .social a { width: 28px; height: 28px; }

.nav { display: flex; gap: clamp(16px, 3vw, 44px); align-items: center; }
.nav a, .nav summary {
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { color: var(--blue-dark); }
.nav details { position: relative; }
.nav .dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 18px);
  background: var(--paper);
  min-width: 170px;
  padding: 8px 0;
  box-shadow: 0 6px 18px rgb(0 0 0 / .12);
}
.nav .dropdown a { display: block; padding: 8px 18px; }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
    background: none;
    border: 0;
    font: inherit;
    font-size: 26px;
    cursor: pointer;
    padding: 4px 8px;
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: 8px 0 16px;
    box-shadow: 0 8px 16px rgb(0 0 0 / .12);
  }
  .nav.open { display: flex; }
  .nav > a, .nav summary { padding: 10px 24px; font-size: 16px; }
  .nav .dropdown { position: static; box-shadow: none; padding: 0 0 0 16px; }
}

main { padding-top: var(--header-h); }

/* ---------- Shared type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.2;
  margin: 0;
}
.box-title {
  border: 10px solid var(--ink);
  padding: 22px 16px;
  text-align: center;
  font-size: clamp(24px, 4vw, 42px);
}
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 26px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: #333; }

.back {
  display: inline-block;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
  margin: 24px 0 12px;
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  min-height: min(970px, calc(100vh - var(--header-h)));
  display: grid;
  place-items: center;
  background: #1c1c14 url("../images/hero.jpg") center / cover no-repeat;
  color: var(--paper);
  text-align: center;
  padding: 40px 16px;
}
.hero h1 { font-size: clamp(30px, 6.5vw, 63px); text-shadow: 0 2px 16px rgb(0 0 0 / .35); }
.hero p { font-size: clamp(24px, 3.4vw, 40px); margin: .4em 0 0; text-shadow: 0 2px 12px rgb(0 0 0 / .4); }

/* ---------- Home: about ---------- */
.about {
  background: var(--blue);
  padding: 80px 0;
}
.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}
.about-photo {
  width: 100%;
  max-width: 464px;
  aspect-ratio: 464 / 509;
  object-fit: cover;
  border-radius: 50%;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.about h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; }
.about p { margin: 0 0 1.1em; font-size: 16px; }
@media (max-width: 760px) {
  .about .wrap { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 320px; margin-inline: auto; }
}

/* ---------- Home: reels ---------- */
.reels {
  background: #333 url("../images/reels-bg.jpg") center / cover no-repeat;
  padding: 80px 0;
}
.reels .wrap { display: grid; gap: clamp(40px, 9vw, 110px); }
.reel-link {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: clamp(26px, 4vw, 40px);
  padding: 30px 16px;
  transition: transform .15s ease;
}
.reel-link:hover { transform: scale(1.02); }
.reel-link.screen { background: rgb(192 201 221 / .8); }
.reel-link.stage  { background: rgb(155 165 188 / .8); }
.reel-link.audio  { background: rgb(113 126 154 / .8); }

/* ---------- Home: gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Home: contact ---------- */
.contact { padding: 80px 0 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 5vw, 60px);
  margin-top: 70px;
}
.contact h3 { font-size: 24px; margin-bottom: 16px; }
.contact address { font-style: normal; font-size: 15px; line-height: 1.5; }
.contact address p { margin: 0 0 1.4em; }
.contact address a { text-decoration: none; }
.contact address a:hover { text-decoration: underline; }
.contact .label { font-style: italic; font-weight: 700; }
.contact .social { margin-top: 24px; }
.contact .social a { width: 28px; height: 28px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.form label { display: grid; gap: 4px; font-size: 14px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit;
  font-size: 15px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 0;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; padding: 10px 50px; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- Inner pages ---------- */
.page { padding-bottom: 80px; }
.quote { font-size: clamp(20px, 3vw, 30px); line-height: 1.5; margin: 40px 0; }
.quote cite { display: block; font-style: normal; font-size: 13px; margin-top: 6px; }

.video-feature {
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 20px;
}
.video-feature iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.video-list button {
  width: 100%;
  font: inherit;
  font-size: 14px;
  text-align: left;
  background: rgb(255 255 255 / .35);
  border: 2px solid transparent;
  padding: 12px 14px;
  cursor: pointer;
}
.video-list button:hover { background: rgb(255 255 255 / .55); }
.video-list button[aria-pressed="true"] { border-color: var(--ink); background: rgb(255 255 255 / .6); }
.video-list .len { display: block; font-size: 12px; opacity: .7; }
.video-list .thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  background: #000;
}
.video-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Play icon over each thumbnail */
.video-list .thumb::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgb(0 0 0 / .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") center / 26px no-repeat;
  transition: background-color .15s ease;
}
.video-list button:hover .thumb::after { background-color: rgb(0 0 0 / .8); }
.video-list button[aria-pressed="true"] .thumb::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h3M8.5 7v10M12 9v6M15.5 5v14M19 10v4' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(90px, 12vw, 190px);
  gap: 4px;
  margin-top: 30px;
}
.mosaic a { display: block; position: relative; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic .info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--paper);
  background: linear-gradient(transparent, rgb(0 0 0 / .75));
  opacity: 0;
  transition: opacity .2s ease;
}
.mosaic a:hover .info, .mosaic a:focus-visible .info { opacity: 1; }
.mosaic .a { grid-column: span 2; grid-row: span 2; }
.mosaic .b { grid-column: span 1; }
.mosaic .c { grid-column: span 1; }
.mosaic .d { grid-column: span 2; grid-row: span 3; }
.mosaic .e { grid-column: span 2; grid-row: span 1; }
.mosaic .f { grid-column: span 4; grid-row: span 1; }
.mosaic .f img { object-position: center 30%; }
@media (max-width: 600px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic a { grid-column: auto !important; grid-row: auto !important; }
  .mosaic .info { display: none; }
}

/* Stage production pages */
.production-page { background: var(--paper); }
.production {
  min-height: 100vh;
  padding: 90px clamp(16px, 3vw, 48px) 60px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  position: relative;
}
.production-media {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}
.production-media img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}
.production-media img:fullscreen { background: #000; max-height: none; }
.production-nav {
  font-size: 48px;
  line-height: 1;
  font-weight: 300;
  text-decoration: none;
  text-align: center;
  padding: 10px 0;
}
.production-nav:hover { color: var(--blue-dark); }
.production-info { align-self: start; padding-top: clamp(0px, 8vh, 90px); }
.production-info h1 { font-size: clamp(26px, 3.4vw, 46px); margin-bottom: 26px; }
.production-info p { margin: 0; font-size: 15px; line-height: 1.5; }
.production-close, .production-expand {
  position: absolute;
  top: 28px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.production-close { right: clamp(16px, 3vw, 40px); }
.production-expand { left: clamp(16px, 3vw, 40px); width: 28px; height: 28px; }
.production-close svg, .production-expand svg { width: 100%; height: 100%; }
.production-close:hover, .production-expand:hover { color: var(--blue-dark); }
@media (max-width: 760px) {
  .production { grid-template-columns: 1fr; align-items: start; align-content: start; padding-top: 80px; }
  .production-media { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 4px; }
  .production-nav { font-size: 36px; }
  .production-info { padding: 0 34px; }
}

/* Resume PDF thumbnail */
.pdf-thumb {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 13px;
  text-decoration: none;
}
.pdf-thumb svg { width: 80px; height: 100px; transition: transform .15s ease; }
.pdf-thumb:hover svg { transform: translateY(-3px); }
.pdf-thumb:hover span { text-decoration: underline; }

.soundcloud { width: 100%; height: 700px; border: 0; margin-top: 20px; }

.resume-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  margin: 50px 0 30px;
}
.resume-logos img { height: 90px; width: auto; }
.center { text-align: center; }
.resume-page h2 { font-size: clamp(20px, 3vw, 28px); margin: 60px 0 20px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  text-align: center;
  font-size: 13px;
  padding: 20px 16px 30px;
}
.to-top {
  position: fixed;
  right: 22px;
  bottom: 18px;
  font-size: 22px;
  text-decoration: none;
  line-height: 1;
}
