/* ==========================================================================
   Vital Wellness — Typography System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. @font-face Declarations
   
   NOTE: Nohemi is a licensed typeface. Drop licensed WOFF2 files into
   /assets/ with these filenames. Until then, the system falls back
   to Inter → system-ui.
   
   HK Grotesk is open source — files can be sourced from fontsource.org
   -------------------------------------------------------------------------- */

/* Webfont: HK Grotesk / Hanken Grotesk (Body & UI) */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..900;1,300..900&display=swap');

/* Webfont: Nohemi (Display & Headings) - Local & CDN Fallback */
@font-face {
  font-family: 'Nohemi';
  src: url('/assets/fonts/Nohemi-Bold.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/npm/@tamagui/font-nohemi@3.0.3/fonts/Nohemi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('/assets/fonts/Nohemi-SemiBold.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/npm/@tamagui/font-nohemi@3.0.3/fonts/Nohemi-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('/assets/fonts/Nohemi-Medium.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/npm/@tamagui/font-nohemi@3.0.3/fonts/Nohemi-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('/assets/fonts/Nohemi-Regular.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/npm/@tamagui/font-nohemi@3.0.3/fonts/Nohemi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('/assets/fonts/Nohemi-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('/assets/fonts/Nohemi-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Local Hanken Grotesk font declarations */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk-800.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Alias HK Grotesk to local Hanken Grotesk files */
@font-face {
  font-family: 'HK Grotesk';
  src: url('/assets/fonts/HankenGrotesk-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('/assets/fonts/HankenGrotesk-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('/assets/fonts/HankenGrotesk-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Heading Styles
   -------------------------------------------------------------------------- */

/* Display — oversized hero headlines */
.vw-display {
  font-family: var(--vw-font-display);
  font-weight: var(--vw-weight-bold);
  font-size: var(--vw-text-display);
  line-height: var(--vw-leading-tight);
  letter-spacing: var(--vw-tracking-tight);
  color: var(--vw-fg, var(--vw-charcoal));
  text-wrap: balance;
}

/* H1 */
.vw-h1,
body.vw-brand h1 {
  font-family: var(--vw-font-display);
  font-weight: var(--vw-weight-bold);
  font-size: var(--vw-text-h1);
  line-height: var(--vw-leading-tight);
  letter-spacing: var(--vw-tracking-tight);
  color: var(--vw-fg, var(--vw-charcoal));
  text-wrap: balance;
  margin: 0 0 var(--vw-space-md) 0;
}

/* H2 */
.vw-h2,
body.vw-brand h2 {
  font-family: var(--vw-font-display);
  font-weight: var(--vw-weight-semibold);
  font-size: var(--vw-text-h2);
  line-height: var(--vw-leading-snug);
  letter-spacing: var(--vw-tracking-tight);
  color: var(--vw-fg, var(--vw-charcoal));
  text-wrap: balance;
  margin: 0 0 var(--vw-space-md) 0;
}

/* H3 */
.vw-h3,
body.vw-brand h3 {
  font-family: var(--vw-font-display);
  font-weight: var(--vw-weight-semibold);
  font-size: var(--vw-text-h3);
  line-height: var(--vw-leading-snug);
  letter-spacing: var(--vw-tracking-normal);
  color: var(--vw-fg, var(--vw-charcoal));
  margin: 0 0 var(--vw-space-sm) 0;
}

/* H4 */
.vw-h4,
body.vw-brand h4 {
  font-family: var(--vw-font-body);
  font-weight: var(--vw-weight-semibold);
  font-size: var(--vw-text-h4);
  line-height: var(--vw-leading-snug);
  letter-spacing: var(--vw-tracking-normal);
  color: var(--vw-fg, var(--vw-charcoal));
  margin: 0 0 var(--vw-space-sm) 0;
}

/* H5 */
.vw-h5,
body.vw-brand h5 {
  font-family: var(--vw-font-body);
  font-weight: var(--vw-weight-semibold);
  font-size: var(--vw-text-h5);
  line-height: var(--vw-leading-snug);
  letter-spacing: var(--vw-tracking-normal);
  color: var(--vw-fg, var(--vw-charcoal));
  margin: 0 0 var(--vw-space-sm) 0;
}

/* H6 */
.vw-h6,
body.vw-brand h6 {
  font-family: var(--vw-font-body);
  font-weight: var(--vw-weight-semibold);
  font-size: var(--vw-text-body);
  line-height: var(--vw-leading-snug);
  letter-spacing: var(--vw-tracking-wide);
  text-transform: uppercase;
  color: var(--vw-fg, var(--vw-charcoal));
  margin: 0 0 var(--vw-space-sm) 0;
}

/* --------------------------------------------------------------------------
   3. Body Copy
   -------------------------------------------------------------------------- */

.vw-body-lg {
  font-family: var(--vw-font-body);
  font-size: var(--vw-text-body-lg);
  line-height: var(--vw-leading-normal);
  font-weight: var(--vw-weight-regular);
}

.vw-body {
  font-family: var(--vw-font-body);
  font-size: var(--vw-text-body);
  line-height: var(--vw-leading-normal);
  font-weight: var(--vw-weight-regular);
}

.vw-body-sm {
  font-family: var(--vw-font-body);
  font-size: var(--vw-text-body-sm);
  line-height: var(--vw-leading-normal);
  font-weight: var(--vw-weight-regular);
}

/* --------------------------------------------------------------------------
   4. Utility Text Styles
   -------------------------------------------------------------------------- */

/* Overline — small uppercase label */
.vw-overline {
  font-family: var(--vw-font-body);
  font-size: var(--vw-text-overline);
  font-weight: var(--vw-weight-semibold);
  letter-spacing: var(--vw-tracking-widest);
  text-transform: uppercase;
  line-height: var(--vw-leading-snug);
  color: var(--vw-fg-muted, var(--vw-gray-500));
}

/* Caption — small supporting text */
.vw-caption {
  font-family: var(--vw-font-body);
  font-size: var(--vw-text-caption);
  font-weight: var(--vw-weight-regular);
  line-height: var(--vw-leading-normal);
  color: var(--vw-fg-muted, var(--vw-gray-500));
}

/* Lead — emphasized intro paragraph */
.vw-lead {
  font-family: var(--vw-font-body);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: var(--vw-leading-relaxed);
  font-weight: var(--vw-weight-regular);
  color: var(--vw-fg-muted, var(--vw-gray-700));
  text-wrap: pretty;
}

/* Eyebrow — section label above headings */
.vw-eyebrow {
  display: inline-block;
  font-family: var(--vw-font-body);
  font-size: var(--vw-text-caption);
  font-weight: var(--vw-weight-semibold);
  letter-spacing: var(--vw-tracking-wider);
  text-transform: uppercase;
  color: var(--vw-accent, var(--vw-orange));
  margin-bottom: var(--vw-space-sm);
}

/* Rich text content area */
.vw-richtext {
  font-family: var(--vw-font-body);
  font-size: var(--vw-text-body);
  line-height: var(--vw-leading-relaxed);
  color: var(--vw-fg-muted, var(--vw-gray-700));
}

.vw-richtext p {
  margin: 0 0 var(--vw-space-md) 0;
}

.vw-richtext p:last-child {
  margin-bottom: 0;
}

.vw-richtext strong {
  font-weight: var(--vw-weight-semibold);
  color: var(--vw-fg, var(--vw-charcoal));
}

.vw-richtext a {
  color: var(--vw-accent, var(--vw-orange));
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--vw-duration-fast) var(--vw-ease-out);
}

.vw-richtext a:hover {
  color: var(--vw-accent-hover, var(--vw-orange-hover));
}

.vw-richtext ul,
.vw-richtext ol {
  padding-left: var(--vw-space-lg);
  margin: 0 0 var(--vw-space-md) 0;
}

.vw-richtext li {
  margin-bottom: var(--vw-space-xs);
}

/* --------------------------------------------------------------------------
   5. Section Heading Pattern
   -------------------------------------------------------------------------- */

.vw-section-header {
  text-align: center;
  max-width: var(--vw-container-content);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--vw-space-2xl);
}

.vw-section-header--left {
  text-align: left;
  margin-left: 0;
}

.vw-section-header .vw-eyebrow {
  margin-bottom: var(--vw-space-sm);
}

.vw-section-header .vw-h2 {
  margin-bottom: var(--vw-space-md);
}

.vw-section-header .vw-lead {
  max-width: var(--vw-container-text);
  margin-left: auto;
  margin-right: auto;
}

.vw-section-header--left .vw-lead {
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   6. Accent / Highlight Spans
   -------------------------------------------------------------------------- */

.vw-text-orange {
  color: var(--vw-orange);
}

.vw-text-teal {
  color: var(--vw-teal);
}

.vw-text-highlight {
  position: relative;
  display: inline;
}

.vw-text-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--vw-orange-light);
  opacity: 0.35;
  border-radius: 2px;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   7. List Styles
   -------------------------------------------------------------------------- */

.vw-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vw-check-list li {
  position: relative;
  padding-left: var(--vw-space-lg);
  margin-bottom: var(--vw-space-sm);
  font-size: var(--vw-text-body);
  line-height: var(--vw-leading-normal);
}

.vw-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--vw-teal);
  font-weight: var(--vw-weight-bold);
  font-size: 0.875em;
}

/* --------------------------------------------------------------------------
   8. Global Font Enforcement & Fallback Protection
   -------------------------------------------------------------------------- */
body, body.vw-brand, p, li, span, a {
  font-family: var(--vw-font-body);
}

h1, h2, h3, h4,
.vw-display, .vw-h1, .vw-h2, .vw-h3,
.vw-hero__title,
.vw-section-heading__title,
.vw-bundle-card__bottles,
.vw-bundle-card__per-bottle,
.vw-promo-modal__title,
.vw-cart-drawer__title,
.vw-closing-cta__title {
  font-family: var(--vw-font-display) !important;
}

button, input, select, textarea, optgroup,
.vw-btn, .button, .btn {
  font-family: var(--vw-font-body);
}
