/* Doop Woop studio site. Playful and chunky, built from the same tile idea as the games. */
:root {
  --bg: #fbf7ee;
  --card: #ffffff;
  --sand: #f3ece0;
  --line: #e2d8c4;
  --ink: #3f342b;
  --muted: #8a7560;
  --pink: #ff4d82;
  --pink-dark: #b3255a;
  --orange: #ffa94d;
  --yellow: #ffd93d;
  --green: #6bcb77;
  --blue: #4d96ff;
  --purple: #9b5de5;
  --magenta: #f15bb5;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .btn, .wordmark, .tile {
  font-family: "Baloo 2", "Manrope", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
}

a { color: var(--pink-dark); text-underline-offset: 3px; }
a:hover { color: var(--pink); }

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

/* ------------------------------------------------------------ header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; color: var(--ink); text-decoration: none; }
.wordmark .dot {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--pink); color: #fff; font-size: 20px; border-top: 3px solid rgba(255, 255, 255, 0.45); box-shadow: 0 3px 0 var(--pink-dark);
}
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 16px; }
.site-header nav a:hover { color: var(--ink); }

/* -------------------------------------------------------------- hero */
.hero { padding: 36px 0 84px; text-align: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); margin: 30px 0 18px; letter-spacing: -0.01em; }
.hero h1 span { color: var(--pink); }
.hero p.lead { font-size: 21px; color: var(--muted); max-width: 30em; margin: 0 auto 32px; }

/* The name spelled out on a 4x2 board of tiles. */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: min(440px, 88%); margin: 0 auto; padding: 14px; background: var(--sand); border-radius: 30px; }
.tile {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 18px;
  font-size: clamp(34px, 8vw, 58px); color: #fff; user-select: none; cursor: default;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14);
  animation: pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) backwards;
  transition: transform 0.15s ease;
}
.tile:hover { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
.tile.dark { color: var(--ink); }
.tile:nth-child(1) { background: var(--pink); animation-delay: 0.05s; }
.tile:nth-child(2) { background: var(--orange); animation-delay: 0.10s; }
.tile:nth-child(3) { background: var(--yellow); animation-delay: 0.15s; }
.tile:nth-child(4) { background: var(--green); animation-delay: 0.20s; }
.tile:nth-child(5) { background: var(--blue); animation-delay: 0.25s; }
.tile:nth-child(6) { background: var(--purple); animation-delay: 0.30s; }
.tile:nth-child(7) { background: var(--magenta); animation-delay: 0.35s; }
.tile:nth-child(8) { background: var(--pink); animation-delay: 0.40s; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  font-size: 20px; text-decoration: none; color: #fff;
  background: var(--pink); border-top: 3px solid rgba(255, 255, 255, 0.5); box-shadow: 0 5px 0 var(--pink-dark);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-dark); }
.btn.secondary { background: var(--card); color: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.btn.secondary:hover { color: var(--ink); }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------- sections */
section { padding: 72px 0; }
section h2 { font-size: clamp(34px, 4.6vw, 52px); margin: 0 0 12px; }
section .sub { color: var(--muted); margin: 0 0 40px; max-width: 34em; }

.game {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 36px; padding: 40px;
}
.game .art { display: flex; justify-content: center; }
.phone { width: min(230px, 100%); border-radius: 30px; overflow: hidden; border: 7px solid var(--ink); background: var(--ink); box-shadow: 0 22px 36px -18px rgba(63, 52, 43, 0.45); }
.phone img { display: block; width: 100%; height: auto; }
.game .icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 14px; box-shadow: 0 8px 18px -8px rgba(63, 52, 43, 0.4); }
.game h3 { font-size: 38px; margin: 0 0 8px; }
.game p { color: var(--muted); margin: 0 0 20px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; padding: 0; list-style: none; }
.tags li { background: var(--sand); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 15px; color: var(--ink); }
.tags li.live { background: #e3f6e6; color: #257a35; }

.more { margin-top: 22px; border: 2px dashed var(--line); border-radius: 30px; padding: 30px; text-align: center; color: var(--muted); }
.more strong { color: var(--ink); font-family: "Baloo 2", sans-serif; font-size: 24px; display: block; margin-bottom: 4px; }

.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about .item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.about .swatch { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14); }
.about h3 { font-size: 24px; margin: 0 0 6px; }
.about p { margin: 0; color: var(--muted); font-size: 17px; }

.contact { text-align: center; background: var(--sand); border-radius: 36px; padding: 64px 24px; }
.contact p { color: var(--muted); max-width: 30em; margin: 0 auto 28px; }

/* ------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .game { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .game .icon { margin-inline: auto; }
  .tags { justify-content: center; }
  .about { grid-template-columns: 1fr; }
  .site-header nav { gap: 16px; }
}

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