/* ========================================
   THIS ALSO RELEASED
   ======================================== */

:root {
  --cyan: #5CE1E6;
  --pink: #FF66C4;
  --yellow: #FFDE59;

  --ink: #17283c;
  --cream: #fffdf5;
  --white: #ffffff;

  --page-width: 1500px;

  /*
    Swap this for your actual display font
    once you've chosen/licensed it.
  */
  --display-font: "Quicksand", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body-font: "Quicksand", "Trebuchet MS", Arial, sans-serif;
}


/* ========================================
   RESET
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body-font);
}

a {
  color: inherit;
}

.landing-page {
  min-height: 100vh;
}


/* ========================================
   HERO
   ======================================== */

.hero {
  background: var(--cyan);
  overflow: hidden;
  padding: 20px max(5vw, 30px) 35px;
}


/* HEADER */

.site-header {
  width: min(100%, var(--page-width));
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}


/* BRAND / LOGO */

.brand {
  display: block;
  width: clamp(240px, 23vw, 360px);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}


/* NAVIGATION */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(25px, 4vw, 70px);
}

.nav a {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--pink);
  text-underline-offset: 6px;
}


/* ========================================
   HERO CONTENT
   ======================================== */

.hero-content {
  width: min(100%, var(--page-width));
  margin: 30px auto 0;

  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  position: relative;
  z-index: 5;
}

.hero h1 {
  margin: 0;

  color: var(--pink);

  font-family: var(--display-font);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 1200;
  line-height: 0.86;
  letter-spacing: -0.025em;
}

.hero-copy > p {
  max-width: 650px;
  margin: 24px 0 0;

  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  line-height: 1.3;
}


/* ========================================
   BUTTONS
   ======================================== */

.button {
  display: inline-block;

  border-radius: 100px;
  padding: 14px 27px;

  background: var(--pink);
  color: var(--white);

  font-weight: 900;
  text-decoration: none;

  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(23, 40, 60, 0.16);
}

.hero-button {
  margin-top: 22px;
}


/* ========================================
   HERO ART
   ======================================== */

.hero-art {
  position: relative;

  width: 100%;
  max-width: 480px;
  min-height: 280px;

  justify-self: end;
}


/* ASTERISK */

.asterisk {
  color: var(--yellow);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.giant-asterisk {
  position: absolute;

  top: -40px;
  right: -30px;

  font-size: 22rem;
  line-height: 0.8;

  transform: rotate(12deg);
}


/* ========================================
   FAKE GAME CARD
   ======================================== */

.game-card {
  position: absolute;

  z-index: 2;

  left: 0;
  top: 20%;

  width: 58%;
  min-width: 220px;

  overflow: hidden;

  border: 5px solid var(--ink);
  border-radius: 18px;

  background: var(--cream);

  transform: rotate(-3deg);

  box-shadow: 8px 9px 0 rgba(23, 40, 60, 0.12);
}

.game-card-bar {
  display: flex;
  align-items: center;
  gap: 7px;

  height: 42px;
  padding: 0 14px;

  border-bottom: 5px solid var(--ink);

  background: var(--yellow);
}

.game-card-bar span {
  width: 14px;
  height: 14px;

  border: 2px solid var(--ink);
  border-radius: 50%;

  background: var(--pink);
}

.game-card-bar span:nth-child(2) {
  background: var(--cyan);
}

.game-card-bar span:nth-child(3) {
  background: var(--cream);
}

.game-card-content {
  display: flex;
  align-items: center;
  gap: 15px;

  padding: 20px;
}

.game-thumbnail {
  display: grid;
  place-items: center;

  width: 50px;
  height: 50px;

  flex-shrink: 0;

  background: var(--pink);
  color: var(--yellow);

  font-size: 2rem;
}

.game-lines {
  flex: 1;
}

.game-lines span {
  display: block;

  height: 10px;
  margin: 10px 0;

  border-radius: 20px;

  background: #c5c1dd;
}

.game-lines span:nth-child(2) {
  width: 75%;
}

.game-lines span:nth-child(3) {
  width: 55%;
}


/* ========================================
   CONTROLLER
   ======================================== */

.controller {
  position: absolute;

  z-index: 3;

  right: 0;
  bottom: 10px;

  width: 190px;
  height: 105px;

  border-radius: 45% 45% 38% 38%;

  background: var(--ink);

  transform: rotate(8deg);

  box-shadow: 8px 9px 0 rgba(23, 40, 60, 0.13);
}

.controller::before,
.controller::after {
  content: "";

  position: absolute;
  bottom: -28px;

  width: 55px;
  height: 65px;

  background: var(--ink);
}

.controller::before {
  left: 12px;

  border-radius: 0 0 70% 60%;

  transform: rotate(12deg);
}

.controller::after {
  right: 12px;

  border-radius: 0 0 60% 70%;

  transform: rotate(-12deg);
}

.controller-dpad {
  position: absolute;

  z-index: 2;

  left: 35px;
  top: 33px;

  color: var(--pink);

  font-family: Arial, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.5;
}

.controller-buttons {
  position: absolute;

  z-index: 2;

  right: 30px;
  top: 30px;

  width: 55px;
  height: 45px;
}

.controller-buttons span {
  position: absolute;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background: var(--pink);
}

.controller-buttons span:nth-child(1) {
  top: 0;
  right: 15px;
}

.controller-buttons span:nth-child(2) {
  bottom: 0;
  left: 4px;

  background: var(--cyan);
}

.controller-buttons span:nth-child(3) {
  bottom: 0;
  right: 4px;

  background: var(--yellow);
}


/* ========================================
   ABOUT / FEATURES
   ======================================== */

.about {
  width: min(100%, var(--page-width));
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 5vw, 80px);

  padding: 40px max(5vw, 30px);
}

.feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
}

.feature-icon {
  display: grid;
  place-items: center;

  width: 75px;
  height: 75px;

  border-radius: 45% 55% 48% 52%;

  background: #b9f2e8;
  color: var(--pink);

  font-size: 2.8rem;
  font-weight: 900;

  transform: rotate(-5deg);
}

.feature:nth-child(2) .feature-icon {
  transform: rotate(6deg);
}

.feature:nth-child(3) .feature-icon {
  transform: rotate(-8deg);
}

.feature h2 {
  margin: 0 0 8px;

  color: var(--pink);

  font-family: var(--display-font);
  font-size: 1.3rem;
  font-weight: 900;
}

.feature p {
  margin: 0;

  font-size: 1rem;
  line-height: 1.35;
}


/* ========================================
   DEVELOPER CTA
   ======================================== */

.developer-section {
  width: min(calc(100% - 60px), var(--page-width));
  margin: 0 auto 30px;

  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 30px;

  padding: 25px 35px;

  border-radius: 30px;

  background: var(--yellow);
}

.mail-icon {
  display: grid;
  place-items: center;

  width: 100px;
  height: 85px;

  border-radius: 50% 40% 48% 44%;

  background: #a7eadf;

  color: var(--ink);

  font-size: 3.5rem;

  transform: rotate(-7deg);
}

.developer-copy h2 {
  margin: 0 0 8px;

  color: var(--pink);

  font-family: var(--display-font);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.developer-copy p {
  max-width: 750px;

  margin: 0;

  font-size: 1.1rem;
  line-height: 1.35;
}

.developer-actions {
  min-width: 250px;

  text-align: center;
}

.contact-button {
  display: block;

  padding: 15px 28px;

  font-size: 1.05rem;
}

.developer-actions p {
  margin: 9px 0 0;

  font-size: 0.9rem;
}

.developer-actions p a {
  font-weight: 700;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 1000px) {

  .hero-content {
    grid-template-columns: 1fr 0.8fr;
  }

  .hero-art {
    min-height: 260px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .feature {
    max-width: 650px;
  }

  .developer-section {
    grid-template-columns: 100px 1fr;
  }

  .developer-actions {
    grid-column: 1 / -1;

    width: min(100%, 400px);
    margin: 0 auto;
  }

}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 700px) {

  .hero {
    padding-inline: 22px;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: min(280px, 70vw);
  }

  .nav {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-copy > p {
    font-size: 1.15rem;
  }

  .hero-art {
    min-height: 280px;
    max-width: 430px;

    justify-self: center;
  }

  .giant-asterisk {
    right: -50px;
    top: -30px;

    font-size: 20rem;
  }

  .game-card {
    left: 0;

    width: 65%;
    min-width: 210px;
  }

  .game-card-content {
    padding: 15px;
  }

  .game-thumbnail {
    width: 45px;
    height: 45px;
  }

  .controller {
    right: -10px;
    bottom: 20px;

    width: 170px;
    height: 95px;
  }

  .controller::before,
  .controller::after {
    width: 48px;
    height: 58px;
  }

  .controller-dpad {
    left: 30px;
    top: 30px;

    font-size: 2.7rem;
  }

  .controller-buttons {
    right: 25px;
    top: 27px;
  }

  .about {
    padding: 30px 25px;
  }

  .feature {
    grid-template-columns: 65px 1fr;
  }

  .feature-icon {
    width: 60px;
    height: 60px;

    font-size: 2.2rem;
  }

  .developer-section {
    width: calc(100% - 30px);

    grid-template-columns: 1fr;

    padding: 25px 20px;

    text-align: center;
  }

  .mail-icon {
    margin: 0 auto;
  }

  .developer-copy h2 {
    font-size: 2.3rem;
  }

}