@font-face {
  font-family: Bricolage;
  src: url("./fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf7ef;
  --cream: #fffdf7;
  --ink: #211d38;
  --muted: #5b536c;
  --dark: #18152e;
  --violet: #4f3c9c;
  --violet-light: #ebe4ff;
  --mint: #d8f2e7;
  --gold: #ffcc72;
  --gold-light: #fff1cc;
  --line: #ded7e9;
  --display: Bricolage, system-ui, "Segoe UI", sans-serif;
  font-family: system-ui, -apple-system, "Segoe UI", "Nirmala UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #684ac7; outline-offset: 4px; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 3; }
.skip:focus { top: .75rem; background: var(--cream); padding: .65rem 1rem; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.topbar { background: var(--cream); border-bottom: 1px solid var(--line); }
.nav-row { min-height: 75px; display: flex; align-items: center; gap: .35rem 1.5rem; flex-wrap: wrap; padding-block: .55rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.34rem; text-decoration: none; letter-spacing: -.03em; margin-right: auto; }
.brand img { width: 38px; height: 38px; flex: none; }
.nav-links { display: flex; align-items: center; gap: .2rem 1.15rem; flex-wrap: wrap; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--violet); text-decoration: underline; text-underline-offset: .26em; }
.language { display: flex; gap: .4rem; align-items: center; }
.language label { font-size: .82rem; color: var(--muted); }
.language select { min-height: 44px; max-width: 100%; padding: .45rem .55rem; font: inherit; font-size: .88rem; font-weight: 650; color: var(--ink); background: white; border: 1px solid #a99dbc; border-radius: .65rem; }
.locale-pickers { display: flex; gap: .65rem; min-width: 0; }
.locale-pickers .language { display: grid; gap: .15rem; min-width: 0; }
.locale-pickers select { width: 100%; min-width: 0; }
.hero { position: relative; padding-block: clamp(2.2rem, 5.1vw, 4.9rem); }
.hero-story { background: radial-gradient(ellipse at 83% 4%, #31234a 0, transparent 48%), var(--dark); color: #fffaf2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: center; gap: clamp(1.35rem, 4vw, 3.5rem); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.03em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.9rem, 5.1vw, 4.6rem); max-width: 14ch; text-wrap: balance; }
.hero-story h1 { font-weight: 800; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3 { font-family: inherit; letter-spacing: 0; line-height: 1.28; }
:lang(hi) h1, :lang(zh-CN) h1 { max-width: none; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; max-width: 100%; margin: 0 0 .95rem; color: var(--violet); font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.eyebrow { padding: .38rem .65rem; border: 1px solid #d9c8f5; border-radius: .55rem; background: #f0e8ff; }
.eyebrow img { flex: none; }
.hero-story .eyebrow { color: #ffe2a9; background: #332949; border-color: #605078; }
.lede { max-width: 59ch; margin: 1.05rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.55; }
.hero-story .lede, .hero-story .fine { color: #e5dcec; }
.hero-story :focus-visible { outline-color: #ffd77c; }
.actions { display: flex; align-items: center; gap: .7rem 1.15rem; flex-wrap: wrap; margin: 1.55rem 0 .55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; max-width: 100%; padding: .7rem 1.05rem; border: 1px solid transparent; border-radius: .75rem; background: var(--violet); color: #fff; font: inherit; font-weight: 760; text-align: center; text-decoration: none; line-height: 1.25; cursor: pointer; }
.button:hover { background: #402d86; }
.button.gold { background: var(--gold); color: #211831; box-shadow: 0 3px 0 #a77437; }
.button.gold:hover { background: #ffdb95; }
.button.secondary { color: var(--ink); background: transparent; border-color: #9683ac; }
.button.secondary:hover { background: var(--violet-light); }
.button:disabled { cursor: default; background: #e4deec; color: #655a74; border-color: #d7cfe1; box-shadow: none; }
.button svg { inline-size: 1.25em; block-size: 1.25em; flex: none; }
.text-link { text-underline-offset: .25em; font-weight: 750; text-decoration-thickness: .1em; }
.hero-story .text-link { color: #fff4d6; }
.hero-art { min-width: 0; margin: 0; }
.hero-art img { inline-size: 100%; block-size: auto; }
.hero-plate { overflow: hidden; background: #2b2445; border: 1px solid #675378; border-radius: 1.45rem; box-shadow: 0 18px 38px #100b2a7a; }
.hero-plate img { aspect-ratio: 4 / 3; object-fit: cover; }
.hero-plate figcaption { padding: .7rem .9rem; color: #ede5ff; background: #26203f; border-top: 1px solid #6a5677; font-size: .83rem; }
.fine { max-width: 67ch; color: var(--muted); font-size: .87rem; }
.proof-line { display: flex; flex-wrap: wrap; gap: .38rem .68rem; padding: 0; margin: 1.15rem 0 0; list-style: none; }
.proof-line li { padding: .28rem .62rem; border: 1px solid #5e5070; border-radius: .5rem; color: #f1e8fc; font-size: .82rem; }
.section { padding-block: clamp(2.5rem, 5vw, 4.75rem); }
.section.ruled { border-top: 1px solid var(--line); }
h2 { font-size: clamp(2rem, 3.9vw, 3.25rem); }
.section-intro { margin-bottom: 1.35rem; max-width: 62ch; }
.section-intro p:not(.kicker) { color: var(--muted); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.15rem, 2.4vw, 1.75rem); border: 1px solid var(--line); border-radius: 1.05rem; background: var(--cream); box-shadow: 0 5px 0 #31264408; }
.card .button { margin-top: auto; }
.card .card-kicker { margin: 0 0 .5rem; color: var(--violet); font-size: .82rem; font-weight: 800; }
.card h3 { font-size: clamp(1.32rem, 2.2vw, 1.7rem); }
.card p:not(.card-kicker) { color: var(--muted); }
.card.mari, .card.mission-roles { background: var(--violet-light); border-color: #d1c2f2; }
.card.adult { background: #242040; color: #fff9ec; border-color: #534369; }
.card.adult p, .card.adult .card-kicker { color: #eee5ff; }
.card.adult .button { background: var(--gold); color: var(--ink); }
.card.adult .button:hover { background: #ffdb95; }
.card.mission-try { background: var(--mint); border-color: #b6d7cb; }
.card.mission-watch { background: var(--gold-light); border-color: #e5ce91; }
.card-icon { width: 58px; height: 58px; margin-bottom: .8rem; }
.conversation { padding: clamp(1.25rem, 3.4vw, 2.6rem); border: 1px solid #b5d8cd; border-radius: 1.25rem; background: var(--mint); }
.conversation blockquote { margin: .85rem 0; color: #16443c; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 760; }
.preview-panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.25rem, 3.7vw, 3.2rem); align-items: start; }
.preview-card { padding: clamp(1.15rem, 3vw, 1.85rem); background: var(--cream); border: 1px solid #d9c8ed; border-radius: 1.25rem; box-shadow: 0 8px 22px #30224c0f; }
.preview-card h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.preview-card .kicker { margin-bottom: .45rem; }
.preview-card .sign-lab { margin-top: .9rem; }
.preview-card .demo-next { display: inline-flex; align-items: center; min-height: 44px; margin-top: .55rem; }
.pilot-signup { background: #eee7fa; border-block: 1px solid #d9cbed; }
.signup-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: start; gap: clamp(1.35rem, 4.8vw, 4rem); }
.signup-card { padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid #d4c6e4; border-radius: 1.25rem; background: var(--cream); box-shadow: 0 9px 26px #211b3a0e; }
.signup-card label { font-weight: 700; }
.signup-card fieldset { min-inline-size: 0; display: grid; gap: .65rem; padding: 0; margin: 0; border: 0; }
.signup-card input[type="email"] { min-height: 49px; width: 100%; border: 1px solid #9787a6; border-radius: .66rem; padding: .65rem .75rem; background: white; color: var(--ink); font: inherit; }
.signup-card input[type="email"]:disabled { background: #f3eef6; }
.signup-card .consent { display: flex; gap: .58rem; align-items: flex-start; min-height: 44px; padding-block: .28rem; font-size: .9rem; font-weight: 600; }
.consent input { inline-size: 1.1rem; block-size: 1.1rem; flex: none; margin: .15rem 0 0; accent-color: var(--violet); }
.signup-card .button { justify-self: start; }
.form-status { margin: .7rem 0 0; color: var(--muted); font-size: .9rem; }
.form-status:empty { margin: 0; }
.form-status[data-state="success"] { color: #155441; font-weight: 750; }
.form-status[data-state="error"] { color: #9a392f; }
.signup-card .fine { margin: .75rem 0 0; }
details { margin-block: .72rem; padding: .5rem .9rem; background: var(--cream); border: 1px solid var(--line); border-radius: .75rem; }
summary { cursor: pointer; min-height: 44px; display: list-item; align-content: center; font-weight: 760; }
details p { max-width: 76ch; color: var(--muted); }
.footer { padding-block: 1.25rem 2.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer .wrap { display: flex; gap: .5rem 1.25rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer a { text-underline-offset: .25em; }
.legacy-entry { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid #cdb596; border-radius: .65rem; background: #fff2cd; }

.fair-guide { --paper: #fbf7ee; --mint: #cdeadf; --gold: #f5c567; }
.fair-guide .topbar { border-bottom-color: #e5dcd2; }
.fair-guide .brand { font-size: clamp(1.22rem, 2.1vw, 1.48rem); }
.fair-guide .nav-links a:last-child { padding-inline: .75rem; border-radius: .75rem; background: #f1ebf6; }
.fair-guide .hero-story {
  color: var(--ink);
  background: radial-gradient(ellipse at 92% 14%, #cdeadf 0, transparent 52%), #fcf5e7;
  border-bottom: 1px solid #e5dcd2;
}
.fair-guide .hero-grid { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
.fair-guide .hero-story .eyebrow { color: #205b4c; background: #eef8f1; border-color: #a5caba; }
.fair-guide .hero-story h1 { max-width: 12ch; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1; }
.fair-guide:lang(hi) .hero-story h1, .fair-guide:lang(zh-CN) .hero-story h1 { max-width: none; line-height: 1.18; }
.fair-guide .hero-story .lede { max-width: 43ch; color: #4e4561; }
.fair-guide .hero-story .text-link { color: #463583; min-height: 44px; display: inline-flex; align-items: center; }
.fair-guide .hero-story :focus-visible { outline-color: #684ac7; }
.fair-guide .hero-story .button.gold { border-color: #b47b34; padding-inline: 1.2rem; }
.fair-guide .hero-story .proof-line li { color: #423751; border-color: #cfc1d4; background: #fffdf7; }
.fair-guide .hero-plate { padding: .55rem; background: #fffdf7; border-color: #b8a9bf; border-radius: 1.55rem; box-shadow: 0 18px 32px #392a4630; }
.fair-guide .hero-plate img { border-radius: 1.08rem; }
.fair-guide .hero-plate figcaption { display: flex; align-items: center; gap: .55rem; background: #fffdf7; color: #4e4561; border: 0; padding: .55rem .25rem .05rem; }
.fair-guide .hero-plate figcaption svg { width: 1.45rem; height: 1.45rem; flex: none; }
.fair-guide .preview-panel { align-items: center; }
.fair-guide .preview-card { border-color: #c6bacd; box-shadow: 0 7px 0 #dcd2e440, 0 18px 36px #392a4614; }
.sample-steps { display: grid; gap: .58rem; margin: 1.1rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.sample-steps li { display: flex; align-items: center; gap: .65rem; counter-increment: steps; color: #3d354a; }
.sample-steps li::before { content: counter(steps); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; flex: none; border-radius: .55rem; background: #e8ddf4; color: #423177; font-weight: 800; }
.skills-section { border-block: 1px solid #e2d8e8; background: #f5eef9; }
.skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.skills-grid .card { border-radius: 1.25rem; }
.skills-grid .card-icon { width: 3rem; height: 3rem; }
.skills-grid .card p { margin-block: .65rem 0; }
.workbook-panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 1.25rem clamp(1.2rem, 4vw, 3rem); }
.workbook-panel .kicker { color: #205b4c; }
.workbook-panel p { max-width: 53ch; }
.workbook-card { padding: 1.15rem; border: 1px solid #8fbba9; border-radius: 1.05rem; background: #fffdf7; }
.workbook-card svg { display: block; width: 2.55rem; height: 2.55rem; }
.workbook-card p { margin-block: .55rem .9rem; }
.workbook-card .button { border-color: #8f7da3; }

@media (max-width: 960px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 790px) {
  .hero-grid, .preview-panel, .signup-layout { grid-template-columns: 1fr; }
  .fair-guide .hero-grid { grid-template-columns: 1fr; }
  .fair-guide .hero-story h1 { font-size: clamp(2.65rem, 8.3vw, 4.8rem); }
  .hero-art { width: min(100%, 610px); margin-inline: auto; }
  .hero-plate img { aspect-ratio: 16 / 10; object-position: center 47%; }
  .nav-row { gap: .25rem .85rem; }
  .nav-links { order: 3; width: 100%; }
  h1 { font-size: clamp(2.55rem, 8vw, 4.35rem); }
}
@media (max-width: 620px) {
  .grid, .grid.two, .workbook-panel { grid-template-columns: 1fr; }
  .fair-guide .nav-row { padding-block: .6rem .15rem; }
  .fair-guide .hero-story { padding-block: 1.65rem 2.25rem; }
  .fair-guide .hero-story .actions { margin-top: 1.05rem; }
  .wrap { width: calc(100% - 1.75rem); }
  .language label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .locale-pickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .locale-pickers .language label { position: static; clip-path: none; width: auto; height: auto; }
  .nav-links a { font-size: .84rem; }
}
@media print {
  .topbar, .footer, .skip, .actions, .hero-art, .pilot-signup, .sign-lab { display: none; }
  .wrap { width: auto; }
  .hero, .section { padding-block: .8rem; }
  .hero-story, .hero-story .lede, .hero-story .fine, .fair-guide .hero-story { color: black; background: white; }
  .hero-grid, .preview-panel { display: block; }
  h1, .fair-guide .hero-story h1 { font-size: 30pt; max-width: none; }
}
