@font-face {
  font-family: Anton;
  src: url("assets/anton.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Hypnotic 12";
  src: url("assets/hypnotic-12.woff") format("woff");
  font-display: swap;
}

@font-palette-values --heading-ink {
  font-family: "Hypnotic 12";
  override-colors: 0 #2c2f2b, 1 #d9dad3, 2 #c3c5bf, 3 #2c2f2b;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #eae8df;
  --cream: #f2eee2;
  --ink: #25241f;
  --olive: #878c63;
  --salmon: #dd887d;
  --link-glitch: 3px 1px color-mix(in srgb, var(--olive) 74%, transparent),
    -2px 0 color-mix(in srgb, var(--salmon) 54%, transparent);
  --grain: url("assets/paper.webp");
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --display: "Hypnotic 12", Anton, Impact, "Arial Narrow", sans-serif;
  --heading-shadow: drop-shadow(.45px 0 #2c2f2b) drop-shadow(-.45px 0 #2c2f2b);
  color: var(--ink);
  font-family: var(--mono);
  background: var(--paper) var(--grain);
  background-blend-mode: soft-light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px dashed var(--ink);
  outline-offset: 5px;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: var(--cream);
}

.wrap {
  width: min(1180px, calc(100% - clamp(36px, 10vw, 144px)));
  margin-inline: auto;
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.site-header {
  min-height: 76px;
  border-bottom: 1px solid var(--ink);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.home-link img { transform: rotate(164deg); }

.site-header nav { display: flex; gap: clamp(16px, 3.5vw, 48px); }

.site-header nav a {
  display: grid;
  min-height: 44px;
  padding-inline: 2px;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  isolation: isolate;
  padding: clamp(64px, 7.5vw, 108px) 18px clamp(82px, 8.5vw, 120px) 0;
}

.hero-brand {
  z-index: 1;
  margin-inline: -4% -3%;
  transform: rotate(-4deg);
}

.hero-brand img { width: 100%; aspect-ratio: 1050 / 917; object-fit: contain; }

.location {
  width: fit-content;
  margin: -6px auto 0;
  padding: 5px 11px 6px;
  color: var(--cream);
  background: var(--ink) var(--grain);
  background-blend-mode: soft-light;
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 1px #eae8df85;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.hero-collage {
  position: relative;
  padding-bottom: 12px;
  margin-left: -4%;
}

.photo-print {
  position: relative;
  transform: rotate(3deg);
  background: var(--ink);
}

.photo-print::before {
  position: absolute;
  z-index: -1;
  inset: -3.5% 0 -5% 4%;
  background: var(--olive) var(--grain);
  background-blend-mode: soft-light;
  transform: rotate(-9deg);
  content: "";
}

.photo-print img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  object-fit: cover;
}

.photo-stars {
  display: flex;
  align-items: end;
  position: absolute;
  bottom: -4%;
  right: -5%;
  pointer-events: none;
}

.photo-stars img {
  width: clamp(53px, 7vw, 96px);
  height: auto;
  transform: rotate(164deg);
  filter: drop-shadow(1px 2px 0 #25241f55);
}

.photo-stars img + img {
  width: clamp(37px, 5vw, 71px);
  margin: 0 0 40% -15%;
  transform: rotate(191deg);
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(165px, 1fr) minmax(0, 3fr);
  gap: clamp(20px, 3.2vw, 46px);
  padding-block: clamp(35px, 5vw, 65px);
  border-top: 1px dashed var(--ink);
  scroll-margin-top: 16px;
}

.section-title, .gallery-title {
  color: #2c2f2b;
  font-family: var(--display);
  font-palette: --heading-ink;
  font-weight: 400;
  text-transform: uppercase;
  filter: var(--heading-shadow);
}

.section-title {
  font-size: clamp(2.2rem, 4.42vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.018em;
}

.show, .shows-empty {
  align-self: center;
  padding-block: 15px;
  border-block: 1px solid #25241f60;
  line-height: 1.6;
}

.show {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto;
  gap: clamp(12px, 2vw, 28px);
  align-items: start;
}

.show + .show { border-top: 0; }
.show-date { display: grid; gap: 4px; }
.show-date time { text-transform: uppercase; font-weight: 600; }

.show-date time span {
  padding: 2px 4px;
  background: var(--ink);
  color: var(--cream);
}

.show-date > span { font-size: .875rem; }
.show-details h3 { font-size: 1.06rem; font-weight: 600; text-transform: uppercase; }
.show-details p { font-size: .875rem; }
.show-details a, .text-link {
  font-weight: 600;
  text-decoration: none;
}

.gallery-link, .scroll-top {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--cream) var(--grain);
  background-blend-mode: soft-light;
  text-decoration: none;
}

.gallery-link:hover, .scroll-top:hover { background-color: var(--salmon); }

.gallery-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding-inline: 12px;
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.shows .gallery-link {
  inline-size: 10em;
  max-inline-size: 100%;
  justify-content: center;
  text-align: center;
}

.gallery-header { padding-block: clamp(36px, 7vw, 86px) clamp(24px, 4vw, 44px); }

.gallery-title {
  margin-bottom: 9px;
  font-size: clamp(1.6rem, 2.45vw, 2.35rem);
  line-height: 1.08;
}

.gallery-event:target { border-top-style: solid; }

.gallery-date { font-size: .875rem; line-height: 1.6; }

.gallery-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-more, .gallery-more > .gallery-photos { margin-top: 12px; }

.gallery-more summary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 44px;
  margin-inline-start: auto;
  padding-inline: 12px;
  border: 1px solid var(--ink);
  background: var(--cream) var(--grain);
  background-blend-mode: soft-light;
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.gallery-more summary::-webkit-details-marker { display: none; }
.gallery-more summary:hover { background-color: var(--salmon); }

.gallery-more summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: translateY(-2px) rotate(45deg);
}

.gallery-more[open] summary::after { transform: translateY(2px) rotate(225deg); }
.gallery-more:not([open]) .gallery-fewer-label,
.gallery-more[open] .gallery-more-label { display: none; }

.gallery-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  background: var(--ink);
  cursor: zoom-in;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transition: transform 150ms ease;
}

.gallery-photo:hover img { transform: scale(1.04); }

.photo-viewer {
  --photo-accent: #e69a90;
  --photo-surface: #272620;
  --photo-viewer-gutter: 244px;
  --photo-viewer-top: 192px;
  width: max-content;
  max-width: calc(100% - 28px);
  max-height: calc(100% - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.photo-viewer[open] {
  display: grid;
  grid-template-columns: minmax(0, max-content) max-content;
  grid-template-areas: "image tools" "navigation tools";
  gap: 8px 12px;
}

.photo-viewer::backdrop { background: #191814e8; }
:root:has(.photo-viewer[open]) { overflow: hidden; }

.photo-viewer:has(.photo-credit[hidden]) {
  --photo-viewer-gutter: 84px;
  --photo-viewer-top: 136px;
}

.photo-viewer-image {
  grid-area: image;
  justify-self: center;
  touch-action: pan-y pinch-zoom;
}

.photo-viewer img {
  max-width: min(1100px, calc(100vw - var(--photo-viewer-gutter)));
  max-height: calc(100dvh - 80px);
  object-fit: contain;
}

.photo-viewer-tools {
  grid-area: tools;
  position: relative;
  display: flex;
  flex: none;
  min-width: 44px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-block: 44px;
}

.photo-viewer-tools form {
  position: absolute;
  top: 0;
  right: 0;
}

.photo-viewer-navigation {
  grid-area: navigation;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.photo-viewer-count {
  min-width: 7ch;
  color: var(--cream);
  font-size: .8125rem;
  text-align: center;
}

.photo-credit {
  --photo-credit-shape: path("M 17 20 C 29 13 45 16 57 19 C 83 25 102 15 128 17 C 151 19 168 13 181 18 C 194 23 195 41 190 53 C 186 63 192 69 186 77 C 177 89 153 79 138 81 C 126 82 122 93 109 90 C 99 88 104 81 91 81 C 73 80 61 85 46 80 C 29 74 12 86 7 72 C 0 53 11 44 9 34 C 8 27 11 23 17 20 Z");
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 204px;
  min-height: 104px;
  overflow: clip;
  color: var(--photo-accent);
  font-size: .8125rem;
  line-height: 1.25;
  text-decoration: none;
}

.photo-credit::before, .photo-credit::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 196px;
  height: 104px;
  margin: -52px 0 0 -98px;
  clip-path: var(--photo-credit-shape);
  content: "";
}

.photo-credit[hidden] { display: none; }

.photo-credit::before {
  background: currentColor;
  transform: rotate(-7deg);
}

.photo-credit::after {
  --grain-veil: color-mix(in srgb, var(--photo-surface) 72%, transparent);
  background: linear-gradient(var(--grain-veil), var(--grain-veil)),
    var(--photo-surface) var(--grain) center / 56px auto;
  background-blend-mode: normal, soft-light;
  transform: rotate(-7deg) scale(.972, .948);
}

.photo-credit-content {
  display: flex;
  align-items: center;
  gap: 8px;
  transform: rotate(-7deg);
}

.photo-credit svg { flex: none; }

.photo-credit-label {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .075em;
}

.photo-credit-handle {
  display: block;
  white-space: nowrap;
  margin-top: 3px;
}

.photo-viewer button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--photo-accent);
  font: 1.5rem var(--mono);
  cursor: pointer;
}

.photo-viewer button::before {
  position: absolute;
  inset: 6px;
  border: 1px dashed currentColor;
  border-radius: 50% 45% 48% 37%;
  transform: rotate(8deg);
  content: "";
}

.photo-viewer button:hover, .photo-credit:hover {
  color: var(--cream);
}

.photo-viewer button:disabled { opacity: .45; cursor: default; }

.photo-viewer button:focus-visible, .photo-credit:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: -2px;
}

.photo-viewer button:focus-visible { border-radius: 50%; }
.photo-credit:focus-visible { border-radius: 10px; }

.gallery-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  min-height: clamp(144px, 18vw, 218px);
  padding: 16px;
  border: 1px dashed #25241f72;
  background: var(--cream) var(--grain);
  background-blend-mode: soft-light;
  text-align: center;
}

.gallery-empty::before {
  width: 36px;
  height: 36px;
  background: url("assets/star.webp") center / contain no-repeat;
  opacity: .7;
  transform: rotate(164deg);
  content: "";
}

.text-link {
  padding-block: 9px;
  font-size: .875rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  align-self: center;
  gap: 16px clamp(22px, 4vw, 56px);
  margin: 0;
  padding-block: 15px;
  border-block: 1px solid #25241f60;
  font-size: .875rem;
  line-height: 1.6;
}

.contact-links dt { font-weight: 600; text-transform: uppercase; }
.contact-links dd { margin: 3px 0 0; }
.contact-links .text-link { padding-block: 3px; }

.site-footer {
  min-height: 73px;
  border-top: 1px solid var(--ink);
}

.scroll-top {
  display: inline-grid;
  place-items: center;
  width: 44px;
  box-shadow: 2px 2px 0 var(--ink);
}

.scroll-top::before {
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg);
  content: "";
}

.scroll-top--floating {
  position: fixed;
  z-index: 3;
  right: max(18px, calc(env(safe-area-inset-right) + 12px), calc((100% - 1180px) / 2));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
}

.scroll-top[hidden] { display: none; }

@media (hover: hover) {
  :where(.home-link, .site-header nav a, .show-details a, .text-link):hover {
    color: #893d35;
    text-shadow: var(--link-glitch);
  }

  .photo-credit:hover .photo-credit-handle { text-shadow: var(--link-glitch); }
}

@media (hover: hover) and (pointer: fine) {
  :root {
    --star-cursor: url("assets/star-cursor.png") 19 1;
    --star-cursor-hover: url("assets/star-cursor-hover.png") 19 1;
    cursor: var(--star-cursor), auto;
  }

  a[href], .photo-viewer button, .gallery-more summary { cursor: var(--star-cursor-hover), pointer; }
  a.gallery-photo { cursor: var(--star-cursor-hover), zoom-in; }
}

@media (max-width: 820px) {
  .gallery-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .photo-viewer[open] {
    grid-template-columns: minmax(0, max-content);
    grid-template-areas: "tools" "image" "navigation";
    gap: 8px;
  }
  .photo-viewer-tools {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 0;
  }
  .photo-viewer-tools form { position: static; }
  .photo-viewer img {
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - var(--photo-viewer-top));
  }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { gap: 8px; min-height: 63px; }
  .home-link { gap: 6px; letter-spacing: .015em; white-space: nowrap; }
  .home-link img { width: 21px; height: 21px; }
  .site-header nav { gap: 8px; letter-spacing: 0; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 30px 12px 67px; }
  .hero-brand { width: min(92%, 335px); margin: auto; transform: rotate(-4deg); }
  .hero-collage { width: min(100%, 500px); margin: 0 auto; padding-bottom: 0; }
  .photo-print::before { right: 3%; }
  .photo-stars { bottom: -10%; right: -5%; }
  .section-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .section-title { font-size: clamp(2.4rem, 9.25vw, 3.55rem); }
  .show { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .show-date time span { display: table; margin-bottom: 5px; }
  .gallery-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 500px) {
  .site-header { flex-wrap: wrap; gap: 0; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  :root:has(.scroll-top:focus) { scroll-behavior: smooth; }
}
