:root {
  --ink: #171310;
  --paper: #f2eadb;
  --terracotta: #D56850;
  --orange: #DE9147;
  --marigold: #EBC65B;
  --sage: #A9C5A0;
  --teal: #579D91;
  --copy: #403832;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
}

main {
  min-width: 0;
}

a {
  color: inherit;
}

.masthead {
  position: relative;
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px clamp(28px, 6vw, 88px);
  border-bottom: 10px solid var(--terracotta);
  background: var(--ink);
  color: var(--paper);
}

.wordmark {
  display: block;
  width: clamp(280px, 40vw, 540px);
  min-width: 0;
  flex: 0 1 auto;
  text-decoration: none;
}

.wordmark-image {
  display: block;
  width: 100%;
  height: auto;
}

.platform-stamp {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(25vw, 280px);
  aspect-ratio: 1.68;
  flex: 0 0 auto;
  place-content: center;
  padding: 35px 62px;
  color: var(--ink);
  filter: drop-shadow(7px 7px 0 var(--terracotta));
  text-align: center;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.platform-stamp::before,
.platform-stamp::after {
  position: absolute;
  content: "";
  clip-path: polygon(50% 0%, 56% 20%, 66% 2%, 67% 23%, 83% 6%, 76% 29%, 98% 18%, 82% 37%, 100% 41%, 82% 49%, 98% 63%, 77% 60%, 89% 89%, 68% 70%, 65% 100%, 54% 76%, 43% 100%, 42% 76%, 24% 94%, 31% 68%, 4% 83%, 23% 58%, 0% 51%, 22% 43%, 2% 26%, 28% 31%, 17% 4%, 40% 24%);
}

.platform-stamp::before {
  z-index: -2;
  inset: 0;
  background: var(--ink);
}

.platform-stamp::after {
  z-index: -1;
  inset: 5px;
  background-color: var(--marigold);
  background-image: radial-gradient(circle, rgba(213, 104, 80, 0.48) 1px, transparent 1.4px);
  background-size: 7px 7px;
}

.platform-stamp strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  max-width: 140px;
  justify-self: center;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.93;
}

.platform-stamp span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.kicker,
.note-number,
footer,
.legal-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 250px);
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
  padding: clamp(64px, 9vw, 140px) clamp(28px, 7.5vw, 120px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 11%;
  right: -46px;
  width: 210px;
  height: 28px;
  background: var(--orange);
  content: "";
  opacity: 0.9;
  transform: rotate(7deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 820px;
}

.kicker {
  display: inline-flex;
  align-items: stretch;
  margin: 0 0 38px;
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--marigold);
  color: var(--paper);
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1;
  transform: rotate(-1deg);
}

.kicker span,
.kicker strong {
  display: flex;
  align-items: center;
  padding: 12px 15px;
}

.kicker span {
  background: var(--terracotta);
  color: var(--ink);
}

.kicker strong {
  font: inherit;
}

h1,
.banner,
.legal h1,
.legal h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(68px, 10vw, 158px);
  letter-spacing: -0.065em;
  line-height: 0.78;
  text-shadow: 4px 4px 0 rgba(213, 104, 80, 0.18);
}

.banner {
  width: fit-content;
  margin: clamp(42px, 5vw, 72px) 0 0;
  padding: 18px clamp(20px, 3vw, 44px) 22px;
  border: 4px solid var(--ink);
  background: var(--terracotta);
  box-shadow: 12px 12px 0 var(--ink);
  font-size: clamp(27px, 4vw, 58px);
  letter-spacing: -0.035em;
  line-height: 1;
  transform: rotate(-1.2deg);
}

.rule {
  width: 100%;
  height: 11px;
  margin: clamp(42px, 5vw, 66px) 0 24px;
  border-block: 3px solid var(--ink);
}

.intro {
  max-width: 760px;
  margin: 0;
  padding-left: 22px;
  border-left: 10px solid var(--teal);
  color: var(--copy);
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 500;
  line-height: 1.38;
}

.catalog-copy {
  max-width: 760px;
  margin: 38px 0 12px;
  padding: 24px 28px 26px;
  border: 4px solid var(--ink);
  background: var(--sage);
  box-shadow: 10px 10px 0 var(--orange);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.32;
  transform: rotate(0.6deg);
}

.catalog-copy strong {
  font-weight: 900;
}

.game-note {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 34px 30px 38px;
  background: var(--teal);
  box-shadow: 14px 14px 0 var(--ink);
  clip-path: polygon(1% 2%, 98% 0%, 100% 97%, 3% 100%, 0% 52%);
  transform: rotate(1.8deg);
}

.game-note::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 92px;
  height: 22px;
  background: var(--marigold);
  content: "";
  opacity: 0.9;
  transform: translateX(-50%) rotate(-3deg);
}

.note-number {
  width: fit-content;
  margin: 0 0 24px;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.game-note p:not(.note-number) {
  margin: 0;
  padding: 10px 0;
  border-top: 3px solid var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.25vw, 36px);
  font-weight: 900;
  line-height: 1.14;
}

.showcase {
  padding: clamp(70px, 8vw, 112px) 0 clamp(78px, 9vw, 130px);
  border-block: 12px solid var(--terracotta);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.showcase-heading {
  display: grid;
  width: min(100% - 56px, 1380px);
  grid-template-columns: 210px minmax(0, 900px);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  margin: 0 auto clamp(44px, 6vw, 76px);
}

.showcase-slug {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 220px;
  aspect-ratio: 1.62;
  place-content: center;
  margin: 0;
  padding: 30px 42px;
  color: var(--ink);
  filter: drop-shadow(6px 6px 0 var(--marigold));
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-3deg);
}

.showcase-slug::before,
.showcase-slug::after {
  position: absolute;
  content: "";
  clip-path: polygon(50% 0%, 57% 22%, 73% 2%, 70% 26%, 95% 13%, 79% 38%, 100% 48%, 78% 55%, 95% 80%, 68% 68%, 69% 100%, 51% 76%, 34% 97%, 36% 71%, 7% 87%, 24% 58%, 0% 45%, 26% 32%, 31% 5%, 43% 25%);
}

.showcase-slug::before {
  z-index: -2;
  inset: 0;
  background: var(--paper);
}

.showcase-slug::after {
  z-index: -1;
  inset: 5px;
  background-color: var(--terracotta);
  background-image: radial-gradient(circle, rgba(23, 19, 16, 0.42) 1px, transparent 1.4px);
  background-size: 6px 6px;
}

.showcase-slug span {
  position: relative;
  z-index: 1;
}

.showcase h2 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6.7vw, 104px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.screenshot-rail {
  display: flex;
  gap: clamp(22px, 2.5vw, 38px);
  padding: 0 max(28px, calc((100vw - 1380px) / 2));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 28px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--sage) transparent;
}

.get-rated-inner {
  display: grid;
  width: min(100% - 56px, 1380px);
  gap: 28px;
  justify-items: start;
  margin: 0 auto;
}

.get-rated-inner p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4;
}

.store-button {
  display: grid;
  margin-top: 8px;
  padding: 14px 28px 16px;
  border: 4px solid var(--paper);
  background: var(--terracotta);
  box-shadow: 10px 10px 0 var(--marigold);
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-1.2deg);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.store-button span {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.store-button strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.store-button:hover,
.store-button:focus-visible {
  box-shadow: 6px 6px 0 var(--marigold);
  transform: rotate(-1.2deg) translate(4px, 4px);
}

.store-button:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 6px;
}

.screen-card {
  --accent: var(--sage);
  width: clamp(268px, 28vw, 380px);
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

.screen-card figcaption {
  min-height: 122px;
  margin-bottom: 28px;
  padding: 18px 20px 20px;
  border: 4px solid var(--paper);
  background: var(--accent);
  box-shadow: 8px 8px 0 var(--paper);
  color: var(--ink);
  font-family: "Geist", sans-serif;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.03;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.screen-card:nth-child(even) figcaption {
  transform: rotate(1deg);
}

.screen-card figcaption span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.screen-card figcaption strong {
  font: inherit;
}

.screen-card.accent-sage { --accent: var(--sage); }
.screen-card.accent-orange { --accent: var(--orange); }
.screen-card.accent-teal { --accent: var(--teal); }
.screen-card.accent-marigold { --accent: var(--marigold); }
.screen-card.accent-terracotta { --accent: var(--terracotta); }

.screen-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--paper);
  border-radius: 0;
  background: #0d0b09;
  box-shadow: 10px 10px 0 var(--accent);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  padding: 34px clamp(28px, 6vw, 88px);
  border-top: 10px solid var(--marigold);
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
}

footer nav {
  display: flex;
  gap: 24px;
}

footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

footer p {
  margin: 0;
  color: #a89f92;
}

.support {
  width: fit-content;
  color: var(--sage);
  text-transform: lowercase;
}

.legal {
  min-height: 100vh;
  background: var(--paper);
}

.legal .masthead {
  min-height: auto;
  padding-block: 28px;
}

.legal article {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(48px, 8vw, 86px);
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.legal-meta {
  margin: 0 0 48px;
  color: var(--copy);
  font-size: 12px;
  line-height: 1.5;
}

.legal h2 {
  margin: 42px 0 10px;
  font-size: 28px;
  letter-spacing: -0.025em;
}

.legal article p:not(.legal-meta) {
  margin: 0 0 18px;
  color: var(--copy);
  font-size: 17px;
  line-height: 1.65;
}

.legal footer {
  grid-template-columns: 1fr auto;
}

@media (max-width: 760px) {
  .masthead {
    min-height: 188px;
    align-items: center;
    gap: 12px;
    padding: 26px 24px;
    border-bottom-width: 7px;
  }

  .wordmark {
    width: min(54vw, 340px);
    flex: 1 1 auto;
  }

  .platform-stamp {
    width: clamp(112px, 30vw, 140px);
    padding: 20px 24px;
    filter: drop-shadow(4px 4px 0 var(--terracotta));
  }

  .platform-stamp strong {
    max-width: 80px;
    font-size: 10px;
  }

  .platform-stamp span {
    margin-top: 5px;
    font-size: 6px;
    letter-spacing: 0.06em;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 70px 24px 84px;
  }

  .hero::before {
    top: 28px;
    width: 150px;
    height: 22px;
  }

  h1 {
    font-size: clamp(54px, 16.6vw, 65px);
  }

  .banner {
    width: calc(100% - 10px);
    margin-top: 40px;
    box-shadow: 8px 8px 0 var(--ink);
  }

  .rule {
    margin-top: 48px;
  }

  .game-note {
    width: calc(100% - 12px);
    max-width: 420px;
    justify-self: start;
  }

  .catalog-copy {
    margin-top: 32px;
    padding: 20px 20px 22px;
    box-shadow: 7px 7px 0 var(--orange);
  }

  .showcase-heading {
    display: block;
    width: calc(100% - 48px);
  }

  .get-rated-inner {
    width: calc(100% - 48px);
  }

  .store-button {
    box-shadow: 7px 7px 0 var(--marigold);
  }

  .showcase-slug {
    width: 170px;
    margin-bottom: 34px;
    padding: 18px 28px;
    font-size: 12px;
  }

  .screenshot-rail {
    gap: 20px;
    padding-inline: 24px;
    scroll-padding-inline: 24px;
  }

  .screen-card {
    width: min(78vw, 330px);
  }

  footer,
  .legal footer {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  footer nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
