/* Gordo — two-ink gig poster: magenta and yellow, with the studio's teal as counter-colour. */

:root {
  --magenta: #AF0949;
  --yellow: #E6D60F;
  --teal: #1F2B2A;
  --cream: #F1DFC4;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --display: "Modak", "Arial Black", system-ui, sans-serif;
  --text: "Fraunces", Georgia, "Times New Roman", serif;
  --ground: var(--magenta);
  --ink: var(--yellow);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--magenta);
  color: var(--yellow);
  font-family: var(--text);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 450;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--teal);
}

::selection { background: var(--ink); color: var(--ground); }

.on-magenta { --ground: var(--magenta); --ink: var(--yellow); background: var(--ground); color: var(--ink); }
.on-yellow { --ground: var(--yellow); --ink: var(--magenta); background: var(--ground); color: var(--ink); }
.on-teal { --ground: var(--teal); --ink: var(--cream); background: var(--ground); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.sec { padding-block: clamp(4.5rem, 10vw, 9.5rem); }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.25rem, 9.5vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin-bottom: 0.32em;
}

.lead {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  line-height: 1.38;
  font-weight: 500;
  max-width: 34ch;
  text-wrap: pretty;
}

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--yellow); color: var(--magenta); font-weight: 650;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.78em 1.45em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s;
}
.btn--fill { background: var(--ink); color: var(--ground); }
.btn:hover { background: var(--ink); color: var(--ground); }
.btn--fill:hover { background: transparent; color: var(--ink); }

/* Header */
.top {
  position: fixed; z-index: 50;
  inset: clamp(0.75rem, 1.6vw, 1.25rem) var(--gutter) auto;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  pointer-events: none;
}
.top > * { pointer-events: auto; }

.top__logo {
  display: block;
  padding: 0.5rem 1.1rem;
  background: var(--magenta);
  border: 2px solid var(--yellow);
  border-radius: 999px;
}
.top__logo img { height: clamp(1.75rem, 2.6vw, 2.25rem); width: auto; }

.top__nav {
  display: none;
  align-items: center; gap: 1.5rem;
  padding: 0.3rem 0.3rem 0.3rem 1.5rem;
  background: var(--yellow);
  border: 2px solid var(--magenta);
  border-radius: 999px;
  font-size: 1rem; font-weight: 650; line-height: 1.1;
}
.top__nav ul { display: flex; gap: clamp(0.9rem, 1.6vw, 1.5rem); }
.top__nav a { color: var(--magenta); text-decoration: none; }
.top__nav li a:hover { text-decoration: underline; }
.top__listen {
  padding: 0.62rem 1.25rem; border-radius: 999px;
  background: var(--magenta); color: var(--yellow) !important;
}
.top__listen:hover { background: var(--teal); }

.top__menu {
  padding: 0.7rem 1.35rem;
  background: var(--yellow); color: var(--magenta);
  border: 2px solid var(--magenta); border-radius: 999px;
  font-weight: 650; line-height: 1.1;
}

@media (min-width: 960px) {
  .top__nav { display: flex; }
  .top__menu { display: none; }
}

/* Full-screen menu */
.overlay {
  --ground: var(--magenta); --ink: var(--yellow);
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem;
  padding: 6rem var(--gutter) 2.5rem;
  background: var(--magenta); color: var(--yellow);
  overflow-y: auto;
}
.overlay[hidden] { display: none; }
.overlay li a {
  display: block;
  font-family: var(--display);
  font-size: clamp(3rem, 15vw, 6rem);
  line-height: 0.95;
  text-decoration: none;
}
.overlay .btn { align-self: flex-start; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
}
.hero__art { position: absolute; inset: 0; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(175 9 73 / 0) 30%, rgb(175 9 73 / 0.82) 68%, var(--magenta) 96%);
}
.hero__body { position: relative; padding-block: 8rem clamp(2.5rem, 6vw, 5rem); }
.hero__logo { width: clamp(17rem, 52vw, 52rem); margin-left: -1.5%; }
.hero__logo img { width: 100%; }
html.js .hero__logo img { opacity: 0; animation: logo-in 0.01s 2.5s forwards; }
html.js.logo-ready .hero__logo img { opacity: 1; animation: none; }
@keyframes logo-in { to { opacity: 1; } }
.hero__line {
  max-width: 30ch;
  margin-top: clamp(0.5rem, 1.5vw, 1.25rem);
  font-size: clamp(1.3rem, 1rem + 1.3vw, 2.1rem);
  line-height: 1.28;
  font-weight: 550;
  text-wrap: balance;
}
.hero__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.hero__filter { position: absolute; width: 0; height: 0; }

/* Halftone edge between two inks */
.halftone {
  --p: clamp(16px, 2vw, 26px);
  height: calc(var(--p) * 6);
  background-color: var(--from);
  background-image:
    linear-gradient(to bottom, transparent calc(var(--p) * 5.5), var(--to) calc(var(--p) * 5.5)),
    radial-gradient(circle, var(--to) calc(var(--p) * 0.1), transparent calc(var(--p) * 0.1 + 0.7px)),
    radial-gradient(circle, var(--to) calc(var(--p) * 0.2), transparent calc(var(--p) * 0.2 + 0.7px)),
    radial-gradient(circle, var(--to) calc(var(--p) * 0.3), transparent calc(var(--p) * 0.3 + 0.7px)),
    radial-gradient(circle, var(--to) calc(var(--p) * 0.4), transparent calc(var(--p) * 0.4 + 0.7px)),
    radial-gradient(circle, var(--to) calc(var(--p) * 0.51), transparent calc(var(--p) * 0.51 + 0.7px)),
    radial-gradient(circle, var(--to) calc(var(--p) * 0.63), transparent calc(var(--p) * 0.63 + 0.7px));
  --tile: var(--p) calc(var(--p) * 2);
  background-size: 100% 100%, var(--tile), var(--tile), var(--tile), var(--tile), var(--tile), var(--tile);
  background-repeat: no-repeat, repeat-x, repeat-x, repeat-x, repeat-x, repeat-x, repeat-x;
  background-position:
    0 0,
    0 calc(var(--p) * -0.5),
    calc(var(--p) * 0.5) calc(var(--p) * 0.5),
    0 calc(var(--p) * 1.5),
    calc(var(--p) * 0.5) calc(var(--p) * 2.5),
    0 calc(var(--p) * 3.5),
    calc(var(--p) * 0.5) calc(var(--p) * 4.5);
}
.halftone--to-yellow { --from: var(--magenta); --to: var(--yellow); }
.halftone--to-magenta { --from: var(--yellow); --to: var(--magenta); }
.halftone--to-teal { --from: var(--magenta); --to: var(--teal); }
.halftone--teal-to-yellow { --from: var(--teal); --to: var(--yellow); }

/* Prints: photos with an off-register second ink */
.print { rotate: -1.4deg; }
.print img {
  width: 100%;
  box-shadow: clamp(8px, 1.1vw, 16px) clamp(8px, 1.1vw, 16px) 0 var(--ink);
}

/* Story */
.story__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
.story .display { font-size: clamp(3.25rem, 7.4vw, 7.75rem); }
.timeline li { padding: 1.1rem 0 clamp(1.75rem, 3vw, 2.75rem); border-top: 3px solid currentColor; }
.timeline p { max-width: 60ch; }
.when {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  line-height: 1; margin-bottom: 0.35em;
}
.story .print { margin-top: clamp(1.5rem, 3vw, 3rem); margin-right: clamp(8px, 1.1vw, 16px); }

@media (min-width: 1024px) {
  .story__grid { grid-template-columns: 5fr 6fr; align-items: start; }
  .story__lead { position: sticky; top: 7.5rem; }
}

/* Line-up */
.roster { border-bottom: 4px solid currentColor; }
.roster li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  column-gap: 2rem;
  padding: 0.35em 0 0.5em;
  border-top: 4px solid currentColor;
}
.roster__name {
  font-family: var(--display);
  font-size: clamp(3.75rem, 13vw, 12.5rem);
  line-height: 0.9;
}
.roster__role {
  font-style: italic; font-weight: 500;
  font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.75rem);
  line-height: 1.25;
}
.print--wide { rotate: 1deg; margin: clamp(3rem, 7vw, 6rem) clamp(8px, 1.1vw, 16px) 0 0; }

/* Music */
.music { padding-bottom: clamp(2rem, 5vw, 4rem); }
.music__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.music__cover { rotate: -2deg; max-width: 38rem; margin-right: clamp(8px, 1.1vw, 16px); }
.music__text .display { font-size: clamp(3.25rem, 7.4vw, 7.75rem); }
.music__text .lead { max-width: 30ch; margin-bottom: 1em; }
.music__text p { max-width: 46ch; }
.music__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

@media (min-width: 900px) {
  .music__grid { grid-template-columns: 5fr 6fr; }
}

/* Live */
.live__head { display: grid; gap: 1rem clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.live__head .display { margin-bottom: 0; }
.live__head .lead { max-width: 38ch; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.75rem, 2vw, 2rem); }
.shots li:nth-child(even) { margin-top: clamp(2rem, 6vw, 6rem); }
.shots img { width: 100%; }

@media (min-width: 900px) {
  .live__head { grid-template-columns: auto 1fr; }
  .live__head .lead { justify-self: end; }
  .shots { grid-template-columns: repeat(4, 1fr); }
}

/* Studio */
.studio { padding-block: clamp(4rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem); overflow: clip; }
.studio__head { display: grid; gap: 1rem clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.studio__head .display { margin-bottom: 0; }
.studio__head .lead { max-width: 40ch; }
.strip {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 1.25rem;
  scrollbar-color: var(--cream) transparent;
}
.strip__track {
  display: flex; gap: clamp(0.75rem, 1.4vw, 1.5rem);
  width: max-content;
  height: clamp(15rem, 54vh, 34rem);
  padding-inline: var(--gutter);
}
.strip__track li { flex: none; height: 100%; scroll-snap-align: center; }
.strip__track img { height: 100%; width: auto; max-width: none; }

@media (min-width: 900px) {
  .studio__head { grid-template-columns: auto 1fr; }
  .studio__head .lead { justify-self: end; }
}

.studio.is-pinned { padding-block: 0; }
.studio.is-pinned .studio__pin {
  height: 100vh;
  display: flex; flex-direction: column;
  padding-block: 7rem 3rem;
}
.studio.is-pinned .studio__head .display { font-size: clamp(3.25rem, 7vw, 7rem); }
.studio.is-pinned .strip { flex: 1; min-height: 0; overflow: visible; padding-bottom: 0; }
.studio.is-pinned .strip__track { height: 100%; will-change: transform; }

/* Contact */
.contact .lead { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.reach { border-bottom: 4px solid currentColor; }
.reach a {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  column-gap: 2rem;
  padding: 0.3em 0 0.45em;
  border-top: 4px solid currentColor;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s, padding 0.18s;
}
.reach__name {
  font-family: var(--display);
  font-size: clamp(3rem, 10.5vw, 10rem);
  line-height: 0.9;
}
.reach__note {
  font-style: italic; font-weight: 500;
  font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.75rem);
  line-height: 1.25;
}
@media (hover: hover) {
  .reach a:hover { background: var(--ink); color: var(--ground); padding-inline: 0.4em; }
}

/* Footer */
.foot { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.foot__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.foot__logo { display: block; width: clamp(14rem, 44vw, 40rem); margin-left: -1%; }
.foot__logo img { width: 100%; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(2.5rem, 8vw, 7rem); font-weight: 600; }
.foot__nav li { margin-bottom: 0.35rem; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__small { font-size: 0.95rem; max-width: 60ch; padding-top: 1.25rem; border-top: 3px solid currentColor; }

@media (min-width: 900px) {
  .foot__grid { grid-template-columns: 1fr auto; align-items: end; }
  .foot__small { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 599px) {
  .roster li, .reach a { flex-direction: column; row-gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero__logo img { opacity: 1; animation: none; }
  .btn, .reach a { transition: none; }
}
