:root {
  --ink: #2b1a12; --cream: #fff6dc; --teal: #00594f; --teal-2: #1f9e8f; --gold: #ffcf3f; --yellow: #fff266;
  --red: #ef5a4a; --night: #2a1f4a; --night-2: #3b2d66; --card: #fffaf0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, .brand, .store { font-family: "Lilita One", Nunito, sans-serif; font-weight: 400; letter-spacing: .01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px; background: rgba(42, 31, 74, .94); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.35rem; white-space: nowrap; }
.brand img { border-radius: 9px; }
.bar nav { display: flex; align-items: center; gap: 18px; }
.bar nav a { color: #fff; text-decoration: none; font-weight: 700; opacity: .9; white-space: nowrap; }
.bar nav a:hover { opacity: 1; }
.bar .nav-play { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; line-height: 1;
  background: var(--gold); color: var(--ink); opacity: 1; border-radius: 999px; border: 2px solid var(--ink); font-weight: 800; }

/* hero: the key art as a banner, the toaster logo resting on its lower edge */
.hero { position: relative; background: var(--night); padding-bottom: 120px; }
.art { height: min(64vh, 620px); min-height: 300px; background: url("/img/keyart.webp") center 35% / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.logo { position: absolute; left: 50%; bottom: -70px; transform: translateX(-50%); width: min(340px, 64vw);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }

.intro { text-align: center; padding: 96px 20px 64px; max-width: 820px; margin: 0 auto; }
.intro h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 16px; color: var(--teal); }
.lead { font-size: 1.15rem; margin: 0 auto 28px; max-width: 36em; }
.note { margin: 20px auto 0; font-size: .95rem; max-width: 34em; color: #5a4636; }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px; border-radius: 14px; text-decoration: none;
  font-size: 1.3rem; line-height: 1.05; text-align: left; }
.store small { display: block; font-family: Nunito, sans-serif; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; opacity: .8; }
.store svg { width: 28px; height: 28px; flex: none; }
.store-play { background: #111; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: transform .12s; }
.store-play:hover { transform: translateY(-2px); }
.store-soon { color: #6b5848; border: 2px dashed #c9b48c; cursor: default; }

/* features on a night band */
.band { background: var(--night); color: #fff; padding: 72px 0; }
section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 28px; text-align: center; color: var(--teal); }
.band h2 { color: var(--yellow); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards article { background: var(--night-2); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.cards article img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.cards article div { padding: 16px 20px 20px; }
.cards h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--gold); }
.cards p { margin: 0; opacity: .92; }

/* worlds */
.worlds { padding: 72px 0; }
.world-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.world-list li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 3px solid var(--ink); border-radius: 14px;
  padding: 10px 14px; font-weight: 800; box-shadow: 0 4px 0 var(--ink); }
.world-list span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--gold);
  border: 2px solid var(--ink); font-family: "Lilita One", sans-serif; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border-radius: 16px; border: 3px solid var(--ink); aspect-ratio: 16 / 9; object-fit: cover; }

/* closing call to action */
.cta { background: linear-gradient(var(--cream), #ffe9b0); padding: 64px 0 80px; }
.cta-inner { display: flex; align-items: center; justify-content: center; gap: 32px; }
.cta-inner img { border-radius: 30px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); flex: none; }
.cta h2 { text-align: left; margin: 0 0 8px; }
.cta p { margin: 0 0 18px; max-width: 30em; }

footer { background: var(--night); color: #fff; text-align: center; padding: 32px 20px; }
footer img { margin: 0 auto 10px; border-radius: 11px; }
footer p { margin: 4px 0; opacity: .9; }
footer a { color: var(--yellow); }

/* privacy and other text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; color: var(--teal); }
.doc h2 { text-align: left; font-size: 1.4rem; margin: 28px 0 8px; }
.doc li { margin: 8px 0; }

@media (max-width: 900px) {
  .cards, .gallery { grid-template-columns: 1fr 1fr; }
  .world-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .bar { padding: 8px 16px; }
  .bar nav { gap: 12px; font-size: .95rem; }
  .bar nav a:first-child { display: none; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .bar .nav-play { height: 34px; padding: 0 13px; }
  .hero { padding-bottom: 80px; }
  .art { height: 46vh; background-position: 20% 35%; }
  .logo { bottom: -50px; }
  .intro { padding: 64px 16px 48px; }
  .cards, .gallery, .world-list { grid-template-columns: 1fr; }
  .store { width: 100%; justify-content: center; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta h2 { text-align: center; }
  .cta p { margin-left: auto; margin-right: auto; }
}
