/* Cookie Bear Games' holding page: the logo's colours, Knewave for the headings and Fira Sans for the text */

@font-face {
  font-family: "Knewave";
  src: url("fonts/Knewave-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("fonts/FiraSans-SemiBold-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* The logo's colours (Cookie Bear Games Assets/Logo/README.md in the game's repository) */
:root {
  --page: #FBF6EC;
  --glow: #FFFDF8;
  --card: #FFFFFF;
  --card-edge: #EBDCC2;
  --ink: #4B2E1A;
  --soft: #7A5A3E;
  --accent: #B46C2C;
  --button: #E8963C;
  --button-hover: #C2701F;
  --button-ink: #2B1A0E;
  --display: "Knewave", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --sans: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #21170F;
    --glow: #3A2918;
    --card: #2E2116;
    --card-edge: #4A3522;
    --ink: #F6E8CC;
    --soft: #D8C6B0;
    --accent: #E8963C;
  }
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 5vw, 64px) clamp(16px, 4vw, 40px) 24px;
  background: radial-gradient(ellipse at 50% 0%, var(--glow) 0%, var(--page) 60%) no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(16px, 0.8vw + 13px, 19px);
  line-height: 1.55;
}

main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

h1, h2, p { margin: 0; }

/* The badge with the name, then the tagline */
.hero {
  text-align: center;
  margin-bottom: clamp(32px, 6vw, 56px);
}

.lockup {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 0 auto clamp(16px, 3vw, 28px);
}

.tagline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw + 12px, 34px);
  line-height: 1.25;
  color: var(--accent);
  margin-bottom: 12px;
  text-wrap: balance;
}

.lead {
  color: var(--soft);
  text-wrap: balance;
  max-width: 34em;
  margin: 0 auto;
}

/* The cards: a game, and saying hello */
.game,
.hello {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  background: var(--card);
  border: 2px solid var(--card-edge);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 36px);
  margin-bottom: clamp(20px, 3vw, 28px);
  box-shadow: 0 2px 0 var(--card-edge), 0 12px 32px rgba(75, 46, 26, 0.08);
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 2vw + 18px, 38px);
  line-height: 1.1;
  margin-bottom: 4px;
}

.game p,
.hello p { margin-bottom: 14px; }

.pitch {
  color: var(--accent);
  font-size: 1.1em;
}

.game-icon {
  width: clamp(96px, 16vw, 148px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.mascot {
  width: clamp(110px, 18vw, 170px);
  height: auto;
}

.button {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  text-decoration: none;
  box-shadow: 0 3px 0 var(--button-hover);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  overflow-wrap: anywhere;
}

.button:hover,
.button:focus-visible {
  background: #F0A452;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--button-hover);
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--button-hover);
}

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

footer {
  text-align: center;
  color: var(--soft);
  font-size: 14px;
  padding-top: 12px;
}

/* On a phone the pictures go above the words */
@media (max-width: 560px) {
  .game,
  .hello {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
