/*
  Base — HTML elements only. Never a class. (html, body, a, ul,
  :focus-visible — that's the ceiling of what belongs here.) Layout
  and appearance for specific pieces of UI belong in layout.css and
  components.css, not here.
*/

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

html,
body,
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--neutral-900);
  color: var(--neutral-000);
  font-family: var(--font-family-base);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Lists are used as layout containers throughout this site (streaming
   links, the archive), never as bulleted content — so removing markers
   and default indentation belongs here as a base default, not repeated
   per component. */
ul,
ol {
  list-style: none;
  padding: 0;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.15em;
  -webkit-tap-highlight-color: transparent;
}

/* One focus style, applied everywhere, rather than redefined per
   component. Uses the per-release accent so the accessibility feature
   and the brand identity are the same color, not two separate systems. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background-color: var(--accent);
  color: var(--neutral-900);
}
