/* Scale — base: reset, type, browser surfaces */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-14);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  font-feature-settings: "cv11" 0, "calt" 1;
  caret-color: var(--accent);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: var(--lh-tight);
  text-wrap: balance;
}

p, li, dd {
  text-wrap: pretty;
}

img, svg {
  display: block;
}

svg {
  flex: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a.link,
.link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--d-fast) var(--ease-out);
}

a.link:hover,
.link:hover {
  text-decoration-color: currentColor;
}

/* Numerals: tabular wherever figures are compared */
.num,
table,
time,
.tnum {
  font-variant-numeric: tabular-nums;
}

code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--rule-2);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  background: var(--sheet);
  color: var(--muted);
  font-size: var(--fs-11);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Browser surfaces carry the palette too */
::selection {
  background: var(--tint-2);
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--rule-2) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--rule-2);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--faint);
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 500;
  transition: top var(--d-base) var(--ease-out);
}

.skip-link:focus-visible {
  top: 12px;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-xs {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.icon-lg {
  width: 22px;
  height: 22px;
}

.brand-mark {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

[hidden] {
  display: none !important;
}
