:root {
  --ink: #203b37;
  --muted: #60736d;
  --paper: #f8f1e7;
  --paper-strong: #fffaf2;
  --mint: #dfeee4;
  --clay: #b45f3a;
  --sun: #f2c86b;
  --line: #d7c7b1;
  --green: #244d49;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 10%);
  background: color-mix(in srgb, var(--paper), transparent 8%);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(var(--max), calc(100vw - 32px));
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--clay), var(--sun), var(--mint), var(--green), var(--clay));
  border: 2px solid var(--ink);
}

.navlinks {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.navlinks a {
  text-decoration: none;
}

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

.hero {
  min-height: calc(100svh - 62px);
  display: grid;
  place-items: center;
  padding: clamp(46px, 7vw, 88px) 16px;
  overflow: hidden;
}

.hero-inner {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--green);
  padding: 7px 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  background: var(--mint);
}

h1 {
  margin: 22px 0 18px;
  max-width: 780px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  background: var(--green);
  color: var(--paper-strong);
  text-decoration: none;
  font-weight: 800;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-art {
  position: relative;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 34px rgb(32 59 55 / 0.22));
}

.section {
  padding: clamp(56px, 8vw, 112px) 16px;
}

.section.alt {
  background: var(--green);
  color: var(--paper);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.alt .section-kicker {
  color: var(--sun);
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.alt .section-copy {
  color: #dfeee4;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.step {
  min-height: 210px;
  border: 2px solid var(--ink);
  background: var(--paper-strong);
  padding: 24px;
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  background: var(--sun);
  border: 2px solid var(--ink);
  font-weight: 900;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.case-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  margin-top: 36px;
}

.note-sample,
.wiki-sample {
  border: 2px solid var(--line);
  background: #fffaf2;
  padding: 22px;
}

.sample-title {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 16px;
  font-weight: 900;
}

.note-sample pre,
.wiki-sample pre {
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
}

.workflow {
  margin-top: 36px;
}

.workflow img {
  width: 100%;
  height: auto;
  border: 2px solid color-mix(in srgb, var(--paper), var(--green) 35%);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.split img {
  width: 100%;
  height: auto;
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.qa {
  border-top: 2px solid var(--line);
  padding-top: 18px;
}

.qa h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.qa p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.48;
}

.footer {
  padding: 36px 16px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .hero-inner,
  .case-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .steps,
  .faq {
    grid-template-columns: 1fr;
  }

  .navlinks {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-art,
  .section-inner {
    animation: rise 700ms cubic-bezier(.16, 1, .3, 1) both;
  }

  .hero-art {
    animation-delay: 120ms;
  }

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


.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.version-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgb(32 59 55 / 0.18);
  border-radius: 999px;
  background: rgb(255 250 242 / 0.76);
  box-shadow: 0 10px 32px rgb(32 59 55 / 0.08);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.version-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.version-switcher a:hover {
  color: var(--ink);
  border-color: rgb(36 77 73 / 0.28);
  background: rgb(255 250 242 / 0.94);
}

.version-switcher a[aria-current="page"] {
  color: var(--paper-strong);
  border-color: var(--green);
  background: var(--green);
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .version-switcher {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .version-switcher::-webkit-scrollbar {
    display: none;
  }

  .version-switcher a {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
}


.version-menu {
  position: relative;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.version-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--paper-strong);
  background: var(--green);
  box-shadow: 0 10px 32px rgb(32 59 55 / 0.1);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.version-menu summary::-webkit-details-marker { display: none; }
.version-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.version-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.version-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 132px;
  padding: 8px;
  border: 1px solid rgb(32 59 55 / 0.16);
  border-radius: 18px;
  background: rgb(255 250 242 / 0.96);
  box-shadow: 0 18px 60px rgb(32 59 55 / 0.18);
}
.version-list a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.version-list a:hover { color: var(--ink); background: rgb(36 77 73 / 0.08); }
.version-list a[aria-current="page"] { color: var(--paper-strong); background: var(--green); }
