@import "./tokens.css?v=7e4e7a026f81";

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

html,
body {
  margin: 0;

  min-width: 320px;
  min-height: 100%;
}

html {
  background: var(--background);

  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-6));
}

body {
  min-height: 100vh;

  /* A short page still puts its footer at the bottom of the
     window rather than halfway up it. Fixed and absolute
     children — the search dialog, the menu scrim — are out of
     flow and unaffected. */

  display: flex;
  flex-direction: column;

  background: var(--background);
  color: var(--text);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  transition:
    background-color var(--motion-theme),
    color var(--motion-theme);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

html,
body {
  width: 100%;
  max-width: 100%;

  overflow-x: clip;
}

main {
  flex: 1 0 auto;

  width: 100%;
  min-width: 0;
  max-width: 100%;
}

header,
section,
article,
aside,
nav,
figure,
div {
  min-width: 0;
}

img,
picture,
video,
svg,
canvas {
  max-width: 100%;
}

img {
  height: auto;
}

::selection {
  background:
    color-mix(in srgb, var(--brand) 16%, transparent);

  color: inherit;
}

/* Select content, not the padding and gaps of layout containers. */
:where(main, section, article, aside, nav, figure, header, footer, div) {
  -webkit-user-select: none;
  user-select: none;
}
:where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, span, a, label, summary,
  figcaption, th, td, pre, code, input, textarea, [contenteditable]) {
  -webkit-user-select: text;
  user-select: text;
}
svg, [aria-hidden="true"], a::after { -webkit-user-select: none; user-select: none; }

::-moz-selection {
  background:
    color-mix(in srgb, var(--brand) 16%, transparent);

  color: inherit;
}

html.is-theme-switching,
html.is-theme-switching *,
html.is-theme-switching *::before,
html.is-theme-switching *::after,
html.is-motion-locked *,
html.is-motion-locked *::before,
html.is-motion-locked *::after {
  transition: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 5px;

  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

}

/* Keyboard entry and robust wrapping without changing type roles. */
[hidden] { display: none !important; }
