/* ==========================================================
   TYPOGRAPHY.CSS — Highland Haus Design System Type Tokens
   ========================================================== */

/* ── Local Fonts ── */
@font-face {
  font-family: 'Italiana';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/italiana-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/montserrat-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Julius Sans One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/julius-sans-one-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/commissioner-latin.woff2') format('woff2');
}

/* ── Type Scale ── */
:root {
  --font-heading:  'Italiana', serif;
  --font-body:     'Montserrat', sans-serif;
  --font-accent:   'Julius Sans One', sans-serif;
  --font-elegant:  'Commissioner', sans-serif;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   2rem;
  --text-4xl:   2.5rem;
  --text-5xl:   3.5rem;
  --text-6xl:   4.5rem;

  --leading-tight:  1.2;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;
  --tracking-widest:  0.2em;
}

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-4xl); }
h4 { font-size: var(--text-3xl); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-xl); }

/* ── Accent text (uppercase nav, labels) ── */
.accent-text {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.elegant-text {
  font-family: var(--font-elegant);
  font-weight: 300;
}

/* ── Paragraph ── */
p {
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: var(--leading-loose);
}

p:last-child { margin-bottom: 0; }

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
  h4 { font-size: var(--text-xl); }
}
