/* Playmkr
   A split hero with two tilted devices, two centred buttons, and a rounded panel for each game.
   The page colour is our own navy, with nothing floating on it.
   One typeface (Archivo): expanded and black for display, normal width for text.
   Corners: buttons 10px, panels 28px, tiles 16px.
   Each game's buttons wear that game's own colour: Build-A-Player green, 32-0 orange.
   The logo's lime is Playmkr's own: the headline's last line, the figures, the edges of the
   hero devices and the link underlines. */

:root {
  --text: #ffffff;
  --soft: rgb(255 255 255 / 0.9);
  --dim: rgb(203 216 245 / 0.72);
  --lime: #c7fc0d;
  --bap: #61e3a0;
  --bap-lip: #2e9d69;
  --bap-ink: #052619;
  --t320: #ee5400;
  --t320-lip: #a53700;
  --bezel: #060c22;
  --slab: #c7fc0d;
  --shade: rgb(2 6 22 / 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: #040816;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(180deg, #040816 0, #0a1436 240px, #10245e 780px, #132b6e 46%, #0f2259 78%, #070f2c 94%, #040816 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2 {
  margin: 0;
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.nw { white-space: nowrap; }

.lime { color: var(--lime); }

.wrap {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* nav */

.nav { padding: 22px 0; }

.nav-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo img { width: 150px; }

.nav-links {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-size: 16px;
  font-weight: 600;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* buttons */

.btn {
  --lip: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 10px;
  font-stretch: 112%;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--lip), 0 10px 20px var(--shade);
  transition: transform 0.08s, box-shadow 0.08s;
}

/* a real press: the button sinks onto its lip */
.btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--lip), 0 7px 14px var(--shade); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--lip), 0 3px 8px var(--shade); }

.btn-bap { --lip: var(--bap-lip); background: var(--bap); color: var(--bap-ink); }
.btn-320 { --lip: var(--t320-lip); background: var(--t320); color: #ffffff; }

.btn-ghost,
.btn-ghost:hover,
.btn-ghost:active {
  transform: none;
  color: var(--text);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.42);
}

.btn-ghost:hover { background: rgb(255 255 255 / 0.1); }

/* hero */

.hero { padding: 40px 0 0; }

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px;
}

.hero h1 { font-size: clamp(44px, 5.6vw, 78px); }

/* "make" and "play" sit directly over each other, the two halves of the name */
.lockup {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: 0.26em;
}

.lockup span:nth-child(odd) { text-align: right; }

.hero-copy p {
  max-width: 23em;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.4;
}

.hero-art {
  position: relative;
  aspect-ratio: 1.32;
}

.monitor {
  position: absolute;
  left: 3%;
  top: 7%;
  width: 80%;
  padding: 10px;
  border-radius: 14px;
  background: var(--bezel);
  transform: perspective(1700px) rotateY(-13deg) rotateX(5deg) rotateZ(1deg);
  box-shadow: 9px 4px 0 var(--slab), 40px 48px 60px var(--shade);
}

.monitor img { border-radius: 6px; }

.phone {
  position: absolute;
  right: 5%;
  bottom: 2%;
  width: 19%;
  padding: 5px;
  border-radius: 24px;
  background: var(--bezel);
  transform: perspective(1200px) rotateY(-12deg) rotateZ(1.5deg);
  box-shadow: 5px 2px 0 var(--slab), 22px 30px 40px var(--shade);
}

.phone img { border-radius: 19px; }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
}

/* game panels */

.panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: center;
  margin-top: 150px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(112deg, rgb(140 172 240 / 0.3) 0%, rgb(112 142 216 / 0.13) 32%, rgb(112 142 216 / 0.07) 100%), #142b68;
  box-shadow: inset 0 0 0 1px rgb(170 196 255 / 0.13);
}

.panel-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); }

.tile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 540px;
  overflow: hidden;
  border-radius: 16px;
}

.tile-bap { background: radial-gradient(120% 92% at 50% 100%, #62e6a6 0%, #1f9c7a 36%, #0e2f52 76%, #0a1a3e 100%); }
.tile-320 { background: radial-gradient(120% 92% at 50% 100%, #ff8f3f 0%, #d4571b 34%, #3a2148 74%, #101a40 100%); }

/* each tile: the game in a desktop window, with the same game on a phone standing in front of it */
.tile-window {
  position: absolute;
  left: 4%;
  top: 8%;
  width: 80%;
  padding: 6px;
  border-radius: 12px;
  background: var(--bezel);
  box-shadow: 0 24px 44px var(--shade);
}

.tile-window img { border-radius: 7px; }

.tile-phone {
  position: absolute;
  right: 4%;
  top: 29%;
  width: 29%;
  padding: 6px 6px 0;
  border-radius: 28px 28px 0 0;
  background: var(--bezel);
  box-shadow: -14px 20px 44px var(--shade);
}

.tile-phone img { border-radius: 23px 23px 0 0; }

/* the flipped panel mirrors it */
.tile-320 .tile-window { left: auto; right: 4%; }
.tile-320 .tile-phone { right: auto; left: 4%; box-shadow: 14px 20px 44px var(--shade); }

.panel-copy { padding: 20px 40px 20px 56px; }
.panel-flip .panel-copy { padding: 20px 56px 20px 44px; }

.panel-logo { width: 124px; margin-bottom: 20px; }
.panel-logo-ball { width: 84px; margin: 0 0 12px -8px; }

h2 { font-size: clamp(27px, 2.7vw, 36px); }

.panel-copy h2 { white-space: nowrap; }

.panel-copy p {
  margin-top: 18px;
  color: var(--soft);
  font-size: 17px;
}

.figures {
  display: flex;
  gap: 34px;
  margin: 28px 0 0;
}

.figures dt {
  color: var(--lime);
  font-stretch: 125%;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.figures dd {
  margin: 7px 0 0;
  color: var(--dim);
  font-size: 14px;
}

.specs { margin: 24px 0 0; }

.specs div {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgb(170 196 255 / 0.16);
  font-size: 15px;
  line-height: 1.45;
}

.specs dt { color: var(--dim); }
.specs dd { margin: 0; color: var(--soft); }

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.panel-actions .btn {
  height: 52px;
  padding: 0 20px;
  font-size: 15px;
}

/* the open third slot */

.panel-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 250px;
  margin-top: 56px;
  background: none;
  box-shadow: inset 0 0 0 1px rgb(170 196 255 / 0.22);
}

.panel-soon img { width: 62px; }

.panel-soon h2 { text-align: center; }

/* about and contact */

.panel-text {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 56px;
  padding: 64px 72px;
}

.about-col p {
  max-width: 34em;
  margin-top: 18px;
  color: var(--soft);
  font-size: 17px;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover { color: var(--lime); }

.mail {
  display: inline-block;
  margin-top: 12px;
  font-stretch: 112%;
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.mail:hover { color: var(--lime); }

/* footer */

.foot { padding: 130px 0 56px; }

.foot-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.foot-logo { width: 122px; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px 56px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
}

.foot-col h3 {
  margin: 0 0 3px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}

.foot-col a { text-decoration: none; font-weight: 600; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.foot .wrap + .wrap {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgb(170 196 255 / 0.14);
}

.foot-legal {
  max-width: 62em;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

/* tablet and phone */

@media (max-width: 960px) {
  .nav-links { display: none; }

  .hero { padding-top: 24px; }
  .hero-row { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions { margin-top: 40px; }

  .panel,
  .panel-flip,
  .panel-text {
    grid-template-columns: 1fr;
    margin-top: 110px;
    padding: 14px;
    border-radius: 22px;
  }

  .panel-flip .tile { order: -1; }

  .tile { height: 420px; border-radius: 12px; }

  .panel-copy,
  .panel-flip .panel-copy { padding: 30px 14px 16px; }

  .panel-text { gap: 40px; padding: 40px 28px; }

  .panel-soon { min-height: 200px; margin-top: 40px; }

  .foot-row { flex-direction: column; gap: 34px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; width: 100%; }

  .foot { padding-top: 96px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }

  .nav-logo img { width: 116px; }

  .hero-copy p { font-size: 18px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .btn { justify-content: center; }

  .monitor { padding: 5px; border-radius: 9px; box-shadow: 5px 2px 0 var(--slab), 20px 26px 30px var(--shade); }
  .monitor img { border-radius: 5px; }
  .phone { padding: 3px; border-radius: 13px; box-shadow: 3px 1px 0 var(--slab), 12px 16px 22px var(--shade); }
  .phone img { border-radius: 10px; }

  .tile { height: 360px; }
  .tile-window { top: 8%; left: 4%; width: 84%; padding: 4px; border-radius: 9px; }
  .tile-320 .tile-window { right: 4%; }
  .tile-window img { border-radius: 5px; }
  .tile-phone { top: 38%; width: 33%; padding: 4px 4px 0; border-radius: 20px 20px 0 0; }
  .tile-phone img { border-radius: 16px 16px 0 0; }

  .specs div { grid-template-columns: 6.4em 1fr; }

  .figures { gap: 22px; }
  .figures dt { font-size: 25px; }

  .panel-actions { flex-direction: column; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
