/* PuzzleBumble homepage — the page is the workshop table.
   Colours are Palette.cs's; type is the app's (Baloo 2 display, Nunito body).
   Served as /assets/site.css by src/home.js; regenerate nothing, edit here. */

/* The game's own faces, served from this host (public/fonts): never Google
   Fonts, which would ship every visitor's IP to Google before they read. */
@font-face { font-family: "Baloo 2"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Baloo2-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Nunito-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Nunito-ExtraBold.woff2") format("woff2"); }

:root {
  --cream: #fff5e3;
  --cream-2: #f5e7ce;
  --ink: #2d2a26;
  --ink-soft: #6e655b;
  --page-ink: #3c2413;
  --green: #6cad3f;
  --green-light: #8ccb52;
  --green-dark: #4e892d;
  --gold: #f4b63d;
  --gold-dark: #c98f1f;
  --walnut: #4a3421;
  --walnut-deep: #33220f;
  --plank: #8c6743;
  --plank-dark: #6f4e30;
  --rim: #c99a5b;
  --rim-dark: #5e3f26;
  --purple: #7c5cc4;
  --purple-dark: #5e4499;
  --well: #d7dce8;
  --display: "Baloo 2", "Nunito", "Segoe UI", sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --plate-radius: 28px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--walnut-deep);
  background-image:
    linear-gradient(rgba(28, 16, 6, 0.58), rgba(28, 16, 6, 0.58)),
    url("/assets/img/wood.jpg");
  background-size: auto, 512px 1024px;
  background-position: center top;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.005em;
}
p { margin: 0; }

a { color: var(--green-dark); }
a:focus-visible, button:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--cream); color: var(--page-ink);
  padding: 10px 16px; border-radius: 12px; z-index: 50;
  font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- shared pieces ---------- */

.plate {
  background: var(--cream);
  border: 5px solid var(--rim);
  border-radius: var(--plate-radius);
  box-shadow:
    0 0 0 3px var(--rim-dark),
    inset 0 0 0 2px rgba(255, 255, 255, 0.55),
    0 18px 34px rgba(0, 0, 0, 0.40);
  color: var(--ink);
}
.plate h2, .plate h3 { color: var(--page-ink); }
.plate p { color: var(--ink); }

.on-wood {
  color: var(--cream);
  text-shadow: 0 2px 0 var(--walnut-deep), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.section { padding: 0 var(--gutter); margin: clamp(48px, 8vw, 96px) auto 0; max-width: 1120px; }
.section > h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); text-align: center; margin-bottom: 24px; }

/* Store badges: the official files, unmodified, at one shared height. */
.badges {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  align-items: center; justify-content: center;
}
.badge { display: inline-block; line-height: 0; }
.badge img { height: 58px; width: auto; }
.badge-play img { height: 66px; margin: -4px; } /* Google's file carries its own padding */
.badge-soon { position: relative; }
.badge-soon img { opacity: 0.5; }
.badge-soon-note {
  display: block; text-align: center; font-size: 0.82rem; font-weight: 800;
  color: #e9d9bd; text-shadow: 0 1px 0 var(--walnut-deep);
  margin-top: 5px; line-height: 1.2;
}
.plate .badge-soon-note { color: var(--ink-soft); text-shadow: none; }

/* A phone with a shot on its screen. Shots are 9:20, shown whole. */
.phone {
  width: 100%;
  aspect-ratio: 9 / 20;
  padding: 3.4%;
  background: #1b1512;
  border-radius: 13% / 5.85%;
  box-shadow:
    inset 0 0 0 2px #3a2f28,
    0 24px 40px rgba(0, 0, 0, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: 100%; border-radius: 9.5% / 4.3%; object-fit: fill; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 0 var(--gutter) clamp(32px, 6vw, 72px);
  max-width: 1120px;
  margin: 0 auto;
}
.lang {
  position: absolute; right: var(--gutter); top: 14px; z-index: 5;
  font-family: var(--display); font-weight: 800; font-size: 0.95rem;
  color: #fff; text-decoration: none;
  background: linear-gradient(#9b7fdc, var(--purple));
  border-bottom: 3px solid var(--purple-dark);
  border-radius: 999px; padding: 6px 16px 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hero-copy { text-align: center; }

.sign-hang {
  position: relative;
  margin: 0 auto;
  width: min(520px, 92%);
  padding-top: 34px; /* room for the cord */
}
.sign-hang::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  width: 4px; height: 44px; margin-left: -2px;
  background: linear-gradient(#3a2412, #5e3f26);
  border-radius: 2px;
}
.sign { position: relative; width: 100%; z-index: 1; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.45)); }
.bee {
  position: absolute; z-index: 2;
  width: 24%;
  right: -6%; bottom: -12%;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.35));
  animation: hover 5.5s ease-in-out infinite;
  transform-origin: 50% 60%;
}
@keyframes hover {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  30%  { transform: translate(-6px, -14px) rotate(3deg); }
  55%  { transform: translate(4px, -4px) rotate(-2deg); }
  80%  { transform: translate(-3px, -10px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) { .bee { animation: none; } }

.hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  margin-top: 26px;
  text-shadow: 0 2px 0 var(--walnut-deep), 0 8px 18px rgba(0, 0, 0, 0.5);
}
.lede {
  color: #f3e6cf;
  max-width: 34em;
  margin: 14px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hero .badges { margin-top: 26px; }
.free {
  margin-top: 14px;
  color: var(--gold);
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  text-shadow: 0 1px 0 var(--walnut-deep);
}
.hero-phone { width: min(300px, 74%); margin: 8px auto 0; }

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.25fr 0.75fr; gap: 40px; padding-top: 12px; }
  .hero-copy { text-align: left; }
  .sign-hang { margin: 0; }
  .lede { margin-left: 0; }
  .hero .badges { justify-content: flex-start; }
  .hero-phone { width: 100%; max-width: 330px; margin: 24px 0 0 auto; transform: rotate(4deg); }
}

/* ---------- features: three plates, the phone above its text ---------- */

.features { display: grid; gap: clamp(20px, 3vw, 32px); }
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 30px) clamp(24px, 3vw, 32px);
  align-content: start;
}
.feature h2 { font-size: clamp(1.45rem, 2.2vw, 1.7rem); margin-bottom: 8px; }
.feature p { max-width: 36em; }
.feature .phone { order: -1; width: min(210px, 64%); margin: 0 auto 4px; }
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .feature .phone { width: min(200px, 82%); }
}

/* ---------- more on the table ---------- */

.notes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 640px) { .notes { grid-template-columns: 1fr 1fr; } }
.note { padding: 20px 22px 22px; border-radius: 22px; border-width: 4px; }
.note h3 { font-size: 1.4rem; margin: 12px 0 6px; }
.note-art { display: flex; gap: 8px; align-items: flex-end; min-height: 76px; }
.note-art img { border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); }
.note-art .thumb { width: 68px; height: 68px; object-fit: fill; border: 3px solid var(--rim); }
.note-art .thumb:nth-child(2) { transform: rotate(-4deg); }
.note-art .thumb:nth-child(4) { transform: rotate(5deg); }
.note-art .scene { width: 130px; border: 3px solid var(--rim); }
.note-art .badge-art { width: 84px; box-shadow: none; border-radius: 0; }
.note-art .check-art { width: 72px; box-shadow: none; border-radius: 0; }

/* ---------- get the app ---------- */

.get {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding: clamp(22px, 3.4vw, 36px);
  text-align: center;
  justify-items: center;
}
.app-icon { width: 128px; border-radius: 28px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); }
.get h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 8px; }
.get-copy p { max-width: 34em; margin: 0 auto; }
.get .badges { margin-top: 18px; }
@media (min-width: 720px) {
  .get { grid-template-columns: 160px 1fr; text-align: left; justify-items: start; align-items: center; }
  .app-icon { width: 160px; }
  .get-copy p { margin: 0; }
  .get .badges { justify-content: flex-start; }
}

/* ---------- footer ---------- */

.footer {
  max-width: 1120px; margin: clamp(48px, 8vw, 80px) auto 0;
  padding: 0 var(--gutter) 40px;
  text-align: center;
  color: #d9c7a8;
  font-size: 0.95rem;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 12px; }
.footer-links a { color: var(--gold); text-decoration: none; font-weight: 800; }
.footer-links a:hover { text-decoration: underline; }
.footer small { display: block; margin-top: 10px; font-size: 0.78rem; color: #a08e70; }
/* The AI-generated disclosure: fine print, but on the page in both languages. */
.footer-note { max-width: 40em; margin: 22px auto 0; font-size: 0.9rem; line-height: 1.5; }
