:root {
  color: #173b3a;
  background: #fcf7ed;
  font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fcf7ed 0%, #fffaf1 54%, #f7efe2 100%);
}

a {
  color: #173b3a;
  font-weight: 850;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 247, 237, .9);
  border-bottom: 1px solid rgba(23, 59, 58, .1);
  backdrop-filter: blur(18px);
}

.nav,
.wrap,
.footer-row {
  width: min(1040px, calc(100vw - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #173b3a;
  font-size: 1.18rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f2b84b;
  box-shadow: inset 0 -5px 0 rgba(23, 59, 58, .12);
  display: grid;
  place-items: center;
}

.brand-mark::after {
  content: "?";
  color: #173b3a;
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: #31504f;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(242, 184, 75, .2);
  color: #173b3a;
}

main {
  padding: 70px 0 84px;
}

.document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 44px;
  align-items: start;
}

.document-main {
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 59, 58, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
  color: #5d4136;
  font-size: .88rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: .94;
  letter-spacing: 0;
}

.lead {
  color: #596d69;
  font-size: clamp(1.14rem, 2.3vw, 1.42rem);
  line-height: 1.5;
}

.updated {
  color: #6e7977;
  font-weight: 750;
}

.summary {
  margin: 34px 0;
  padding: 22px;
  border: 1px solid rgba(23, 59, 58, .1);
  border-radius: 8px;
  background: #173b3a;
  color: #fffaf1;
}

.summary h2 {
  margin-bottom: 12px;
  color: #fffaf1;
  font-size: 1.35rem;
}

.summary ul {
  margin: 0;
  padding-left: 20px;
}

.summary li {
  margin: 8px 0;
  color: #e4ebe1;
  line-height: 1.5;
}

.panel {
  margin: 18px 0;
  padding: 26px;
  border: 1px solid rgba(23, 59, 58, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 16px 34px rgba(23, 59, 58, .08);
}

.panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.panel h3 {
  margin: 22px 0 8px;
  font-size: 1.14rem;
}

.panel p,
.panel li {
  color: #536765;
  line-height: 1.62;
}

.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

.panel ul {
  padding-left: 22px;
}

.panel li {
  margin: 8px 0;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid rgba(23, 59, 58, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 16px 34px rgba(23, 59, 58, .08);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: #536765;
  font-size: .95rem;
  text-decoration: none;
}

.toc a:hover {
  color: #173b3a;
}

footer {
  padding: 34px 0 46px;
  color: #64726f;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-row a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .document {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }

  main {
    padding-top: 46px;
  }
}

@media (max-width: 560px) {
  .nav {
    min-height: 64px;
  }

  .nav-links a {
    padding: 0 10px;
  }

  .panel {
    padding: 20px;
  }
}
