/* Jimmy Jam Studio: cream paper, strawberry jam, ink outlines and sticker shadows, from the logo. */
:root {
  --cream: #fff4e0;
  --paper: #fffaf2;
  --ink: #1f1517;
  --jam: #e3173e;
  --jam-deep: #a80f2d;
  --wood: #e2ad72;
  --night: #121828;
  --neon: #0f0a2a;
  --lime: #c6f432;
  --night-2: #1b2340;
  --ember: #ff9a2a;
  --ice: #9fdcff;
  --muted: #5b4a4d;
  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.6 "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Lilita One", "Nunito", sans-serif; font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header: mascot mark + live-text wordmark; sticks to the top and frosts over the page */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 244, 224, .78); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 3px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s;
}
.top.scrolled { border-bottom-color: var(--ink); box-shadow: 0 6px 0 rgba(31, 21, 23, .06); background: rgba(255, 244, 224, .9); }
.top-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 10px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.wordmark { font: 400 28px/1 "Lilita One", sans-serif; letter-spacing: .5px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.wordmark b { font-weight: 400; color: var(--jam); }
.wordmark small {
  font: 800 10px/1 "Nunito", sans-serif; letter-spacing: 2.5px; text-transform: uppercase;
  background: var(--wood); border: 2px solid var(--ink); border-radius: 6px; padding: 4px 6px 3px; margin-left: 2px; transform: rotate(-3deg);
}
nav { display: flex; gap: 4px; }
nav a { position: relative; font-weight: 800; text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: color .15s; }
nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 4px; border-radius: 4px; background: var(--jam);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease-out;
}
nav a:hover { color: var(--jam-deep); }
nav a:hover::after { transform: scaleX(1); }

/* hero: the pitch on the left, a sticker board of the games on the right */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 78% 48%, #ffdcae 0%, rgba(255, 220, 174, 0) 70%), var(--cream);
}
.hero > .hero-text, .hero > .board { position: relative; z-index: 1; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; padding: 48px max(24px, calc((100% - 1152px) / 2)) 84px; }
.kicker {
  display: inline-block; margin: 0 0 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
  color: var(--jam-deep); background: rgba(227, 23, 62, .08); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(46px, 6vw, 82px); color: var(--ink); }
.hero h1::after { content: ""; display: block; width: 120px; height: 10px; margin-top: 18px; border-radius: 99px; background: var(--jam); }
.lede { font-size: 20px; color: var(--muted); max-width: 500px; margin: 20px 0 30px; }

/* faint jam splats behind everything (drawn in CSS) */
.splats { position: absolute; inset: 0; pointer-events: none; }
.splats i { position: absolute; background: var(--jam); opacity: .06; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.splats i:nth-child(1) { width: 260px; height: 220px; left: -80px; top: 40px; }
.splats i:nth-child(2) { width: 36px; height: 34px; left: 210px; top: 30px; opacity: .1; }
.splats i:nth-child(3) { width: 18px; height: 18px; left: 250px; top: 78px; opacity: .12; border-radius: 50%; }
.splats i:nth-child(4) { width: 300px; height: 260px; right: -150px; bottom: 40px; opacity: .07; }
.splats i:nth-child(5) { width: 28px; height: 26px; left: 46%; bottom: 60px; opacity: .1; }
.splats i:nth-child(6) { width: 14px; height: 14px; left: 49%; bottom: 102px; opacity: .14; border-radius: 50%; }

/* the sticker board */
.board { aspect-ratio: 1 / .86; max-width: 600px; width: 100%; justify-self: end; }
.board-card {
  position: absolute; display: block; border: 3px solid var(--ink); border-radius: 18px; overflow: visible;
  box-shadow: 8px 8px 0 var(--ink); background: var(--ink);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s;
}
.board-card img { border-radius: 15px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-chroma { width: 74%; top: 2%; right: 0; transform: rotate(3.5deg); }
.card-flame { width: 70%; top: 40%; left: 0; transform: rotate(-4deg); z-index: 2; }
.board-card:hover { z-index: 3; box-shadow: 12px 12px 0 var(--ink); }
.card-chroma:hover { transform: rotate(1.5deg) translateY(-6px) scale(1.02); }
.card-flame:hover { transform: rotate(-2deg) translateY(-6px) scale(1.02); }
.tag {
  position: absolute; top: -14px; left: 18px; font: 800 12px/1 "Nunito", sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--jam); color: #fff; padding: 7px 11px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}
.tag-lime { background: var(--lime); color: var(--ink); left: auto; right: 18px; transform: rotate(4deg); }
.board-logo {
  position: absolute; width: 44%; right: -2%; bottom: -4%; z-index: 4; pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(31, 21, 23, .28)); animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; font: 400 20px/1 "Lilita One", sans-serif; letter-spacing: .5px; text-decoration: none;
  padding: 16px 26px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-jam { background: var(--jam); color: #fff; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-ember { background: linear-gradient(#ffb347, #ff7a1a); color: var(--ink); }

/* jam drip dividers */
/* the cream page drips into the neon Chroma Storm band, and the band drips back into the cream */
.drip { display: block; width: 100%; height: 70px; background: var(--neon); margin-bottom: -1px; }
.drip path { fill: var(--cream); }
.drip-back { background: var(--cream); margin: -1px 0 0; }
.drip-back path { fill: var(--neon); }

/* shared pieces */
.feature-head { text-align: center; margin-bottom: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sticker {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--jam); color: #fff; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg);
}
.sticker-lime { background: var(--lime); color: var(--ink); }
.feature-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.big { font: 400 28px/1.2 "Lilita One", sans-serif; color: #ffd08a; margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 30px; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 40% 40%, #ffe08a, var(--ember) 60%, #e0461a); box-shadow: 0 0 10px var(--ember); }
.fine { font-size: 14px; opacity: .75; margin-top: 22px; }
.section-lede { color: var(--muted); max-width: 720px; margin: 12px 0 32px; }
.section-lede a { color: var(--jam-deep); font-weight: 700; }

/* Chroma Storm: neon, like the game */
.chroma {
  color: #eae6ff; padding: 40px 0 72px;
  background:
    linear-gradient(rgba(130, 90, 255, .08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(130, 90, 255, .08) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 50% 0%, #2a1460, var(--neon) 70%);
}
.chroma-banner { margin: 0 0 40px; }
.chroma-banner a { display: block; border-radius: var(--radius); transition: transform .15s; }
.chroma-banner a:hover { transform: translateY(-3px); }
.chroma-banner img { width: 100%; border-radius: var(--radius); border: 3px solid #000; box-shadow: 0 0 0 3px #3b2a80, 0 0 60px rgba(139, 92, 246, .35); }
.big-neon { color: #7cf3ff; }
.ticks-neon li::before { border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, #22d3ee, #ec4899); box-shadow: 0 0 10px #8b5cf6; }
.btn-lime { background: var(--lime); color: var(--ink); }
.chroma-shots { display: grid; grid-template-columns: .62fr 1fr; gap: 16px; align-items: start; }
.chroma-shots img { border-radius: 14px; border: 3px solid #000; box-shadow: 0 0 0 3px #3b2a80; }
.chroma-shots .stack { display: grid; gap: 16px; }

/* the game jam: Last Flame as a dark panel on the cream */
.jam { padding: 56px 0 80px; }
.jam h2, .about h2 { font-size: clamp(36px, 5vw, 56px); }
.flame-panel {
  background: var(--night); color: #f3ead9; border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink); padding: 32px 32px 40px;
}
.flame-head { text-align: center; margin-bottom: 24px; }
.flame-title {
  margin-top: 14px; font-size: clamp(42px, 6vw, 76px); color: #ffb347;
  text-shadow: 0 0 28px rgba(255, 106, 0, .55), 0 5px 0 #5a1d00;
}
.flame-title small { display: block; font-size: .38em; color: var(--ice); text-shadow: none; letter-spacing: 4px; margin-top: 8px; text-transform: uppercase; }
.key-art { margin: 0 0 36px; }
.key-art img { border-radius: var(--radius); border: 3px solid #000; box-shadow: 0 0 0 3px #3a2a14, 0 24px 60px rgba(255, 120, 40, .18); width: 100%; }
.shots { display: grid; gap: 18px; }
.shots img { border-radius: 14px; border: 3px solid #000; box-shadow: 0 0 0 3px #2a3150; }
.how-title { font-size: clamp(30px, 4vw, 44px); margin-top: 64px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; }
.card:nth-child(odd) { transform: rotate(-.6deg); }
.card:nth-child(even) { transform: rotate(.6deg); }
.card h4 { font: 400 28px/1.05 "Lilita One", sans-serif; color: var(--jam); margin: 0 0 8px; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }

/* tools: JamDraw */
.tool { padding: 8px 0 80px; }
.tool h2 { font-size: clamp(36px, 5vw, 56px); }
.tool-card {
  display: grid; grid-template-columns: 1.15fr 1fr; background: var(--paper); border: 3px solid var(--ink);
  border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
}
.tool-shot { display: flex; align-items: center; border-right: 3px solid var(--ink); background: #241c1e; overflow: hidden; }
.tool-shot img { width: 100%; transition: transform .25s; }
.tool-shot:hover img { transform: scale(1.02); }
.tool-text { padding: 28px 30px 32px; }
.tool-text h3 { font-size: clamp(38px, 5vw, 56px); margin: 14px 0 6px; color: var(--jam); text-shadow: 3px 3px 0 var(--ink); }
.tool-tag { font-weight: 800; margin: 0 0 12px; }
.tool-text p { color: var(--muted); }
.tool-text .tool-tag { color: var(--ink); }
.sticker-paper { background: var(--paper); color: var(--ink); }

/* about + footer */
.about { background: var(--jam); color: #fff; padding: 64px 0; border-top: 3px solid var(--ink); }
.about-inner { max-width: 820px; text-align: center; }
.about h2 { color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.about p { font-size: 20px; margin: 18px auto 0; }
footer { background: var(--ink); color: #f3ead9; text-align: center; padding: 22px 16px; font-size: 14px; }
footer p { margin: 0; }
footer a { color: #ffb3c1; }
.contact { font-weight: 700; }
.follow { font-weight: 700; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.pill {
  display: inline-block; color: #fff; text-decoration: none; font-weight: 800; padding: 6px 14px;
  border: 3px solid #fff; border-radius: 999px; transition: background .15s, color .15s;
}
.pill:hover { background: #fff; color: var(--jam-deep); }
.mail {
  display: inline-block; margin-top: 6px; color: var(--ink); background: var(--paper); text-decoration: none;
  padding: 6px 14px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-weight: 800;
}
.mail:hover { background: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* phones and tablets */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-body, .tool-card { grid-template-columns: 1fr; }
  .tool-shot { border-right: 0; border-bottom: 3px solid var(--ink); }
  .tool-text { padding: 20px 18px 26px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap, .top-inner { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 26px 16px 64px; gap: 34px; }
  .board { justify-self: center; max-width: 440px; }
  .board-logo { width: 46%; }
  .hero h1::after { margin-left: auto; margin-right: auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .top { position: relative; }
  .top-inner { flex-direction: column; gap: 4px; padding-top: 10px; padding-bottom: 6px; }
  .brand img { width: 44px; height: 44px; }
  .wordmark { font-size: 24px; }
  nav a { padding: 6px 9px; font-size: 15px; }
  nav a::after { left: 9px; right: 9px; }
  .drip { height: 40px; }
  .chroma .actions, .flame-panel .actions { justify-content: flex-start; }
  .flame-panel { padding: 20px 16px 28px; border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); }
  .chroma-shots { grid-template-columns: .7fr 1fr; gap: 10px; }
  .chroma-shots .stack { gap: 10px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(n) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board-logo { animation: none; }
  .board-card, .brand img, nav a::after { transition: none; }
  .btn, .brand img { transition: none; }
}
