/* ============================================================
   English typography (en/*.html only; scripts/build-en.js links it
   just before styles/preflight.css). Korean pages never load this file.

   Two faces from Google Fonts (link in each English head):
   - Cormorant Garamond 500 / 600, italic 500: headlines, hero titles,
     exhibition and section titles. 500 at 24px and up, 600 below 24px,
     never below 18px (smaller serif text switches to Inter).
     Italic only on the desktop hero.
   - Inter 400 / 500 / 600: body, prices, dates, labels, buttons, nav,
     tab bar, form fields, status tags. 400 body, 500 buttons and labels.

   The generator points every font stack in the pages' own CSS at
   --en-serif or --en-sans; the rules below cover the shared stylesheets
   and the role fixes the page CSS cannot express on its own.
   ============================================================ */

html[lang="en"] {
  --en-serif: "Cormorant Garamond", Georgia, serif;
  --en-sans: "Inter", system-ui, sans-serif;
  /* font variables used by the shared stylesheets */
  --font-kr: var(--en-sans);
  --font-sans: var(--en-sans);
  --mob-sans: var(--en-sans);
  --mob-serif: var(--en-serif);
}
html[lang="en"] body { font-family: var(--en-sans); }
html[lang="en"] .font-sans { font-family: var(--en-sans); }
html[lang="en"] .font-serif { font-family: var(--en-serif); }

/* ---------- shared stylesheets: literal font stacks (site-header.css) ---------- */
html[lang="en"] #site-header .header-wordmark,
html[lang="en"] .stay-heading-en { font-family: var(--en-serif); }
html[lang="en"] #site-header #search-btn,
html[lang="en"] #site-header #menu-btn,
html[lang="en"] .nav-link-ko,
html[lang="en"] .nav-link-en,
html[lang="en"] .info-link,
html[lang="en"] .pane-label,
html[lang="en"] .pane-handle,
html[lang="en"] .stay-form input[type="email"],
html[lang="en"] .stay-consent,
html[lang="en"] .skip-to-content,
html[lang="en"] .mag-search-hint,
html[lang="en"] #mag-search-dialog kbd { font-family: var(--en-sans); }

/* newsletter thank-you note (js/subscribe.js sets its fonts inline) */
html[lang="en"] .subscribe-welcome > * { font-family: var(--en-sans) !important; }

/* ---------- Role rules ----------
   Prefix html[lang="en"]:not(#_a):not(#_b): the two :not(#id) add id weight, so these
   win over the pages' own !important heading rules (e.g. .t-h1[data-ko]). The headline
   list sits in :where() so the exceptions below (one class more) override it. */

/* 1. Headlines: Cormorant Garamond 500, upright.
   Page and section titles (h1, h2 and the classes styled as them), the homepage section
   titles set as p / span, the Venue Rental contact line, the 404 message, chapter numerals. */
html[lang="en"]:not(#_a):not(#_b) :where(h1, h2, .t-display, .t-h1, .t-h2),
html[lang="en"]:not(#_a):not(#_b) :where(h1, h2, .t-display, .t-h1, .t-h2) :where(:not(svg, svg *)),
html[lang="en"]:not(#_a):not(#_b) .banners__title-ko,
html[lang="en"]:not(#_a):not(#_b) .editorial-section__eyebrow-ko,
html[lang="en"]:not(#_a):not(#_b) .plan-visit__eyebrow-ko,
html[lang="en"]:not(#_a):not(#_b) .cb-line,
html[lang="en"]:not(#_a):not(#_b) .cb-line span,
html[lang="en"]:not(#_a):not(#_b) .four-msg-ko,
html[lang="en"]:not(#_a):not(#_b) .chapter-numeral {
  font-family: var(--en-serif) !important;
  font-weight: 500 !important;
  font-style: normal !important;
}

/* Exhibition titles (exhibition page cards, homepage current-exhibition cards):
   Cormorant 500 at 24px (1409px and wider), 600 below. The homepage card title is
   17px on phones, so it stays Inter there (rule 3). */
html[lang="en"]:not(#_a):not(#_b) .ex-card__title-ko,
html[lang="en"]:not(#_a):not(#_b) .home-ex__card-title-ko {
  font-family: var(--en-serif) !important;
  font-weight: 500 !important;
  font-style: normal !important;
}
@media (max-width: 1408px) {
  html[lang="en"]:not(#_a):not(#_b) .ex-card__title-ko,
  html[lang="en"]:not(#_a):not(#_b) .home-ex__card-title-ko { font-weight: 600 !important; }
}
@media (max-width: 767px) {
  html[lang="en"]:not(#_a):not(#_b) .home-ex__card-title-ko { font-family: var(--en-sans) !important; font-weight: 500 !important; }
}

/* Serif titles that are already Cormorant on the page: 500 from 24px up */
html[lang="en"]:not(#_a):not(#_b) .tile h3,
html[lang="en"]:not(#_a):not(#_b) .shoot-card h3 {
  font-weight: 500 !important;
  font-style: normal !important;
}

/* 2. Serif between 18px and 24px: weight 600.
   The titles below are fluid; each media query ends where it reaches 24px. */
html[lang="en"]:not(#_a):not(#_b) .bnd-film-title,
  html[lang="en"]:not(#_a):not(#_b) .mag-spaces__heading,
  html[lang="en"]:not(#_a):not(#_b) .vm-title,
  html[lang="en"]:not(#_a):not(#_b) .vm-title * {
  font-weight: 600 !important;
  font-style: normal !important;
}
@media (max-width: 767px) {
  html[lang="en"]:not(#_a):not(#_b) #faq .vp-section-h2,
  html[lang="en"]:not(#_a):not(#_b) #faq .vp-section-h2 * { font-weight: 600 !important; }
}
@media (max-width: 1007px) {
  html[lang="en"]:not(#_a):not(#_b) .space-feature-text h2 { font-weight: 600 !important; }
}
@media (max-width: 1023px) {
  html[lang="en"]:not(#_a):not(#_b) .banners__title-ko,
  html[lang="en"]:not(#_a):not(#_b) .editorial-section__eyebrow-ko,
  html[lang="en"]:not(#_a):not(#_b) .plan-visit__eyebrow-ko,
  html[lang="en"]:not(#_a):not(#_b) .home-edu__title,
  html[lang="en"]:not(#_a):not(#_b) .home-edu__title *,
  html[lang="en"]:not(#_a):not(#_b) .at-mag-section__title,
  html[lang="en"]:not(#_a):not(#_b) .at-mag-section__title *,
  html[lang="en"]:not(#_a):not(#_b) .home-day__title,
  html[lang="en"]:not(#_a):not(#_b) .home-day__title *,
  html[lang="en"]:not(#_a):not(#_b) .home-ex__title,
  html[lang="en"]:not(#_a):not(#_b) .home-ex__title * { font-weight: 600 !important; }
}
@media (max-width: 1039px) {
  html[lang="en"]:not(#_a):not(#_b) .shoot-card h3 { font-weight: 600 !important; }
}
@media (max-width: 1103px) {
  html[lang="en"]:not(#_a):not(#_b) .tile h3 { font-weight: 600 !important; }
}
@media (max-width: 1199px) {
  html[lang="en"]:not(#_a):not(#_b) .exhibition-newsletter-title { font-weight: 600 !important; }
}
@media (max-width: 767px) {
  /* phone sizes of titles that are 24px+ on larger screens */
  html[lang="en"]:not(#_a):not(#_b) .index-newsletter__title { font-weight: 600 !important; }
}

/* 3. No serif below 18px: these switch to Inter (upright, 400; labels 500) */
html[lang="en"]:not(#_a):not(#_b) .status-time .time-en,
html[lang="en"]:not(#_a):not(#_b) .contact-block a,
html[lang="en"]:not(#_a):not(#_b) .ex-intro__body p,
html[lang="en"]:not(#_a):not(#_b) .tile p,
html[lang="en"]:not(#_a):not(#_b) .ex-hero__body,
html[lang="en"]:not(#_a):not(#_b) .home-day__thanks,
html[lang="en"]:not(#_a):not(#_b) .space-num {
  font-family: var(--en-sans) !important;
  font-style: normal !important;
  font-weight: 400 !important;
}
html[lang="en"]:not(#_a):not(#_b) .vp-section-label-en, html[lang="en"]:not(#_a):not(#_b) .vp-section-label-en *,
html[lang="en"]:not(#_a):not(#_b) .at-mag-card__title, html[lang="en"]:not(#_a):not(#_b) .at-mag-card__title * {
  font-family: var(--en-sans) !important;
  font-style: normal !important;
  font-weight: 500 !important;
}
@media (max-width: 767px) {
  html[lang="en"]:not(#_a):not(#_b) .naver-reviews__title {
    font-family: var(--en-sans) !important;
    font-weight: 500 !important;
  }
}

/* 4. Homepage hero: the pale sage (#D6E4D2, set by the page) stays on the large hero text
   over the photo on desktop. On phones the title sits on white below the photo and the
   page already sets it dark, so there is nothing to override here. */
