/*
 * NOVAE typography system — Avenir editorial rhythm
 *
 * The licensed Avenir LT Std desktop faces are resolved from the visitor's
 * local font library for this preview. Chinese glyphs fall through to the
 * platform CJK sans while Latin letters and numerals retain Avenir's shape.
 */

@font-face {
  font-family: "NOVAE Avenir";
  src: url("/fonts/AvenirLTStd-Roman.otf") format("opentype"),
    local("AvenirLTStd-Roman"), local("Avenir LT Std 55 Roman");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "NOVAE Avenir";
  src: url("/fonts/AvenirLTStd-Medium.otf") format("opentype"),
    local("AvenirLTStd-Medium"), local("Avenir LT Std 65 Medium");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "NOVAE Avenir";
  src: url("/fonts/AvenirLTStd-Heavy.otf") format("opentype"),
    local("AvenirLTStd-Heavy");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-sans: "NOVAE Avenir", "Avenir LT Std", "Avenir Next", Arial,
    "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-cjk: "NOVAE Avenir", "Noto Sans SC", "Microsoft YaHei UI",
    "PingFang SC", Arial, sans-serif;

  --font-light: 400;
  --font-regular: 400;
  --font-medium: 600;
  --font-semibold: 600;
  --font-bold: 700;

  --type-display-xl: clamp(3.25rem, 6.25vw, 6.5rem);
  --type-display-lg: clamp(2.75rem, 5vw, 5.25rem);
  --type-heading-lg: clamp(2.25rem, 3.8vw, 4rem);
  --type-heading-md: clamp(1.75rem, 2.7vw, 2.75rem);
  --type-heading-sm: clamp(1.25rem, 1.65vw, 1.75rem);
  --type-lead: clamp(1.0625rem, 1.35vw, 1.25rem);
  --type-body: 1rem;
  --type-small: .875rem;
  --type-label: .75rem;

  --leading-display: .98;
  --leading-heading: 1.08;
  --leading-body: 1.54;
  --tracking-display: -.036em;
  --tracking-heading: -.022em;
  --tracking-label: .105em;

  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:lang(zh) {
  font-family: var(--font-cjk);
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
  font-weight: var(--font-regular);
}

body {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

p {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

h1 {
  font-size: var(--type-display-xl);
  font-weight: var(--font-light);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--type-heading-lg);
  font-weight: var(--font-bold);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

h3 {
  font-size: var(--type-heading-sm);
  font-weight: var(--font-semibold);
  line-height: 1.15;
  letter-spacing: -.014em;
}

.eyebrow,
.model,
.product-card__text p,
.focus-card__copy p,
.project-card p,
.account-popover__eyebrow {
  font-size: var(--type-label);
  font-weight: var(--font-bold);
  line-height: 1.35;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.site-header nav,
.header-tools,
.mobile-utility-tools,
.language-selector,
.text-link {
  font-size: var(--type-small);
  font-weight: var(--font-medium);
  line-height: 1.2;
  letter-spacing: -.008em;
}

.button,
.nav-cta,
.floating-whatsapp {
  font-size: var(--type-small);
  font-weight: var(--font-semibold);
  line-height: 1;
  letter-spacing: .045em;
}

.professional-hero h1,
.hero h1,
.page-hero h1,
.auth-copy h1,
.not-found h1 {
  font-size: var(--type-display-xl);
  font-weight: var(--font-light);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

.professional-hero__copy > p:not(.eyebrow),
.hero__content > p:not(.eyebrow),
.page-hero p,
.auth-copy > p:last-child,
.contact-panel > p,
.lead {
  font-size: var(--type-lead);
  font-weight: var(--font-regular);
  line-height: 1.55;
  letter-spacing: -.012em;
}

.section-heading h2,
.editorial-heading h2,
.product-information-panel__header h2,
.contact-panel h2,
.prose-page h2,
.empty-state h2 {
  font-weight: var(--font-bold);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

/* Editorial statements use the same light display voice as the hero. */
.intro-section h2,
.project-story__copy h2,
.bespoke-copy h2,
.contact-band h2,
.consultation-band h2 {
  font-weight: var(--font-light);
  line-height: 1.04;
  letter-spacing: -.042em;
}

.product-card__text h3,
.focus-card__copy h3,
.project-card h3,
.inspiration-grid h3,
.service-link strong {
  font-weight: var(--font-semibold);
  line-height: 1.16;
  letter-spacing: -.014em;
}

.inspiration-grid article > p {
  font-weight: var(--font-light);
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.product-detail__summary h1 {
  font-weight: var(--font-light);
  line-height: 1.04;
  letter-spacing: -.032em;
}

.product-detail__summary .lead,
.product-information-panel .rich-content__body p,
.rich-content p,
.prose-page p {
  font-weight: var(--font-regular);
  line-height: 1.58;
  letter-spacing: -.002em;
}

.product-variants h2,
.product-key-specs__header h2,
.product-information-panel .rich-content__body h2,
.specs h2,
.cart-form__header h2,
.header-login-dialog__header h2,
.orders-drawer > header h2 {
  font-weight: var(--font-semibold);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.product-variant strong,
.product-key-specs__header strong,
.product-key-specs__grid dd,
.cart-form label > span,
.cart-form__product dd,
.order-row h3,
.header-search-result strong {
  font-weight: var(--font-semibold);
}

.breadcrumb,
.form-hint,
.gallery-grid figcaption,
.rich-content figcaption,
.product-card__text span,
.service-link small,
.header-search__status,
.header-search-result small,
.site-footer p,
.site-footer a,
.account-popover,
.orders-drawer,
.cart-form {
  line-height: 1.5;
}

.site-footer strong {
  font-size: var(--type-label);
  font-weight: var(--font-bold);
  line-height: 1.35;
  letter-spacing: .09em;
}

.site-footer a,
.site-footer p {
  font-weight: var(--font-regular);
}

@media (max-width: 900px) {
  :root {
    --type-display-xl: clamp(3rem, 10vw, 4.75rem);
    --type-display-lg: clamp(2.5rem, 8vw, 4rem);
    --type-heading-lg: clamp(2rem, 6vw, 3.25rem);
  }
}

@media (max-width: 560px) {
  :root {
    --type-display-xl: clamp(2.75rem, 13vw, 3.75rem);
    --type-display-lg: clamp(2.35rem, 11vw, 3.25rem);
    --type-heading-lg: clamp(1.9rem, 8.5vw, 2.75rem);
    --type-heading-md: clamp(1.65rem, 7vw, 2.25rem);
    --type-lead: 1.0625rem;
    --tracking-display: -.042em;
  }

  .professional-hero h1,
  .hero h1,
  .page-hero h1,
  .auth-copy h1,
  .not-found h1 {
    font-size: var(--type-display-xl);
  }
}
