body {
  display: grid;
  place-items: start center;
  overflow-x: hidden;
}

.poster {
  position: relative;
  width: min(100vw, 1200px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(circle at 18% 15%, rgba(118, 158, 188, 0.025) 0 0.07cqw, transparent 0.08cqw) 0 0 / 1.7cqw 1.7cqw,
    radial-gradient(circle at 70% 73%, rgba(24, 65, 103, 0.018) 0 0.06cqw, transparent 0.07cqw) 0 0 / 1.25cqw 1.25cqw,
    var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(18, 59, 104, 0.05), 0 0.4cqw 2cqw rgba(18, 59, 104, 0.045);
  isolation: isolate;
}

.caption {
  position: absolute;
  z-index: 6;
  left: 0;
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--batang);
  font-size: 1.75cqw;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: center;
  white-space: nowrap;
}

.caption--top {
  top: 2.45%;
}

.caption--bottom {
  bottom: 2.45%;
  font-size: 1.65cqw;
  font-weight: 400;
  letter-spacing: 0.19em;
}

.photo {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: #d8ebf5;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--top {
  top: 5.55%;
  left: 15.7%;
  width: 68.55%;
  height: 21.8%;
}

.photo--top img {
  object-position: 50% 48%;
}

.photo--left {
  top: 31.55%;
  left: 0;
  width: 33.95%;
  height: 30.9%;
}

.photo--left img {
  object-position: 72% 30%;
}

.photo--right {
  top: 40.25%;
  right: 0;
  width: 33.9%;
  height: 28.35%;
}

.photo--right img {
  object-position: 56% 48%;
}

.photo--bottom {
  left: 15.7%;
  bottom: 6.8%;
  width: 68.55%;
  height: 19.75%;
}

.photo--bottom img {
  object-position: 62% 34%;
}

.ghost-title {
  position: absolute;
  z-index: 1;
  top: 20.5%;
  left: 49.5%;
  color: var(--ghost);
  font-family: var(--serif);
  font-size: 18cqw;
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.09em;
  transform: scaleX(0.72);
  transform-origin: left top;
  user-select: none;
}

.title {
  position: absolute;
  z-index: 7;
  top: 30.4%;
  left: 31.2%;
  width: 37.6%;
  height: 43%;
  color: var(--ink);
  text-align: center;
  pointer-events: none;
}

.title__eyebrow,
.title__foot {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  font-family: var(--micro);
  font-weight: 600;
  letter-spacing: 0.5em;
  white-space: nowrap;
}

.title__eyebrow {
  top: 0;
  font-size: 0.8cqw;
}

.title__foot {
  bottom: 1%;
  font-size: calc(0.72cqw * var(--fs-label));
  letter-spacing: 0.34em;
}

.title h1 {
  position: absolute;
  z-index: 2;
  inset: 15.2% -18% 3%;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.61;
  letter-spacing: -0.12em;
}

.title__line {
  display: block;
  transform: scaleX(0.7);
}

.title__line--one {
  margin-left: -5%;
  font-size: 23.2cqw;
  transform: scaleX(0.56);
}

.title__line--two {
  margin-top: 3.8cqw;
  margin-left: 1%;
  font-size: 21.8cqw;
  transform: scaleX(0.6);
  letter-spacing: -0.15em;
}

.title__flourish {
  position: absolute;
  z-index: 3;
  top: 6%;
  left: -3%;
  width: 106%;
  height: 88%;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* index rail printed in the left margin */

.poster .rail {
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  left: 0;
  width: 15.7%;
  padding: 5.55% 1.2% 6.8% 2.6%;
}

.poster .rail__kicker {
  margin-bottom: 0.8cqw;
  padding-bottom: 0.5cqw;
  font-size: calc(0.72cqw * var(--fs-label));
  letter-spacing: 0.34em;
}

.poster .rail__list a {
  gap: 0.6cqw;
  padding: 0.42cqw 0;
  font-size: calc(1.02cqw * var(--fs-body));
}

.poster .rail__list a::before {
  font-size: calc(0.68cqw * var(--fs-label));
}

.poster .rail__foot {
  padding-top: 1.4cqw;
}

.poster .railcard {
  gap: 0.75cqw;
}

.poster #avatarWrap {
  width: 5.6cqw;
  height: 5.6cqw;
}

.poster #avatarEmoji {
  font-size: calc(0.62cqw * var(--fs-label));
}

.poster .railcard__name {
  font-size: calc(2.1cqw * var(--fs-title));
}

.poster .railcard__sub {
  font-size: calc(0.66cqw * var(--fs-label));
}

.poster #dday {
  padding: 0.22cqw 0.6cqw;
  font-size: calc(0.66cqw * var(--fs-label));
}

.poster .btn {
  padding: 0.7cqw 0.5cqw;
  font-family: var(--body);
  font-size: calc(0.82cqw * var(--fs-body));
  font-weight: 700;
  letter-spacing: 0.14em;
}

.poster #dkbox {
  width: 1.9cqw;
  height: 2.8cqw;
  padding: 0.22cqw;
}

/* colophon printed down the right margin */

.colophon {
  position: absolute;
  z-index: 5;
  top: 5.55%;
  right: 0;
  width: 15.7%;
  height: 34%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.colophon span {
  writing-mode: vertical-rl;
  font-family: var(--micro);
  font-size: 0.66cqw;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--sub);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .caption {
    letter-spacing: 0.08em;
  }
}

@media print {
  body {
    background: #fff;
  }

  .poster {
    width: 100%;
    box-shadow: none;
  }

  .poster .rail,
  .colophon {
    display: none;
  }
}
