:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f6f0df;
  background: #0c1110;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background:
    radial-gradient(circle at 8% 0%, rgba(167, 205, 100, 0.13), transparent 35rem),
    radial-gradient(circle at 100% 75%, rgba(211, 127, 52, 0.1), transparent 32rem),
    #0c1110;
}

body {
  min-height: 100vh;
  margin: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.56fr);
  column-gap: 64px;
  align-items: end;
  margin-bottom: 52px;
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 18px;
  color: #a9cb73;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.84;
}

.intro {
  max-width: 32rem;
  margin: 0 0 5px;
  color: #a8b0aa;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.62;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.demo-card {
  position: relative;
  display: grid;
  min-height: 525px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.demo-card:hover,
.demo-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
}

.demo-card:focus-visible {
  outline: 3px solid #f6f0df;
  outline-offset: 4px;
}

.demo-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 10, 9, 0.98) 0%, transparent 68%);
  content: "";
}

.demo-card--forest {
  background: #315b3f;
}

.demo-card--arcade {
  background: #44263d;
}

.card-number {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.card-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.card-art--forest {
  background:
    linear-gradient(23deg, transparent 48%, rgba(207, 188, 119, 0.48) 49% 54%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 32px);
}

.tree {
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 48% 52% 45% 55%;
  background: #173924;
  box-shadow:
    34px 16px 0 -8px #204c2f,
    -22px 24px 0 -12px #8cae57;
  transform: rotate(14deg);
}

.tree--one {
  top: 62px;
  left: 8%;
}

.tree--two {
  top: 12px;
  right: 3%;
  transform: rotate(57deg) scale(1.15);
}

.cottage {
  position: absolute;
  top: 122px;
  left: 42%;
  width: 164px;
  height: 112px;
  border: 8px solid #e0bf7f;
  background: #9d653d;
  box-shadow: 12px 15px 0 rgba(7, 18, 11, 0.35);
}

.roof {
  position: absolute;
  top: -46px;
  left: -20px;
  width: 188px;
  height: 54px;
  background: #562f28;
  clip-path: polygon(10% 100%, 21% 5%, 83% 0, 100% 100%);
}

.door {
  position: absolute;
  right: 21px;
  bottom: -8px;
  width: 36px;
  height: 56px;
  background: #3d261f;
}

.path {
  position: absolute;
  top: 202px;
  left: 50%;
  width: 72px;
  height: 270px;
  background: rgba(210, 190, 126, 0.55);
  clip-path: polygon(38% 0, 86% 0, 66% 100%, 0 100%);
}

.card-art--arcade {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 193, 85, 0.22), transparent 14rem),
    linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.04) 45% 50%, transparent 50%);
}

.brick-row {
  position: absolute;
  left: 9%;
  width: 82%;
  height: 42px;
  background:
    linear-gradient(90deg, #f2b552 0 31%, transparent 31% 34%, #d96844 34% 65%, transparent 65% 68%, #75984d 68%);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.25),
    inset 0 0 0 3px rgba(255, 255, 255, 0.13);
}

.brick-row--one {
  top: 76px;
}

.brick-row--two {
  top: 124px;
  transform: translateX(-6%);
}

.ball {
  position: absolute;
  top: 220px;
  left: 64%;
  width: 26px;
  height: 26px;
  border: 5px solid #4b251f;
  border-radius: 50%;
  background: #fff2b8;
  box-shadow: 14px 16px 0 -10px rgba(0, 0, 0, 0.3);
}

.paddle {
  position: absolute;
  top: 330px;
  left: 27%;
  width: 46%;
  height: 30px;
  border: 4px solid #33213a;
  border-radius: 16px;
  background: #e57f4d;
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.25);
}

.card-copy {
  z-index: 2;
  align-self: end;
  display: grid;
  gap: 11px;
  padding: 0 30px 76px;
}

.card-kicker {
  color: #c5cfbd;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.card-copy > span:last-child {
  max-width: 30rem;
  color: #bdc5bf;
  font-size: 0.93rem;
  line-height: 1.5;
}

.play-link {
  position: absolute;
  right: 30px;
  bottom: 25px;
  left: 30px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 15px;
  font-size: 0.84rem;
  font-weight: 700;
}

.play-link span {
  transition: transform 180ms ease;
}

.demo-card:hover .play-link span {
  transform: translate(3px, -3px);
}

footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 25px;
  color: #707a73;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-rule {
  width: 32px;
  height: 1px;
  background: #3c4640;
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 28px, 600px);
    padding-top: 54px;
  }

  .hero {
    grid-template-columns: 1fr;
    row-gap: 26px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-card {
    min-height: 490px;
  }
}

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