:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #ffffff;
  --paper: #ffffff;
  --ink: #14141a;
  --muted: #6a6a75;
  --hairline: rgba(20, 20, 26, 0.12);
  --rule: rgba(20, 20, 26, 0.46);
  --accent: #86868f;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mark: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-hand: "Nothing You Could Do", "Bradley Hand", "Segoe Script", cursive;

  --read-size: 1rem;
  --read-lead: 1.5;
  --read-ink: #4b4b50;

  --mount-pad: #ffffff;
  --mount-line: rgba(20, 20, 26, 0.055);
  --mount-line-w: 1px;
  --mount-cast: none;
  --mat: clamp(14px, 1.5vw, 26px);

  --page-gutter: clamp(20px, 2.4vw, 40px);
}

* {
  box-sizing: border-box;
}

body[data-shared-layout] img,
body[data-shared-layout] a:has(img) {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

body[data-shared-layout] img {
  -webkit-user-select: none;
  user-select: none;
}

:focus {
  outline: none;
}

html {
  --browser-bg: var(--bg);
  background: var(--browser-bg);
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

html body {
  margin: 0;
  color: var(--ink);
  background: var(--browser-bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ink-filters {
  position: absolute;
  width: 0;
  height: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (min-width: 961px) {
  html {
    font-size: clamp(87.5%, 100vw / 112.5, 100%);
  }
}

@media (max-width: 620px) {
  :root {
    --read-lead: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
