/* The Sandpit launcher.

   Warm book palette, big targets, and no hover-only affordances, because this
   is opened by a kid on a tablet. Cards are flat with a single soft edge; the
   hero photo is real and full-bleed, with the title over it rather than boxed
   into a panel. */

:root {
  --sand-50: #f7f0e2;
  --sand-100: #efe4cd;
  --sand-200: #e8d9bd;
  --sand-300: #dcc49c;
  --ink-900: #3a2e20;
  --ink-700: #5c4a35;
  /* Secondary text. Chosen to clear WCAG AA (4.5:1) against both --sand-50
     and --sand-100; the previous value only reached 3.6:1 on the page. */
  --ink-500: #6f5a3f;
  --shell-600: #c0563a;
  --bucket-500: #d8a72c;
  --sea-600: #4a8ba0;
  --night-700: #2b3f77;
  --night-500: #4f6fc4;
  --radius: 14px;
  --shadow-soft: 0 2px 4px rgba(80, 58, 30, 0.06), 0 8px 24px rgba(80, 58, 30, 0.09);
  --shadow-lift: 0 4px 8px rgba(80, 58, 30, 0.1), 0 14px 34px rgba(80, 58, 30, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--sand-100);
  color: var(--ink-900);
  font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}

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

.hero {
  position: relative;
  width: 100%;
  /* Keep the photo as a band, and leave the next section peeking below it. */
  min-height: clamp(232px, 42svh, 380px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: -2;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(58, 46, 32, 0.62) 0%,
    rgba(58, 46, 32, 0.34) 38%,
    rgba(58, 46, 32, 0.06) 66%,
    rgba(58, 46, 32, 0) 100%
  );
}

.hero__body {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 0 clamp(20px, 5vw, 44px) clamp(24px, 4vw, 38px);
}

.hero__title {
  margin: 0;
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff8ea;
  /* One tight shadow for edge separation over the photo. The veil already
     carries the contrast, so a wide soft halo would only read as a glow. */
  text-shadow: 0 2px 5px rgba(34, 22, 8, 0.45);
}

.hero__sub {
  margin: 8px 0 0;
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 500;
  color: #fdf3e0;
  text-shadow: 0 1px 3px rgba(34, 22, 8, 0.5);
}

/* ---- trays ------------------------------------------------------------ */

.trays {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 5vw, 44px) 8px;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}

.tray {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 16px 20px 16px 16px;
  background: var(--sand-50);
  border: 1px solid rgba(122, 96, 58, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.16s ease, background 0.16s ease;
}

.tray:hover { background: #fffaf0; box-shadow: var(--shadow-lift); }
.tray:active { transform: scale(0.982); }

.tray:focus-visible {
  outline: 3px solid var(--bucket-500);
  outline-offset: 3px;
}

/* Each toy gets a painted tile, drawn in CSS so there is no second image to
   download. The tile is decorative; the name beside it carries the meaning. */
.tray__art {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 11px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.tray__art--sea {
  background: linear-gradient(170deg, #bfe3ea 0%, #6fb3c4 45%, #2f6d86 100%);
  color: #0d3f4e;
}
/* A sunlit shaft, then the fish on top of it. */
.tray__art--sea::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -18px;
  width: 13px;
  height: 96px;
  background: linear-gradient(
    rgba(255, 255, 255, 0.44),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(10deg);
  filter: blur(1.4px);
}

/* The fish and the ribbons both fill their tile and inherit the tile colour. */
.tray__fish,
.tray__ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tray__fish { padding: 0; }

.tray__art--aurora {
  background: radial-gradient(115% 95% at 50% 108%, #0b1a3a 0%, #1e2f6b 45%, #05060f 100%);
}
.tray__text { min-width: 0; }

.tray__name {
  display: block;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.012em;
  color: var(--ink-900);
}

.tray__blurb {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--ink-500);
  overflow-wrap: anywhere;
}

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

.note {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 20px clamp(20px, 5vw, 44px) clamp(30px, 5vw, 46px);
}

.note p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-500);
  text-align: center;
}

/* ---- wider screens: keep cards from stretching into thin bars --------- */

@media (min-width: 760px) {
  .tray { min-height: 118px; padding: 18px 24px 18px 18px; }
  .tray__art { width: 84px; height: 84px; border-radius: 12px; }
  .tray__name { font-size: 22px; }
  .tray__blurb { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .tray { transition: none; }
  .tray:active { transform: none; }
}
