/* Booking typography source of truth. Sizes and weights belong to components.
 * Preserve Courier Prime's existing Japanese alignment and optical-size correction
 * here for every role, including print, rather than moving individual elements.
 */
@font-face {
  font-family: 'Courier Prime';
  src: url(https://fonts.gstatic.com/s/courierprime/v11/u-450q2lgwslOqpF_6gQ8kELWwY.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
  ascent-override: 85%;
  descent-override: 15%;
  line-gap-override: 0%;
  size-adjust: 120%;
}

@font-face {
  font-family: 'Courier Prime';
  src: url(https://fonts.gstatic.com/s/courierprime/v11/u-4k0q2lgwslOqpF_6gQ8kELY7pMf-c.ttf) format('truetype');
  font-weight: 700;
  font-display: swap;
  ascent-override: 85%;
  descent-override: 15%;
  line-gap-override: 0%;
  size-adjust: 120%;
}

:root {
  --font-latin: 'Courier Prime';
  --font-body: var(--font-latin), 'Zen Kaku Gothic New', sans-serif;
  --font-heading: var(--font-latin), 'Zen Maru Gothic', 'Zen Kaku Gothic New', sans-serif;
  --font-control: var(--font-heading);
  --font-label: var(--font-heading);
  --font-mono: var(--font-body);
}

html {
  font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

html input,
html select,
html textarea,
.font-body,
.font-mono {
  font-family: var(--font-body);
}

html :is(h1, h2, h3, h4, h5, h6, legend, [role='heading']),
.font-heading {
  font-family: var(--font-heading);
}

/* Specificity keeps the role intact when Tailwind's preflight loads later. */
html :is(button, summary, [role='button'], [role='tab'], input[type='button'], input[type='submit'], input[type='reset']),
.font-control,
.mobile-button {
  font-family: var(--font-control);
}

html label,
html th,
.font-label,
.booking-calendar-badge {
  font-family: var(--font-label);
}

.font-mono-numbers {
  font-variant-numeric: tabular-nums;
}
