/**
 * Airbnb Cereal Typography
 * System font fallbacks for Airbnb's custom typeface
 *
 * Since Airbnb Cereal is proprietary, we use system fonts that closely match:
 * - SF Pro Display (macOS/iOS) - Closest match to Cereal
 * - Segoe UI (Windows) - Clean, modern alternative
 * - Roboto (Android) - Google's humanist sans-serif
 */

/* Font Family Stack */
body,
.hc-container,
.hc-title,
.hc-subtitle,
.hc-section-title,
.hc-article-title,
.hc-search-input {
  font-family: var(--hc-font-family-cereal);
}

/* Airbnb Cereal Font Loading */
@font-face {
  font-family: 'Airbnb Cereal';
  src: url('/assets/fonts/cereal/Cereal-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Airbnb Cereal';
  src: url('/assets/fonts/cereal/Cereal-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Airbnb Cereal';
  src: url('/assets/fonts/cereal/Cereal-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Typography Utility Classes */
.hc-font-normal {
  font-weight: var(--hc-font-weight-normal);
}

.hc-font-medium {
  font-weight: var(--hc-font-weight-medium);
}

.hc-font-semibold {
  font-weight: var(--hc-font-weight-semibold);
}

.hc-font-bold {
  font-weight: var(--hc-font-weight-bold);
}


/* Font Size Utilities */
.hc-text-hero {
  font-size: var(--hc-font-size-hero);
  line-height: var(--hc-line-height-tight);
}

.hc-text-h2 {
  font-size: var(--hc-font-size-h2);
  line-height: var(--hc-line-height-base);
}

.hc-text-h3 {
  font-size: var(--hc-font-size-h3);
  line-height: var(--hc-line-height-base);
}

.hc-text-base {
  font-size: var(--hc-font-size-base);
  line-height: var(--hc-line-height-relaxed);
}

.hc-text-small {
  font-size: var(--hc-font-size-small);
  line-height: var(--hc-line-height-base);
}

.hc-text-xs {
  font-size: var(--hc-font-size-xs);
  line-height: var(--hc-line-height-base);
}


/* Anti-aliasing for smoother text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
