/* Generated by design_system_cli render from design_system/tokens. Do not edit.
 * Sources: standards/docs/reset.css, then design_system/css/elements.css.
 * Load after dist/tokens.css. */

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

/* remove default spacing */
/* force styling of type through styling, rather than elements */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* dark mode user-agent-styles */
/* improves punctuation in supported browsers */
html {
  color-scheme: dark light;
  hanging-punctuation: first last;
}

/* min body height */
body {
  min-height: 100svh;
}

/* responsive images/videos */
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

/* Improved heading in supported browsers */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* improve readability with max-width on paragraphs and lists */
/* prevent orphans in supported browsers */
p,
li {
  max-width: var(--p-max-width, 65ch);
  text-wrap: pretty;
}

/* Element defaults from the design system's tokens. render puts these after
 * standards/docs/reset.css in dist/base.css. Use only --ds- tokens here. */

body {
  background: var(--ds-color-bg);
  color: var(--ds-color-text);
  font-family: var(--ds-font-body);
  font-size: var(--ds-text-base);
  font-weight: var(--ds-weight-body);
  line-height: var(--ds-leading-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ds-font-heading);
  font-weight: var(--ds-weight-strong);
  line-height: var(--ds-leading-heading);
}

h1 {
  font-size: var(--ds-text-3xl);
}

h2 {
  font-size: var(--ds-text-2xl);
}

h3 {
  font-size: var(--ds-text-xl);
}

h4 {
  font-size: var(--ds-text-lg);
}

strong,
b {
  font-weight: var(--ds-weight-strong);
}

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

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

a {
  color: var(--ds-color-link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ds-color-accent-hover);
}

hr {
  border: 0;
  border-top: var(--ds-border-width) solid var(--ds-color-border);
}

button,
input,
select,
textarea {
  min-height: var(--ds-target-min);
}

input,
select,
textarea {
  background: var(--ds-color-surface-raised);
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-color-text);
}

:focus-visible {
  outline: var(--ds-focus-width) solid var(--ds-color-focus);
  outline-offset: var(--ds-focus-offset);
}

::selection {
  background: var(--ds-color-accent);
  color: var(--ds-color-on-accent);
}

/* 8-bit: keep pixel art crisp. */
[data-theme="gamey"] img,
[data-theme="gamey"] canvas {
  image-rendering: pixelated;
}

/* Accessible mode: links are always underlined and focus is always shown,
 * not only on keyboard focus. */
[data-a11y="on"] a {
  text-decoration: underline;
}

[data-a11y="on"] :focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus);
  outline-offset: var(--ds-focus-offset);
}

@media (prefers-contrast: more) {
  :root:not([data-a11y="off"]) a {
    text-decoration: underline;
  }
}

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