/* Base: reset, document defaults and a few utilities. Values come from tokens.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: var(--weight-regular) var(--fs-body) / var(--leading-body) var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Sentence case everywhere: no sustained capitals in labels or headings. */
h1 {
  color: var(--ink);
  font-size: var(--fs-title);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-tight);
}

h2 {
  color: var(--ink);
  font-size: var(--fs-section);
  font-weight: var(--heading-weight);
  line-height: var(--leading-tight);
}

h3 {
  color: var(--ink);
  font-size: var(--fs-block);
  font-weight: var(--weight-bold);
}

a {
  color: var(--accent-text);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
