/* ============================================================
   Toy Warren — chunky sticker design system
   Palette: cream paper, deep plum ink, coral / teal / sunshine
   ============================================================ */

:root {
  --cream: #fff7ec;
  --paper: #ffffff;
  --ink: #33254e;
  --ink-soft: #5c4d7d;
  --coral: #ff6b57;
  --coral-dark: #e8503c;
  --teal: #1fb8a6;
  --teal-dark: #128d7f;
  --sun: #ffc145;
  --lilac: #b79ced;
  --line: rgba(51, 37, 78, 0.16);
  --shadow: 6px 6px 0 rgba(51, 37, 78, 0.12);
  --radius: 22px;
  --font-display: "Fredoka", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Avenir", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

/* soft background blobs */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  width: 480px; height: 480px;
  top: -140px; right: -120px;
  background: radial-gradient(circle, rgba(255, 193, 69, 0.55), transparent 70%);
}
body::after {
  width: 520px; height: 520px;
  bottom: -180px; left: -160px;
  background: radial-gradient(circle, rgba(31, 184, 166, 0.35), transparent 70%);
}

img { max-width: 100%; display: block; }

h1, h2, h3, .logo, .btn, .chip {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.18rem; }

p { color: var(--ink-soft); }
strong { color: var(--ink); }

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

section { padding: 56px 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }

/* ---------- announcement bar ---------- */

.announce {
  background: var(--ink);
  color: #efe9fb;
  text-align: center;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
}
.announce a { color: var(--sun); text-decoration: underline; }
.announce strong { color: #fff; }

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 236, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  font-size: 24px;
  background: var(--sun);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 rgba(51, 37, 78, 0.18);
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

nav > a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
}
nav > a:hover { background: rgba(51, 37, 78, 0.07); text-decoration: none; }
nav > a.active { background: var(--ink); color: var(--cream); }

/* ---------- buttons & chips ---------- */

.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(51, 37, 78, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(51, 37, 78, 0.22);
}
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(51, 37, 78, 0.22); }
.btn.teal { background: var(--teal); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.small { padding: 8px 18px; font-size: 0.92rem; box-shadow: 3px 3px 0 rgba(51, 37, 78, 0.2); }

.chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.chip.stock { background: #d3f5ef; color: var(--teal-dark); }
.chip.wait { background: #ffe1db; color: var(--coral-dark); }
.chip.soon { background: #fff0cf; color: #9a6b00; }
.chip.out { background: #ece7f3; color: var(--ink-soft); }

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

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}

.hero p.lead { font-size: 1.18rem; margin: 18px 0 26px; max-width: 34em; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  min-height: 430px;
}

.float-card {
  position: absolute;
  width: 200px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: center;
}
.float-card .tile { margin-bottom: 10px; }
.float-card h3 { font-size: 1rem; }
.float-card .chip { margin-top: 8px; }

.float-card:nth-child(1) { top: 0; left: 0; z-index: 3; transform: rotate(-7deg); animation: bob 5.2s ease-in-out infinite; }
.float-card:nth-child(2) { top: 26%; right: 0; z-index: 2; transform: rotate(4deg); animation: bob 6.1s ease-in-out 0.6s infinite; }
.float-card:nth-child(3) { bottom: 0; left: 26%; z-index: 1; transform: rotate(-2deg); animation: bob 5.6s ease-in-out 1.1s infinite; }

@keyframes bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none !important; }
}

/* ---------- trust strip ---------- */

.strip {
  background: var(--paper);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 18px 0;
}
.strip .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.strip span { font-weight: 700; font-size: 0.95rem; }

/* ---------- cards & product grid ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.14s ease;
}
.card:hover { transform: translateY(-4px); }

.tile {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 64px;
  overflow: hidden;
}

.tile.photo { background: #fff; padding: 8px; }
.tile.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.t1 { background: linear-gradient(135deg, #ffe3f0, #ffd1dc); }
.t2 { background: linear-gradient(135deg, #d8f6ff, #c2ecfb); }
.t3 { background: linear-gradient(135deg, #e7ddff, #d5c6fa); }
.t4 { background: linear-gradient(135deg, #d9f7e8, #c2f0d8); }
.t5 { background: linear-gradient(135deg, #fff1c9, #ffe4a3); }
.t6 { background: linear-gradient(135deg, #ffe0d3, #ffd0bd); }
.t7 { background: linear-gradient(135deg, #e0f4d8, #cdebc1); }
.t8 { background: linear-gradient(135deg, #e8eeff, #d6e0ff); }

.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.card .blurb { font-size: 0.92rem; min-height: 3.2em; }
.card .btn { margin-top: auto; text-align: center; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 34px;
}
.step {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--sun);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }

/* ---------- panels & forms ---------- */

.panel {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.panel.sun { background: #fff4d6; }
.panel.mint { background: #e2f7f2; }

form.stack { display: grid; gap: 14px; margin-top: 20px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 4px; }

input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 11px 14px;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(255, 107, 87, 0.45);
  outline-offset: 1px;
}

.inline-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.inline-form input { flex: 1 1 260px; }

/* ---------- prose pages ---------- */

.prose { max-width: 720px; }
.prose h2 { margin: 36px 0 10px; }
.prose p { margin: 12px 0; }
.prose ul { margin: 12px 0 12px 22px; color: var(--ink-soft); }
.prose li { margin: 6px 0; }

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

footer {
  background: var(--ink);
  color: #efe9fb;
  margin-top: 40px;
  padding: 48px 0 28px;
}
footer a { color: #ffd9a8; }
footer h3 { color: #fff; margin-bottom: 10px; font-size: 1rem; }
footer p { color: #c9bfe2; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin: 7px 0; }

.fine {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 34px;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #b4a8d4;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { min-height: 400px; margin-top: 10px; }
  .float-card { width: 172px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
