:root {
  --background: #d5d2ca;
  --ink: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.55);
  --line: rgba(26, 26, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Times New Roman", Times, serif;
  color: var(--ink);
  background-color: var(--background);
}

.decorations {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 2100px;
  overflow: hidden;
  pointer-events: none;
}

.decorations img {
  display: block;
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.12));
}

.left-slingers {
  position: absolute;
  top: 4rem;
  left: -2.7rem;
  display: grid;
  gap: 1.2rem;
}

.left-slingers img {
  width: clamp(90px, 11vw, 155px);
  opacity: 0.78;
}

.left-slingers img:nth-child(2n) {
  margin-left: 2.2rem;
  transform: rotate(6deg);
}

.left-slingers img:nth-child(3n) {
  margin-left: 0.8rem;
  transform: rotate(-7deg);
}

.slinger2 {
  position: absolute;
  width: clamp(120px, 18vw, 250px);
  opacity: 0.7;
}

.slinger2--one {
  top: 3.5rem;
  right: 8%;
  transform: rotate(-11deg);
}

.slinger2--two {
  top: 16rem;
  left: 28%;
  width: clamp(95px, 14vw, 190px);
  transform: rotate(13deg);
}

.slinger2--three {
  top: 34rem;
  right: -1rem;
  transform: rotate(8deg);
}

.slinger2--four {
  top: 65rem;
  left: 16%;
  width: clamp(105px, 15vw, 210px);
  transform: rotate(-17deg);
}

.slinger2--five {
  top: 92rem;
  right: 18%;
  width: clamp(90px, 13vw, 180px);
  transform: rotate(18deg);
}

.slinger2--six {
  top: 116rem;
  left: 52%;
  width: clamp(120px, 17vw, 230px);
  transform: rotate(-5deg);
}

.page-shell,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-footer {
  z-index: 10;
}

.koning-rain {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.koning-rain__text {
  position: absolute;
  left: 0;
  top: 0;
  color: #ff8a00;
  font-size: clamp(1.8rem, 4.8vw, 5.8rem);
  font-style: italic;
  line-height: 0.9;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(255, 138, 0, 0.28);
  opacity: 0;
  transform: translate3d(var(--x), 110vh, 0) rotate(var(--rotation)) scale(var(--scale));
  animation: koning-rise var(--duration) cubic-bezier(0.16, 0.86, 0.2, 1) forwards;
}

@keyframes koning-rise {
  0% {
    opacity: 0;
    transform: translate3d(var(--x), 110vh, 0) rotate(var(--rotation)) scale(var(--scale));
  }

  16% {
    opacity: 1;
  }

  100% {
    opacity: 0.95;
    transform: translate3d(var(--x), var(--y), 0) rotate(var(--rotation)) scale(var(--scale));
  }
}

.page-shell {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

.kicker {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.08em;
  opacity: 0.55;
  text-transform: lowercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0.75rem;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: normal;
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.date {
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-style: italic;
}

.buy-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(26, 26, 26, 0.75);
  border-radius: 8px 13px;
  color: var(--ink);
  background: transparent;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.buy-button:hover,
.buy-button:focus-visible {
  border-color: #ff8a00;
  color: #ff8a00;
  transform: translateY(-2px);
}

.buy-button--top {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.buy-button--bottom {
  margin-top: clamp(-2rem, -2vw, -1rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

figure {
  margin: 0;
}

.hero-image {
  width: min(100%, 1320px);
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
}

.hero-image img,
.dark-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.story,
.features,
.audio-player {
  width: min(860px, 100%);
}

.story {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.42;
}

.story--intro {
  margin-left: clamp(0rem, 10vw, 8rem);
}

.audio-player {
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.audio-copy {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.audio-copy h2,
.audio-copy p {
  margin-bottom: 0;
}

.audio-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.audio-controls {
  display: grid;
  grid-template-columns: minmax(9rem, 0.32fr) 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.audio-controls select,
.audio-controls audio {
  width: 100%;
  font-family: "Times New Roman", Times, serif;
}

.audio-controls select {
  min-height: 2.35rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(26, 26, 26, 0.25);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.32);
}

.canvas-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.26);
  background: #15110c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

#scope {
  display: block;
  width: 100%;
  height: auto;
}

.features {
  margin: 0 0 clamp(3rem, 6vw, 5rem) auto;
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: normal;
  line-height: 1;
  letter-spacing: -0.035em;
}

ul {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding-left: 1.25rem;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.dark-preview {
  width: min(520px, 78vw);
  margin: 0 auto clamp(4rem, 7vw, 6rem);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 0 1rem 2.5rem;
}

.site-footer img {
  width: 5.5rem;
  height: auto;
  opacity: 0.88;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
  transform: scale(var(--flag-scale, 1));
  transform-origin: center bottom;
  transition: opacity 1.6s linear;
  will-change: transform;
}

.site-footer img:hover,
.site-footer img.is-grown {
  opacity: 1;
}

@media (max-width: 820px) {
  .page-shell {
    padding-top: 4rem;
  }

  h1 {
    max-width: 7ch;
  }

  .story--intro {
    margin-left: 0;
  }

  .audio-controls {
    grid-template-columns: 1fr;
  }

  .slinger2--two,
  .slinger2--four,
  .slinger2--six {
    display: none;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 1.5rem, 1120px);
    padding-top: 3rem;
  }

  .left-slingers {
    left: -4rem;
    opacity: 0.55;
  }
}
