:root {
  --paper: #986866;
  --ink: #050505;
  --soft: rgba(5, 5, 5, 0.62);
  --line: rgba(5, 5, 5, 0.18);
  --stamp: #f0e8d8;
}

body[data-world="original"] {
  --paper: #986866;
  --ink: #050505;
  --soft: rgba(5, 5, 5, 0.62);
  --line: rgba(5, 5, 5, 0.18);
  --stamp: #f0e8d8;
  --stamp-filter: contrast(1.08) saturate(0.9);
}

body[data-world="night"] {
  --paper: #10121c;
  --ink: #eee8d8;
  --soft: rgba(238, 232, 216, 0.62);
  --line: rgba(238, 232, 216, 0.18);
  --stamp: #10121c;
  --stamp-filter: brightness(0.78) saturate(0.82) contrast(1.16);
}

body[data-world="dust"] {
  --paper: #c5ae84;
  --ink: #17100a;
  --soft: rgba(23, 16, 10, 0.62);
  --line: rgba(23, 16, 10, 0.2);
  --stamp: #efe3c4;
  --stamp-filter: sepia(0.48) saturate(0.76) contrast(1.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  transition: background 320ms ease, color 320ms ease;
}

a {
  color: inherit;
}

.poster {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(540px, 1fr) auto auto;
  gap: 22px;
  padding: 18px 0 20px;
}

.poster-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  width: min(460px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.poster-top p,
.micro,
.version small,
.poster-foot a {
  margin: 0;
  font-size: 10px;
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
}

.poster-top p:nth-child(2) {
  text-align: center;
}

.poster-top p:nth-child(3) {
  text-align: right;
}

.monument {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.sky-mark {
  position: absolute;
  left: 61%;
  top: 31%;
  width: min(60vw, 640px);
  height: min(34vw, 360px);
  transform: translate(-50%, -50%);
  background: transparent;
  border-radius: 0;
  z-index: 0;
}

.sky-hole {
  position: absolute;
  left: 0;
  top: 0;
  width: 82%;
  height: 28%;
  background: var(--ink);
  border-radius: 0;
  box-shadow:
    54px 120px 0 var(--ink),
    -30px 240px 0 var(--ink);
  transition: background 320ms ease, box-shadow 320ms ease;
}

.sky-hole::before,
.sky-hole::after {
  display: none;
}

.cover-stamp {
  position: absolute;
  right: 7%;
  bottom: 11%;
  width: min(17vw, 150px);
  border: 2px solid var(--ink);
  background: var(--stamp);
  filter: var(--stamp-filter);
  transform: rotate(1.5deg);
  z-index: 2;
  transition: border-color 320ms ease, filter 320ms ease;
}

.title-lockup {
  position: absolute;
  left: 4%;
  bottom: 16%;
  z-index: 2;
}

h1 {
  margin: 4px 0 0;
  max-width: 280px;
  font-size: 68px;
  line-height: 0.78;
  font-weight: 900;
  text-transform: uppercase;
}

.pre-save {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 34px;
  padding: 0 15px;
  border: 2px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 320ms ease, color 320ms ease, border-color 320ms ease;
}

.versions {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
  width: min(560px, 100%);
  margin: 0 auto;
  padding-top: 4px;
}

h2 {
  margin: 0;
  font-size: 14px;
  line-height: 0.92;
  font-weight: 900;
  text-transform: uppercase;
}

.version-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.version {
  appearance: none;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  text-align: left;
  cursor: pointer;
  transition: color 220ms ease;
}

.version span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.version small {
  display: block;
}

.version.is-active,
.version:hover {
  color: var(--ink);
}

.poster-foot {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--soft);
}

.poster-foot a {
  text-decoration: none;
}

.poster-foot a:hover {
  color: var(--ink);
}

@media (min-width: 761px) and (max-width: 1100px) {
  .poster {
    grid-template-rows: auto minmax(560px, 1fr) auto auto;
  }

  .monument {
    min-height: 560px;
  }

  .sky-mark {
    left: 70%;
    top: 24%;
    width: min(58vw, 540px);
    height: 330px;
  }

  .sky-hole {
    width: 80%;
    height: 86px;
    box-shadow:
      44px 108px 0 var(--ink),
      -24px 216px 0 var(--ink);
  }

  .title-lockup {
    left: 2%;
    bottom: 18%;
  }

  .cover-stamp {
    right: 3%;
    bottom: 20%;
    width: 138px;
  }
}

@media (max-width: 760px) {
  .poster {
    width: min(100% - 28px, 430px);
    grid-template-rows: auto minmax(500px, 1fr) auto auto;
    gap: 18px;
    padding-top: 14px;
  }

  .poster-top {
    grid-template-columns: 1.15fr 1.05fr 0.65fr;
    gap: 12px;
    margin: 0;
    width: 100%;
  }

  .poster-top p:nth-child(2) {
    text-align: right;
  }

  .poster-top p:nth-child(3) {
    text-align: right;
  }

  .monument {
    min-height: 500px;
  }

  .sky-mark {
    top: 29%;
    left: 50%;
    width: min(94vw, 360px);
    height: 210px;
  }

  .sky-hole {
    width: 82%;
    height: 56px;
    box-shadow:
      34px 82px 0 var(--ink),
      -22px 164px 0 var(--ink);
  }

  .title-lockup {
    left: 0;
    bottom: 10%;
  }

  h1 {
    max-width: 220px;
    font-size: 43px;
  }

  .cover-stamp {
    right: 0;
    bottom: 19%;
    width: 104px;
  }

  .pre-save {
    left: 0;
    right: 0;
    bottom: 3%;
    transform: none;
    width: 100%;
    min-height: 42px;
  }

  .versions {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .version-list {
    gap: 14px;
  }

  .poster-foot {
    justify-content: flex-start;
    gap: 14px;
  }
}

@media (min-width: 1200px) and (min-height: 820px) {
  .poster {
    grid-template-rows: auto minmax(650px, 1fr) auto auto;
  }

  .monument {
    min-height: 650px;
  }
}
