@import url("https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap");

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-variation-settings: "opsz" 12;
  src: url("/assets/BodoniModa-VariableFont_opsz,wght-a4c99253.ttf") format("truetype-variations");
  display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-variation-settings: "opsz" 12;
  src: url("/assets/BodoniModa-Italic-VariableFont_opsz,wght-b6b17698.ttf") format("truetype-variations");
  display: swap;
}

@font-face {
  font-family: "Bodoni Moda SC";
  font-style: normal;
  font-weight: 400 900;
  font-variation-settings: "opsz" 12;
  src: url("/assets/BodoniModaSC-VariableFont_opsz,wght-817f18a9.ttf") format("truetype-variations");
  display: swap;
}

@font-face {
  font-family: "Bodoni Moda SC";
  font-style: italic;
  font-weight: 400 900;
  font-variation-settings: "opsz" 12;
  src: url("/assets/BodoniModaSC-Italic-VariableFont_opsz,wght-e167a55b.ttf") format("truetype-variations");
  display: swap;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  src: url("/assets/Montserrat-VariableFont_wght-c4756298.ttf") format("truetype-variations");
  display: swap;
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  src: url("/assets/Montserrat-Italic-VariableFont_wght-b68b2fec.ttf") format("truetype-variations");
  display: swap;
}

/* let's add some variables */
html {
  --font-serif: "Bodoni Moda", serif;
  --font-serif-sc: "Bodoni Moda SC", serif;
  --font-sans: "Montserrat", sans-serif;
  --font-script: "Pinyon Script";
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: var(--mb);
  max-width: var(--text-maxwidth);

  &.fw {
    max-width: 100%;
    width: 100%;
  }

  &.nm {
    margin: 0;
  }

  &.mt {
    margin-top: var(--minim);
  }

  &.mbo {
    margin-top: 0;
    margin-bottom: var(--minim);
  }
}

p {
  color: var(--mb);
  /* Body/Body/Regular */
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  /* 128.571% */
  letter-spacing: 0.04em;
  text-align: left;
  margin-bottom: var(--crotchet);

  &.centered {
    text-align: center;
  }
}

p.caption {
  font-size: 0.875em;
  margin: var(--crotchet) 0;
}

em {
  font-weight: 600;
  font-style: normal;

  &.caps {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

button,
input[type="submit"],
.button {
  font-family: var(--font-sans);
  font-size: 1em;
  font-weight: 500;
  line-height: 1;
}

li,
label,
input,
textarea {
  font-family: var(--font-sans);
  font-size: 1em;
  color: var(--fg);
  line-height: 1.5;
  font-weight: 300;
}

ol.typographic {
  list-style-type: decimal;
  padding-left: 2em;
}

ul.typographic {
  list-style-type: disc;
  padding-left: 2em;
}

/* Responsive title sizing */
h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2em;
  line-height: 1.1;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5em;
  line-height: 1.1;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 540;
  font-size: 16px;
  line-height: 1.1;
}

h4 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.125em;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5em;
  }

  h2 {
    font-size: 1.75em;
  }

  h3 {
    font-size: 1.375em;
  }

  h4 {
    font-size: 1.25em;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2em;
  }

  h3 {
    font-size: 1.5em;
  }

  h4 {
    font-size: 1.25em;
  }
}

/* misc bits */
span.sc {
  font-family: var(--font-serif-sc);
  text-transform: lowercase;
}

/* Global table text color fix */
/* Ensures table content doesn't inherit problematic color states */
table td,
table th,
table td *,
table th * {
  color: var(--fg) !important;
}

table td strong,
table th strong {
  color: var(--fg) !important;
}