/*
  Global typography. Self-hosted brand fonts go here once available.
  Placeholder: system stack via tokens.

  When real fonts arrive, declare with @font-face below using font-display: swap.
*/

/* Example @font-face (uncomment + replace once brand fonts are dropped into /public/fonts/):

@font-face {
  font-family: 'Enko Sans';
  src: url('/fonts/enko-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*/

html {
  font-family: var(--font-sans);
  font-size: 100%;
  color: var(--color-text);
  background: var(--color-bg);
}

body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

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

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-5xl); }
  h2 { font-size: var(--font-size-4xl); }
}

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: var(--color-brand-200);
  color: var(--color-text);
}
