/* Self-hosted font declarations — uses system font stack as fallback */
/* No external font downloads required */

/* ── Inter (original declarations — preserved as-is) ──────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('-apple-system'),
       local('BlinkMacSystemFont'),
       local('Segoe UI'),
       local('Helvetica Neue'),
       local('Arial'),
       local('sans-serif');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('-apple-system'),
       local('BlinkMacSystemFont'),
       local('Segoe UI'),
       local('Helvetica Neue'),
       local('Arial'),
       local('sans-serif');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('-apple-system'),
       local('BlinkMacSystemFont'),
       local('Segoe UI'),
       local('Helvetica Neue'),
       local('Arial'),
       local('sans-serif');
}

/* ── DM Sans (UI / navigation / meta / labels) ────────────────────────
   Falls back gracefully to the same system sans stack as Inter.
   If you later self-host WOFF2 files, replace the local() sources
   with url('/fonts/DMSans-*.woff2') format('woff2') entries.
   ──────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('DM Sans Regular'),
       local('DMSans-Regular'),
       local('-apple-system'),
       local('BlinkMacSystemFont'),
       local('Segoe UI'),
       local('Helvetica Neue'),
       local('Arial'),
       local('sans-serif');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('DM Sans Medium'),
       local('DMSans-Medium'),
       local('-apple-system'),
       local('BlinkMacSystemFont'),
       local('Segoe UI'),
       local('Helvetica Neue'),
       local('Arial'),
       local('sans-serif');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('DM Sans Bold'),
       local('DMSans-Bold'),
       local('-apple-system'),
       local('BlinkMacSystemFont'),
       local('Segoe UI'),
       local('Helvetica Neue'),
       local('Arial'),
       local('sans-serif');
}

/* ── Playfair Display (headlines / masthead / card titles) ────────────
   Falls back to Georgia — the best widely-installed serif.
   Self-host WOFF2 files from Google Fonts or fontsource.org to get
   the actual Playfair glyphs without an external request:
     https://fontsource.org/fonts/playfair-display
   ──────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Playfair Display Bold'),
       local('PlayfairDisplay-Bold'),
       local('Georgia'),
       local('Times New Roman'),
       local('serif');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local('Playfair Display ExtraBold'),
       local('PlayfairDisplay-ExtraBold'),
       local('Playfair Display Bold'),
       local('PlayfairDisplay-Bold'),
       local('Georgia'),
       local('Times New Roman'),
       local('serif');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: local('Playfair Display Black'),
       local('PlayfairDisplay-Black'),
       local('Playfair Display Bold'),
       local('PlayfairDisplay-Bold'),
       local('Georgia'),
       local('Times New Roman'),
       local('serif');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: local('Playfair Display Bold Italic'),
       local('PlayfairDisplay-BoldItalic'),
       local('Georgia Italic'),
       local('serif');
}

/* ── Source Serif 4 (long-form article body copy) ─────────────────────
   Falls back to Georgia. Self-host from:
     https://fontsource.org/fonts/source-serif-4
   ──────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Source Serif 4'),
       local('SourceSerif4-Regular'),
       local('Source Serif Pro'),
       local('SourceSerifPro-Regular'),
       local('Georgia'),
       local('Times New Roman'),
       local('serif');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Source Serif 4 Italic'),
       local('SourceSerif4-Italic'),
       local('Source Serif Pro Italic'),
       local('SourceSerifPro-Italic'),
       local('Georgia Italic'),
       local('serif');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Source Serif 4 SemiBold'),
       local('SourceSerif4-SemiBold'),
       local('Source Serif Pro SemiBold'),
       local('SourceSerifPro-SemiBold'),
       local('Georgia'),
       local('serif');
}

/*
  ── Self-hosting guide ──────────────────────────────────────────────
  To guarantee Playfair Display and Source Serif 4 render on all
  visitors (not just those who happen to have them installed), add
  WOFF2 files to /public/fonts/ and prepend a url() source to each
  @font-face above. Example for Playfair Display Bold:

    src: url('/fonts/playfair-display-700.woff2') format('woff2'),
         local('Playfair Display Bold'),
         ...

  Free WOFF2 downloads (open license):
    Playfair Display  → https://fontsource.org/fonts/playfair-display
    Source Serif 4    → https://fontsource.org/fonts/source-serif-4
    DM Sans           → https://fontsource.org/fonts/dm-sans
  ────────────────────────────────────────────────────────────────── */
