@font-face {
  font-family: "Commit Mono";
  src: url("/assets/fonts/CommitMono-400-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Commit Mono";
  src: url("/assets/fonts/CommitMono-400-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Commit Mono";
  src: url("/assets/fonts/CommitMono-700-Regular.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Commit Mono";
  src: url("/assets/fonts/CommitMono-700-Italic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

html {
  background-color: black;
  font-family: "Commit Mono", monospace;
}

.sheet {
  --scale: clamp(0.78, calc((100vw - 2rem) / 60), 1);
  container-name: sheet;
  container-type: inline-size;
  width: min(60rem, calc(100vw - 2rem));
  margin-inline: auto;
  margin-block: 48px;
  padding: 0;
  color: white;
  display: grid;
  gap: 16px;
}

header-element,
.content-box {
  display: block;
  padding: calc(2rem * var(--scale));
  border: 5px solid white;
}

.nav-header {
  display: flex;
  align-items: flex-start;
  margin: 24px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
}

.nav-path {
  line-height: 24px;
}

.nav-header a {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  height: 24px;
  padding-top: 1px;
  color: white;
  font-size: 20px;
  line-height: 20px;
  vertical-align: top;
  text-decoration: none;
}

.nav-header a::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 0;
  left: 0;
  height: 2px;
  background: currentColor;
}

.nav-header .back-link {
  align-self: center;
  margin-left: auto;
  height: 24px;
  padding-top: 0;
  color: inherit;
  font-size: 24px;
  line-height: 24px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-header .back-link::after {
  content: none;
}

a {
  color: white;
}

@media (width < 62rem) {
  .sheet {
    margin-block: 1rem;
  }
}
