/* Base: reset, typography, focus ring, reduced-motion. No component styles here. */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  margin: 0;
}

body {
  height: 100%;
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  overscroll-behavior: none;
  transition:
    background-color 0.25s,
    color 0.25s;
}

button {
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

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

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

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

svg.ic {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

h1,
h2,
h3,
.h {
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 700;
}

.brush {
  line-height: 1.3;
  font-family: var(--display);
  font-weight: 700;
}

p {
  margin: 0;
}

.muted {
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* icon size modifiers (default icon is 1.25em) */
svg.ic.ic-14 {
  width: 14px;
  height: 14px;
}
svg.ic.ic-16 {
  width: 16px;
  height: 16px;
}
svg.ic.ic-18 {
  width: 18px;
  height: 18px;
}
svg.ic.ic-20 {
  width: 20px;
  height: 20px;
}
svg.ic.ic-22 {
  width: 22px;
  height: 22px;
}
svg.ic.ic-24 {
  width: 24px;
  height: 24px;
}

.fw-5 {
  font-weight: 500;
}

/* the HTML hidden attribute always wins, even over display: set by a component */
[hidden] {
  display: none !important;
}
