/* =========================================================
   Reset & Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style-position: inside; }

a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-line-link);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover,
a:focus-visible { color: var(--color-accent); border-bottom-color: var(--color-accent); }

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

table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
th, td { text-align: left; vertical-align: top; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
