/* Accessibility overrides + self-hosted brand fonts.
   Layered over Duda's base stylesheets. Keep additive. */

/* Brand fonts — self-hosted from /Resources/files/ so the site doesn't hit
   Duda's CDN at runtime. Rolesster is the display face (H1); Napzer-Regular
   is the body/H2 face with both roman and italic cuts. */
@font-face {
  font-family: 'Rolesster';
  src: url('/Resources/files/Rolesster.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Napzer-Regular';
  src: url('/Resources/files/Napzer-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Napzer-Regular';
  src: url('/Resources/files/Napzer-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Skip-to-content link: hidden until focused via keyboard. */
.ambr-skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 9999;
  background: #3a0d06;
  color: #e9e4d7;
  padding: 10px 16px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: top 120ms ease;
}
.ambr-skip-link:focus {
  top: 8px;
  outline: 2px solid #e9e4d7;
  outline-offset: 2px;
}

/* Visible focus ring for keyboard users on controls that currently suppress outline. */
#dm .dmInner .dmform input[type="submit"]:focus-visible,
#dm .dmInner button:focus-visible,
#dm .dmInner a.dmButtonLink:focus-visible,
#dm .dmInner a.hamburgerButton:focus-visible,
#dm .dmInner button.hamburgerButton:focus-visible {
  outline: 2px solid #e9e4d7 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(58, 13, 6, 0.6);
}

/* ----------------------------------------------------------------------
   Elegant fade-in from black on first paint.

   Paints a fixed-position black pane over the viewport at page load and
   fades it to transparent with a gentle ease-out. Once the animation ends
   the pane snaps to visibility:hidden so it can't intercept clicks or be
   read by assistive tech. No JS needed — keyframes fire automatically.

   Respects prefers-reduced-motion by skipping the overlay entirely, and
   skips print so nothing shows up as a black page in PDFs.
   ---------------------------------------------------------------------- */
@keyframes ambr-hero-fade {
  0%   { opacity: 1; }
  25%  { opacity: 1; }   /* hold black briefly so hero pixels paint under it */
  100% { opacity: 0; visibility: hidden; }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  pointer-events: none;
  opacity: 1;
  animation: ambr-hero-fade 1100ms cubic-bezier(0.22, 0.61, 0.36, 1) 0s forwards;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}
@media print {
  body::before { display: none; }
}
