html,
body {
  min-height: 100%;
}

body {
  background-color: var(--color-surface-main);
  color: var(--color-text-main);
  line-height: var(--line-height-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
  max-width: 100dvw;
  display: grid;
}

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

a:hover,
a:focus,
a:active {
  text-decoration: underline;
  text-underline-offset: var(--space-text-underline-offset);
  text-decoration-thickness: var(--size-text-decoration-thickness);
}

p {
  font-family: var(--font-serif);
  font-size: var(--font-size-body);
  margin-bottom: var(--space-paragraph-bottom);
}

li {
  font-size: var(--font-size-list);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: inherit;
  line-height: var(--line-height-heading);
  margin: var(--space-heading-top) 0 var(--size-two);
}

h1 {
  margin-top: 0;
  font-size: var(--font-size-h1);
  font-weight: bold;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: bold;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: bold;
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: bold;
}

h5 {
  font-size: var(--font-size-h5);
  font-weight: bold;
}

h6 {
  font-size: var(--font-size-h6);
  font-weight: bold;
}

small {
  font-size: var(--font-size-small);
  font-weight: bold;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: var(--font-size-button);
}

label {
  font-size: var(--font-size-label);
}

img,
canvas,
iframe,
video,
svg,
select,
textarea {
  max-width: 100%;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: var(--font-size-code);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--font-size-pre);
  padding: var(--size-two);
  line-height: var(--line-height-code);
  overflow-x: auto;
  background-color: color-mix(
    in oklab,
    var(--color-surface-main),
    var(--color-text-main) var(--surface-elevation-mix)
  );
  border-radius: var(--size-one);
}

blockquote {
  font-size: var(--font-size-blockquote);
  border-left: var(--border-width-strong) solid var(--color-text-link);
  padding-left: var(--size-three);
}

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

::view-transition-old(root) {
  animation: var(--duration-view-transition) ease both fade-out;
}

::view-transition-new(root) {
  animation: var(--duration-view-transition) ease both fade-in;
}

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

:focus-visible {
  outline: 2px solid var(--color-text-link);
  outline-offset: 2px;
}

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

.skip-link:focus {
  position: fixed;
  top: var(--size-two);
  left: var(--size-two);
  width: auto;
  height: auto;
  padding: var(--size-two) var(--size-three);
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--color-surface-elevated);
  color: var(--color-text-main);
  border-radius: var(--radius-md);
  z-index: 9999;
}

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: ' (' attr(href) ')';
  }

  abbr[title]:after {
    content: ' (' attr(title) ')';
  }

  a[href^='#']:after,
  a[href^='javascript:']:after {
    content: '';
  }

  pre,
  blockquote {
    border: var(--border-width-thin) solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: var(--print-orphans);
    widows: var(--print-widows);
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: currentColor;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-two);
  padding: 0;
}

.nav-listitem {
  font-size: var(--font-size-nav);
  position: relative;
  padding: 0;
  list-style: none;
}

.nav-listitem a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: var(--space-text-underline-offset);
  text-decoration-thickness: var(--size-text-decoration-thickness);
}
