:root {
  --stock: #e9e7df;
  --ink: #09141e;
  --red: #ed331c;
  --navy: #1b395e;
  --mist: #b2b5b7;
  --rule: #a4a39c;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --social-target: 2.75rem;
  --social-padding: .45rem;
  --bottom-line: calc(var(--social-target) + 2 * var(--social-padding) + 1px + env(safe-area-inset-bottom, 0px));
  scroll-padding-bottom: var(--bottom-line);
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--stock);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("assets/print-grain.png") repeat;
  mix-blend-mode: multiply;
  opacity: .065;
  pointer-events: none;
}

main {
  width: min(91%, 88rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 3.2vw, 3.4rem) 0 calc(var(--bottom-line) + clamp(2.4rem, 4vw, 4.5rem));
}
.masthead {
  --flag-height: min(4.8vw, 4.25rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  column-gap: 1rem;
  padding: 0 0 clamp(1rem, 1.8vw, 2rem);
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  margin: 0;
  line-height: 1;
  transform: translateX(clamp(-.5rem, -.6vw, -.2rem));
}
.wordmark .name {
  display: block;
  width: auto;
  height: var(--flag-height);
}
.print-mark {
  display: flex;
  height: var(--flag-height);
  flex: none;
  aspect-ratio: 1.65;
  gap: 7%;
  overflow: hidden;
}
.print-mark i {
  flex: 1;
  transform-origin: top left;
  transform: skewY(-23deg);
  background: var(--red);
}
.print-mark i:nth-child(2) { background: var(--navy); }
.print-mark i:nth-child(3) { background: var(--mist); }

.booking {
  display: grid;
  grid-template-columns: 1.18fr 1fr auto;
  align-items: start;
  gap: 1.5rem;
  padding: clamp(1.2rem, 2.2vw, 2.1rem) 0;
  border-bottom: 1px solid var(--rule);
}
h2, p { margin: 0; }
h2, .contacts span {
  font: 500 .875rem/1.35 var(--mono);
  color: #464c50;
}
h2 { text-transform: uppercase; letter-spacing: .12em; margin-bottom: .35rem; }
.agency p {
  font-weight: 650;
  letter-spacing: -.055em;
  font-size: clamp(1.6rem, 2.65vw, 2.7rem);
  line-height: 1.05;
}
address { font-style: normal; font-size: 1rem; line-height: 1.44; }
.location strong { font-weight: 650; }
.contacts { display: grid; }
.contacts a {
  display: grid;
  grid-template-columns: 5.35rem 1fr;
  align-items: baseline;
  padding-block: .06rem;
  color: inherit;
  text-decoration: none;
}
.contacts b { font-weight: 550; font-variant-numeric: tabular-nums; }
.contacts a:hover b, .contacts a:focus-visible b {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: .2em;
}
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

.gallery {
  margin: clamp(1.25rem, 2.3vw, 2.5rem) auto 0;
  width: min(100%, max(58rem, 137svh), 78rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.55rem, 1.45vw, 1.6rem);
}
.poster {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  line-height: 0;
  background: #f7f4e3;
  box-shadow: 0 0 0 1px #11182020, 0 3px 8px #11182014;
  cursor: zoom-in;
}
.poster img { display: block; }
.poster:not(.profile-poster) > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Match the 16px white margin on the 1024px-wide Disco print. */
.galeria-poster { container-type: inline-size; }
.galeria-poster::after {
  content: "";
  position: absolute;
  inset: 1.5625cqw;
  border: 1px solid #111;
  box-shadow: 0 0 0 1.5625cqw white;
  pointer-events: none;
}
/* The crop retains the printed white margins at the top and bottom. */
.hopfen-poster > img { padding-inline: 2.25%; background: white; }
/* Reuse the printed header and footer of the Decks poster. */
.profile-poster {
  container-type: inline-size;
  background: #e9e3d2;
}
.profile-poster::before, .profile-poster::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  background-image: url("assets/decks-are-on-paper.webp");
  background-size: 100% auto;
  background-repeat: no-repeat;
}
.profile-poster::before { top: 0; height: 6.4%; background-position: top; }
.profile-poster::after { bottom: 0; height: 6%; background-position: bottom; }
.profile-poster::before {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%, 0 77%, 50% 77%);
}
.social-profile { cursor: pointer; text-decoration: none; }
.profile-photo { position: absolute; inset: 0; }
.profile-name {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  z-index: 1;
  text-decoration: none;
  position: absolute;
  left: 4.4%;
  bottom: 95.35%;
  color: var(--ink);
  font: 700 2.45cqw/1 Arial, sans-serif;
  letter-spacing: .22em;
}
.profile-name svg { width: clamp(12px, 3.5cqw, 18px); height: auto; color: #000; }
.profile-name::after {
  content: "";
  position: absolute;
  inset: -6px -4px;
}
.profile-name:hover span { text-decoration: underline; }
.profile-caption {
  position: absolute;
  inset: 78% 0 7%;
  display: grid;
  align-content: space-evenly;
  text-align: center;
  font: 750 8.3cqw/1 Arial, sans-serif;
  letter-spacing: .14em;
  text-indent: .14em;
  color: var(--ink);
}
.profile-caption > :last-child { font-size: .7em; }
.social-poster-row .profile-caption > :last-child { font-size: .48em; }
.profile-poster img, .helm-portrait {
  position: absolute;
  left: 8%;
  top: 41.5%;
  transform: translateY(-50%);
  width: 84%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.social-poster-row .social-profile:focus-visible .profile-photo > :is(img, svg) {
  transform: translateY(-50%) scale(1.09);
}
@media (hover: hover) {
  .social-poster-row .social-profile:hover .profile-photo > :is(img, svg) {
    transform: translateY(-50%) scale(1.09);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .social-poster-row .profile-photo > :is(img, svg) {
    transition: transform 180ms ease-out;
  }
}
.music-poster::before { clip-path: none; }
.music-poster img { object-position: center 63%; }
.music-caption {
  position: absolute;
  inset: 78% 3% 7%;
  display: grid;
  align-content: center;
  text-align: center;
  color: var(--ink);
  font: 750 7.4cqw/1.12 Arial, sans-serif;
  letter-spacing: .035em;
}
.poster:hover, .poster:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.socials {
  position: fixed;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.375rem;
  padding-top: var(--social-padding);
  padding-bottom: calc(var(--social-padding) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  background: var(--stock);
}
.socials a {
  display: grid;
  place-items: center;
  width: var(--social-target);
  height: var(--social-target);
  color: inherit;
}
.socials a:focus-visible { outline-offset: -3px; }
.socials a:hover svg { opacity: .8; }
.socials svg { display: block; width: 1.375rem; height: 1.375rem; }

@media (max-width: 760px) {
  .booking { grid-template-columns: 1fr auto; gap: .85rem 1.4rem; }
  .agency { grid-column: 1; }
  .location { grid-column: 1; }
  .contacts { grid-column: 2; grid-row: 1 / span 2; }
  .contacts a { min-height: 2.5rem; align-items: center; }
}
@media (max-width: 540px) {
  main { width: calc(100% - 2.5rem); }
  .masthead {
    gap: .6rem;
    --flag-height: calc(var(--agency-width, 11rem) * 78 / 613);
  }
  .wordmark { transform: none; }
  .wordmark .name { width: var(--agency-width, 11rem); }
  .agency p { width: fit-content; }
  .booking { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .contacts { grid-column: 1; grid-row: auto; }
  .contacts a { min-height: 2rem; }
  .gallery {
    width: min(100%, 24rem);
    grid-template-columns: 1fr;
    gap: 1.15rem;
    reading-flow: grid-rows;
  }
  .event-poster { order: -1; }
  .galeria-poster { order: -1; }
}

.hop-return {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 2rem;
  padding: .3rem .6rem;
  border: 1px solid #879ba5;
  border-radius: 3px;
  background: #fff;
  color: #17394a;
  font: 500 .875rem/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.hop-return:hover, .hop-return:focus-visible {
  background: #edf3f5;
  border-color: #17394a;
}
.hop-return:focus-visible { outline: 2px solid #17394a; outline-offset: 2px; }

.masthead .portal-identity { display: grid; justify-items: start; gap: .65rem; }
.masthead .print-mark { align-self: flex-start; }
