:root {
  --room: #141210;
  --well: #070605;
  --ticket: #f3efe6;
  --ink: #1b1814;
  --stamp: #9d341f;
  --stamp-ink: #f8f1ea;
  --mute: #a39b90;
  --line: #2e2925;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--room);
  color: var(--ticket);
  font-family: Figtree, "Avenir Next", sans-serif;
  font-size: 1.02rem;
  line-height: 1.45;
  overscroll-behavior-x: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

.bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.8rem 1.3rem;
  align-items: center;
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 0.6rem;
}

.mark {
  font-family: "Bodoni Moda", "Iowan Old Style", serif;
  font-size: 1.55rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  text-decoration: none;
}

#nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

#nav a {
  text-decoration: none;
  color: var(--mute);
}

#nav a[aria-current="page"] {
  color: var(--ticket);
  box-shadow: inset 0 -1px 0 var(--ticket);
}

.find input {
  width: 11rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.3rem 0;
}

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--mute);
}

main {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.6rem 0 4rem;
}

.page-title {
  margin: 0.2rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: "Bodoni Moda", "Iowan Old Style", serif;
  font-weight: 560;
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.lede,
.note {
  max-width: 38ch;
}

.lede {
  margin: 0.8rem 0 0;
  color: var(--mute);
}

.board,
.studio-list {
  display: grid;
  gap: 1.15rem 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
}

.frame {
  aspect-ratio: 16 / 9;
  background: var(--well) center / cover no-repeat;
}

.card strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.card span,
.minutes,
.studio a {
  color: var(--mute);
  font-size: 0.92rem;
}

.studio-list {
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.studio-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.desk {
  display: grid;
  gap: 0.9rem;
}

.stage {
  background: var(--well);
  min-height: 12rem;
}

video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: var(--well);
}

.ticket {
  background: var(--ticket);
  color: var(--ink);
  padding: 1.15rem 1.2rem 1.3rem;
}

.ticket h1 {
  max-width: 14ch;
}

.ticket a {
  color: inherit;
}

.ticket .studio a {
  color: var(--ink);
  font-size: 1rem;
}

.studio,
.blurb {
  margin: 0.7rem 0 0;
}

.watch {
  display: inline-block;
  margin-top: 1.1rem;
  background: var(--stamp);
  color: var(--stamp-ink);
  text-decoration: none;
  border: 0;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.strip {
  display: flex;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
  padding: 0 0 0.3rem;
  overflow-x: auto;
  overscroll-behavior-x: none;
  list-style: none;
}

.strip .card {
  width: 12rem;
  flex: 0 0 12rem;
}

.section-label {
  margin: 1.5rem 0 0.6rem;
  font-weight: 600;
}

.pages {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.pages a {
  color: var(--mute);
}

form.gate {
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
  margin-top: 1.4rem;
}

label {
  display: grid;
  gap: 0.25rem;
}

.gate input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--mute);
  border-radius: 0;
  padding: 0.4rem 0;
}

.mark:focus-visible,
#nav a:focus-visible,
.find input:focus-visible,
.text-btn:focus-visible,
.card:focus-visible,
.watch:focus-visible,
.gate input:focus-visible,
.pages a:focus-visible,
.studio-list a:focus-visible,
.ticket a:focus-visible {
  outline: 2px solid var(--ticket);
  outline-offset: 3px;
}

.ticket .watch:focus-visible,
.ticket a:focus-visible {
  outline-color: var(--stamp);
}

.note {
  margin-top: 0.4rem;
  color: var(--mute);
}

@media (max-width: 980px) {
  .board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bar {
    grid-template-columns: 1fr auto;
  }

  #nav,
  .find {
    grid-column: 1 / -1;
  }

  .find input {
    width: 100%;
  }

  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  .desk {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr);
    align-items: start;
  }
}
