:root {
  --ink: #1a1a1a;
  --paper: #edebe6;
  --muted: #66615a;
  --line: #d6d1c7;
  --white: #fff;
  --copy: #3f3b35;
  --copy-soft: #57524b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
}

/* ---------- Nav ---------- */

.navShell {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: calc(100% - 32px);
  margin: 24px auto 0;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  animation: navEntrance 700ms cubic-bezier(.16, 1, .3, 1) both;
}

@media (min-width: 1180px) {
  .navShell {
    width: 60vw;
  }
}

.brand,
.navLinks {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  text-decoration: none;
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-size: 17px;
  font-weight: 500;
}

.brand img {
  width: auto;
  height: 26px;
  border-radius: 6px;
}

.navLinks {
  gap: 28px;
  color: #555;
  font-size: 14px;
  line-height: 1;
}

.navLinks a {
  text-decoration: none;
}

.navLinks a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.navButton {
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-weight: 500;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1;
}

.mobileMenu {
  display: none;
  position: relative;
  font-family: 'Avenir Next', Avenir, sans-serif;
}

.mobileMenu summary {
  list-style: none;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}

.mobileMenu summary::-webkit-details-marker {
  display: none;
}

.mobileMenuLinks {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 190px;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.mobileMenuLinks a {
  color: #555;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.mobileMenuLinks a:last-child {
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

/* ---------- Page intro ---------- */

.pageHero {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 32px 0;
  text-align: center;
}

.kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  text-transform: uppercase;
  animation: riseIn 900ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: 60ms;
}

.pageHero h1 {
  margin: 0 auto 20px;
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  animation: riseIn 900ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: 140ms;
}

.pageLede {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--copy-soft);
  font-size: 19px;
  line-height: 1.58;
  animation: riseIn 900ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: 220ms;
}

/* ---------- Roadmap ---------- */

.roadmapSection {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px clamp(16px, 4vw, 32px) 130px;
}

.roadmapGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 24px);
}

.roadmapCol {
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, .04);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(28px);
  animation: sectionRise both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

.roadmapCol h2 {
  margin: 0 0 22px;
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}

.roadmapList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roadmapList li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.56;
  color: var(--copy);
}

.status {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
}

.status-done {
  background: #3a9463;
}

.status-progress {
  background: #cf9a2e;
}

.status-planned {
  background: #bdb8ae;
}

/* ---------- Version history ---------- */

.versionsSection {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 32px) 130px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timelineItem {
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, .04);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  animation: sectionRise both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

.timelineItem details {
  padding: 14px clamp(16px, 2.4vw, 24px);
}

.timelineItem details[open] {
  padding: clamp(22px, 3vw, 32px);
}

.timelineItem summary {
  list-style: none;
  cursor: pointer;
}

.timelineItem summary::-webkit-details-marker {
  display: none;
}

.timelineSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.timelineSummary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}

.timelineItem details[open] .timelineSummary::after {
  content: "−";
  color: var(--ink);
  border-color: rgba(26, 26, 26, .18);
}

.timelineHead {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.releaseBody {
  margin-top: 18px;
}

.releaseBody > p {
  margin: 0 0 20px;
  color: var(--copy);
  font-size: 16px;
  line-height: 1.68;
}

.versionTag {
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.15;
}

.versionDate {
  font-size: 13px;
  color: var(--muted);
}

.timelineItem ul {
  margin: 0;
  padding-left: clamp(16px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--copy);
  font-size: 15.5px;
  line-height: 1.66;
}

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

.releaseSection {
  margin-top: 24px;
}

.releaseSection h3 {
  margin: 0 0 12px;
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink);
}

.releaseSection ul {
  margin: 0;
}

/* ---------- Documentation ---------- */

.documentationSection {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px clamp(16px, 4vw, 32px) 130px;
}

.documentationLayout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 78ch);
  gap: clamp(28px, 5vw, 72px);
  justify-content: center;
  align-items: start;
}

.documentationToc {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(26, 26, 26, .05);
  border-radius: 8px;
}

.documentationToc h2 {
  margin: 0 0 14px;
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: uppercase;
}

.documentationToc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.documentationToc a {
  display: block;
  color: #555;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.documentationToc a:hover {
  color: var(--ink);
}

.documentationArticle {
  width: 100%;
  min-width: 0;
  padding: 52px;
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, .04);
  border-radius: 8px;
  color: var(--copy);
  font-size: 17px;
  line-height: 1.74;
  overflow-wrap: break-word;
}

.documentationArticle > :first-child {
  margin-top: 0;
}

.documentationArticle h1,
.documentationArticle h2,
.documentationArticle h3 {
  color: var(--ink);
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-weight: 500;
  line-height: 1.16;
}

.documentationArticle h1 {
  margin: 0 0 26px;
  font-size: 46px;
  letter-spacing: 0;
}

.documentationArticle h2 {
  margin: 64px 0 18px;
  padding-top: 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.documentationArticle h3 {
  margin: 36px 0 12px;
  font-size: 20px;
  letter-spacing: 0;
}

.documentationArticle p {
  margin: 0 0 20px;
}

.documentationArticle ul,
.documentationArticle ol {
  margin: 0 0 22px;
  padding-left: 1.35rem;
}

.documentationArticle li {
  margin: 0 0 11px;
}

.documentationArticle hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.documentationArticle code {
  padding: 2px 6px;
  background: #f2f0eb;
  border-radius: 5px;
  font-size: .92em;
  white-space: break-spaces;
  overflow-wrap: anywhere;
}

.documentationArticle a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: 'Avenir Next', Avenir, sans-serif;
  font-size: 13px;
}

footer div {
  display: flex;
  align-items: center;
  gap: 20px;
}

footer a {
  text-decoration: none;
}

@keyframes navEntrance {
  from { opacity: 0; transform: translateY(-18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(42px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sectionRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .navShell {
    padding: 14px 16px;
  }

  .navLinks,
  .navButton {
    display: none;
  }

  .mobileMenu {
    display: block;
  }

  .roadmapGrid {
    grid-template-columns: 1fr;
  }

  .roadmapSection,
  .versionsSection,
  .documentationSection {
    padding: 64px 20px 96px;
  }

  .pageHero {
    padding: 56px 20px 0;
  }

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

  .pageLede {
    font-size: 17px;
    line-height: 1.58;
  }

  .documentationLayout {
    grid-template-columns: 1fr;
  }

  .documentationToc {
    position: static;
  }

  .documentationArticle {
    padding: 30px 22px;
    font-size: 16px;
    line-height: 1.7;
  }

  .documentationArticle h1 {
    font-size: 34px;
  }

  .documentationArticle h2 {
    font-size: 25px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }
}
