@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* Caption2 utility (from your original CSS: 1.2rem / 1.6rem, 700) */
.caption-2 {
    font-size: 12px; /* 1.2rem -> 12px with 10px base */
    line-height: 16px; /* 1.6rem -> 16px */
    font-weight: 700; /* semi-bold */
    font-family: 'Roboto','Segoe UI','Helvetica Neue','Arial','Helvetica','sans-seri';
}

:root {
  /* Make font size 10px so that rem can be used in app */
  --core-size-base: 62.5%;

  --font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, Helvetica, sans-serif;

  /* Available font weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semi-bold: 700;

  /* Typography */

  --headline1-font-size: 5.4rem;
  --headline1-font-weight: var(--font-weight-medium);
  --headline1-line-height: 5.8rem;
  --headline1-font: normal normal var(--headline1-font-weight) normal var(--headline1-font-size)/var(--headline1-line-height) var(--font-family);

  --headline2-font-size: 3.4rem;
  --headline2-font-weight: var(--font-weight-medium);
  --headline2-line-height: 3.8rem;
  --headline2-font: normal normal var(--headline2-font-weight) normal var(--headline2-font-size)/var(--headline2-line-height) var(--font-family);

  --headline3-font-size: 2.4rem;
  --headline3-font-weight: var(--font-weight-medium);
  --headline3-line-height: 2.8rem;
  --headline3-font: normal normal var(--headline3-font-weight) normal var(--headline3-font-size)/var(--headline3-line-height) var(--font-family);

  --headline4-font-size: 2rem;
  --headline4-font-weight: var(--font-weight-medium);
  --headline4-line-height: 2.4rem;
  --headline4-font: normal normal var(--headline4-font-weight) normal var(--headline4-font-size)/var(--headline4-line-height) var(--font-family);

  --headline5-font-size: 2rem;
  --headline5-font-weight: var(--font-weight-semi-bold);
  --headline5-line-height: 2.4rem;
  --headline5-font: normal normal var(--headline5-font-weight) normal var(--headline5-font-size)/var(--headline5-line-height) var(--font-family);

  --headline6-font-size: 1.6rem;
  --headline6-font-weight: var(--font-weight-medium);
  --headline6-line-height: 2rem;
  --headline6-font: normal normal var(--headline6-font-weight) normal var(--headline6-font-size)/var(--headline6-line-height) var(--font-family);

  --subtitle1-font-size: 1.6rem;
  --subtitle1-font-weight: var(--font-weight-semi-bold);
  --subtitle1-line-height: 1.8rem;
  --subtitle1-font: normal normal var(--subtitle1-font-weight) normal var(--subtitle1-font-size)/var(--subtitle1-line-height) var(--font-family);

  --subtitle2-font-size: 1.4rem;
  --subtitle2-font-weight: var(--font-weight-semi-bold);
  --subtitle2-line-height: 2.4rem;
  --subtitle2-font: normal normal var(--subtitle2-font-weight) normal var(--subtitle2-font-size)/var(--subtitle2-line-height) var(--font-family);

  --body1-font-size: 1.6rem;
  --body1-font-weight: var(--font-weight-regular);
  --body1-line-height: 2.4rem;
  --body1-font: normal normal var(--body1-font-weight) normal var(--body1-font-size)/var(--body1-line-height) var(--font-family);

  --body2-font-size: 1.4rem;
  --body2-font-weight: var(--font-weight-regular);
  --body2-line-height: 2rem;
  --body2-font: normal normal var(--body2-font-weight) normal var(--body2-font-size)/var(--body2-line-height) var(--font-family);

  --caption1-font-size: 1.4rem;
  --caption1-font-weight: var(--font-weight-semi-bold);
  --caption1-line-height: 1.6rem;
  --caption1-font: normal normal var(--caption1-font-weight) normal var(--caption1-font-size)/var(--caption1-line-height) var(--font-family);

  --caption2-font-size: 1.2rem;
  --caption2-font-weight: var(--font-weight-semi-bold);
  --caption2-line-height: 1.6rem;
  --caption2-font: normal normal var(--caption2-font-weight) normal var(--caption2-font-size)/var(--caption2-line-height) var(--font-family);

  --button-font-size: 1.4rem;
  --button-font-weight: var(--font-weight-semi-bold);
  --button-line-height: 3.6rem;
  --button-font: normal normal var(--button-font-weight) normal var(--button-font-size)/var(--button-line-height) var(--font-family);

  --overline-font-size: 1rem;
  --overline-font-weight: var(--font-weight-regular);
  --overline-line-height: 1.6rem;
  --overline-font: normal normal var(--overline-font-weight) normal var(--overline-font-size)/var(--overline-line-height) var(--font-family);
}

:root {
  /* DO NOT USE - INTERNAL ONLY */

  /* Material typography overrides
      Material uses base font of 16px. We use 10px so we need to increase the material default sizes by 1.6 */
  --mdc-typography-font-family: var(--font-family);

  --mdc-typography-headline1-font-size: var(--headline1-font-size);
  --mdc-typography-headline1-font-weight: var(--headline1-font-weight);
  --mdc-typography-headline1-line-height: var(--headline1-line-height);

  --mdc-typography-headline2-font-size: var(--headline2-font-size);
  --mdc-typography-headline2-font-weight: var(--headline2-font-weight);
  --mdc-typography-headline2-line-height: var(--headline2-line-height);

  --mdc-typography-headline3-font-size: var(--headline3-font-size);
  --mdc-typography-headline3-font-weight: var(--headline3-font-weight);
  --mdc-typography-headline3-line-height: var(--headline3-line-height);

  --mdc-typography-headline4-font-size: var(--headline4-font-size);
  --mdc-typography-headline4-font-weight: var(--headline4-font-weight);
  --mdc-typography-headline4-line-height: var(--headline4-line-height);

  --mdc-typography-headline5-font-size: var(--headline5-font-size);
  --mdc-typography-headline5-font-weight: var(--headline5-font-weight);
  --mdc-typography-headline5-line-height: var(--headline5-line-height);

  --mdc-typography-headline6-font-size: var(--headline6-font-size);
  --mdc-typography-headline6-font-weight: var(--headline6-font-weight);
  --mdc-typography-headline6-line-height: var(--headline6-line-height);

  --mdc-typography-subtitle1-font-size: var(--subtitle1-font-size);
  --mdc-typography-subtitle1-font-weight: var(--subtitle1-font-weight);
  --mdc-typography-subtitle1-line-height: var(--subtitle1-line-height);

  --mdc-typography-subtitle2-font-size: var(--subtitle2-font-size);
  --mdc-typography-subtitle2-font-weight: var(--subtitle2-font-weight);
  --mdc-typography-subtitle2-line-height: var(--subtitle2-line-height);

  --mdc-typography-body1-font-size: var(--body1-font-size);
  --mdc-typography-body1-font-weight: var(--body1-font-weight);
  --mdc-typography-body1-line-height: var(--body1-line-height);

  --mdc-typography-body2-font-size: var(--body2-font-size);
  --mdc-typography-body2-font-weight: var(--body2-font-weight);
  --mdc-typography-body2-line-height: var(--body2-line-height);

  --mdc-typography-caption-font-size: var(--caption1-font-size);
  --mdc-typography-caption-font-weight: var(--caption1-font-weight);
  --mdc-typography-caption-line-height: var(--caption1-line-height);

  --mdc-typography-button-font-size: var(--button-font-size);
  --mdc-typography-button-font-weight: var(--button-font-weight);
  --mdc-typography-button-line-height: var(--button-line-height);

  --mdc-typography-overline-font-size: var(--overline-font-size);
  --mdc-typography-overline-font-weight: var(--overline-font-weight);
  --mdc-typography-overline-line-height: var(--overline-line-height);
}

:root {
  font-size: var(--core-size-base);
  font-family: var(--font-family);
}

body {
  font: var(--body1-font);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 1.6rem 0 1.6rem;
  padding: 0;
}

h1 {
  font: var(--headline1-font);
}

h2 {
  font: var(--headline2-font);
}

h3 {
  font: var(--headline3-font);
}

h4 {
  font: var(--headline4-font);
}

h5 {
  font: var(--headline5-font);
}

h6 {
  font: var(--headline6-font);
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child {
  margin-top: 0;
}
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child {
  margin-bottom: 0;
}

p {
  font: var(--body1-font);
  margin: 0 0 1em;
}

p:first-child {
  margin-top: 0;
}
p:last-child {
  margin-bottom: 0;
}

/* :root {
  DO NOT USE - Deprecated Variables
  --h-xxl: 300 var(--headline3-font-size) var(--font-family);
  --h-xl: 300 var(--headline4-font-size) var(--font-family);
  --h-l: 400 var(--headline5-font-size) var(--font-family);
  --h-m: 400 var(--headline6-font-size) var(--font-family);
  --h-s: 400 var(--headline6-font-size) var(--font-family);

  --txt-l-size: var(--headline6-font-size);
  --txt-m-size: var(--body1-font-size);
  --txt-s-size: clamp(var(--body2-font-size));
  --txt-m: 400 var(--txt-m-size) var(--font-family);
  --txt-m-active: 400 var(--txt-m-size) var(--font-family);
  --txt-s: 400 var(--txt-s-size) var(--font-family);
  --txt-s-active: 400 var(--txt-s-size) var(--font-family);
  --txt-input: 400 var(--txt-l-size) var(--font-family);
  --txt-placeholder: 400 var(--txt-l-size) var(--font-family);
  --txt-title: 600 var(--txt-m-size) var(--font-family);
  --txt-label: 600 var(--txt-m-size) var(--font-family);
  --txt-button: 600 var(--txt-m-size) var(--font-family);
  --txt-link: 600 var(--txt-m-size) var(--font-family);
  --txt-product-title: 600 var(--txt-m-size) var(--font-family);
  --txt-nav: 400 var(--txt-m-size) var(--font-family);
} */
