:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --type-caption: .8125rem;
  --type-label: .875rem;
  --type-control: .9375rem;
  --type-body: 1.0625rem;
  --type-section: clamp(1.5rem, 1.28rem + .95vw, 2.125rem);
  --type-title: clamp(1.875rem, 1.52rem + 1.65vw, 2.875rem);
  --type-display: clamp(2rem, 1.6rem + 2.55vw, 3.75rem);
  --leading-ui: 1.4;
  --leading-copy: 1.65;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  font-family: var(--font-ui);
  font-optical-sizing: auto;
}

body { line-height: 1.5; }
textarea { font: inherit; }

.brand {
  font-weight: var(--weight-semibold);
  letter-spacing: normal;
  line-height: 1.22;
}
.brand small { font-size: .6875rem; letter-spacing: .025em; }
.cart-count { font-family: inherit; }
.utility, .page-trail ol { font-size: var(--type-caption); }
.page-trail strong { font-weight: var(--weight-semibold); }
.nav-trigger, #nav > .nav-contact, .checkout-header nav a {
  font-size: var(--type-label);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-ui);
}
.button, .footer .contact-chat, .footer .contact-copy {
  font-size: var(--type-control);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}
.text-link, .detail-back {
  font-size: var(--type-label);
  font-weight: var(--weight-semibold);
  letter-spacing: normal;
}

.hero .hero-copy h1,
.buying-hero h1,
[data-store-blog] .journal-banner h1 {
  font-size: var(--type-display);
  font-weight: var(--weight-semibold);
  line-height: 1.13;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.hero .hero-copy h1 { max-inline-size: none; }
.hero-text, .hero-department small { text-wrap: balance; }
.hero-text, .buying-intro, .catalog-heading p,
[data-store-blog] .journal-banner > .shell > p {
  max-inline-size: 35em;
  font-size: var(--type-body);
  line-height: var(--leading-copy);
}
.hero-department strong {
  font-size: clamp(1rem, .94rem + .85vw, 1.5rem);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}
.hero-department small {
  font-size: var(--type-caption);
  font-weight: var(--weight-medium);
  line-height: 1.45;
}

.catalog-heading h1, #details .detail-info h1, .checkout-shell h1,
[data-store-blog] :is(.journal-story-head, .journal-error) h1 {
  font-size: var(--type-title);
  font-weight: var(--weight-semibold);
  line-height: 1.22;
  letter-spacing: -.017em;
  text-wrap: balance;
}
.section h2, .hero-spotlight h2, .buying-section h2, .buying-list-title,
#description > h2,
[data-store-blog] :is(.journal-promo, .journal-related, .journal-empty) > h2 {
  font-size: var(--type-section);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  letter-spacing: -.012em;
}
.section-heading p:not(.eyebrow), .faq > div > p:not(.eyebrow),
.support-banner p, .guide-card p, .buying-faq p, .edition-cards p {
  font-size: var(--type-control);
  line-height: var(--leading-copy);
}
.guide-card h3, .collection-card h3, .edition-card-top h3 {
  font-weight: var(--weight-semibold);
  line-height: var(--leading-ui);
}
.buy-table-wrap table, .faq-list summary, .store-info p {
  font-size: var(--type-control);
}
.faq-list details p { font-size: 1rem; line-height: var(--leading-copy); }

.product h3, .hero-spotlight .product h3 {
  font-size: clamp(.9375rem, .88rem + .25vw, 1.0625rem);
  font-weight: var(--weight-semibold);
  line-height: 1.38;
  letter-spacing: normal;
}
.product-meta :is(.product-tag, .product-system) {
  font-size: .75rem;
  font-weight: var(--weight-medium);
  line-height: 1.35;
}
.product .price,
#details .detail-purchase .price,
.checkout-total strong, .subtotal strong {
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-bold);
  line-height: 1.16;
  letter-spacing: -.018em;
}
.product .price { font-size: clamp(1.25rem, 1.13rem + .46vw, 1.5rem); }
.product :is(.current-price-label, .reference-price) { font-size: .75rem; line-height: 1.4; }
.product .current-price-label { font-weight: var(--weight-medium); }
.product-tail > .button { font-size: var(--type-label); }
.product .price-difference { font-size: .6875rem; line-height: 1.35; }

#details .detail-info .product-platforms :is(strong, a) {
  font-size: var(--type-control);
  line-height: var(--leading-ui);
}
#details .detail-purchase .price { font-size: clamp(1.875rem, 1.58rem + 1.05vw, 2.5rem); }
#details .detail-purchase :is(.current-price-label, .reference-price) { font-size: var(--type-label); }
.detail-compatibility .product-facts dt {
  font-size: var(--type-label);
  font-weight: var(--weight-medium);
}
.detail-compatibility .product-facts dd {
  font-size: var(--type-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-ui);
}
.detail-compatibility .system-note { font-size: var(--type-control); line-height: var(--leading-copy); }
.detail-tabs { font-size: var(--type-control); font-weight: var(--weight-semibold); }
.product-guide, .detail-content > #purchase-help {
  font-size: 1rem;
  line-height: 1.7;
}
.product-guide > .guide-overview { font-size: var(--type-body); }
.product-guide h3 { font-weight: var(--weight-semibold); line-height: 1.35; }
.product-guide :is(.guide-apps dt, .guide-questions summary) { font-weight: var(--weight-semibold); }
.product-guide > section > p { max-inline-size: 44em; }

.search-field input, .checkout-email input,
[data-store-blog] .journal-search input,
#guest-support :is(textarea, input, select) { font-size: 1rem; }
.search-suggestions strong, .cart-item h3 { font-size: var(--type-control); font-weight: var(--weight-semibold); }
.search-suggestions small, .cart-item p, .drawer-foot p {
  font-size: var(--type-caption);
  line-height: 1.5;
}
.checkout-lead { font-size: var(--type-body); line-height: var(--leading-copy); }
.checkout-card h2, .paid-dialog h2 {
  font-size: clamp(1.25rem, 1.12rem + .55vw, 1.5rem);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
}
.checkout-items li strong, .checkout-orders strong { font-weight: var(--weight-semibold); }
.checkout-total strong { font-size: clamp(1.75rem, 1.38rem + 1.4vw, 2.25rem); }
.checkout-email label { font-size: var(--type-control); font-weight: var(--weight-semibold); }
.checkout-email p, .payment-countdown { font-size: var(--type-label); line-height: 1.55; }
.payment-method { font-size: var(--type-control); font-weight: var(--weight-semibold); }
.checkout-shell article.checkout-card { font-size: var(--type-body); line-height: 1.7; }
.checkout-shell article.checkout-card h2:not(:first-child) { margin-block-start: 1.25em; }
.checkout-shell article.checkout-card p { max-inline-size: 43em; }

[data-store-blog] .journal-card-body h2 { font-weight: var(--weight-semibold); line-height: 1.34; }
[data-store-blog] .journal-card-body p { font-size: var(--type-control); line-height: var(--leading-copy); }
[data-store-blog] .journal-prose {
  max-inline-size: 42em;
  margin-inline: auto;
  font-size: var(--type-body);
  line-height: 1.76;
}
[data-store-blog] .journal-prose h2 { font-size: clamp(1.375rem, 1.22rem + .65vw, 1.75rem); }
[data-store-blog] .journal-prose h3 { font-size: 1.1875rem; }
[data-store-blog] .journal-prose :is(h2, h3, h4) {
  font-weight: var(--weight-semibold);
  line-height: 1.38;
  text-wrap: balance;
}
#guest-support, #site-language-control :is(.site-language-dialog, .site-language-toggle, h2) {
  font-family: inherit;
}
.footer :is(.footer-links, .contact-method dt) { font-size: var(--type-caption); line-height: 1.5; }
.footer small, .checkout-footer { font-size: var(--type-caption); line-height: 1.55; }

@media (max-width: 740px) {
  .hero-text, .buying-intro, .catalog-heading p { font-size: 1rem; }
  .hero-copy .hero-actions .button, .product-tail > .button { font-size: var(--type-label); }
  .hero-department small { font-size: .75rem; }
  .product-meta :is(.product-tag, .product-system) { font-size: .6875rem; }
  .product .price { font-size: clamp(1.1875rem, .98rem + .95vw, 1.375rem); }
  .product :is(.current-price-label, .reference-price) { font-size: .6875rem; }
  .checkout-header nav a { font-size: var(--type-caption); }
  [data-store-blog] .journal-prose { font-size: 1rem; }
}

@media (min-width: 741px) and (max-width: 920px) {
  .hero .hero-copy h1 { font-size: clamp(2.25rem, 7.2vw - 1.08rem, 3.0625rem); }
  .hero-department strong { font-size: clamp(1.0625rem, 2.25vw, 1.25rem); }
}

@media (min-width: 761px) and (max-width: 920px) {
  #details .detail-info h1 { font-size: clamp(2rem, 4.2vw, 2.5rem); }
}

@media (min-width: 360px) and (max-width: 480px) {
  .hero-spotlight .product h3 { min-block-size: 2.76em; }
  .hero-spotlight .product-meta {
    min-block-size: 48px;
    align-content: flex-start;
  }
  .hero-spotlight .product-meta :is(.product-tag, .product-system) {
    min-block-size: 22px;
    padding-inline: 5px;
  }
}
