* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --background: #141922;
  --text: #f9f8f6;
  --muted: #c3cad4;
  --line: #3a424e;
  --highlight: #ffd28e;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.55 system-ui, sans-serif;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 5px;
}

.frame { width: min(100% - 3rem, 66rem); margin-inline: auto; }

.site-header, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-header {
  min-height: 5.25rem;
  border-bottom: 1px solid var(--line);
}

.brand, .store {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-content: center;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: .47rem;
  background: var(--highlight);
  color: #24201c;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: -.025em;
}

.store { color: var(--highlight); font-size: .9rem; }
.store:hover, footer a:hover { text-decoration: underline; }

.intro { padding-block: clamp(2.6rem, 7vw, 5rem) clamp(1.7rem, 4vw, 2.8rem); }

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 7.3vw, 5.55rem);
  line-height: .99;
  letter-spacing: -.07em;
  font-weight: 810;
}

h1 span { color: var(--highlight); }

.intro p {
  max-width: 39rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.demos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.55rem);
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #222a36;
  border: 1px solid #414a58;
}

.camp { --button: #c9efab; --button-hover: #def8c9; }
.club { --button: #ffc098; --button-hover: #ffdbc4; }

.art {
  position: relative;
  height: clamp(7.7rem, 19vw, 11rem);
  overflow: hidden;
  isolation: isolate;
}

.camp-art {
  background: linear-gradient(118deg, #274942, #558365);
}

.sun {
  position: absolute;
  width: 4.65rem;
  aspect-ratio: 1;
  top: 13%;
  left: 18%;
  background: #edcc8c;
  border-radius: 50%;
  box-shadow: 0 0 0 .65rem #edcc8c22;
}

.hill {
  position: absolute;
  inset: 12% 0 0;
}

.hill-back {
  background: #375d50;
  clip-path: polygon(0 63%, 16% 43%, 30% 67%, 48% 17%, 61% 47%, 77% 4%, 100% 65%, 100% 100%, 0 100%);
}

.hill-front {
  background: #1d3831;
  clip-path: polygon(0 80%, 16% 61%, 33% 83%, 52% 47%, 73% 80%, 88% 59%, 100% 77%, 100% 100%, 0 100%);
}

.pine {
  position: absolute;
  bottom: 10%;
  width: 3.65rem;
  height: 5.75rem;
  background: #152f29;
  clip-path: polygon(50% 0, 69% 24%, 59% 24%, 80% 47%, 69% 47%, 92% 70%, 80% 70%, 100% 91%, 57% 91%, 57% 100%, 43% 100%, 43% 91%, 0 91%, 20% 70%, 8% 70%, 31% 47%, 20% 47%, 41% 24%, 31% 24%);
}

.pine-left { left: 27%; transform: scale(.74); transform-origin: bottom; }
.pine-right { right: 12%; }

.tent {
  position: absolute;
  bottom: 12%;
  left: 48%;
  width: 7.75rem;
  height: 4.25rem;
  background: linear-gradient(110deg, #ffe2a5 51%, #d7a665 52%);
  clip-path: polygon(43% 0, 100% 100%, 0 100%);
}

.tent::after {
  content: "";
  position: absolute;
  inset: 45% 58% 0 16%;
  background: #533f30;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.club-art {
  background: linear-gradient(115deg, #654055, #a85f55);
}

.court {
  position: absolute;
  inset: 19% -6% -19% 23%;
  border: 2px solid #fbe0bf90;
  border-radius: .65rem;
  transform: rotate(-15deg) skewX(-15deg);
}

.court-circle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28%;
  width: 2px;
  background: #fbe0bf90;
}

.court-circle::after {
  content: "";
  position: absolute;
  top: 26%;
  left: 50%;
  width: 4.5rem;
  aspect-ratio: 1;
  border: 2px solid #fbe0bf90;
  border-radius: 50%;
  transform: translateX(-50%);
}

.court-lane {
  position: absolute;
  right: 4%;
  top: 22%;
  width: 24%;
  height: 56%;
  border: 2px solid #fbe0bf90;
  border-radius: 4rem 0 0 4rem;
}

.ball {
  position: absolute;
  top: 16%;
  right: 20%;
  width: clamp(5.35rem, 12vw, 7.35rem);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transform: rotate(-23deg);
  background: linear-gradient(transparent 48%, #472831 49% 51%, transparent 52%),
    radial-gradient(circle at 30% 22%, #ffb17a, #e98553 55%, #a34a3c);
  box-shadow: .2rem .65rem 1rem #42222e7a;
}

.ball::before, .ball::after {
  content: "";
  position: absolute;
  top: -14%;
  width: 69%;
  height: 126%;
  border: 2px solid #472831;
  border-radius: 50%;
}

.ball::before { left: -40%; }
.ball::after { right: -40%; }

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.2rem, 3vw, 1.65rem);
}

.card h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.13;
  letter-spacing: -.045em;
}

.card p { margin: .55rem 0 1.35rem; color: var(--muted); }

.demo-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 3.55rem;
  margin-top: auto;
  padding: .65rem 1rem;
  border-radius: .65rem;
  background: var(--button);
  color: #20231f;
  font-weight: 790;
  text-decoration: none;
}

.demo-link span { font-size: 1.2rem; }
.demo-link:hover { background: var(--button-hover); }

footer {
  margin-top: 2.4rem;
  padding-block: 1.2rem 1.65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}

footer a { text-decoration: none; }

@media (max-width: 41rem) {
  .frame { width: calc(100% - 2rem); }
  .site-header { min-height: 4.4rem; }
  .demos { grid-template-columns: 1fr; }
}

@media (max-width: 22rem) {
  .site-header { gap: .55rem; }
  .brand { gap: .38rem; }
  .store { font-size: .8rem; }
}
