/* Vanadium / Food Kingdom shared type system.
   Manrope keeps the studio identity crisp and professional; DM Serif Display
   adds a warm editorial touch to the culinary accent words. */
:root {
  --sans: 'Manrope', 'Avenir Next', Avenir, 'Segoe UI', Arial, sans-serif;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  --type-h1: clamp(3.5rem, 5.9vw, 4.8rem);
  --type-h2: clamp(2.15rem, 3.65vw, 3.05rem);
  --type-h3: clamp(1.08rem, 1.35vw, 1.22rem);
  --type-h4: 1.05rem;
  --type-h5: .98rem;
  --type-h6: .92rem;
  --type-body: clamp(.9rem, .22vw + .86rem, .98rem);
  --type-small: .82rem;
}

html { font-family: var(--sans); }
body, button, input, textarea, select {
  font-family: var(--sans);
  font-optical-sizing: auto;
}
body { font-size: 16px; line-height: 1.62; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-optical-sizing: auto;
  text-wrap: balance;
  overflow-wrap: normal;
}

/* Home — hero and section headings */
.page-home .hero h1 {
  font-size: clamp(3.65rem, 6.5vw, 4.9rem);
  line-height: .96;
  letter-spacing: -.065em;
}
.page-home .intro-heading h2,
.page-home .goals-heading h2,
.page-home .obstacles-intro h2,
.page-home .gameplay-copy h2,
.page-home .stars-copy h2,
.page-home .download-text h2,
.page-home .specials-intro h2,
.page-home .boosters-intro h2 {
  font-size: var(--type-h2);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.page-home .layer-explainer h3 {
  font-family: var(--sans);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

/* Home — card typography deliberately stays below section-heading scale. */
.page-home .special-card-body h3,
.page-home .booster-card h3,
.page-home .prelevel-card h3,
.page-home .goal-card h3,
.page-home .obstacle-card h3 {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-home .special-card-body p,
.page-home .booster-card p,
.page-home .prelevel-card p,
.page-home .goal-card p,
.page-home .obstacle-card p {
  font-size: clamp(.81rem, .9vw, .88rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
}

.page-home .special-card-body .card-label,
.page-home .booster-card .card-label,
.page-home .prelevel-card .card-label,
.page-home .goal-card .card-label {
  font-size: .68rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .14em;
}

.page-home .special-card-body small,
.page-home .booster-type-heading,
.page-home .booster-type-heading small,
.page-home .layer-tag,
.page-home .collectable-label {
  font-size: .68rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .09em;
}

.page-home .special-family-picker > span,
.page-home .family-chips button,
.page-home .family-current {
  font-size: .75rem;
  line-height: 1.35;
  font-weight: 700;
}

.page-home .special-badge {
  font-size: .66rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .09em;
}

/* Home — demo UI remains compact, but no text is reduced to tiny 6–8px labels. */
.page-home .board-label,
.page-home .prelevel-hint,
.page-home .collect-label,
.page-home .board-goals > span,
.page-home .moves-pill span,
.page-home .score-tier span,
.page-home .score-tier b,
.page-home .board-status,
.page-home .shuffle-button,
.page-home .inlevel-head small,
.page-home .inlevel-booster small,
.page-home .prelevel-actions small,
.page-home .booster-hint,
.page-home .board-caption,
.page-home .demo-disclaimer {
  font-size: .7rem;
  line-height: 1.45;
}
.page-home .goal-item { font-size: .78rem; }
.page-home .goal-item b { font-size: 1rem; }
.page-home .inlevel-booster b { font-size: .72rem; line-height: 1.25; }
.page-home .prelevel-choice span { font-size: .74rem; line-height: 1.25; }
.page-home .score-copy b { font-size: 1rem; }
.page-home .score-copy b small { font-size: .68rem; }

/* Home — readable supporting copy and intentionally restrained labels. */
.page-home main p:not(.eyebrow) {
  font-size: var(--type-body);
  line-height: 1.7;
}
.page-home .eyebrow,
.page-home .section-index,
.page-home .section-note,
.page-home .hero-meta,
.page-home .scroll-cue,
.page-home .goal-number,
.page-home .ticket-rating {
  font-size: .72rem;
  line-height: 1.4;
}
.page-home .hero-description,
.page-home .intro-copy,
.page-home .gameplay-copy > p:not(.eyebrow):not(.demo-disclaimer),
.page-home .specials-intro > p,
.page-home .boosters-intro > p,
.page-home .obstacles-intro > p,
.page-home .layer-explainer p,
.page-home .how-step small,
.page-home .goals-footnote,
.page-home .booster-note {
  font-size: .92rem;
  line-height: 1.7;
}

/* About Us and Contact share the same family and scale without changing layout. */
.page-inner .inner-hero-copy h1,
.page-inner .contact-heading h1 {
  font-size: clamp(3.45rem, 5.8vw, 4.8rem);
  line-height: .99;
  letter-spacing: -.06em;
}
.page-inner .statement-layout h2,
.page-inner .team-intro h2,
.page-inner .first-game-copy h2,
.page-inner .contact-info h2,
.page-inner .inner-cta h2,
.page-inner .contact-bottom h2 {
  font-size: clamp(2.05rem, 3.5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.page-inner .value-card h3,
.page-inner .team-card h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.page-inner p:not(.eyebrow) {
  font-size: .9rem;
  line-height: 1.72;
}
.page-inner .contact-form label,
.page-inner .contact-topic b { font-size: .78rem; line-height: 1.4; }
.page-inner .contact-form input,
.page-inner .contact-form select,
.page-inner .contact-form textarea { font-size: .92rem; line-height: 1.5; }
.page-inner .form-demo-tag,
.page-inner .form-note,
.page-inner .form-success,
.page-inner .team-note,
.page-inner .contact-topic p,
.page-inner .contact-placeholder p { font-size: .75rem; line-height: 1.55; }

@media (max-width: 1050px) {
  .page-home .special-card-body h3,
  .page-home .booster-card h3,
  .page-home .prelevel-card h3,
  .page-home .goal-card h3,
  .page-home .obstacle-card h3 { font-size: 1.02rem; }
}

@media (max-width: 760px) {
  :root {
    --type-h1: clamp(2.9rem, 10vw, 4rem);
    --type-h2: clamp(1.95rem, 7vw, 2.55rem);
    --type-h3: 1.08rem;
  }
  .page-home .hero h1 { font-size: clamp(3.25rem, 11vw, 4.3rem); }
  .page-home .intro-heading h2,
  .page-home .goals-heading h2,
  .page-home .obstacles-intro h2,
  .page-home .gameplay-copy h2,
  .page-home .stars-copy h2,
  .page-home .download-text h2,
  .page-home .specials-intro h2,
  .page-home .boosters-intro h2 { font-size: var(--type-h2); }
  .page-home .special-card-body h3,
  .page-home .booster-card h3,
  .page-home .prelevel-card h3,
  .page-home .goal-card h3,
  .page-home .obstacle-card h3 { font-size: .98rem; }
  .page-home .special-card-body p,
  .page-home .booster-card p,
  .page-home .prelevel-card p,
  .page-home .goal-card p,
  .page-home .obstacle-card p { font-size: .82rem; line-height: 1.58; }
  .page-home .special-family-picker > span,
  .page-home .family-chips button,
  .page-home .family-current { font-size: .7rem; }
  .page-inner .inner-hero-copy h1,
  .page-inner .contact-heading h1 { font-size: clamp(2.85rem, 11vw, 4rem); }
  .page-inner .statement-layout h2,
  .page-inner .team-intro h2,
  .page-inner .first-game-copy h2,
  .page-inner .contact-info h2,
  .page-inner .inner-cta h2,
  .page-inner .contact-bottom h2 { font-size: clamp(1.95rem, 7vw, 2.55rem); }
}

@media (max-width: 430px) {
  .page-home .special-card-body h3,
  .page-home .booster-card h3,
  .page-home .prelevel-card h3,
  .page-home .goal-card h3,
  .page-home .obstacle-card h3 { font-size: 1.02rem; }
  .page-home .special-card-body p,
  .page-home .booster-card p,
  .page-home .prelevel-card p,
  .page-home .goal-card p,
  .page-home .obstacle-card p { font-size: .88rem; }
}

/* Card geometry follows the actual font metrics: no oversized type in narrow cards. */
.page-home .special-cards,
.page-home .booster-cards,
.page-home .prelevel-showcase,
.page-home .goal-cards,
.page-home .obstacle-grid { align-items: stretch; }
.page-home .special-card,
.page-home .booster-card,
.page-home .prelevel-card,
.page-home .goal-card,
.page-home .obstacle-card { min-width: 0; }
.page-home .special-card { display: flex; flex-direction: column; }
.page-home .special-art { height: 184px; min-height: 184px; }
.page-home .special-art > img { width: 68%; height: 142px; max-width: 100%; margin-inline: auto; object-position: center; }
.page-home .special-card-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 17px 16px 18px; }
.page-home .special-card-body h3 { margin: 8px 0 9px; min-height: 2.45em; display: flex; align-items: center; }
body.page-home main .special-card-body p { flex: 1 1 auto; min-height: 0; margin: 0; font-size: .84rem; line-height: 1.58; }
.page-home .special-card-body small { margin-top: 13px; padding-top: 10px; font-size: .67rem; }

.page-home .booster-card { min-height: 276px; padding: 0 16px 18px; }
.page-home .booster-art { height: 136px; margin-inline: -16px; margin-bottom: 15px; }
.page-home .booster-art img { width: 66%; height: 108px; }
.page-home .booster-card > div:last-child { display: flex; flex: 1 1 auto; flex-direction: column; }
.page-home .booster-card h3 { min-height: 2.4em; margin: 7px 0 8px; display: flex; align-items: center; }
body.page-home main .booster-card p { margin: 0; font-size: .84rem; line-height: 1.58; }

.page-home .prelevel-card { grid-template-columns: minmax(96px, 126px) minmax(0,1fr); gap: 14px; padding: 16px; }
.page-home .prelevel-card img { max-width: 100%; height: 116px; }
.page-home .prelevel-card h3 { margin: 6px 0 8px; }
body.page-home main .prelevel-card p { font-size: .83rem; line-height: 1.58; }

.page-home .goal-card-body { padding: 21px 21px 24px; }
.page-home .goal-card h3 { min-height: 2.5em; margin: 9px 0; display: flex; align-items: center; }
body.page-home main .goal-card p { font-size: .85rem; line-height: 1.62; }

.page-home .obstacle-card { min-width: 0; padding: 17px 19px 20px; }
.page-home .obstacle-image { height: 160px; padding: 14px 16px; margin: -17px -19px 16px; box-sizing: border-box; }
.page-home .obstacle-image img { width: min(70%, 150px); height: 100%; max-height: 112px; margin-inline: auto; object-fit: contain; }
.page-home .obstacle-card-head { min-width: 0; align-items: center; gap: 9px; }
.page-home .obstacle-card-head h3 { min-width: 0; margin: 0; font-size: 1.08rem; font-weight: 700; }
.page-home .layer-tag { flex: 0 0 auto; padding: 5px 7px; font-size: .64rem; }
body.page-home main .obstacle-card p { margin-top: 11px; font-size: .84rem; line-height: 1.62; }

.page-home .special-art-line > img[data-special-kind="vertical"] { margin-inline: auto; transform: translateX(0); }
.page-home .special-card:hover .special-art-line > img[data-special-kind="vertical"] { transform: translateX(0) scale(1.09) rotate(-4deg); }

@media (max-width: 1050px) {
  .page-home .special-art { height: 176px; min-height: 176px; }
  .page-home .special-art > img { height: 136px; }
  .page-home .booster-card { min-height: 260px; }
}
@media (max-width: 760px) {
  .page-home .special-art { height: 154px; min-height: 154px; }
  .page-home .special-art > img { width: 74%; height: 120px; }
  .page-home .special-card-body { padding: 14px 13px 16px; }
  .page-home .special-card-body h3 { min-height: 2.35em; }
  .page-home .booster-card { min-height: 248px; padding-inline: 13px; }
  .page-home .booster-art { height: 124px; margin-inline: -13px; }
  .page-home .booster-art img { height: 100px; }
  .page-home .prelevel-card { grid-template-columns: 104px minmax(0,1fr); gap: 12px; }
  .page-home .goal-card-body { padding: 17px; }
  .page-home .obstacle-image { height: 132px; padding-block: 13px; }
}
@media (max-width: 430px) {
  .page-home .special-art { height: 178px; min-height: 178px; }
  .page-home .special-art > img { width: 70%; height: 138px; }
  .page-home .special-card-body h3 { min-height: 0; }
  .page-home .booster-card { min-height: 0; padding-bottom: 16px; }
  .page-home .booster-card h3 { min-height: 0; }
  .page-home .obstacle-card-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .page-home .obstacle-card-head h3 { font-size: 1rem; }
}
