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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ks-paper);
  color: var(--ks-ink);
  font-family: var(--ks-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin-block-start: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ks-ink);
  font-family: var(--ks-sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

button,
.button {
  min-height: 2.75rem;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ks-focus);
  outline-offset: 3px;
}

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

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 10000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--ks-ink);
  color: var(--ks-surface);
  white-space: normal;
}

::selection {
  background: var(--ks-refraction);
}
