/*
Theme Name: zstonish
Author: Terror 29
Version: 0.1.0
*/

:root {
  --bg: #fff;
  --dark: #202020;
  --text: #1f2630;
  --muted: #333;
  --line: #222;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: .03em;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
}
.nav {
  width: calc(100% - 88px);
  margin: 0 auto;
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: block;
  text-decoration: none;
  line-height: 1;
  color: #202020;
}
.brand-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .9;
  text-transform: none;
}
.brand-mark span {
  font-size: .74em;
  vertical-align: .24em;
}
.tagline {
  margin-top: 10px;
  display: block;
  font-size: 18px;
  letter-spacing: .35em;
  text-transform: uppercase;
}
.menu-toggle { display: none; }
.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}
.menu a, .submenu-toggle {
  color: #111;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.submenu {
  position: relative;
}
.submenu-toggle::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  vertical-align: .12em;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.submenu-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  display: none;
  min-width: 184px;
  padding: 14px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 16px 28px rgba(0,0,0,.12);
  transform: translateX(-50%);
}
.submenu-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.submenu-panel a {
  display: block;
  padding: 10px 18px;
  white-space: nowrap;
}
.submenu:hover .submenu-panel,
.submenu:focus-within .submenu-panel,
.submenu.submenu-open .submenu-panel {
  display: block;
}
.menu .book {
  background: transparent;
  padding: 13px 18px;
  border: 2px solid #111;
  border-radius: 0;
}
.hero {
  min-height: 100vh;
  background: url("assets/home-hero.jpg") center top / cover no-repeat;
}
h1, h2, h3 {
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: .02em;
}
h1 { font-size: 34px; text-transform: uppercase; }
h2 { font-size: 28px; text-transform: uppercase; }
h3 { font-size: 22px; }
p { margin: 0 0 14px; color: var(--muted); }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid #111;
  border-radius: 0;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .22em;
}
.button.primary {
  color: #111;
  background: transparent;
  border-color: #111;
}
.section {
  padding: 36px 0;
}
main > .section:has(> .wrap > .page-hero) {
  padding: 0;
}
main > .section:has(> .wrap > .page-hero) > .wrap {
  width: 100%;
  max-width: none;
}

.section.alt { background: #fff; }
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.narrow {
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}
.section p {
  margin: 0 0 12px;
}
.section h1,
.section h2,
.section h3 {
  margin-top: 0;
}
.center { text-align: center; }
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: #000;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.photo-grid .stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
}
.photo-grid .stack img:last-child {
  object-position: left center;
}
.show-grid, .media-grid, .merch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.show img, .media-card img, .merch-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.show:nth-child(3) img {
  object-position: center 12%;
}
.show-body { padding-top: 18px; }
.show-body h3 { color: #1f2630; font-weight: 400; text-transform: none; }
.page-hero {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: #111 center / cover no-repeat;
  padding: 170px 20px 80px;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 70px);
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.dark-footer-band {
  background: var(--dark);
  color: #eee;
}
.video {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  background: #000;
}
.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 0;
}
.feature-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.form {
  display: grid;
  gap: 14px;
}
.form input, .form textarea {
  width: 100%;
  padding: 14px;
  color: var(--text);
  background: #fafafa;
  border: 1px solid #aaa;
  border-radius: 0;
  font: inherit;
}
.form textarea { min-height: 150px; resize: vertical; }
.form button {
  cursor: pointer;
  border: 0;
  border-radius: 0;
  min-height: 48px;
  padding: 0 44px;
  color: #111;
  background: #fff;
  border: 2px solid #111;
  font-weight: 900;
  text-transform: uppercase;
}
.notice {
  margin-bottom: 18px;
  color: #111;
  background: var(--gold);
  border-radius: 4px;
  padding: 12px 14px;
  font-weight: 800;
}
.site-footer {
  padding: 58px 0;
  color: #eee;
  background: var(--dark);
  border-top: 0;
}
.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.socials a { color: #eee; text-decoration: underline; font-weight: 400; }

@media (max-width: 820px) {
  .site-header {
    position: relative;
    background: #fff;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #ececec;
  }
  .nav {
    width: 100%;
    min-height: 132px;
    padding: 0 52px;
    align-items: center;
    flex-direction: row;
    gap: 16px;
  }
  .brand-mark { font-size: 50px; }
  .tagline { display: none; }
  .menu-toggle {
    appearance: none;
    display: inline-flex;
    flex: 0 0 auto;
    width: 68px;
    height: 54px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 66px;
    height: 5px;
    background: #222;
  }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 22px 52px 30px;
    background: #fff;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
  }
  .menu-open .menu { display: flex; }
  .menu a, .submenu-toggle {
    font-size: 14px;
    letter-spacing: .18em;
  }
  .submenu {
    width: 100%;
  }
  .submenu-panel {
    position: static;
    min-width: 0;
    display: none;
    width: 100%;
    margin: 8px 0 0;
    padding: 0 0 0 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  .submenu-panel::before {
    display: none;
  }
  .submenu:hover .submenu-panel,
  .submenu:focus-within .submenu-panel {
    display: none;
  }
  .submenu.submenu-open .submenu-panel {
    display: grid;
    gap: 12px;
  }
  .submenu-panel a {
    padding: 0;
    font-size: 13px;
  }
  .menu .book {
    padding: 0;
    border: 0;
  }
  .hero {
    min-height: calc(100vh - 132px);
    background-position: center top;
  }
  .split, .show-grid, .media-grid, .merch-grid, .media-pair { grid-template-columns: 1fr; }
  .show:nth-child(3) img {
    aspect-ratio: 1;
    object-position: center;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid,
  .photo-grid .stack {
    display: block;
  }
  .photo-grid img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .gallery, .feature-gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 58px 0; }
}

@media (max-width: 520px) {
  .nav {
    min-height: 112px;
    padding: 0 28px;
  }
  .brand-mark { font-size: 34px; }
  .menu-toggle {
    width: 48px;
    height: 42px;
    gap: 14px;
  }
  .menu-toggle span {
    width: 48px;
    height: 4px;
  }
  .menu { padding: 18px 28px 26px; }
  .hero { min-height: calc(100vh - 112px); }
}
