/* Reset, page canvas, focus, layout primitives, utilities. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

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

button {
  line-height: normal; /* boards style buttons with font-family: inherit only */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure,
blockquote,
dl,
dd,
fieldset {
  margin: 0;
}

fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r-md);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main {
  display: block;
  padding-bottom: var(--section-gap);
}

.section {
  padding-top: var(--section-gap);
}

.section--tight {
  padding-top: 48px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-head--compact {
  align-items: baseline;
  margin-bottom: 12px;
}

.section-head__actions {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-dark);
}

.link-teal {
  color: var(--teal);
  font-size: var(--text-meta);
  font-weight: 600;
}

@media (min-width: 768px) {
  .show-mobile {
    display: none !important;
  }
}

.entry-content > * + * {
  margin-top: 1em;
}

.entry-content :is(p, li) > a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }

  .section-head {
    margin-bottom: 14px;
    align-items: baseline;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
