/* ==========================================================================
   CREATE — hub page only. The shell lives in site.css.
   ========================================================================== */

/* ----------------------------  HERO  -------------------------------------- */

.hero {
  position: relative;
  padding: clamp(72px, 13vh, 132px) 0 clamp(56px, 9vh, 96px);
  text-align: center;
}
/* The faint oversized mark behind the hero, as on the home page. */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  width: min(430px, 62vw);
  aspect-ratio: 1;
  background: url('../assets/brand/rww-mark.png') center/contain no-repeat;
  opacity: .05;
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero-title {
  font-size: clamp(58px, 13.5vw, 176px);
  letter-spacing: .13em;
  /* the tracking adds a trailing gap; pull it back so the word looks centred */
  text-indent: .13em;
  margin: 0 0 26px;
  text-shadow: 0 4px 44px rgba(0,0,0,.5);
}
.hero .lead { margin: 0 auto; text-align: center; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

/* ----------------------------  SECTIONS  ---------------------------------- */

.section { padding: clamp(48px, 8vh, 86px) 0; }

.section-head { text-align: center; margin-bottom: 46px; }
.section-title {
  font-size: clamp(21px, 2.7vw, 33px);
  letter-spacing: .19em;
  margin: 0 0 18px;
}
.section-head .lead { margin: 0 auto; text-align: center; }

/* ----------------------------  TOY CARDS  ---------------------------------
   Flush flat colour blocks, the same construction as the PLAY / LOOK / LISTEN
   row on the home page.

   Text colour is per-card rather than white everywhere: white on the green and
   amber fills is about 2:1 and genuinely hard to read, so those two take the
   brand navy instead. The blue is one shade deeper than the home page's
   #4682b4 for the same reason — white on that exact blue is 3.4:1, under AA.
   -------------------------------------------------------------------------- */

.toy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,.42);
}

.toy {
  --on: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 42px 26px 30px;
  background: var(--fill);
  color: var(--on);
  text-decoration: none;
  transition: filter .2s ease;
}
.toy:hover { filter: brightness(1.07); }
.toy:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

.toy-paint { --fill: #8cc185; --on: #14243D; }
.toy-cover { --fill: #ce2a55; --on: #fff;     }
.toy-beat  { --fill: #d99133; --on: #14243D;  }

.toy-art { width: 116px; height: 96px; margin-bottom: 26px; }

.toy-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.35vw, 19px);
  letter-spacing: .26em;
  text-indent: .26em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.toy-blurb {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 24px;
  opacity: .92;
  max-width: 26ch;
}
.toy-open {
  margin-top: auto;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.toy:hover .toy-open .arr { transform: translateX(4px); }
.toy-open .arr { transition: transform .18s ease; }

/* ----------------------------  SITE TILES  -------------------------------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}

.tile {
  --accent: var(--red);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  background: rgba(10,6,16,.56);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(3px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.tile.is-live:hover {
  background: rgba(22,12,30,.78);
  border-color: rgba(255,255,255,.32);
  transform: translateY(-3px);
}
.tile.is-soon { opacity: .5; cursor: default; }

.tile-accent-blue   { --accent: var(--blue);   }
.tile-accent-green  { --accent: var(--green);  }
.tile-accent-red    { --accent: var(--red);    }
.tile-accent-amber  { --accent: var(--amber);  }
.tile-accent-violet { --accent: #9059c9;       }

.tile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.tile-blurb {
  font-size: 14px;
  line-height: 1.58;
  color: var(--text-dim);
  margin: 0 0 20px;
}
.tile-foot {
  margin-top: auto;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tile.is-live .tile-foot { color: var(--text); }
.tile.is-live:hover .tile-foot .arr { transform: translateX(4px); }
.tile-foot .arr { transition: transform .18s ease; }

.tile-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin: 28px 0 0;
}

/* ----------------------------  RESPONSIVE  -------------------------------- */

@media (max-width: 980px) {
  .toy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .toy-grid { grid-template-columns: 1fr; }
  .toy { padding: 34px 22px 26px; }
  .tile-grid { grid-template-columns: 1fr; }
}

/* ----------------------------  CARD ARTWORK  ------------------------------
   The inline SVGs use two fills only: the card's ink colour, and the card's
   own background punched back through (for holes and cut-outs). Keeping them
   as custom properties means the art recolours with the card automatically. */
.art-ink    { fill: currentColor; }
.art-hole   { fill: var(--fill); }
.art-shadow { fill: rgba(0,0,0,.16); }
.art-stroke { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
