:root {
  --page-bg: #f8e8ab;
  --ink: #231600;
  --ink-soft: rgba(35, 22, 0, 0.74);
  --link: #0b57d0;
  --link-hover: #0842a0;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
}

a {
  color: inherit;
}

.page {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.page-title {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.section {
  margin-top: 0.35rem;
}

.tree {
  display: grid;
  gap: 0.5rem;
}

.tree-dir {
  color: var(--ink);
}

.tree-summary {
  cursor: pointer;
  user-select: none;
  color: var(--ink);
  text-decoration: none;
}

.tree-summary:hover,
.tree-summary:focus-visible {
  color: var(--ink);
  outline: none;
}

.tree-children {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.4rem;
  margin-left: 2rem;
}

.file-link {
  display: block;
  color: var(--link);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.file-link:hover,
.file-link:focus-visible {
  color: var(--link-hover);
  outline: none;
}

.footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0 0 0.75rem;
  gap: 1.25rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1;
}

.footer-nav-secondary {
  margin-top: 1.25rem;
  padding-bottom: 0;
}

.footer-nav-resources {
  flex-wrap: nowrap;
}

.footer-nav-social {
  align-items: center;
}

.footer-label {
  color: var(--ink-soft);
  font-weight: 400;
}

.footer-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-link {
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.footer-separator {
  display: inline-block;
  color: rgba(35, 22, 0, 0.4);
  font-weight: 400;
  line-height: 1;
  transform: translateY(-0.02em);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 0.8;
  outline: none;
}

.social-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

@media (max-width: 820px) {
  .page {
    width: min(960px, calc(100% - 1rem));
  }
}
