.page {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.hero {
  max-width: 780px;
  padding: 90px 0 72px;
}

.hero > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
}

.hero > p {
  max-width: 700px;
  margin-top: 22px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.updated {
  display: flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 80px;
  padding: 64px 0 100px;
  border-top: 1px solid var(--line-strong);
}

.layout > aside {
  position: sticky;
  top: 100px;
  align-self: start;
}

.layout > aside > strong {
  font-size: 10px;
  text-transform: uppercase;
}

.layout nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.layout nav a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 6px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.layout nav a:hover {
  color: var(--blue);
}

.layout nav span {
  color: #a5a8ae;
  font-family: var(--font-mono);
  font-size: 8px;
}

.document {
  min-width: 0;
}

.document section {
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.document section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.document h2 {
  font-size: 24px;
  line-height: 1.2;
}

.prose {
  display: grid;
  gap: 15px;
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.75;
}

.prose ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 28px;
  margin-bottom: 24px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.contact > span {
  display: grid;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--blue);
  border-radius: 6px;
  place-items: center;
}

.contact div {
  display: grid;
}

.contact small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.contact strong {
  margin-top: 2px;
  font-size: 14px;
}

.contact a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.related {
  display: flex;
  gap: 20px;
  padding: 18px 0 96px;
  color: var(--muted);
  font-size: 10px;
}

.related span {
  color: var(--ink);
  font-weight: 750;
}

.related a:hover {
  color: var(--blue);
}

@media (max-width: 760px) {
  .page {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 64px 0 52px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 44px 0 70px;
  }

  .layout > aside {
    position: static;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .layout nav {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    grid-template-columns: 42px 1fr;
  }

  .contact a {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
}
