/*
 * MASTER TYPOGRAPHY – Muzium Sulaman Kerawang (global, 0.8.1)
 * One file for the whole site: 3D museum, Manager Portal and Designer Portal.
 * The 3D scene (signs, frame labels, VR panels, games) uses the same fonts and
 * colours through shared/typography.js, so new galleries and artwork from
 * WordPress inherit them automatically.
 *
 *  Playfair Display (600/700/800) – museum title, gallery names, exhibition and section headings, featured titles, signage
 *  Montserrat (400/500/600/700)    – descriptions, information, captions, navigation, menus, instructions, notifications
 *
 * The fonts are the Google Fonts files served from this site (shared/fonts/) so they load
 * reliably in the Meta Quest browser and the 3D signs never draw with a fallback font.
 */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/playfair-display-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/playfair-display-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --color-gold: #D6B36A;
  --color-ivory: #F5F0E6;
  --color-mahogany: #2B1712;
  --color-burgundy: #701F32;

  /* hierarchy (desktop reference sizes) */
  --fs-museum-title: clamp(30px, 4vw, 46px);
  --fs-gallery-title: clamp(26px, 3.4vw, 38px);
  --fs-section: clamp(22px, 2.6vw, 30px);
  --fs-artwork-title: clamp(18px, 1.8vw, 22px);
  --fs-body: clamp(15px, 1.2vw, 17px);
  --fs-nav: clamp(14px, 1.15vw, 16px);
  --fs-small: clamp(13px, 1vw, 15px);

  /* legacy names used by museum.css / portal.css */
  --serif: var(--font-heading);
  --sans: var(--font-body);
}

/* All gallery headings */
h1, h2, h3,
.gallery-title,
.section-title,
.exhibition-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
}
h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; }

/* All supporting text */
body, p, span, label, li, td, th, input, select, textarea,
.description,
.artwork-caption,
.information-text {
  font-family: var(--font-body);
}
body, p, .description, .artwork-caption, .information-text { font-weight: 400; line-height: 1.6; }

/* Navigation and interactive elements */
button, a,
.navigation,
.menu-item,
.ui-label {
  font-family: var(--font-body);
  font-weight: 600;
}

/* Typography hierarchy helpers */
.museum-title { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-museum-title); }
.gallery-title { font-size: var(--fs-gallery-title); }
.section-title { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-section); }
.artwork-title { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-artwork-title); }
.small-label { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-small); }
