/* Flextracode global reset, typography, and accessible element defaults. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--fx-bg);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--fx-bg);
  color: var(--fx-text);
  font-family: var(--fx-font-sans);
  font-size: var(--fx-font-size-base);
  line-height: var(--fx-line-height);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

input,
select,
textarea {
  accent-color: var(--fx-accent-strong);
}

textarea {
  resize: vertical;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--fx-link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--fx-text-strong);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--fx-focus);
  outline-offset: 3px;
}

::selection {
  background: rgba(52, 211, 153, 0.3);
  color: var(--fx-text-strong);
}

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

img,
video {
  height: auto;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--fx-text-strong);
  font-family: var(--fx-font-sans);
  line-height: 1.2;
  text-wrap: balance;
}

p {
  margin-bottom: var(--fx-space-4);
}

small {
  font-size: var(--fx-font-size-sm);
}

code,
kbd,
pre,
samp {
  font-family: var(--fx-font-mono);
}

code,
kbd,
samp {
  overflow-wrap: anywhere;
}

pre {
  overflow: auto;
  font-family: var(--fx-font-mono);
}

hr {
  height: 0;
  margin: var(--fx-space-6) 0;
  border: 0;
  border-top: 1px solid var(--fx-border);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
  color: var(--fx-text-strong);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
