/* Shared type system. Manrope supplies Latin letters and numbers; Pretendard supplies Hangul. */
:root {
  --site-font: "Manrope Variable", "Pretendard Variable", system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --type-ink: #292f2c;
  --type-secondary: #535e58;
  --type-body: 15px;
  --type-note: 13px;
  --type-heading: clamp(30px, 4.2vw, 46px);
  --type-section: clamp(22px, 2.7vw, 29px);
}

body { font-family: var(--site-font); font-size: var(--type-body); line-height: 1.65; }
:where(button, input, select, textarea) { font-family: inherit; }
:where(h1, h2, h3, p, summary, th, td, button, legend, label) { overflow-wrap: break-word; }

main :is(.hero, .intro) h1 {
  font-size: var(--type-heading);
  line-height: 1.24;
  font-weight: 760;
  letter-spacing: -.035em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
main :is(.hero, .intro) > p,
main .hero > div:first-child > p {
  color: var(--type-secondary);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
}
main .section-title h2 { font-size: var(--type-section); line-height: 1.35; font-weight: 720; }
main :is(p, li, dd) { text-underline-offset: .16em; }
main :is(.fine, .fine-print, .small-note, .source-note, .muted, .faq-updated, .faq-search-result) {
  color: var(--type-secondary);
  font-size: max(var(--type-note), 1em - 1px);
  line-height: 1.6;
}
main .eyebrow { color: #53614c; font-weight: 700; }
main :is(button.primary, a.primary, .consultation-option-actions > .pill),
#modal :is(button.primary, .consult-types label) {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}
input::placeholder, textarea::placeholder { color: #596760; }

#schools .filters :is(input, select), .faq-search input,
#modal :is(input, select, textarea), .booking-zone-label select {
  font-family: var(--site-font);
  font-size: 16px;
  line-height: 1.4;
}
#cards :is(.school-korean, .school-bilingual) { overflow-wrap: anywhere; }
#cards :is(.card-description, .card-city, .card-cost-note) { color: var(--type-secondary); }
#cards .card-actions button { font-size: 13px; font-weight: 640; }
#cards :is(.card-price-amount, .compact-rate, .card-weekly-price strong),
table :is(th, td), .booking-calendar { font-variant-numeric: tabular-nums lining-nums; }
table :is(th, td) { line-height: 1.5; }
.faq-page .faq-answer p { color: var(--type-ink); font-size: var(--type-body); line-height: 1.8; }
.booking-calendar .booking-calendar-legend { color: var(--type-secondary); font-size: var(--type-note); }

@media (max-width: 480px) {
  :root { --type-heading: clamp(28px, 8vw, 36px); }
  #modal .booking-calendar .booking-day { padding-inline: 0; }
  #modal .booking-calendar .booking-day small { font-size: 10px; }
  #modal .booking-calendar .booking-weekday { padding-inline: 0; }
  #cards .card-actions button { white-space: normal; }
}
