/* CoinKek landing page. Plain CSS, mobile first, no external resources. */

:root {
  --ink: #1b1530;
  --paper: #fff7e0;
  --gold: #ffc93c;
  --pink: #ff5c8a;
  --sky: #7fd3ff;
  --mint: #4fe0a5;
  --border: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 18px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(27, 21, 48, 0.09) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1,
h2,
h3,
.fact-head,
.sticker {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 16px 32px;
}

.mascot {
  width: 132px;
  height: 132px;
  animation: wobble 3.2s ease-in-out infinite;
  filter: drop-shadow(5px 5px 0 var(--ink));
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(3rem, 15vw, 6.5rem);
  color: var(--gold);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}

.pitch {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}

.sticker {
  display: inline-block;
  margin: 24px 0 0;
  padding: 10px 20px;
  background: var(--mint);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

/* Sections */

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  margin: 40px 0;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  text-align: center;
}

.cards {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 20px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.card p {
  margin: 0;
}

.card-gold {
  background: var(--gold);
}

.card-pink {
  background: var(--pink);
}

.card-sky {
  background: var(--sky);
}

.facts {
  padding: 24px 20px;
  background: #ffffff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fact + .fact {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 3px dashed var(--ink);
}

.fact p {
  margin: 0;
}

.fact .fact-head {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.fact-head::before {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45em;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  font-size: 0.9rem;
  text-align: center;
}

footer p {
  margin: 4px 0;
}

/* 404 */

.lost {
  max-width: 34ch;
  margin: 0 auto;
}

.lost a {
  color: var(--ink);
  font-weight: 800;
}

/* Wider screens */

@media (min-width: 720px) {
  .hero {
    padding-top: 72px;
  }

  .mascot {
    width: 168px;
    height: 168px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card:nth-child(2) {
    transform: translateY(12px);
  }

  .facts {
    padding: 32px 40px;
  }
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot {
    animation: none;
  }
}
