/* ============================================
   Typography & Base Styles
   ============================================ */

/* @font-face — ready for font file drop-in */
@font-face {
  font-family: 'IvyPresto Display';
  src: url('../fonts/IvyPrestoDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IvyPresto Display';
  src: url('../fonts/IvyPrestoDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IvyPresto Headline';
  src: url('../fonts/IvyPrestoHeadline-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk Pro';
  src: url('../fonts/HKGroteskPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk Pro';
  src: url('../fonts/HKGroteskPro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk Pro';
  src: url('../fonts/HKGroteskPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Body */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--duration-slow) var(--ease-in-out),
              color var(--duration-slow) var(--ease-in-out);
}

/* Headlines — IvyPresto Display only */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }

/* Subheadings */
h4 {
  font-family: var(--font-display);
  font-weight: 400;
}

h5, h6 {
  font-family: var(--font-body);
  font-weight: 500;
}

h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Body text */
p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Links */
a {
  transition: opacity var(--duration-fast) var(--ease-out);
}

a:hover {
  opacity: 0.8;
}

/* Selection */
::selection {
  background-color: var(--olive);
  color: var(--ivory);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
