/* Central Font Configuration */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK:wght@300;400;500;700&display=swap');

/* Font Variables */
:root {
  --primary-font-family: 'Noto Sans HK', sans-serif;
  --font-size-small: 12px;
  --font-size-base: 14px;
  --font-size-large: 16px;
  --font-size-xl: 18px;
  --font-size-xxl: 24px;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
}

/* Base Typography */
body, html {
  font-family: var(--primary-font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: #333;
}

/* Heading Styles */
h1 {
  font-family: var(--primary-font-family);
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--primary-font-family);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  margin-bottom: 0.8rem;
}

h3 {
  font-family: var(--primary-font-family);
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  margin-bottom: 0.6rem;
}

h4, h5, h6 {
  font-family: var(--primary-font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  margin-bottom: 0.5rem;
}

/* Table Styles */
table {
  font-family: var(--primary-font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
}

th {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
}

td {
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-base);
}

/* Form Elements */
input, textarea, select, button {
  font-family: var(--primary-font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
}

/* Print Styles */
@media print {
  body, html {
    font-family: var(--primary-font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font-family);
  }
  
  table, th, td {
    font-family: var(--primary-font-family);
  }
}

/* Utility Classes */
.font-small { font-size: var(--font-size-small); }
.font-base { font-size: var(--font-size-base); }
.font-large { font-size: var(--font-size-large); }
.font-xl { font-size: var(--font-size-xl); }
.font-xxl { font-size: var(--font-size-xxl); }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-bold { font-weight: var(--font-weight-bold); }

.line-height-tight { line-height: var(--line-height-tight); }
.line-height-normal { line-height: var(--line-height-normal); }
.line-height-relaxed { line-height: var(--line-height-relaxed); }