:root {
  color-scheme: light;
  --paper: #F6EFE4;
  --ink: #3B2A20;
  --muted: #6C5142;
  --rust: #A9583A;
  --rule: #C9AF99;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }

.page {
  width: min(calc(100% - clamp(2.5rem, 10vw, 10rem)), 76rem);
  margin-inline: auto;
  padding-block: clamp(1.25rem, 4vh, 2.75rem) clamp(2.25rem, 7vh, 4.75rem);
}

.masthead {
  padding-block: clamp(.75rem, 2.5vh, 1.35rem);
  border-block: 1px solid var(--rule);
}

.masthead img {
  display: block;
  width: min(100%, clamp(15.25rem, 22vw, 17.5rem));
  height: auto;
  margin-inline: auto;
}

.home {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 5rem);
  padding-block: clamp(3rem, 10vh, 7rem);
}

.introduction h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 4.6vw, 4.6rem);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.07em;
}

.introduction h1 span { color: var(--rust); }
.introduction p {
  max-width: 31ch;
  margin: clamp(1.1rem, 3vh, 1.8rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.about, .game-release {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  border-block-start: 1px solid var(--rule);
  padding-block-start: clamp(2rem, 6vw, 5rem);
}

.about {
  align-items: start;
  scroll-margin-block-start: 1.25rem;
}

.about-heading p {
  margin: 0 0 .7rem;
  color: var(--muted);
  font-size: .9rem;
}

.about h2, .game-release h2 {
  margin: 0;
  font: 700 clamp(2.3rem, 4vw, 4rem) / 1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.about-copy { max-width: 46ch; }

.about-copy p, .game-summary > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.about-copy p + p { margin-block-start: 1em; }

.beat { min-width: 0; margin: 0; }

.beat img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(.75rem, 2vw, 1.4rem);
  background: #482831;
}

.beat figcaption { display: flex; justify-content: flex-end; padding-block-start: .35rem; }

.game-release { align-items: center; scroll-margin-block-start: 1.25rem; }

.game-summary { max-width: 33ch; }
.game-summary h2 { text-wrap: wrap; }
.game-summary > p { margin-block-start: 1.15rem; }
.game-summary .release-date {
  color: #854128;
  font-weight: 700;
}

.game-poster {
  justify-self: end;
  width: min(100%, 32rem);
  margin: 0;
}

.game-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(.75rem, 2vw, 1.25rem);
}

#toggle-beat {
  min-height: 2.75rem;
  padding: .25rem .2rem;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: 600 .875rem system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: .23em;
  cursor: pointer;
}
#toggle-beat:hover { color: #854128; }
button { touch-action: manipulation; }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 48rem) {
  .home { grid-template-columns: minmax(0, 1fr); padding-block: 2.5rem 0; }
  .introduction h1 { font-size: clamp(2.8rem, 8.7vw, 4.8rem); }
  .introduction p { max-width: 37ch; }
  .about, .game-release { grid-template-columns: minmax(0, 1fr); }
  .game-poster { justify-self: start; }
  .about h2 { text-wrap: wrap; }
}
@media (max-width: 23rem) {
  .introduction h1 { font-size: 2.55rem; }
}
@media (forced-colors: active) {
  .masthead img { background: #F6EFE4; forced-color-adjust: none; }
}
