* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #008080;
  color: #222;
}

.desktop {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  width: min(100%, 65rem);
  margin: 0 auto;
  padding: clamp(1rem, 5vw, 3rem);
}

.sidebar {
  position: sticky;
  top: 1rem;
}

.sidebar .tree-view {
  margin: 0;
  padding: 0.75rem;
  background: var(--surface);
  font-size: 0.875rem;
}

.sidebar .tree-view ul > li:last-child::after {
  background: var(--surface);
}

.sidebar a {
  display: block;
  padding: 0.375rem 0.5rem;
  color: inherit;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar a[aria-current="page"] {
  background: #000080;
  color: white;
}

.page-body {
  min-height: 22rem;
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--surface);
  box-shadow: inset 1px 1px #808080, inset -1px -1px #dfdfdf;
  font: 1rem/1.6 Tahoma, Arial, sans-serif;
}

.page-body h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.page-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.page-body p,
.page-body ul {
  max-width: 60ch;
}

.page-body hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #808080;
}

.project-details menu[role="tablist"] {
  flex-wrap: wrap;
}

.project-details [role="tab"] {
  font-size: 0.875rem;
}

.project-details menu[role="tablist"] > li[aria-selected="true"] > a:focus-visible {
  outline: 1px dotted #222;
}

.project-details [role="tabpanel"] {
  padding: 1rem;
  font: inherit;
}

.project-credits {
  white-space: pre-line;
}

.youtube-video {
  display: block;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #000080;
  font: bold 0.75rem/1.5 Tahoma, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  padding: 0.5rem;
  background: white;
}

.skip-link:not(:focus) {
  clip-path: inset(50%);
}

@media (max-width: 42rem) {
  .desktop {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
  }
}
