:root {
  /* Pastel paper palette */
  --paper:        #fbf6ec;   /* warm cream base */
  --paper-soft:   #fffaf0;   /* card / surface */
  --paper-tint:   #f6efe1;   /* deeper cream for chips */

  --ink:          #2f2a3a;   /* warm near-black */
  --ink-dim:      #6b6678;
  --ink-faint:    #9a93a4;

  /* Pastel accents — used as soft tints on surfaces and as small color anchors */
  --sage:         #8fbfa5;
  --sage-deep:    #4f8a70;
  --peach:        #f3c4a6;
  --peach-deep:   #c98060;
  --butter:       #f4dba0;
  --sky:          #b8d4e3;
  --sky-deep:     #6f9aaf;
  --lilac:        #d6c5dd;
  --rose:         #e9b7be;

  --radius:       14px;
  --radius-lg:    22px;
  --shadow-soft:  0 18px 40px -22px rgba(80, 60, 90, 0.25);
  --shadow-card:  0 10px 28px -18px rgba(80, 60, 90, 0.22);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
                ui-serif, Georgia, serif;
  --font-mono:  ui-monospace, "JetBrains Mono", "SF Mono", Menlo,
                Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ────── Painted background ──────
   Multiple soft pastel washes layered onto the cream, plus a faint paper grain
   via SVG noise. Sits behind everything, never scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60vw 45vh at  8%  -4%, rgba(143, 191, 165, 0.55), transparent 65%),
    radial-gradient(ellipse 50vw 38vh at 96%  6%, rgba(243, 196, 166, 0.55), transparent 65%),
    radial-gradient(ellipse 55vw 40vh at 92% 56%, rgba(184, 212, 227, 0.55), transparent 65%),
    radial-gradient(ellipse 60vw 45vh at  4% 78%, rgba(244, 219, 160, 0.55), transparent 65%),
    radial-gradient(ellipse 50vw 38vh at 60% 98%, rgba(214, 197, 221, 0.55), transparent 65%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.16  0 0 0 0 0.22  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-weight: 700; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--paper-tint);
  border-radius: 6px;
  padding: 0.1em 0.45em;
}

/* ────── Nav ────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav__brand:hover { color: var(--sage-deep); }
.nav__links {
  display: flex;
  gap: 30px;
  font-size: 15px;
}
.nav__links a {
  color: var(--ink-dim);
}
.nav__links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav__links a:not(:last-child) { display: none; }
}

/* ────── Hero ────── */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 96px;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 56px;
  align-items: center;
}
.hero__art {
  margin-right: clamp(-80px, -4vw, 0px);
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 32px;
  }
  .hero__art { margin-right: 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sage-deep);
  background: rgba(143, 191, 165, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 0 0 24px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.lede {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--sage);
  color: #1d3328;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(79, 138, 112, 0.25);
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}
.btn:hover {
  background: #a8d2ba;
  color: #1d3328;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -16px rgba(79, 138, 112, 0.55);
}
.btn:active { transform: translateY(0); }
.btn__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.65;
  font-weight: 500;
}
.btn__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn__icon svg { width: 16px; height: 16px; }

.hero__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--ink-faint);
  font-size: 14px;
}
.hero__alt ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero__alt a {
  color: var(--ink-dim);
  border-bottom: 1px dashed rgba(107, 102, 120, 0.35);
  padding-bottom: 1px;
}
.hero__alt a:hover {
  color: var(--sage-deep);
  border-bottom-color: var(--sage);
}

.hero__note {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin: 4px 0 0;
}

/* ────── Hero artwork (faux MUD-client window) ──────
   The screen content stays dark because that's how MUDs look. The frame
   is soft and painterly. */

.hero__art { position: relative; }
.hero__art::before,
.hero__art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}
.hero__art::before {
  width: 240px; height: 240px;
  background: rgba(143, 191, 165, 0.45);
  top: -40px; left: -40px;
}
.hero__art::after {
  width: 220px; height: 220px;
  background: rgba(243, 196, 166, 0.45);
  bottom: -30px; right: -30px;
}

.window {
  background: #232634;
  border: 1px solid rgba(47, 42, 58, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -28px rgba(47, 42, 58, 0.45),
    0 4px 16px -8px rgba(47, 42, 58, 0.18);
  font-family: var(--font-mono);
  font-size: 12.5px;
  transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg);
  transform-origin: left center;
}
@media (max-width: 960px) {
  .window { transform: none; }
}

.window__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #1c1e2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.window__chrome > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.window__chrome > span:nth-child(1) { background: var(--rose); }
.window__chrome > span:nth-child(2) { background: var(--butter); }
.window__chrome > span:nth-child(3) { background: var(--sage); }
.window__title {
  margin-left: 12px;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: none !important;
  font-size: 11.5px;
  color: #8b8f9f;
  letter-spacing: 0.02em;
}

.window__body {
  display: grid;
  grid-template-columns: 34px 1fr;
  min-height: 380px;
}

/* World rail */
.rail {
  background: #1a1c27;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 6px;
}
.rail__world {
  width: 26px;
  height: 30px;
  border-radius: 6px;
  background: #272a39;
  color: #8b8f9f;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 0;
}
.rail__world--active {
  background: #2f3346;
  color: #c8c9d4;
  border: 1px solid rgba(143, 191, 165, 0.35);
}
.rail__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a4e5f;
}
.rail__dot--active {
  background: var(--sage);
  box-shadow: 0 0 4px rgba(143, 191, 165, 0.6);
}

/* Workspace columns */
.workspace {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}
.col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  min-width: 0;
}

/* Panels */
.panel {
  background: #1d2030;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel--grow { flex: 1 1 auto; }
.tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px 0;
  background: #1a1c27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.tab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #6d7185;
  padding: 4px 9px;
  border-radius: 5px 5px 0 0;
  white-space: nowrap;
}
.tab--active {
  color: #c8c9d4;
  background: #1d2030;
  border-top: 1px solid rgba(143, 191, 165, 0.45);
  padding-top: 3px;
}
.panel__body {
  padding: 10px 12px;
  color: #c8c9d4;
  font-size: 11.5px;
  flex: 1 1 auto;
  min-height: 0;
}
.panel__body p { margin: 0 0 4px; line-height: 1.45; }

/* Map */
.panel__body--map {
  padding: 8px 10px;
  background: #1a1c27;
}
.mini-map {
  font-family: var(--font-mono);
  font-size: 10px;
  margin: 0;
  color: #6d7185;
  line-height: 1.25;
}
.mini-map { position: relative; }

/* Vitals + Combat: stat rows and key-value cards */
.panel__body--vitals,
.panel__body--combat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}
.stat__label {
  font-family: var(--font-sans);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b8f9f;
  margin-bottom: 4px;
}
.stat__value {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #8b8f9f;
  margin-top: 3px;
}
.kv {
  background: #272a39;
  border-radius: 6px;
  padding: 7px 9px;
}
.kv__label {
  font-family: var(--font-sans);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b8f9f;
  margin-bottom: 3px;
}
.kv__value {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #c8c9d4;
}
.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.bar {
  height: 7px;
  border-radius: 4px;
  background: rgba(143, 191, 165, 0.18);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), #b6dac6);
}
.bar--mp { background: rgba(184, 212, 227, 0.18); }
.bar--mp span {
  background: linear-gradient(90deg, var(--sky-deep), var(--sky));
}
.bar--xp { background: rgba(244, 219, 160, 0.18); }
.bar--xp span {
  background: linear-gradient(90deg, #e0bf6a, var(--butter));
}

/* Chat panel */
.panel__body--chat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
}
.t-time { color: #6d7185; }
.t-tag { color: var(--sky); }
.t-channel { color: var(--lilac); }

/* Output panel */
.panel__body--output {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #1d2030;
}

.c-cyan    { color: var(--sky); }
.c-green   { color: #b6dac6; }
.c-yellow  { color: var(--butter); }
.c-magenta { color: var(--lilac); font-weight: 600; }
.c-dim     { color: #8b8f9f; }
.c-prompt  { color: var(--sage); }
.caret {
  display: inline-block;
  color: var(--butter);
  animation: blink 1s steps(2, start) infinite;
}

/* Input bar */
.inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #20232f;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #c8c9d4;
}
.inputbar__prompt { color: var(--sage); }

/* Status bar */
.statusbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #1a1c27;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #8b8f9f;
}
.statusbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 6px rgba(143, 191, 165, 0.6);
}
.statusbar__text { flex: 1 1 auto; }
.statusbar__btn {
  font-size: 10px;
  color: #c8c9d4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 8px;
}
@keyframes blink {
  to { visibility: hidden; }
}

/* ────── Section frame ──────
   Sections sit on the pastel washes with a thin painted divider rule. */

.features,
.screenshots,
.download {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px;
  position: relative;
}
.features::before,
.screenshots::before,
.download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(143, 191, 165, 0.6) 20%,
      rgba(243, 196, 166, 0.6) 50%,
      rgba(184, 212, 227, 0.6) 80%,
      transparent);
}

.features h2,
.screenshots h2,
.download h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 14px;
}

.screenshots__lede,
.download__lede {
  color: var(--ink-dim);
  font-size: 18px;
  margin: 0 0 44px;
  max-width: 620px;
}

/* ────── Features ────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature {
  background: var(--paper-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  /* a soft painted tint blooms from the top-left of each card */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 0% 0%,
                              var(--tint, rgba(143, 191, 165, 0.35)),
                              transparent 70%);
  pointer-events: none;
}
.feature > * { position: relative; }

.feature:nth-child(1) { --tint: rgba(143, 191, 165, 0.32); }
.feature:nth-child(2) { --tint: rgba(243, 196, 166, 0.34); }
.feature:nth-child(3) { --tint: rgba(244, 219, 160, 0.36); }
.feature:nth-child(4) { --tint: rgba(184, 212, 227, 0.36); }
.feature:nth-child(5) { --tint: rgba(214, 197, 221, 0.38); }
.feature:nth-child(6) { --tint: rgba(233, 183, 190, 0.32); }

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(80, 60, 90, 0.3);
}

.feature__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px -8px rgba(47, 42, 58, 0.4);
}
.feature__icon svg { width: 22px; height: 22px; color: var(--ink); }

.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.feature h3 em {
  font-style: italic;
  color: var(--sage-deep);
}
.feature p {
  font-size: 15px;
  color: var(--ink-dim);
  margin: 0;
  font-family: var(--font-sans);
}

/* ────── Screenshots ────── */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .shot-grid { grid-template-columns: 1fr; }
}
.shot { margin: 0; }
.shot--wide { grid-column: 1 / -1; }
.shot__placeholder {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(184, 212, 227, 0.45), rgba(214, 197, 221, 0.45) 50%, rgba(243, 196, 166, 0.45)),
    var(--paper-soft);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-card);
}
.shot--wide .shot__placeholder { aspect-ratio: 21 / 9; }
.shot--wide .shot__placeholder {
  background:
    linear-gradient(135deg, rgba(143, 191, 165, 0.45), rgba(184, 212, 227, 0.45) 50%, rgba(244, 219, 160, 0.45)),
    var(--paper-soft);
}
.shot:nth-of-type(2) .shot__placeholder {
  background:
    linear-gradient(135deg, rgba(243, 196, 166, 0.5), rgba(233, 183, 190, 0.4)),
    var(--paper-soft);
}
.shot:nth-of-type(3) .shot__placeholder {
  background:
    linear-gradient(135deg, rgba(214, 197, 221, 0.55), rgba(184, 212, 227, 0.45)),
    var(--paper-soft);
}
.shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-dim);
}

/* ────── Download ────── */

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 18px;
}
@media (max-width: 900px) {
  .download-grid { grid-template-columns: 1fr; }
}

.dl-card {
  position: relative;
  background: var(--paper-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(80, 60, 90, 0.3);
}
.dl-card--featured {
  background:
    linear-gradient(160deg, rgba(143, 191, 165, 0.35), rgba(255, 250, 240, 1) 65%);
  outline: 2px solid rgba(143, 191, 165, 0.6);
  outline-offset: -2px;
  box-shadow: 0 18px 40px -22px rgba(79, 138, 112, 0.45);
}
.dl-card--featured::before {
  content: "Detected for your system";
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--sage);
  color: #1d3328;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -8px rgba(79, 138, 112, 0.5);
}

.dl-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dl-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  box-shadow: 0 4px 12px -8px rgba(47, 42, 58, 0.4);
}
.dl-card--featured .dl-card__icon {
  background: rgba(255, 255, 255, 0.85);
}
.dl-card__icon svg { width: 22px; height: 22px; }
.dl-card h3 { font-size: 20px; margin: 0; }
.dl-card__sub { color: var(--ink-faint); font-size: 13.5px; margin: 0; }

.dl-card__downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-card__downloads a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(47, 42, 58, 0.06);
  transition: background 0.15s ease, transform 0.08s ease;
}
.dl-card__downloads a:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--sage-deep);
}
.dl-card__downloads a .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.dl-card--featured .dl-card__downloads a:first-child {
  background: var(--sage);
  color: #1d3328;
  box-shadow: 0 8px 18px -12px rgba(79, 138, 112, 0.55);
}
.dl-card--featured .dl-card__downloads a:first-child .tag {
  color: rgba(29, 51, 40, 0.7);
}
.dl-card--featured .dl-card__downloads a:first-child:hover {
  background: #a8d2ba;
}

/* ────── Footer ────── */

.footer { margin-top: 32px; }
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer__inner > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dim);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
}
.footer__legal {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-faint);
}

/* ──────────────────────────────────────────────────────────────
   Docs page
   ────────────────────────────────────────────────────────────── */

.nav__links a.is-active {
  color: var(--ink);
  position: relative;
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--sage);
}

.docs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .docs {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.docs__toc {
  position: sticky;
  top: 24px;
  font-size: 14px;
  padding: 20px 18px;
  background: var(--paper-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
@media (max-width: 900px) {
  .docs__toc {
    position: static;
  }
}
.docs__toc-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.docs__toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tocnum;
}
.docs__toc li {
  counter-increment: tocnum;
  margin: 0;
}
.docs__toc li a {
  display: block;
  padding: 6px 10px 6px 28px;
  border-radius: 8px;
  position: relative;
  color: var(--ink-dim);
  line-height: 1.35;
}
.docs__toc li a::before {
  content: counter(tocnum, decimal-leading-zero);
  position: absolute;
  left: 8px;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.docs__toc li a:hover {
  background: rgba(143, 191, 165, 0.18);
  color: var(--ink);
}

.docs__content {
  max-width: 720px;
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.65;
}

.docs__header {
  margin-bottom: 40px;
}
.docs__header .eyebrow {
  margin-bottom: 18px;
}
.docs__header h1 {
  font-size: clamp(38px, 5vw, 54px);
  margin-bottom: 16px;
}
.docs__header .lede {
  font-size: 18px;
  margin: 0;
}

.docs__content section {
  margin-top: 56px;
  scroll-margin-top: 24px;
}
.docs__content section:first-of-type {
  margin-top: 0;
}
.docs__content h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(107, 102, 120, 0.25);
}
.docs__content h3 {
  font-size: 19px;
  margin: 28px 0 8px;
}
.docs__content p {
  margin: 0 0 14px;
  color: var(--ink-dim);
}
.docs__content ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--ink-dim);
}
.docs__content li { margin: 0 0 6px; }
.docs__content li strong { color: var(--ink); }
.docs__content a {
  color: var(--sage-deep);
  border-bottom: 1px solid rgba(79, 138, 112, 0.3);
}
.docs__content a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.docs__content code {
  background: var(--paper-tint);
  font-size: 0.9em;
}
.docs__content pre {
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(47, 42, 58, 0.06),
              0 6px 18px -14px rgba(80, 60, 90, 0.25);
  margin: 0 0 18px;
}
.docs__content pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper-soft);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(47, 42, 58, 0.12),
    0 1px 0 rgba(47, 42, 58, 0.12);
  min-width: 22px;
  text-align: center;
}

.kbd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 15px;
  background: var(--paper-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.kbd-table th,
.kbd-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(47, 42, 58, 0.06);
}
.kbd-table thead th {
  background: rgba(143, 191, 165, 0.22);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.kbd-table tbody tr:last-child td {
  border-bottom: none;
}
.kbd-table td:first-child {
  white-space: nowrap;
  width: 1%;
}
.kbd-table td:last-child {
  color: var(--ink-dim);
}

.docs__back {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px dashed rgba(107, 102, 120, 0.25);
  font-family: var(--font-serif);
  font-style: italic;
}

