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

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

body {
  min-width: var(--site-min-width);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-md);
  line-height: var(--line-height-body);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-main);
  line-height: var(--line-height-heading);
}

h1 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-xl);
}

h2 {
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
}

h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-md);
}

p {
  color: var(--ink-soft);
}

button,
input,
select {
  font: inherit;
}

.shell,
.shell-wide,
.shell-narrow {
  width: min(calc(100% - var(--shell-gutter)), var(--shell));
  margin-inline: auto;
}

.shell-wide {
  width: min(calc(100% - var(--shell-gutter)), var(--shell-wide));
}

.shell-narrow {
  width: min(calc(100% - var(--shell-gutter)), var(--shell-narrow));
}

.skip-link {
  position: fixed;
  z-index: var(--z-skip-link);
  top: var(--space-sm);
  left: var(--space-sm);
  transform: var(--skip-link-hidden-transform);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-xs) var(--space-sm);
}

.skip-link:focus {
  transform: var(--skip-link-visible-transform);
}

:focus-visible {
  outline: var(--focus-outline-width) solid var(--color-focus);
  outline-offset: var(--focus-outline-offset);
}
