:root {
  --bg: #f3f1ea;
  --panel: #ebe9e1;
  --text: #161816;
  --muted: #686c66;
  --border: #d7d8d0;
  --dark: #181b18;
  --green: #b7d83d;
  --white: #ffffff;
  --content: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--dark);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .14em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  display: block;
  background: var(--green);
}

.version {
  color: rgba(255,255,255,.65);
  font-size: 12px;
  letter-spacing: .05em;
}

.docs-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 34px 26px 60px;
  border-right: 1px solid var(--border);
  background: rgba(243,241,234,.96);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
}

.sidebar a {
  padding: 5px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .18s ease;
}

.sidebar a:hover {
  color: var(--text);
}

.nav-label {
  margin: 27px 0 8px;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-label:first-child {
  margin-top: 0;
}

.content {
  width: min(calc(100% - 72px), var(--content));
  margin: 0 auto;
  padding: 80px 0 100px;
}

.hero-doc {
  margin-bottom: 100px;
}

.eyebrow,
.section-number {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-doc h1 {
  max-width: 760px;
  margin: 0 0 30px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -.055em;
}

.lead {
  max-width: 670px;
  margin: 0;
  color: #363a35;
  font-size: 20px;
  line-height: 1.55;
}

.quick-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quick-grid div {
  padding: 24px 18px 24px 0;
}

.quick-grid div + div {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.quick-grid strong,
.quick-grid span {
  display: block;
}

.quick-grid strong {
  font-size: 16px;
}

.quick-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

section {
  padding: 68px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 88px;
}

section h2 {
  margin: 0 0 26px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
}

section h3 {
  margin: 38px 0 12px;
  font-size: 18px;
  line-height: 1.3;
}

section p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #363a35;
}

ul,
ol {
  margin: 20px 0 24px;
  padding-left: 23px;
}

li {
  margin: 7px 0;
}

.note {
  margin: 32px 0;
  padding: 22px 24px;
  background: var(--panel);
  border-left: 4px solid var(--green);
}

.support-card {
  margin: 30px 0;
  padding: 28px;
  background: var(--dark);
  color: var(--white);
}

.support-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.support-card a {
  display: inline-block;
  color: var(--white);
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 700;
  text-decoration: none;
}

.support-card p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.changelog {
  margin-top: 30px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.changelog > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.changelog > div span {
  color: var(--muted);
}

.docs-footer {
  margin-top: 90px;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.docs-footer strong {
  letter-spacing: .14em;
}

.docs-footer span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .docs-layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .content {
    width: min(calc(100% - 40px), var(--content));
    padding-top: 55px;
  }

  .hero-doc {
    margin-bottom: 70px;
  }
}

@media (max-width: 600px) {
  .topbar {
    min-height: 60px;
    padding: 0 20px;
  }

  .version {
    display: none;
  }

  .content {
    width: calc(100% - 32px);
    padding-top: 42px;
  }

  .hero-doc h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 17px;
  }

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

  .quick-grid div {
    padding: 16px 0;
  }

  .quick-grid div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  section {
    padding: 52px 0;
  }

  section h2 {
    font-size: 36px;
  }

  .support-card {
    padding: 22px;
  }

  .support-card a {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .docs-footer {
    flex-direction: column;
  }
}

/* HALDEN DOCUMENTATION TYPOGRAPHY REFINEMENT */

body {
  font-family:
    "Work Sans",
    Inter,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: -0.005em;
}

section p {
  max-width: 690px;
  line-height: 1.65;
}

.lead {
  max-width: 650px;
  line-height: 1.5;
}

.sidebar a {
  font-size: 13px;
  line-height: 1.45;
}

section h2 {
  font-weight: 700;
}

section h3 {
  font-weight: 700;
}

.note {
  line-height: 1.6;
}
