/**
 * NeuraMod site typography — hero-anchored type scale
 * ───────────────────────────────────────────────────
 * Hero display: clamp(18px, 4vw, 24px) — largest intentional size
 * Section titles: ≤ ~26px
 * Body: 15–16px
 * Header chrome: 15–16px (just under body feeling)
 */

:root {
  --font-heading-scale: 0.6875; /* Dawn 1.1 × 0.625 for 16px rem */
  --nm-text-hero: clamp(18px, 4vw, 24px);
  --nm-text-display: clamp(18px, 3.2vw, 26px);
  --nm-text-title: clamp(15px, 2.2vw, 18px);
  --nm-text-body: 1rem; /* 16px */
  --nm-text-body-sm: 0.9375rem; /* 15px */
  --nm-text-body-lg: 1.0625rem; /* 17px supporting copy */
  --nm-text-chrome: 0.9375rem; /* 15px */
  --nm-text-small: 0.8125rem; /* 13px */
}

html {
  font-size: calc(var(--font-body-scale, 1) * 100%) !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: var(--nm-text-body-sm) !important;
  letter-spacing: 0.02em;
}

@media screen and (min-width: 750px) {
  body {
    font-size: var(--nm-text-body) !important;
  }
}

/* Header chrome — readable, under hero */
.announcement-bar__message,
.announcement-bar__message.h5,
.announcement-bar-section .announcement-bar__message {
  font-size: var(--nm-text-chrome) !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em !important;
  font-weight: 600 !important;
}

.announcement-bar .icon-arrow,
.announcement-bar__message svg.icon-arrow {
  width: 0.75rem !important;
  height: 0.55rem !important;
  max-width: 0.9rem !important;
  max-height: 0.7rem !important;
}

.header__inline-menu .header__menu-item,
.header__menu-item {
  font-size: var(--nm-text-chrome);
  font-weight: 500;
  padding: 0.4rem 0.7rem;
}

@media screen and (min-width: 990px) and (max-width: 1280px) {
  .header__inline-menu .header__menu-item {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    font-size: 0.8125rem;
  }
}

.header__icons .header__get-started,
a.header__get-started.link {
  font-size: 0.8125rem !important;
  padding: 0.32rem 1rem !important;
  min-height: 1.65rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

.announcement-bar__github-count {
  font-size: 0.8125rem !important;
}

.menu-drawer__menu-item {
  font-size: 1rem;
}

/* Dawn theme buttons still oversized without this */
.button,
.shopify-challenge__button,
button.shopify-payment-button__button--unbranded {
  font-size: 0.9375rem;
}
