:root {
  --text-base: 1rem;
  --text-small: .875rem;
  --text-caption: .8125rem;
  --text-label: .75rem;
  --announcement-height: 40px;
  --sticky-header-height: 143px;
  --sticky-offset: calc(var(--announcement-height) + var(--sticky-header-height) + 16px);
}

html { scroll-padding-top: var(--sticky-offset); }
body { font-size: var(--text-base); line-height: 1.6; }

.announcement-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--announcement-height);
  font-size: var(--text-small);
}
.announcement-private { font-size: var(--text-label); }
.announcement-message:after { font-size: var(--text-label); }
.site-header { top: var(--announcement-height); z-index: 20; }
.site-header nav a, .site-header nav button { font-size: var(--text-base); }
.site-header .cart-trigger { font-size: .9375rem; }
.cart-count { font-size: var(--text-label); width: 25px; height: 25px; }
.page-aside { top: var(--sticky-offset); }

.eyebrow, .detail-config .eyebrow, .cart-head .eyebrow,
.advice-copy .eyebrow, .info-page .eyebrow, .page-aside .eyebrow,
.contact-consult .eyebrow, .consult-dialog .eyebrow, .summary-dialog .eyebrow {
  font-size: var(--text-label);
}
.hero-intro, .principles strong, .advice-copy strong,
.advice-copy>p:not(.eyebrow), .model-spec summary, .config-group legend,
.consult-dialog legend, .consult-dialog .intro, .summary-dialog .intro {
  font-size: var(--text-base);
}
.button { font-size: var(--text-base); min-height: 48px; }
.text-link { font-size: .9375rem; }
.hero-footnote, .hero-image-note>span, .image-index,
.hero-visual-pastel .hero-image-note>span,
.principles div div>span, .card-label, .card-details,
.dialog-topline, .zoom-label, .photo-caption, .required-text,
.palette-note, .config-help, .parts .parts-title, .cart-item .item-label,
.prototype-note, .consult-note, .prototype-cart {
  font-size: var(--text-caption);
}
.hero-image-note button, .hero-visual-pastel .hero-image-note button {
  font-size: .9375rem;
}
.section-heading>p, .advice-copy li p, .catalog-note,
.catalog-note p, footer>p, .footer-identity>p, .footer-links,
.model-spec p, .spec-row, .price-sub, .parts, .collection-control,
.selected-description, .selected-row .selected-description, .progress-info,
.validation-message, .field-error, .cart-options, .summary-line,
.summary-product, .summary-product p, .confirmation-note,
.pending-total, .load-more-wrap p, .page-breadcrumb {
  font-size: var(--text-small);
}
.recommendation, .recommendation p, .cart-empty p { font-size: .9375rem; }
.recommendation .text-link { font-size: var(--text-small); }
.category-tabs button { font-size: var(--text-base); }
.category-tabs span { font-size: var(--text-label); }
.catalog-tools { flex-wrap: wrap; }
.catalog-tools .search-box input { font-size: var(--text-base); width: 220px; }
.catalog-meta, .catalog-meta select, .extra-filters label {
  font-size: var(--text-small);
}
.catalog-meta { flex-wrap: wrap; gap: 12px; }
.extra-filters { flex-wrap: wrap; }
.product-badge { font-size: var(--text-label); }
.card-info { flex-wrap: wrap; row-gap: 7px; }
.card-info>div { min-width: 0; }
.card-title { font-size: 1.625rem; }
.card-price, .line-price { font-size: var(--text-base); }
.pending-price, .card-price.pending-price { font-size: var(--text-small)!important; }
.detail-price { font-size: 1.75rem; }
.detail-price.pending-price { font-size: var(--text-base)!important; }
.collection-control { flex-wrap: wrap; }
.collection-control select { font-size: var(--text-base); min-height: 40px; }
.swatch { font-size: var(--text-caption); line-height: 1.35; min-height: 80px; padding: 9px 6px; overflow-wrap: anywhere; }
.swatch.selected:after { font-size: var(--text-label); }
.swatch-preview.text-link { font-size: var(--text-caption); white-space: normal; }
.quantity button { font-size: 1.25rem; min-height: 44px; }
.quantity input { font-size: var(--text-base); }
.cart-item h3 { font-size: 1.5rem; }
.cart-item-controls .quantity { min-width: 104px; height: 40px; }
.cart-item-controls .quantity button { font-size: 1.125rem; min-height: 38px; width: 31px; }
.cart-item-controls .quantity span { font-size: var(--text-base); }
.cart-item-controls .text-link { font-size: var(--text-small); }
.summary-line.total, .summary-line.total>span { font-size: 1rem; }
.summary-line.total strong { font-size: 1.75rem; }
.summary-product>div:first-child { font-size: var(--text-base); }
.choice-buttons span { font-size: .9375rem; }
.zoom-title, .toast { font-size: .9375rem; }
.info-page p:not(.eyebrow):not(.page-lead),
.about-intro>div>p:not(.eyebrow):not(.page-lead),
.process-list strong, .contact-topics li { font-size: var(--text-base); }
.contact-form-panel label, .contact-result .text-link { font-size: var(--text-small); }
.contact-form-panel input, .contact-form-panel textarea { font-size: var(--text-base); }
.contact-details-note { font-size: var(--text-small)!important; }

@media (max-width: 1100px) {
  :root { --sticky-header-height: 125px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: .9375rem; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 44px; height: 44px; gap: 5px; margin-left: auto; }
  .menu-toggle span { display: block; width: 21px; height: 1px; background: var(--ink); }
  .site-header #primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 13px 5% 22px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 15px 20px #29362410; gap: 0; flex-direction: column; align-items: stretch; }
  .site-header #primary-nav.menu-open { display: flex; }
  .site-header #primary-nav a { display: block!important; font-size: var(--text-base); text-align: left; max-width: none; min-height: 48px; padding: 12px 5px; border-bottom: 1px solid var(--line); }
  .cart-trigger>span:not(.cart-count) { display: none; }
}

@media (max-width: 820px) {
  :root { --sticky-header-height: 108px; }
}

@media (max-width: 760px) {
  .category-tabs { flex-wrap: wrap; justify-content: flex-start; gap: 0 20px; overflow-x: visible; }
  .category-tabs button { font-size: .9375rem; }
  .catalog-tools .search-box input { width: 100%; min-width: 0; }
  .catalog-meta select { font-size: var(--text-small); }
  .card-title { font-size: 1.5rem; }
  .card-price { font-size: var(--text-base); }
  .card-label, .card-details { font-size: var(--text-label); }
  .purchase-row { flex-wrap: wrap; }
  .purchase-row>.button { flex: 1 1 180px; }
  .swatches { max-height: 250px; }
}

@media (max-width: 600px) {
  :root { --sticky-header-height: 103px; }
  .announcement-bar { font-size: var(--text-caption); }
  .announcement-private { font-size: .6875rem; }
  .detail-config { padding: 25px 5%; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
