/* Shared typography for the source website and the existing built preview. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-italic-var.woff2') format('woff2');
}

/* Inter is a fallback for devices without Aptos (macOS, Android, Linux).
   Browsers download it only when Aptos is not installed locally. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
}

:root {
  --font-body: 'Aptos Display', Aptos, Inter, 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Aptos Display uses the visitor's installed font; no licensed webfont is bundled. */
html,
body,
.font-sans,
.font-mono {
  font-family: var(--font-body);
}

body {
  font-feature-settings: normal;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: var(--font-heading);
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

svg text {
  font-family: inherit;
}
