/* Self-hosted fonts (SIL Open Font License) – no connection to Google */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { scroll-behavior: smooth; }
section[id], footer[id] { scroll-margin-top: 5rem; }

/* Subtle plaster texture for light sections */
.bg-plaster {
  background-color: #F6F3EE;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(31, 78, 95, 0.05) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(217, 164, 65, 0.08) 0, transparent 45%);
}

/* Hero backdrop */
.bg-hero {
  background-color: #1F4E5F;
  background-image:
    linear-gradient(135deg, rgba(27, 31, 35, 0.55) 0%, rgba(31, 78, 95, 0) 55%),
    radial-gradient(circle at 90% 10%, rgba(217, 164, 65, 0.22) 0, transparent 40%);
}

/* Dialogs */
dialog.legal {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: #1B1F23;
  background: #FFFFFF;
  box-shadow: 0 25px 60px rgba(27, 31, 35, 0.35);
}
dialog.legal::backdrop {
  background: rgba(27, 31, 35, 0.6);
}
body.modal-open { overflow: hidden; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid #D9A441;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Programmatic focus targets (skip link, anchors) need no outline */
[tabindex="-1"]:focus { outline: none; }
