:root {
  color-scheme: light;
  --ink: #181814;
  --paper: #e9e6dc;
  --orange: #ff641e;
  --gutter: clamp(16px, 3.1vw, 60px);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #bab3a7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  color: inherit;
  font: inherit;
}
a {
  text-decoration: none;
}
button {
  border: 0;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #aa3405;
  outline-offset: 4px;
}
button {
  background: none;
}
button:hover,
.chapters a:hover,
.menu a:hover {
  color: #80330e;
}
#story {
  height: 320svh;
}
.stage {
  height: 100svh;
  position: sticky;
  top: 0;
  overflow: hidden;
  isolation: isolate;
}
.backdrop,
.backdrop canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.backdrop {
  background: #bab3a7;
}
.backdrop img {
  position: absolute;
  inset: 19% 0 0;
  width: 100%;
  height: 81%;
  object-fit: cover;
  object-position: 66% center;
}
.backdrop canvas {
  z-index: 1;
}
.stage header,
.stage footer {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  z-index: 4;
}
.stage header {
  top: max(14px, env(safe-area-inset-top));
  justify-content: space-between;
}
.right,
.pill,
.chapters,
.advance {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pill,
.round {
  background: rgba(248, 246, 238, 0.76);
  height: 39px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pill,
.season,
.advance,
.caption,
.chapters,
.textlink,
small,
.dialogbar {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.pill {
  padding: 0 12px;
  white-space: nowrap;
}
.round {
  width: 39px;
  font-size: 19px;
}
.dot,
.play-symbol {
  border-radius: 100%;
  height: 18px;
  width: 18px;
  display: grid;
  place-items: center;
  background: var(--orange);
  font-style: normal;
  font-size: 12px;
}
.play-symbol {
  background: var(--ink);
  color: white;
  font-size: 8px;
}
.burger {
  width: 12px;
  height: 6px;
  border-block: 1.5px solid;
}
.season,
.mini {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.mini {
  opacity: 0;
  visibility: hidden;
  font-weight: 750;
  font-size: 26px;
  letter-spacing: -0.08em;
}
.mini sup {
  font-size: 0.4em;
}
.cover,
.notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cover {
  padding: 0 var(--gutter);
  top: 9%;
}
h1 {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: min(14.75vw, 25svh);
  font-weight: 650;
  letter-spacing: -0.085em;
  line-height: 0.86;
}
h1 sup {
  font-size: 0.24em;
  letter-spacing: -0.06em;
  vertical-align: top;
  line-height: 1.6;
  margin-left: 0.07em;
}
.caption {
  display: flex;
  align-items: flex-start;
  gap: 2.8vw;
  margin-top: 3.5vh;
}
.caption p {
  line-height: 1.2;
  margin: 0;
}
.rule {
  width: 25px;
  height: 2px;
  background: var(--ink);
  margin-top: 5px;
}
.notes {
  inset: auto auto 34% var(--gutter);
  width: min(35vw, 480px);
  opacity: 0;
  visibility: hidden;
}
.notes small,
.dialogbar,
dialog small {
  display: block;
}
.notes h2,
dialog h2 {
  font-size: clamp(54px, 6.6vw, 122px);
  line-height: 0.87;
  letter-spacing: -0.085em;
  margin: 0.18em 0 0.25em;
}
.notes em {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.09em;
}
.notes p,
dialog p {
  max-width: 34ch;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.4;
}
.textlink {
  border-bottom: 1px solid;
  padding: 8px 0;
  pointer-events: auto;
}
.stage footer {
  bottom: max(22px, env(safe-area-inset-bottom));
  gap: 10px;
}
.credit {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}
.credit img {
  width: clamp(98px, 8vw, 140px);
  height: auto;
}
.chapters {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  padding: 4px;
  background: #f2efe5c9;
  gap: 2px;
  white-space: nowrap;
}
.chapters a {
  border-radius: 24px;
  padding: 10px 14px;
  font-size: 10px;
}
.chapters a[aria-current] {
  background: var(--ink);
  color: white;
}
.advance {
  min-height: 40px;
}
.advance span {
  font-size: 17px;
}
.progress {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #0001;
}
.progress i {
  display: block;
  background: var(--orange);
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
}
dialog {
  border: 0;
  border-radius: 8px;
  padding: 22px clamp(20px, 3vw, 40px) 32px;
  background: var(--paper);
  color: var(--ink);
  width: min(920px, 94vw);
  max-height: 90svh;
  overflow: auto;
}
dialog::backdrop {
  background: #17171099;
  backdrop-filter: blur(6px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialogbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1717103b;
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.dialogbar .round {
  font-size: 25px;
}
.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.items button {
  text-align: left;
  padding: 0;
}
.items img,
.detail img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #b9b3a6;
}
.items img {
  height: clamp(110px, 28svh, 265px);
}
.items button:last-child img {
  object-position: 67%;
}
.items span {
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}
.menu {
  display: grid;
}
.menu a,
.menu button {
  text-align: left;
  border-bottom: 1px solid #aaa69a;
  padding: 12px 0;
  font-size: 23px;
}
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.detail img {
  max-height: 46svh;
  object-position: 65%;
}
.detail h2 {
  font-size: clamp(32px, 5vw, 80px);
}
dialog video {
  display: block;
  width: 100%;
  max-height: 60svh;
  background: #181814;
}
@media (max-width: 700px) {
  .stage header {
    top: 12px;
  }
  .season {
    display: none;
  }
  .mini {
    font-size: 21px;
  }
  .pill,
  .round {
    height: 36px;
  }
  .right {
    gap: 4px;
  }
  .round {
    width: 36px;
  }
  .cover {
    top: 14%;
  }
  h1 {
    font-size: 14.2vw;
  }
  .caption {
    gap: 16px;
    margin-top: 17px;
    font-size: 9px;
  }
  .rule {
    width: 15px;
  }
  .stage footer {
    bottom: 12px;
    align-items: flex-end;
  }
  .credit {
    align-self: flex-end;
    min-height: 30px;
  }
  .credit img {
    width: 92px;
  }
  .chapters {
    bottom: 42px;
  }
  .advance {
    font-size: 9px;
    min-height: 34px;
  }
  .notes {
    bottom: 23%;
    width: 57vw;
    padding: 12px 14px 13px 0;
    background: linear-gradient(90deg, #c5c0b6ed 35%, transparent);
  }
  .notes h2 {
    font-size: clamp(36px, 11vw, 63px);
  }
  .notes p {
    font-size: 13px;
    margin: 8px 0;
  }
  .textlink,
  small {
    font-size: 10px;
  }
  .items {
    gap: 8px;
  }
  .items span {
    font-size: 13px;
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .detail img {
    height: 26svh;
  }
  .dialogbar {
    margin-bottom: 18px;
  }
  .detail p {
    max-width: 100%;
  }
  dialog h2 {
    font-size: 48px;
  }
  .backdrop img {
    object-position: 65% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  #motion {
    display: none;
  }
}
@media (max-width: 700px) {
  .mini {
    display: none;
  }
  .notes {
    background: none;
    text-shadow: 0 0 18px #d9d4c9;
  }
  .notes p {
    background: #dbd6c9da;
    padding: 5px 7px;
    border-radius: 3px;
  }
}
#motion[hidden] {
  display: none;
}
