/* ========================================================================== */
/* Kashish V6 — exact H05 “Modern Poetry” typography system                   */
/* Mirrors the selected V5 direction: Instrument Serif + Instrument Sans,     */
/* T1 Quiet scale (40 / 34 / 13 / 10 / 14). Load as the final CSS layer.      */
/* ========================================================================== */

html[data-theme="v6-modern-poetry"] {
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-ui: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --display-font: var(--font-display);
  --heading-font: var(--font-display);
  --script-font: var(--font-display);
  --body-font: var(--font-ui);
  --v6-h05-hero-size: 40px;
  --v6-h05-section-size: 34px;
  --v6-h05-mega-size: 13px;
  --v6-h05-nav-size: 10px;
  --v6-h05-body-size: 14px;
}

html[data-theme="v6-modern-poetry"],
html[data-theme="v6-modern-poetry"] body,
html[data-theme="v6-modern-poetry"] button,
html[data-theme="v6-modern-poetry"] input,
html[data-theme="v6-modern-poetry"] select,
html[data-theme="v6-modern-poetry"] textarea {
  font-family: var(--font-ui) !important;
}

html[data-theme="v6-modern-poetry"] body {
  font-size: var(--v6-h05-body-size);
}

html[data-theme="v6-modern-poetry"] body :is(p, li, input, select, textarea) {
  font-size: var(--v6-h05-body-size);
}

html[data-theme="v6-modern-poetry"] body :is(
  .display,
  .hero-campaign-title,
  .pdp-title,
  .page-hero h1,
  .utility-page-hero h1,
  .editorial-page h1,
  .editorial-page h2,
  .editorial-page h3,
  .section-heading h2,
  .feature-banner-copy h2,
  .accessories-banner-copy h2,
  .v4-story-panel__copy h2,
  .community-heading h2,
  .manifesto-v2 p,
  .manifesto-v4 p,
  .craft-copy h2,
  .stores-banner-copy h2,
  .newsletter h2,
  .roots-copy h2,
  .footer-paper-edge-v2 p,
  .product-card-info h3,
  .mega-spot-copy strong,
  .search-context
) {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
}

html[data-theme="v6-modern-poetry"] .collection-edit-copy strong {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
}

/* Exact H05 campaign scale and rhythm. */
html[data-theme="v6-modern-poetry"] .hero .hero-campaign-title {
  font-size: var(--v6-h05-hero-size) !important;
  line-height: 1.02 !important;
  letter-spacing: -.025em !important;
}

html[data-theme="v6-modern-poetry"] body :is(
  .section-heading h2,
  .feature-banner-copy h2,
  .accessories-banner-copy h2,
  .v4-story-panel__copy h2,
  .community-heading h2,
  .craft-copy h2,
  .stores-banner-copy h2,
  .newsletter h2,
  .roots-copy h2
) {
  font-size: var(--v6-h05-section-size) !important;
  line-height: 1.08 !important;
  letter-spacing: -.018em !important;
}

/* Internal-page hierarchy follows the same restrained H05 scale. */
html[data-theme="v6-modern-poetry"] body :is(
  .page-hero h1,
  .page-hero .display,
  .utility-page-hero h1,
  .utility-page-hero .display,
  .editorial-hero h1,
  .editorial-page > header h1
) {
  font-size: var(--v6-h05-hero-size) !important;
  line-height: 1.02 !important;
  letter-spacing: -.025em !important;
}

html[data-theme="v6-modern-poetry"] body :is(
  .utility-section-head h2,
  .faq-intro h2,
  .recommendations .section-heading h2,
  .recommendations .section-heading .display,
  .editorial-page section h2,
  .editorial-next h2,
  .footer-newsletter h2
) {
  font-size: var(--v6-h05-section-size) !important;
  line-height: 1.08 !important;
  letter-spacing: -.018em !important;
}

html[data-theme="v6-modern-poetry"] body :is(
  .mega-title,
  .mega-item,
  .mobile-menu-group a,
  .mobile-menu-group h3
) {
  font-size: var(--v6-h05-mega-size) !important;
}

html[data-theme="v6-modern-poetry"] body :is(
  .nav-trigger,
  .header-utility,
  .currency-action span
) {
  font-size: var(--v6-h05-nav-size) !important;
}

/* H05 deliberately keeps customer quotations in a readable sans, not serif. */
html[data-theme="v6-modern-poetry"] .v4-testimonial blockquote {
  font-family: var(--font-ui) !important;
  font-size: clamp(16px, 1.25vw, 19px) !important;
  font-weight: 400 !important;
  line-height: 1.72 !important;
  letter-spacing: -.015em !important;
}

@media (max-width: 680px) {
  html[data-theme="v6-modern-poetry"] .hero .hero-campaign-title {
    font-size: min(var(--v6-h05-hero-size), 11vw) !important;
  }

  html[data-theme="v6-modern-poetry"] body :is(
    .section-heading h2,
    .feature-banner-copy h2,
    .accessories-banner-copy h2,
    .v4-story-panel__copy h2,
    .community-heading h2,
    .craft-copy h2,
    .stores-banner-copy h2,
    .newsletter h2,
    .roots-copy h2,
    .recommendations .section-heading h2,
    .recommendations .section-heading .display
  ) {
    font-size: min(var(--v6-h05-section-size), 9vw) !important;
  }
}
