@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-LatinExt-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Latin-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-family-primary: "Plus Jakarta Sans", Arial, sans-serif;
  --color-text-primary: #282828;
  --color-text-secondary: #595959;
  --color-primary: #d71921;
  --color-surface-primary: #ffffff;
  --color-surface-subtle: #f6f6f6;
  --color-surface-muted: #f6f4f2;
  --color-surface-accent: #ffe8ea;
  --color-surface-promo: #f7f0e6;
  --color-text-social: #170a03;
  --color-border-subtle: #dadada;
  --site-shell-background-color: #efefef;
  --site-shell-content-max-width: 1080px;
  --site-header-layout-height: 123px;
  --site-header-height: var(--site-header-layout-height);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.lens-flare-surface {
  --lens-flare-edge-leading: rgb(255 255 255 / 2%);
  --lens-flare-edge-trailing: rgb(255 255 255 / 9%);

  position: relative;
  overflow: hidden;
}

.lens-flare-surface--primary {
  --lens-flare-edge-leading: rgb(215 25 33 / 2%);
  --lens-flare-edge-trailing: rgb(215 25 33 / 9%);
}

.lens-flare-surface::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -35%;
  bottom: -35%;
  left: 0;
  width: 248%;
  background: linear-gradient(
    105deg,
    transparent 14%,
    var(--lens-flare-edge-leading) 34%,
    rgb(255 255 255 / 84%) 48%,
    var(--lens-flare-edge-trailing) 56%,
    transparent 78%
  );
  filter: blur(1.5px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-80%) skewX(-16deg);
}

@media (hover: hover) and (pointer: fine) {
  .lens-flare-surface:hover::after {
    animation: lens-flare-sweep 1600ms cubic-bezier(0.2, 0.7, 0.3, 1);
  }
}

@keyframes lens-flare-sweep {
  0% {
    opacity: 0;
    transform: translateX(-80%) skewX(-16deg);
  }

  18%,
  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(30%) skewX(-16deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lens-flare-surface::after {
    animation: none !important;
    opacity: 0;
  }
}

.is-loading {
  --loading-indicator-color: var(--color-primary);
  --loading-indicator-track: rgb(215 25 33 / 24%);
  --loading-indicator-size: 18px;

  position: relative;
  color: transparent !important;
  pointer-events: none;
  text-shadow: none !important;
}

.is-loading > * {
  visibility: hidden !important;
}

.is-loading::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: var(--loading-indicator-size);
  height: var(--loading-indicator-size);
  border: 2px solid var(--loading-indicator-track);
  border-top-color: var(--loading-indicator-color);
  border-radius: 50%;
  animation: loading-indicator-spin 700ms linear infinite;
  pointer-events: none;
  transform: translate(-50%, -50%);
  visibility: visible;
}

.is-loading--on-primary {
  --loading-indicator-color: #fff;
  --loading-indicator-track: rgb(255 255 255 / 38%);
}

.lens-flare-surface.is-loading::after {
  animation: none !important;
  opacity: 0;
}

@keyframes loading-indicator-spin {
  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-loading::before {
    animation: none;
  }
}

/* Shared image slots keep their component-owned size and rounding while an image is prepared. */
.thumbnail-placeholder:has(img[data-thumbnail-generation-requested][data-thumbnail-state]) {
  background-color: #f4f7fb;
}

.thumbnail-placeholder:has(img[data-thumbnail-generation-requested]:is([data-thumbnail-state="loading"], [data-thumbnail-state="pending"])) {
  animation: thumbnail-placeholder-pulse 1600ms ease-in-out infinite;
}

.thumbnail-placeholder img[data-thumbnail-state] {
  visibility: hidden;
}

@keyframes thumbnail-placeholder-pulse {
  0%,
  100% {
    background-color: #f4f7fb;
  }

  50% {
    background-color: #e3eaf3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thumbnail-placeholder:has(img[data-thumbnail-generation-requested][data-thumbnail-state]) {
    animation: none;
  }
}

html,
body {
  min-height: 100%;
}

html {
  scroll-padding-top: var(--site-header-height);
}

/* Keep the sticky header's focused controls inside the viewport used for caret scrolling. */
html:has([data-site-header]:focus-within) {
  scroll-padding-top: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--site-shell-background-color);
  color: var(--color-text-primary);
  font-family: var(--font-family-primary);
}

/* Keep the body out of the scroll-container chain of the viewport-sticky header. */
html:has(body[data-header-menu-open]) {
  overflow: hidden;
}

/* A modal dialog leaves the page behind it still; on a phone the page would otherwise scroll under it. */
html:has(dialog:modal) {
  overflow: hidden;
}

.site-shell {
  container-type: inline-size;
  display: flex;
  position: relative;
  /* Above the footer's layer, so a menu opened near the end of the content is drawn over it. */
  z-index: 2;
  flex: 1 0 auto;
  flex-direction: column;
  /* The fixed branding is outside this query container. Its exposed side rails remain clickable. */
  pointer-events: none;
}

.site-shell__content {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: min(100%, var(--site-shell-content-max-width));
  margin-inline: auto;
  background-color: var(--color-surface-primary);
  pointer-events: auto;
}

.site-shell__main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

@media (max-width: 1080px) {
  body {
    background-color: var(--color-surface-primary);
  }
}

@media (max-width: 767px) {
  :root {
    --site-header-layout-height: 140px;
  }
}
