/* ==========================================================================
   Shared Prototype UI — Typography Tokens & Scale (Icon Factory System)
   ========================================================================== */

:root {
  /* Font Families — override --font-sans in a prototype to customize */
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: var(--font-sans);
  --font-family-heading: var(--font-sans);
  --font-family-body: var(--font-sans);
  --font-family-label: var(--font-sans);

  /* Body Scale Tokens */
  --body-sm-size: 14px;
  --body-md-size: 16px;
  --body-lg-size: 18px;
  --body-line-height: 1.5;

  /* Label Scale Tokens */
  --label-xs-size: 9px;
  --label-sm-size: 11px;
  --label-md-size: 13px;
  --label-lg-size: 15px;
  --label-line-height: 1;
  --label-letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   1. Headings (Mobile)
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.display,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-family-heading);
}

.display {
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 700;
}

h1,
.h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h2,
.h2 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h3,
.h3 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h4,
.h4 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h5,
.h5 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h6,
.h6 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive Heading Overrides (Tablet: 768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .display {
    font-size: 64px;
  }

  h1,
  .h1 {
    font-size: 52px;
  }

  h2,
  .h2 {
    font-size: 48px;
  }

  h3,
  .h3 {
    font-size: 40px;
  }

  h4,
  .h4 {
    font-size: 36px;
  }

  h5,
  .h5 {
    font-size: 24px;
  }

  h6,
  .h6 {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   Responsive Heading Overrides (Desktop: 1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .display {
    font-size: 72px;
  }

  h1,
  .h1 {
    font-size: 64px;
  }

  h2,
  .h2 {
    font-size: 56px;
  }

  h3,
  .h3 {
    font-size: 44px;
  }

  h4,
  .h4 {
    font-size: 40px;
  }

  h5,
  .h5 {
    font-size: 32px;
  }

  h6,
  .h6 {
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
   2. Body Text
   -------------------------------------------------------------------------- */
.body-sm,
.body-md,
.body-lg {
  font-family: var(--font-family-body);
}

.body-sm {
  font-size: var(--body-sm-size);
  line-height: var(--body-line-height);
  letter-spacing: 0;
  font-weight: 400;
}

.body-md {
  font-size: var(--body-md-size);
  line-height: var(--body-line-height);
  letter-spacing: 0;
  font-weight: 400;
}

.body-lg {
  font-size: var(--body-lg-size);
  line-height: var(--body-line-height);
  letter-spacing: 0;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   3. Labels
   -------------------------------------------------------------------------- */
.label-xs,
.label-sm,
.label-md,
.label-lg {
  font-family: var(--font-family-label);
}

.label-xs {
  font-size: var(--label-xs-size);
  line-height: var(--label-line-height);
  letter-spacing: var(--label-letter-spacing);
  font-weight: 500;
}

.label-sm {
  font-size: var(--label-sm-size);
  line-height: var(--label-line-height);
  letter-spacing: var(--label-letter-spacing);
  font-weight: 500;
}

.label-md {
  font-size: var(--label-md-size);
  line-height: var(--label-line-height);
  letter-spacing: var(--label-letter-spacing);
  font-weight: 500;
}

.label-lg {
  font-size: var(--label-lg-size);
  line-height: var(--label-line-height);
  letter-spacing: var(--label-letter-spacing);
  font-weight: 600;
}
