/* Reset + typography shared by the public site and the admin. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote,
figure {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
}

/* After a navigation Blazor moves focus to the page heading (FocusOnNavigate in
   Routes.razor) so a screen reader announces the new page. The heading is not
   a control, so it takes the focus without drawing the ring. */
h1[tabindex='-1']:focus {
  outline: none;
}

::selection {
  background: var(--gold-300);
  color: var(--navy-950);
}

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