/* The letter curtain transition: the next page's title falls over the page as a curtain of tall slats, one letter
   on each, and the letters shrink into the title. */
:root {
  --paper: #f2efe8;
  --ink: #141414;
  --muted: #8a857c;
  --night: #141414;
  --night-ink: #f2efe8;
  --night-muted: #85817a;
  --accent: #ff5a1f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  font-family: 'Roboto Flex Variable', 'Roboto Flex', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  --pad: clamp(20px, 4vw, 60px);
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}

/* ------------------------------------------------------------------ the pages */
.page {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.page.is-on {
  visibility: visible;
}

.page--a {
  background: var(--paper);
  color: var(--ink);
  --muted-c: var(--muted);
}

.page--b {
  background: var(--night);
  color: var(--night-ink);
  --muted-c: var(--night-muted);
}

.bar,
.foot {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.bar {
  top: calc(var(--pad) * 0.75);
}

.foot {
  bottom: calc(var(--pad) * 0.75);
  font-size: 13px;
  color: var(--muted-c);
}

.brand {
  font-size: 16px;
  font-weight: 640;
  font-stretch: 70%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 14px;
}

.nav a {
  color: var(--muted-c);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav a[aria-current] {
  color: inherit;
}

@media (hover: hover) {
  .nav a:not([aria-current]):hover {
    color: var(--accent);
  }
}

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

.hero {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kicker {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-c);
}

.big {
  margin: 0;
  font-size: clamp(44px, 9vw, 150px);
  line-height: 0.95;
  font-weight: 300;
  font-stretch: 40%;
  letter-spacing: -0.02em;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(24px, 4vh, 40px);
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 520;
}

.go__arrow {
  width: 22px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
  .go--next:hover .go__arrow {
    transform: translateX(5px);
  }

  .go--back:hover .go__arrow {
    transform: translateX(-5px);
  }
}

/* the title: line height 1 and no letter spacing, so each letter's box is the same as the curtain's letter */
.title {
  margin: 0;
  font-size: var(--ts, 160px);
  line-height: 1;
  font-weight: 560;
  white-space: nowrap;
}

.title .ch {
  display: inline-block;
  margin: 0 0.02em;
}

.shows {
  list-style: none;
  margin: clamp(22px, 4vh, 40px) 0 0;
  padding: 0;
  width: min(100%, 420px);
  border-top: 1px solid rgba(242, 239, 232, 0.18);
}

.shows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(242, 239, 232, 0.18);
  font-size: 15px;
}

.shows__name {
  font-weight: 460;
}

.shows__when {
  color: var(--accent);
  font-stretch: 80%;
}

/* ------------------------------------------------------------------ the curtain */
.curtain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.slat {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--night);
  will-change: transform;
}

/* one element for GSAP (where the letter's centre is, how big), its child for the CSS centring */
.lt {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.lt__in {
  display: block;
  transform: translate(-50%, -50%);
  font-size: var(--ls, 300px);
  line-height: 1;
  font-weight: calc(var(--g, 560) * 1);
  font-stretch: calc(var(--w, 100) * 1%);
  color: var(--night-ink);
  white-space: pre;
}

@media (max-width: 600px) {
  .shows li {
    font-size: 14px;
  }
}
