/* Local typography comparison only. Remove before deployment. */

@font-face {
  font-family: "Kecal";
  src: url("fonts/Kecal-variable-web.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

html[data-type="current"] {
  --font-heading: var(--font-ui);
  --font-display: "Inter", sans-serif;
  --font-lead: var(--font-ui);
  --font-body: var(--font-ui);
}

html[data-type="lato"] {
  --font-heading: "Lato", var(--font-ui);
  --font-display: "Lato", var(--font-ui);
  --font-lead: "Manuale", Georgia, serif;
  --font-body: "Manuale", Georgia, serif;
}

html[data-type="lustria"] {
  --font-heading: "Lustria", Georgia, serif;
  --font-display: "Lustria", Georgia, serif;
  --font-lead: "Arimo", var(--font-ui);
  --font-body: "Arimo", var(--font-ui);
}

html[data-type="kecal"] {
  --font-heading: "Kecal", var(--font-ui);
  --font-display: "Kecal", var(--font-ui);
  --font-lead: "Kecal", var(--font-ui);
  --font-body: "Kecal", var(--font-ui);
}

html[data-type] .name-copy,
html[data-type] .uui-heading-medium,
html[data-type] .uui-heading-xxsmall,
html[data-type] .uui-text-rich-text h2,
html[data-type] .uui-text-rich-text h3 {
  font-family: var(--font-heading);
}

html[data-type] .hero-headline {
  font-family: var(--font-display) !important;
}

html[data-type] .hero-intro,
html[data-type] .hero-intro p,
html[data-type] .uui-text-size-xlarge-5 {
  font-family: var(--font-lead);
}

html[data-type] .uui-text-size-medium,
html[data-type] .uui-text-size-large:not(.bold-text-11):not(.bold-text-12),
html[data-type] .uui-text-rich-text p,
html[data-type] .uui-text-rich-text li,
html[data-type] .list-item-1 {
  font-family: var(--font-body);
}

html[data-type] .bullet1 {
  font-family: "Fa solid 900";
}

/* Lato has no 600. Use the real 700 so headings are not a synthetic bold. */
html[data-type="lato"] .name-copy,
html[data-type="lato"] .uui-heading-medium,
html[data-type="lato"] .uui-heading-xxsmall,
html[data-type="lato"] .uui-text-rich-text h2,
html[data-type="lato"] .uui-text-rich-text h3 {
  font-weight: 700;
  font-synthesis: none;
}

html[data-type="lato"] .hero-rotate,
html[data-type="lato"] .hero-word {
  font-weight: 700 !important;
  font-synthesis: none;
}

html[data-type="lato"] .hero-intro,
html[data-type="lato"] .hero-intro p,
html[data-type="lato"] .uui-text-size-xlarge-5 {
  font-weight: 500;
  line-height: 1.55;
}

html[data-type="lato"] .uui-text-size-medium,
html[data-type="lato"] .uui-text-size-large:not(.bold-text-11):not(.bold-text-12),
html[data-type="lato"] .uui-text-rich-text p,
html[data-type="lato"] .uui-text-rich-text li,
html[data-type="lato"] .list-item-1 {
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
}

/* Lustria ships as a single regular weight. */
html[data-type="lustria"] .name-copy,
html[data-type="lustria"] .uui-heading-medium,
html[data-type="lustria"] .uui-heading-xxsmall,
html[data-type="lustria"] .uui-text-rich-text h2,
html[data-type="lustria"] .uui-text-rich-text h3,
html[data-type="lustria"] .hero-headline,
html[data-type="lustria"] .hero-rotate,
html[data-type="lustria"] .hero-word {
  font-weight: 400 !important;
  font-synthesis: none;
}

@media screen and (min-width: 1440px) {
  html[data-type="lato"] .name-copy,
  html[data-type="kecal"] .name-copy {
    font-size: 62px;
  }

  html[data-type="lustria"] .name-copy {
    font-size: 60px;
  }
}

html[data-type="lustria"] .uui-heading-medium,
html[data-type="lustria"] .uui-text-rich-text h2 {
  line-height: 1.3;
}

html[data-type="lustria"] .hero-intro,
html[data-type="lustria"] .hero-intro p,
html[data-type="lustria"] .uui-text-size-xlarge-5,
html[data-type="lustria"] .uui-text-size-medium,
html[data-type="lustria"] .uui-text-size-large:not(.bold-text-11):not(.bold-text-12),
html[data-type="lustria"] .uui-text-rich-text p,
html[data-type="lustria"] .uui-text-rich-text li,
html[data-type="lustria"] .list-item-1 {
  font-weight: 400;
  line-height: 1.5;
}

/* One family. Size stays as designed; weight separates the levels. */
html[data-type="kecal"] .name-copy {
  font-weight: 700;
  font-synthesis: none;
}

html[data-type="kecal"] .uui-heading-medium,
html[data-type="kecal"] .uui-text-rich-text h2,
html[data-type="kecal"] .uui-text-rich-text h3 {
  font-weight: 650;
  line-height: 1.25;
  font-synthesis: none;
}

html[data-type="kecal"] .uui-heading-xxsmall {
  font-weight: 600;
  font-synthesis: none;
}

html[data-type="kecal"] .hero-headline {
  font-weight: 450 !important;
}

html[data-type="kecal"] .hero-rotate,
html[data-type="kecal"] .hero-word {
  font-weight: 700 !important;
  font-synthesis: none;
}

html[data-type="kecal"] .hero-intro,
html[data-type="kecal"] .hero-intro p,
html[data-type="kecal"] .uui-text-size-xlarge-5 {
  font-weight: 450;
  line-height: 1.5;
}

html[data-type="kecal"] .uui-text-size-medium,
html[data-type="kecal"] .uui-text-size-large:not(.bold-text-11):not(.bold-text-12),
html[data-type="kecal"] .uui-text-rich-text p,
html[data-type="kecal"] .uui-text-rich-text li,
html[data-type="kecal"] .list-item-1 {
  font-weight: 400;
  line-height: 1.55;
  font-synthesis: none;
}

.type-compare {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: min(42rem, calc(100vw - 2rem));
  padding: 0.4rem;
  border: 1px solid rgba(35, 33, 59, 0.14);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 33, 59, 0.12);
  font-family: var(--font-ui);
  color: #23213b;
}

.type-compare-label {
  padding: 0 0.45rem;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.type-compare button {
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #23213b;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  line-height: 1.2;
  cursor: pointer;
}

.type-compare button[aria-checked="true"] {
  background: #23213b;
  color: #fff;
}

.type-compare button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .type-compare {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
    border-radius: 1rem;
  }
}

/* Apply each comparison family across the homepage content. */
html[data-type]:not([data-type="current"]) body :where(
  :not(.type-compare, .type-compare *, svg, svg *, .w-icon-nav-menu, .bullet1, .chevron, .email, .email-copy,
    .text-span-12, .text-span-13, .text-span-14, .text-span-16,
    .text-span-18, .text-span-19, .text-span-20)
) {
  font-family: var(--font-body) !important;
}

html[data-type]:not([data-type="current"]) body :is(
  h1, h2, h3, h4, h5, h6, .home-section-heading
),
html[data-type]:not([data-type="current"]) body :is(h1, h2, h3, h4, h5, h6) :where(:not(svg, svg *)) {
  font-family: var(--font-heading) !important;
}

html[data-type]:not([data-type="current"]) body .hero-headline,
html[data-type]:not([data-type="current"]) body .hero-headline :where(span) {
  font-family: var(--font-display) !important;
}
