@font-face { font-family: "Bricolage Grotesque"; src: url("/welcome/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/welcome/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* House look (STYLE.md). Layout: picture on top, welcome card over its lower edge,
   three part cards in one column, fox characters in the side gutters on wide screens. */
:root {
  --bg: #eef3ff; --card: #ffffff; --ink: #16204a; --soft: #4d5888; --line: #d5ddf5;
  --pop: #3355ff; --pop-ink: #ffffff; --zing: #ffcf3a; --zing-ink: #3a2c00; --mint: #19b98a; --mint-ink: #062a1f;
  --teal: #0d7ba3; --teal-ink: #ffffff; --tint: #e3e9ff;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Hanken Grotesk", Verdana, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1430; --card: #1a2147; --ink: #eef1ff; --soft: #aab3dd; --line: #2d376a;
  --pop: #7d93ff; --pop-ink: #0f1430; --zing: #ffd659; --mint: #3fd6a8; --teal: #5cc4e6; --teal-ink: #0f1430; --tint: #232c5c; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1430; --card: #1a2147; --ink: #eef1ff; --soft: #aab3dd; --line: #2d376a;
  --pop: #7d93ff; --pop-ink: #0f1430; --zing: #ffd659; --mint: #3fd6a8; --teal: #5cc4e6; --teal-ink: #0f1430; --tint: #232c5c; color-scheme: dark; }
html:root[data-vibe="midnight"] { --bg: #0b0e17; --card: #161b2b; --ink: #e8eaf2; --soft: #9aa1b8; --line: #2a3047;
  --pop: #6a3df0; --pop-ink: #ffffff; --zing: #c9b8ff; --zing-ink: #1b1240; --mint: #3fd6a8; --teal: #5cc4e6; --teal-ink: #0b0e17; --tint: #222842; color-scheme: dark; }
html:root[data-vibe="forest"] { --bg: #eef5ef; --card: #ffffff; --ink: #13261b; --soft: #4a6354; --line: #cfe0d4;
  --pop: #1f7a4d; --pop-ink: #ffffff; --zing: #ffcf3a; --zing-ink: #3a2c00; --mint: #19b98a; --teal: #0d7ba3; --teal-ink: #ffffff; --tint: #dcebe0; color-scheme: light; }
html:root[data-vibe="sunset"] { --bg: #fff1ec; --card: #ffffff; --ink: #2a1520; --soft: #6e4a58; --line: #f3d3c8;
  --pop: #c93a64; --pop-ink: #ffffff; --zing: #ffcf3a; --zing-ink: #3a2c00; --mint: #19b98a; --teal: #0d7ba3; --teal-ink: #ffffff; --tint: #fde0d6; color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 46rem; margin: 0 auto; padding-inline: 16px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.top-in { max-width: 72rem; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-decoration: none; margin-right: auto; }
.dot { width: 30px; height: 30px; border-radius: 9px; background: var(--pop); color: var(--pop-ink); display: grid; place-items: center; }
.dot svg { width: 16px; height: 16px; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.iconbtn svg { width: 22px; height: 22px; }
.vibes { max-width: 72rem; margin: 0 auto; padding: 0 16px 10px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--soft); }
.vibe { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--line); padding: 0; cursor: pointer; }
.vibe[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.vibe[data-v="bright"] { background: linear-gradient(135deg, #3355ff 50%, #ffcf3a 50%); }
.vibe[data-v="midnight"] { background: linear-gradient(135deg, #0b0e17 50%, #6a3df0 50%); }
.vibe[data-v="forest"] { background: linear-gradient(135deg, #1f7a4d 50%, #eef5ef 50%); }
.vibe[data-v="sunset"] { background: linear-gradient(135deg, #c93a64 50%, #ffcf3a 50%); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--pop); background: var(--pop); color: var(--pop-ink); cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn.small { min-height: 44px; padding: 6px 16px; font-size: .95rem; }
.btn:hover { filter: brightness(1.08); }

/* hero */
.hero { max-width: 72rem; margin: 0 auto; padding: 18px 16px 0; }
.hero-pic { border-radius: 26px; border: 2px solid var(--line); overflow: hidden; background: var(--tint); }
.hero-pic img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 62%; }
.welcome { position: relative; z-index: 2; max-width: 50rem; margin: -84px auto 0; background: var(--card); border: 2px solid var(--line); border-radius: 26px; padding: 26px; display: grid; grid-template-columns: 1fr 230px; gap: 18px; align-items: end; }
.pill { display: inline-block; background: var(--pop); color: var(--pop-ink); font-weight: 700; font-size: .85rem; padding: 5px 14px; border-radius: 999px; }
.welcome h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); margin: 14px 0 12px; }
.welcome h1 em { font-style: normal; color: var(--pop); }
.lede { font-size: 1.12rem; color: var(--soft); max-width: 30rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.note { font-size: .95rem; color: var(--soft); }
.hello { align-self: end; margin-bottom: -26px; }

/* parts */
.sec-title { font-family: var(--body); font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--soft); font-weight: 700; margin: 44px 0 14px; }
.parts { display: grid; gap: 18px; }
.part { position: relative; background: var(--card); border: 2px solid var(--line); border-left: 8px solid var(--acc); border-radius: 26px; padding: 22px 20px; display: grid; grid-template-columns: 1fr 170px; gap: 16px; align-items: center; }
.part.flip { grid-template-columns: 170px 1fr; }
.part.flip .fox { order: -1; }
.p1 { --acc: var(--pop); --acc-ink: var(--pop-ink); }
.p2 { --acc: var(--teal); --acc-ink: var(--teal-ink); }
.p3 { --acc: var(--zing); --acc-ink: var(--zing-ink); }
.num { width: 38px; height: 38px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: inline-grid; place-items: center; font-family: var(--display); font-weight: 800; margin-bottom: 10px; }
.part h2 { font-size: 1.6rem; margin-bottom: 6px; }
.part p { color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; font-family: var(--body); }
.chip:hover { border-color: var(--pop); }
.chip svg { width: 15px; height: 15px; color: var(--pop); }
.part .fox { display: grid; place-items: center; }
.part .fox img { width: auto; height: auto; max-width: 100%; max-height: 200px; object-fit: contain; margin: 0 auto; }

/* side characters */
.between { max-width: 74rem; margin: 0 auto; padding-inline: 16px; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.between img { height: 96px; width: auto; }
@media (min-width: 1180px) {
  .between { height: 0; position: relative; z-index: 1; }
  .between img { height: 210px; position: absolute; }
  .between img:first-child { left: 16px; bottom: -150px; }
  .between img:last-child { right: 16px; bottom: -150px; }
}

/* closing band */
.band { margin-top: 44px; background: var(--tint); border-block: 2px solid var(--line); }
.band-in { max-width: 46rem; margin: 0 auto; padding: 28px 16px; display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.band h2 { font-size: 2rem; margin-bottom: 8px; }
.band p { color: var(--soft); margin-bottom: 16px; }
footer { max-width: 46rem; margin: 0 auto; padding: 26px 16px 44px; color: var(--soft); font-size: .95rem; text-align: center; }
.foot-links { margin-top: 10px; }
.foot-links a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* 13+ check before starting */
.age { border: 2px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); padding: 24px 22px; width: min(26rem, calc(100vw - 32px)); }
.age::backdrop { background: rgba(10, 14, 35, .55); }
.age h2 { font-size: 1.5rem; margin-bottom: 14px; }
.age .tick { display: flex; gap: 12px; align-items: center; font-size: 1.1rem; font-weight: 700; cursor: pointer; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; }
.age .tick input { width: 24px; height: 24px; accent-color: var(--pop); flex: none; }
.age-msg { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--tint); color: var(--ink); font-weight: 600; }
.age-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.age .ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }

@media (max-width: 640px) {
  .hero-pic img { aspect-ratio: 4 / 3; }
  .welcome { grid-template-columns: 1fr; margin-top: -56px; padding: 20px; }
  .hello { max-width: 200px; margin: 0 auto -20px; }
  .part, .part.flip { grid-template-columns: 1fr 104px; padding: 18px 16px; gap: 10px; align-items: start; }
  .part.flip .fox { order: 0; }
  .part .fox img { max-height: 130px; }
  .band-in { grid-template-columns: 1fr; text-align: center; }
  .band-in img { max-width: 190px; margin: 0 auto; }
  .between { margin-block: 10px -6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.part, .part.flip { grid-template-columns: 1fr; }
.band-in { grid-template-columns: 1fr; text-align: center; }
.parts + .parts { margin-top: 18px; }

/* one hero picture per colour set */
.hero-pic .hv { display: none; }
.hero-pic .hv-bright { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-vibe]) .hero-pic .hv-bright { display: none; } :root:not([data-theme="light"]):not([data-vibe]) .hero-pic .hv-midnight { display: block; } }
:root[data-theme="dark"]:not([data-vibe]) .hero-pic .hv-bright { display: none; }
:root[data-theme="dark"]:not([data-vibe]) .hero-pic .hv-midnight { display: block; }
html:root[data-vibe] .hero-pic .hv-bright { display: none; }
html:root[data-vibe="midnight"] .hero-pic .hv-midnight,
html:root[data-vibe="forest"] .hero-pic .hv-forest,
html:root[data-vibe="sunset"] .hero-pic .hv-sunset { display: block; }

.sprite { position: absolute; }
.gap-top { margin-top: 18px; }
