/* Layout and visual styles adapted from Brittany Chiang v4 (MIT). */
html {
  box-sizing: border-box;
  width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-slate) var(--navy);
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background: var(--navy);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: var(--lightest-navy);
  color: var(--lightest-slate);
}
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-slate);
  border: 3px solid var(--navy);
  border-radius: 10px;
}
:focus-visible {
  outline: 2px dashed var(--green);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--lightest-slate);
  line-height: 1.1;
}
p {
  margin: 0 0 15px;
}
p:last-child {
  margin-bottom: 0;
}
a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  text-decoration-skip-ink: auto;
  transition: var(--transition);
}
a:hover,
a:focus-visible {
  color: var(--green);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
svg {
  max-width: 100%;
  vertical-align: middle;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
img {
  max-width: 100%;
  vertical-align: middle;
}
.inline-link {
  position: relative;
  color: var(--green);
}
.inline-link::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0.15em;
  width: 0;
  height: 1px;
  background: var(--green);
  opacity: 0.5;
  transition: var(--transition);
}
.inline-link:hover::after,
.inline-link:focus-visible::after {
  width: 100%;
}
.outline-button {
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 1.25rem 1.75rem;
  font: 14px/1 var(--font-mono);
  transition: var(--transition);
}
.outline-button:hover,
.outline-button:focus-visible {
  box-shadow: 4px 4px 0 var(--green);
  transform: translate(-5px, -5px);
}
.big-heading {
  margin: 0;
  font-size: clamp(40px, 8vw, 80px);
}
.numbered-heading {
  display: flex;
  align-items: center;
  position: relative;
  margin: 10px 0 40px;
  width: 100%;
  font-size: clamp(26px, 5vw, 32px);
  white-space: nowrap;
}
.section-number {
  position: relative;
  bottom: 4px;
  margin-right: 10px;
  color: var(--green);
  font: 400 clamp(16px, 3vw, 20px)/1.1 var(--font-mono);
}
.numbered-heading::after {
  content: "";
  display: block;
  position: relative;
  top: -5px;
  width: 300px;
  height: 1px;
  margin-left: 20px;
  background: var(--lightest-navy);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 30;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
  background: var(--navy);
}
.component-error {
  max-width: 700px;
  padding: 150px 25px;
  margin: auto;
}
@media (max-width: 1080px) {
  .numbered-heading::after {
    width: 200px;
  }
}
@media (max-width: 768px) {
  .numbered-heading::after {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .numbered-heading::after {
    margin-left: 10px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 18px;
  }
  .section-number {
    margin-right: 5px;
    bottom: 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
