/*
 * Base styles the old Squarespace theme provided underneath the custom code.
 * The page HTML (resources/pages) and the nav/footer were written on top of
 * these, so they are kept close to the theme's values.
 */

/* Poppins: body text, nav, buttons (self-hosted, same as on Squarespace) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/poppins-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }

/*
 * Headings on Squarespace used Acumin Pro (Adobe Fonts, licensed through
 * Squarespace). Archivo is the stand-in. If an Adobe Fonts kit with
 * acumin-pro is added to the layout later, it takes over automatically
 * because it is first in --heading-font.
 */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/archivo-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/archivo-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/archivo-latin-700-italic.woff2') format('woff2'); }

:root {
  --heading-font: 'acumin-pro', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body-font: 'Poppins', Arial, sans-serif;
  --navy: #1F456E;
  --red: #A91101;
  --text: rgb(18, 18, 18);
  --site-bg: hsl(0, 0%, 96.08%);
}

html, body { width: 100%; max-width: 100%; margin: 0; padding: 0; overflow-x: hidden; font-size: 16px; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: sans-serif;
  color: var(--text);
  background: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Squarespace set the body font on the content area, not on <body>,
   so the nav and footer keep the browser defaults they were written against. */
main#page { display: block; font-family: var(--body-font); font-weight: 300; line-height: 1.8em; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin: 2rem 0;
}
h1 { font-size: 4rem; line-height: 1.104em; }
h2 { font-size: 2.8rem; line-height: 1.1424em; }
h3 { font-size: 2.2rem; line-height: 1.1712em; }
h4 { font-size: 1.6rem; line-height: 1.2em; }
p { margin: 1rem 0; }
a { color: inherit; text-decoration: none; cursor: pointer; }
img { border: 0; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: 100%; margin: 0; }
strong, b { font-weight: 700; }

/* The code-block content was designed to sit edge to edge */
#page img { max-width: 100%; }

/*
 * Spacing Squarespace's layout grid put around the code blocks.
 * Phones: a 6vw gutter on each side, except the brand pages that were set edge to edge.
 * A few text pages also had a 39px band above or below on larger screens.
 */
.sqs-code-container { position: relative; }
@media (max-width: 767px) {
  .sqs-code-container { margin: 0 6vw; }
  .page-cerave-wholesale .sqs-code-container,
  .page-just-for-men-wholesale .sqs-code-container,
  .page-listerine-wholesale .sqs-code-container,
  .page-loreal-wholesale .sqs-code-container,
  .page-summers-eve-wholesale .sqs-code-container { margin: 0; }
}
@media (min-width: 768px) {
  .page-faq .sqs-code-container { padding: 39px 0; }
  .page-privacy-policy .sqs-code-container,
  .page-terms-of-use .sqs-code-container { padding-top: 39px; }
  .page-partner-with-us .sqs-code-container { padding-bottom: 39px; }
}

/* Squarespace's scroll-in animations (preFade / preScale) */
.js .preFade { opacity: 0; transition-property: opacity; }
.js .preScale { opacity: 0; transform: scale(.9); transition-property: transform, opacity; }
.js .preSlide { opacity: 0; transform: translateY(10%); transition-property: transform, opacity; }
.js .preClip { opacity: 0; transition-property: clip-path, opacity; }
.js .fadeIn, .js .scaleIn, .js .slideIn, .js .clipIn { opacity: 1 !important; }
.js .scaleIn, .js .slideIn { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .preFade, .js .preScale, .js .preSlide, .js .preClip { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Plain pages that used native Squarespace blocks (tax exempt, customer application) */
.mi-plain { background: var(--site-bg); padding: 6.6vmax 4vw; }
.mi-plain-inner { max-width: 1240px; margin: 0 auto; }
.mi-plain h1, .mi-plain h2, .mi-plain h4 { color: var(--navy); text-align: center; }
.mi-plain h1 { font-size: calc((4 - 1) * 1.2vw + 1rem); line-height: 1.104; margin: 0 auto 2rem; max-width: 600px; }
.mi-plain h2 { font-size: calc((2.8 - 1) * 1.2vw + 1rem); margin: 0 0 1rem; }
.mi-plain h4 { font-size: calc((1.6 - 1) * 1.2vw + 1rem); margin: 0 0 2.5rem; }
.mi-plain .mi-form { max-width: 760px; margin: 0 auto; }
.mi-plain-logo { display: block; width: 220px; margin: 0 auto 1.5rem; }

/* SEO image page */
.mi-seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; max-width: 1240px; margin: 0 auto; padding: 48px 24px; }
.mi-seo-grid img { width: 100%; height: auto; display: block; }
