/* ============================================================
   Base — typography, body defaults, global element styles
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-var.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-var.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic-var.ttf') format('truetype');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--surface-primary);
  transition:
    color var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out);
}

/* App container — centered, max-width for mobile-first */
#app {
  position: relative;
  max-width: var(--max-width);
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

/* Scripture text uses serif */
.text-scripture {
  font-family: var(--font-serif);
  font-style: italic;
  line-height: var(--leading-relaxed);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Selection color */
::selection {
  background-color: var(--brand-gold-soft);
  color: var(--text-primary);
}
