/* Agrume v3 · base. Reset, voices, focus, grain. Copy verbatim. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ag-paper);
  color: var(--ag-ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  margin: 0;
  background: var(--ag-paper);
  color: var(--ag-ink);
  font: 400 var(--ag-text-base) / 1.55 var(--ag-font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul) {
  margin: 0;
}
:where(ol, ul) {
  padding: 0;
  list-style: none;
}
:where(h1, h2, h3, h4) {
  font-weight: 600;
  line-height: 1.15;
}
:where(strong, b, th) {
  font-weight: 600;
}
:where(button, input, select, textarea) {
  color: inherit;
  font: inherit;
}
:where(button) {
  cursor: pointer;
}
:where(img, svg, video) {
  display: block;
  max-width: 100%;
}
:where(img, video) {
  height: auto;
}
:where(a) {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:where(table) {
  border-collapse: collapse;
}
:focus-visible {
  outline: 2px solid var(--ag-focus);
  outline-offset: 2px;
}
::selection {
  background: var(--ag-accent);
  color: var(--ag-accent-ink);
}

/* ------------------------------------------------------------------ voices */

/* Title: condensed Plex, for large titles and big numbers only (≥ 28 px). */
.ag-title {
  font-family: var(--ag-font-title);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.015em;
}
/* Kicker: the only uppercase voice. A label above a title, a table head. */
.ag-kicker {
  color: var(--ag-muted);
  font: 500 var(--ag-text-2xs) / 1.35 var(--ag-font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
/* Meta: dates, handles, identifiers. Mono, never shouting. */
.ag-meta {
  color: var(--ag-faint);
  font: 500 var(--ag-text-xs) / 1.4 var(--ag-font-mono);
}
.ag-muted {
  color: var(--ag-muted);
}
.ag-num {
  font-variant-numeric: tabular-nums;
}
.ag-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.ag-skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ag-pigment-yellow);
  color: var(--ag-on-pigment);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.ag-skip-link:focus {
  transform: none;
}

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

/* Paper grain: a fixed, inert layer over the whole page (0.04 light, 0.03 dark). */
body::after {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  background: var(--ag-grain-color);
  content: "";
  pointer-events: none;
  -webkit-mask: var(--ag-grain) 0 0 / 180px 180px;
  mask: var(--ag-grain) 0 0 / 180px 180px;
}
@media (forced-colors: active), print {
  body::after {
    display: none;
  }
}
