@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Dizzy Teapot brand kit v1 (dizzy-teapot-channel/brand/brand.json) */
  --navy: #091C3D;
  --navy2: #122C4D;
  --coral: #FF7849;
  --coral-deep: #E84D2E;
  --cream: #FFF0C6;
  --mint: #C5E6AE;
  --bg: #F8F3E8;
  --dot: #E8DFCB;
  --paper: #FFFDF8;
  --ink: #091C3D;
  --ink-soft: #4B5D78;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(9, 28, 61, .35), 0 2px 6px rgba(9, 28, 61, .08);
  --ease-enter: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 400 18px/1.6 "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--navy); color: var(--cream); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: rgba(248, 243, 232, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(9, 28, 61, .08); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand img { width: 150px; border-radius: 12px; }
.top nav { display: flex; gap: 6px; }
.top nav a { text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--paper); box-shadow: inset 0 0 0 2px var(--navy); }

/* Shared */
.eyebrow { font: 700 13px/1.2 "Plex Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.section-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 36px; }
.section-title::after { content: ""; display: block; width: 64px; height: 8px; margin-top: 14px; background: var(--coral); box-shadow: 8px 8px 0 var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px;
  border-radius: 14px; border: 2.5px solid var(--navy); font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 5px 0 var(--navy); transition: transform .15s var(--ease-enter), box-shadow .15s var(--ease-enter);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--navy); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.btn-coral { background: var(--coral); color: var(--navy); }
.btn-ghost { background: var(--paper); color: var(--navy); }
.btn-soon { background: var(--cream); color: var(--ink-soft); border-style: dashed; box-shadow: none; cursor: default; }
.btn-soon:hover, .btn-soon:active { transform: none; box-shadow: none; }
.pill { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--navy); font: 700 12px/1.2 "Plex Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.pill-mint { background: var(--mint); }
.pill-coral { background: var(--coral); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 104px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
h1 { font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.035em; margin: 0; }
.hl { background: linear-gradient(transparent 62%, var(--mint) 62%, var(--mint) 92%, transparent 92%); padding-inline: 4px; }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--ink-soft); max-width: 34em; margin: 22px 0 0; }
.hero-art { position: relative; justify-self: center; width: min(420px, 100%); }
.emblem { border-radius: 36px; overflow: hidden; box-shadow: var(--shadow), 10px 10px 0 var(--coral); transform: rotate(-4deg); animation: dizzy 6s ease-in-out infinite; }
.pix { position: absolute; width: 22px; height: 22px; background: var(--mint); border: 3px solid var(--navy); }
.p1 { top: -14px; right: 12%; animation: bob 3.2s ease-in-out infinite; }
.p2 { bottom: 10%; left: -18px; background: var(--coral); width: 16px; height: 16px; animation: bob 4s ease-in-out infinite .6s; }
.p3 { top: 38%; right: -14px; background: var(--cream); width: 14px; height: 14px; animation: bob 3.6s ease-in-out infinite 1.2s; }
@keyframes dizzy { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg) translateY(-6px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Games */
.games { padding: 24px 0 72px; }
.game { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-bottom: clamp(64px, 9vw, 112px); }
.game-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.game-flip .gallery { order: 2; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.shot img.swap { opacity: .25; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { all: unset; cursor: pointer; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px rgba(9, 28, 61, .15); background: var(--navy); }
.thumbs button img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; opacity: .78; transition: opacity .2s; }
.thumbs button span { position: absolute; left: 6px; bottom: 6px; background: var(--navy); color: var(--cream); font: 700 10px/1.2 "Plex Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 6px; }
.thumbs button:hover img, .thumbs button[aria-pressed="true"] img { opacity: 1; }
.thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--coral); }
.thumbs button:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.game-copy h3 { font-size: clamp(40px, 5vw, 62px); line-height: 1; letter-spacing: -.03em; margin: 0; }
.ssc-title img { width: min(340px, 100%); }
.tagline { font: 700 15px/1.4 "Plex Mono", ui-monospace, monospace; color: var(--coral-deep); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 16px; }
.game-copy > p:not(.pill):not(.tagline) { margin: 0; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--paper); border-radius: 10px; padding: 6px 12px; font-size: 15px; font-weight: 700; box-shadow: 0 0 0 2px rgba(9, 28, 61, .12); }
.workbench { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); max-width: 760px; border-left: 10px solid var(--mint); }
.workbench p:last-child { margin: 0; font-size: 20px; }

/* About */
.about { padding: 72px 0; }
.about-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.about-copy p { margin: 0 0 18px; font-size: 20px; }

/* Follow */
.follow { padding: 40px 0 96px; }
.socials { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.socials a { display: flex; align-items: center; gap: 16px; padding: 22px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; border: 2.5px solid transparent; transition: transform .2s var(--ease-enter), border-color .2s; }
.socials a:hover { transform: translateY(-4px); border-color: var(--navy); }
.socials svg { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--navy); fill: var(--cream); }
.socials span { display: flex; flex-direction: column; font-size: 15px; color: var(--ink-soft); line-height: 1.35; }
.socials b { font-size: 20px; color: var(--ink); }

/* Footer: small navy band only */
.foot { background: var(--navy); color: var(--cream); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 26px; }
.foot p { margin: 0; }
.foot a { color: var(--mint); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.lost img { width: 180px; margin: 0 auto 24px; border-radius: 28px; transform: rotate(-8deg); box-shadow: var(--shadow); }
.lost .actions { justify-content: center; }

@media (max-width: 900px) {
  .hero-in, .game, .game-flip, .about-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(300px, 80%); grid-row: 1; }
  .game-flip .gallery { order: 0; }
  .socials { grid-template-columns: 1fr; }
  .about-in { gap: 0; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .brand img { width: 120px; }
  .top nav a { padding: 8px 8px; font-size: 15px; }
  .thumbs { gap: 6px; }
  .thumbs button span { font-size: 8px; padding: 3px 4px; left: 4px; bottom: 4px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
