:root {
  color-scheme: light;
  --ink: #101616;
  --muted: #52605d;
  --paper: #f6f8f5;
  --surface: #ffffff;
  --dark: #101616;
  --dark-2: #182220;
  --line: #cfd8d3;
  --lime: #c8f34a;
  --coral: #ff7b61;
  --cyan: #36c5c7;
  --focus: #006b70;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-underline-offset: .2em; }
button, textarea, select { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 20; padding: .65rem .9rem; background: var(--lime); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-header { min-height: 4.25rem; padding: .75rem max(1rem, calc((100% - 72rem) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--dark); color: #f7faf7; border-bottom: 1px solid #34423e; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; text-decoration: none; }
.brand-mark { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: var(--lime); color: var(--dark); font: 800 .78rem/1 ui-monospace, monospace; }
.site-header nav, footer nav { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; }
.site-header nav a { color: #d5dfda; font-size: .9rem; text-decoration: none; }
.site-header nav a:hover { color: var(--lime); }

.intro { min-height: calc(100vh - 4.25rem); max-height: 58rem; padding: 4.5rem max(1rem, calc((100% - 72rem) / 2)); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(19rem, .75fr); gap: 4rem; align-items: center; background: var(--dark); color: #f7faf7; }
.intro-copy { max-width: 46rem; }
.eyebrow { margin: 0 0 .75rem; color: var(--lime); font: 750 .78rem/1.4 ui-monospace, monospace; text-transform: uppercase; }
.eyebrow.dark { color: #087a75; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; max-width: 15ch; font-size: 4.4rem; line-height: 1.02; overflow-wrap: anywhere; }
.lede { max-width: 43rem; margin: 1.4rem 0 2rem; color: #c5d1cc; font-size: 1.25rem; line-height: 1.6; }
.install-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 38rem; border: 1px solid #4d5b56; background: var(--dark-2); }
.install-row code { padding: .95rem 1rem; overflow-x: auto; white-space: nowrap; color: #ffffff; }
.copy-button, .secondary-button { min-height: 2.8rem; padding: 0 1rem; border: 0; cursor: pointer; font-weight: 750; }
.copy-button { background: var(--lime); color: var(--dark); }
.secondary-button { border: 1px solid #8ea09a; background: transparent; color: var(--ink); }
.release-facts { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.release-facts div { display: grid; gap: .2rem; }
.release-facts dt { color: #91a39c; font-size: .75rem; text-transform: uppercase; }
.release-facts dd { margin: 0; font-weight: 700; }

.dependency-closure { padding: 1.5rem; border: 1px solid #45534f; border-top: 4px solid var(--coral); background: var(--dark-2); }
.dependency-closure ol { margin: 1.2rem 0 1.5rem; padding: 0; list-style: none; }
.dependency-closure li { min-height: 3.3rem; display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; }
.dependency-closure li:first-child { grid-template-columns: minmax(0, 1fr); }
.connector { height: 100%; border-left: 1px solid #687873; border-bottom: 1px solid #687873; }
.node { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.root-node { color: var(--lime); font-weight: 700; }
.dependency-closure small { color: #9cadA7; }
.closure-result { display: flex; gap: .6rem; align-items: flex-start; margin: 0; color: #c9d5d0; font-size: .9rem; line-height: 1.5; }
.closure-result span { flex: 0 0 .7rem; height: .7rem; margin-top: .3rem; border-radius: 50%; background: var(--lime); }

.tool-band { padding: 4.5rem 0; background: var(--lime); }
.section-inner, footer { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
h2 { margin: 0; font-size: 2.6rem; line-height: 1.08; }
.workbench { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border: 1px solid #1f302c; background: var(--surface); }
.input-panel, .output-panel { padding: 1.35rem; }
.input-panel { border-right: 1px solid var(--line); }
label { display: block; margin: 0 0 .45rem; font-size: .8rem; font-weight: 750; text-transform: uppercase; }
textarea, select { width: 100%; border: 1px solid #8b9994; border-radius: 0; background: #fbfdfb; color: var(--ink); }
textarea { min-height: 9rem; padding: .9rem; resize: vertical; font-family: ui-monospace, monospace; line-height: 1.5; }
select { min-height: 2.8rem; margin-bottom: 0; padding: .5rem .65rem; }
.input-panel textarea { margin-bottom: 1.2rem; }
.output-panel { display: grid; gap: 1rem; background: var(--dark); color: #f8fbf9; }
.output-panel div { min-width: 0; }
.output-panel span { display: block; margin-bottom: .35rem; color: #8fa19a; font-size: .75rem; text-transform: uppercase; }
.output-panel code { display: block; min-height: 2.8rem; padding: .75rem; overflow-wrap: anywhere; border-left: 3px solid var(--cyan); background: #1a2522; color: #ffffff; line-height: 1.45; }
.tool-status { margin: .75rem 0 0; font: 700 .8rem/1.4 ui-monospace, monospace; }

.content-band { padding: 5rem 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.content-band.alternate { background: #edf1ee; }
.split-content { display: grid; grid-template-columns: .75fr 1.25fr; gap: 4rem; align-items: start; }
.split-content p, .evidence-grid p { color: var(--muted); line-height: 1.7; }
.code-stack { min-width: 0; }
pre { margin: 0 0 1rem; padding: 1rem; overflow-x: auto; border: 1px solid #3b4945; background: var(--dark); color: #f4f9f6; line-height: 1.55; }
.text-link { color: #006b70; font-weight: 700; }
.api-table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
td code { color: #006b70; }
.evidence-band { border-top: 7px solid var(--coral); }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.evidence-grid dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.evidence-grid dl div { min-height: 8.5rem; padding: 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-grid dt { font-size: 2rem; font-weight: 800; }
.evidence-grid dd { margin: .4rem 0 0; color: var(--muted); }

.resource-band { padding: 4rem 0; background: var(--dark-2); color: #f4f8f5; }
.resources { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: end; }
.resources nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #4e5d58; }
.resources nav a { padding: .9rem 0; border-bottom: 1px solid #4e5d58; color: #dce6e1; }
footer { padding-block: 2rem 3rem; display: flex; justify-content: space-between; gap: 2rem; color: var(--muted); }
footer div { display: grid; gap: .35rem; }
footer strong { color: var(--ink); }

@media (max-width: 52rem) {
  .site-header { align-items: flex-start; }
  .site-header nav { justify-content: flex-end; }
  .intro { min-height: auto; max-height: none; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 4rem; }
  h1 { font-size: 3.2rem; }
  .workbench, .split-content, .evidence-grid, .resources { grid-template-columns: 1fr; gap: 2rem; }
  .input-panel { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 34rem) {
  .site-header { display: block; }
  .site-header nav { margin-top: .8rem; justify-content: flex-start; }
  h1 { font-size: 2.45rem; }
  h2 { font-size: 2rem; }
  .install-row { grid-template-columns: 1fr; }
  .copy-button { min-height: 2.8rem; }
  .section-heading, footer { align-items: flex-start; flex-direction: column; }
  .evidence-grid dl, .resources nav { grid-template-columns: 1fr; }
  .release-facts { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
