@font-face {
  font-family: "Review Sans";
  src: url("../vendor/review-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../vendor/editorial-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --ink: #162920;
  --text: #253b30;
  --muted: #4d6155;
  --rule: #c9d1c7;
  --forest: #174f3b;
  --lime: #d3f49c;
  --dark: #14271e;
  --mono: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-family: "Review Sans",Inter,system-ui,sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 18px;
}

body {
  margin: 0;
  min-width: 270px;
}

a {
  color: inherit;
  text-decoration-thickness: .07em;
  text-underline-offset: .24em;
}

button {
  font: inherit;
  cursor: pointer;
}

a,button {
  touch-action: manipulation;
}

button:focus-visible,a:focus-visible {
  outline: 3px solid #4b8b62;
  outline-offset: 4px;
}

[hidden] {
  display: none!important;
}

.wrap {
  width: min(1260px,calc(100% - clamp(36px,9vw,150px)));
  margin-inline: auto;
}

.skip {
  background: var(--lime);
  color: var(--ink);
  position: absolute;
  z-index: 9;
  transform: translateY(-150%);
  padding: 12px;
}

.skip:focus {
  transform: translateY(0);
}

.masthead {
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  font-size: 1.55rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -.075em;
}

.wordmark img {
  display: block;
}

.nav-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(14px,2.6vw,38px);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .92rem;
  color: var(--muted);
  font-weight: 540;
  text-decoration: none;
}

.nav-item:hover,.nav-item[aria-current=page] {
  color: var(--forest);
  text-decoration: underline;
}

.nav-download {
  padding: 0 17px;
  min-height: 40px;
  background: var(--ink);
  color: white;
  border-radius: 30px;
}

.nav-download:hover,.nav-download[aria-current=page] {
  color: var(--lime);
  background: #204531;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-block: 30px;
}

.site-footer .wordmark {
  font-size: 1.16rem;
}

.site-footer img {
  width: 27px;
  height: 27px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .88rem;
  color: var(--muted);
}

h1,h2,h3,p,figure,dl,dd,pre {
  margin: 0;
}

h1,h2,h3 {
  font-weight: 580;
}

h1,h2 {
  letter-spacing: -.066em;
  line-height: 1.02;
}

h1 em,h2 em {
  font-family: "Instrument Serif",Georgia,serif;
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: -.038em;
}

code,pre {
  font-family: var(--mono);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(30px,6.5vw,95px);
  align-items: center;
  padding-block: clamp(44px,6vw,90px);
}

.release-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font: .8rem var(--mono);
  text-decoration: none;
  margin-bottom: 21px;
}

.release-link:hover {
  text-decoration: underline;
}

.release-symbol {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  position: relative;
}

.release-symbol:after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--forest);
}

.hero h1 {
  font-size: clamp(3.6rem,6.7vw,6.75rem);
  line-height: .985;
  letter-spacing: -.083em;
}

.hero h1 em {
  font-size: 1.08em;
}

.hero-deck {
  font-size: clamp(1rem,1.3vw,1.21rem);
  line-height: 1.58;
  color: var(--muted);
  max-width: 42ch;
  margin: 22px 0 26px;
}

.actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  min-height: 46px;
  border-radius: 6px;
  padding: 0 18px;
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
}

.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.primary:hover {
  background: #103c2c;
}

.secondary {
  background: #fff8;
}

.secondary:hover {
  background: white;
  border-color: #8c9e8f;
}

.instrument {
  border: 1px solid #324a3a;
  border-radius: 12px;
  background: #18271f;
  overflow: hidden;
  color: #edf5e9;
  box-shadow: 0 16px 40px -28px #193d2f8c;
  position: relative;
  min-width: 0;
}

.sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  min-height: 44px;
  background: #192a20;
  border-bottom: 1px solid #364a39;
  font: .78rem var(--mono);
  color: #c3d7c5;
}

.sample-head>span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.lamp {
  background: var(--lime);
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.art {
  position: relative;
  isolation: isolate;
  height: clamp(142px,13.4vw,188px);
  background-color: #1b3125;
  background-image: radial-gradient(#5a6e5a 0.75px,transparent 1px);
  background-size: 12px 12px;
  overflow: hidden;
  border-bottom: 1px solid #38523e;
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 6px #0e1e13);
}

.art-label {
  position: absolute;
  left: 14px;
  bottom: 8px;
  color: #b9ceba;
  font: .76rem var(--mono);
  background: #1b3125;
  padding: 2px 4px;
}

.sample-bottom {
  position: relative;
  padding: 15px 20px 19px;
}

.file-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.file-name {
  font: .86rem var(--mono);
  display: flex;
  align-items: center;
  gap: 7px;
}

.file-name svg {
  color: #a4b8a7;
}

.signal {
  font: .75rem var(--mono);
  background: #593e28;
  color: #ffe4bb;
  border: 1px solid #826647;
  border-radius: 4px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.signal i {
  display: block;
  height: 6px;
  width: 6px;
  transform: rotate(45deg);
  background: #f0ba77;
}

html:not(.enhanced) .js-controls {
  display: none;
}

.enhanced .js-controls {
  display: flex;
}

.enhanced .static-note {
  display: none;
}

.seg {
  display: flex;
  align-items: center;
  gap: 4px;
}

.seg button,.copy {
  color: inherit;
  font: 500 .8rem var(--mono);
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  min-height: 38px;
  padding: 5px 9px;
}

.seg button[aria-pressed=true] {
  background: #374b3d;
  border-color: #556c59;
  color: #eff8e9;
}

.seg button[aria-pressed=false],.copy {
  color: #c1cfbf;
}

.seg button:hover,.copy:hover {
  background: #324436;
}

.instrument .seg {
  margin: 9px 0 7px;
}

.diff-lines,.sample-finding {
  min-height: 100px;
  background: #112018;
  border: 1px solid #354a3a;
  border-radius: 5px;
  color: #e0ebdd;
  font: .85rem/1.55 var(--mono);
  overflow-x: auto;
  padding: 6px 0;
}

.diff-lines>div {
  display: flex;
  align-items: baseline;
  white-space: pre;
}

.diff-lines code {
  padding-right: 10px;
}

.line-no {
  min-width: 37px;
  text-align: center;
  color: #a3b6a4;
}

.removed {
  background: #322b23;
  color: #e3bda3;
}

.added {
  background: #28412b;
  color: #d4efac;
}

.sample-finding {
  padding: 9px 13px;
}

.sample-finding p {
  margin: 4px 0;
}

.rule-id {
  color: var(--lime);
}

.finding-location {
  color: #b2c7b0;
}

.lottie {
  display: none;
  width: 21px;
  height: 21px;
  position: absolute;
  right: 26px;
  bottom: 25px;
}

.lottie.play {
  display: block;
}

.proof-strip {
  border-block: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(145px, .8fr) 3fr;
  align-items: center;
  padding: 22px 0;
}

.proof-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  font: .83rem var(--mono);
  color: #40614c;
}

.tiny-rule {
  width: 22px;
  height: 2px;
  background: #648e64;
}

.proof-strip dl {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}

.proof-strip dl div {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
  border-left: 1px solid var(--rule);
  padding-inline: clamp(10px,2vw,29px);
}

.proof-strip dt {
  color: var(--muted);
  font-size: .88rem;
}

.proof-strip dd {
  font-size: clamp(1.4rem,2.3vw,2.1rem);
  font-weight: 590;
  letter-spacing: -.06em;
}

.proof-strip dd span {
  color: #586e5f;
  font-size: .7em;
  font-weight: 450;
}

.quickstart {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(33px,6vw,88px);
  align-items: center;
  padding-block: clamp(45px,6.8vw,91px);
  border-bottom: 1px solid var(--rule);
}

.quickstart h2,.guide-heading h2 {
  font-size: clamp(2.22rem,4.1vw,3.55rem);
}

.quickstart p {
  margin: 15px 0 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 45ch;
}

.text-link {
  color: var(--forest);
  font-weight: 550;
  font-size: .92rem;
}

.terminal {
  min-width: 0;
  background: #15261c;
  color: #e3efdd;
  border: 1px solid #354c3b;
  border-radius: 8px;
  overflow: hidden;
  align-self: center;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid #3c513e;
}

.copy {
  border: 1px solid #4c614e;
}

.terminal pre.command {
  border: 0;
  background: transparent;
  color: #e5efdf;
  margin: 0;
  padding: 18px 20px;
  font: .9rem/1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.static-note {
  padding: 5px 9px;
  font: .78rem var(--mono);
}

.guide-section {
  padding: clamp(43px,5.4vw,72px) 0;
}

.guide-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 25px;
}

.guide-item {
  display: block;
  border-top: 2px solid #728a78;
  padding: 18px 5px 8px 0;
  text-decoration: none;
}

.guide-item:hover,.guide-item:focus-visible {
  border-color: var(--forest);
  background: radial-gradient(ellipse at left top,#e4ecdf 0%,transparent 70%);
}

.guide-item h3 {
  font-size: 1.23rem;
  letter-spacing: -.041em;
}

.guide-item p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.62;
  font-size: .98rem;
}

.subhead {
  padding: clamp(40px,6vw,80px) 0 32px;
  border-bottom: 1px solid var(--rule);
}

.crumb {
  font: .79rem var(--mono);
  color: #5d7163;
  margin-bottom: 22px;
}

.crumb a {
  color: var(--forest);
}

.subhead h1 {
  font-size: clamp(3rem,6vw,5.3rem);
  letter-spacing: -.074em;
}

.subhead .lede,.subhead .doc-intro {
  margin-top: 16px;
  max-width: 66ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: clamp(1.02rem,1.45vw,1.22rem);
}

.doc {
  display: grid;
  grid-template-columns: minmax(155px,.55fr) minmax(0,2fr);
  gap: clamp(25px,7vw,100px);
  padding: 40px 0 70px;
}

.doc aside {
  align-self: start;
  position: sticky;
  top: 22px;
  display: grid;
  gap: 1px;
}

.doc aside a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-size: .95rem;
}

.doc aside a:hover,.body a {
  color: var(--forest);
}

.body {
  min-width: 0;
  max-width: 83ch;
}

.body section+section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}

.body h2 {
  font-size: clamp(1.65rem,2.9vw,2.55rem);
  margin-bottom: 13px;
}

.body h3 {
  font-size: 1.25rem;
  letter-spacing: -.025em;
  margin: 18px 0 8px;
}

.body p,.body li {
  color: var(--text);
  line-height: 1.72;
}

.body p+p,.body .terminal,.body p+pre,.body table,.body .actions {
  margin-top: 13px;
}

.body pre {
  background: #e9eee6;
  border: 1px solid var(--rule);
  padding: 15px 17px;
  border-radius: 6px;
  overflow: auto;
  font: .9rem/1.65 var(--mono);
}

.body .terminal pre {
  background: transparent;
  border: 0;
}

.body p code,.body li code,.body td code {
  font-size: .88em;
  overflow-wrap: anywhere;
}

.body .actions .primary {
  color: #fff;
}

.body ul {
  padding-left: 22px;
}

.body .version {
  font: .88rem var(--mono);
  color: var(--forest);
}

.table-scroll {
  overflow-x: auto;
}

.body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}

.body th,.body td {
  padding: 11px 9px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.body th {
  background: #e6ece4;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin: 17px 0;
}

.stat {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #ecf2e7;
}

.stat b,.stat strong {
  display: block;
  font-size: clamp(2rem,3.5vw,3.2rem);
  letter-spacing: -.07em;
  color: var(--forest);
}

.stat span {
  font-size: .9rem;
  color: var(--muted);
}

@media(max-width:950px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 26px;
  }
  .hero h1 {
    font-size: clamp(3.8rem,7.4vw,5rem);
  }
  .proof-strip {
    grid-template-columns: minmax(140px,.8fr) 3fr;
  }
  .art {
    height: 148px;
  }
}

@media(max-width:735px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .nav-inner {
    min-height: 0;
    flex-wrap: wrap;
    gap: 6px;
    padding: 13px 0 4px;
  }
  .nav-inner nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  .nav-download {
    padding: 0;
    background: transparent;
    color: var(--forest);
    border-radius: 0;
  }
  .nav-download:hover,.nav-download[aria-current=page] {
    color: var(--forest);
    background: transparent;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 33px;
  }
  .hero h1 {
    font-size: clamp(3.75rem,11.5vw,5.2rem);
  }
  .hero h1 br:last-of-type {
    display: none;
  }
  .hero h1 em:after {
    content: " ";
  }
  .hero-deck {
    margin: 16px 0 21px;
  }
  .release-link {
    margin-bottom: 15px;
  }
  .art {
    height: 135px;
  }
  .sample-bottom {
    padding: 12px 15px 14px;
  }
  .proof-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 15px 0;
  }
  .proof-strip dl div {
    padding: 0 10px;
  }
  .proof-strip dl div:first-child {
    border-left: 0;
    padding-left: 0;
  }
  .proof-strip dt {
    font-size: .79rem;
  }
  .quickstart,.doc {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .quickstart h2 br {
    display: none;
  }
  .quickstart h2 em:before {
    content: " ";
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 19px;
  }
  .guide-item {
    padding-top: 12px;
  }
  .guide-heading h2 {
    font-size: 2.05rem;
  }
  .doc {
    padding: 19px 0 48px;
  }
  .doc aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 11px;
  }
  .seg button,.copy {
    min-height: 44px;
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
}

@media(max-width:540px) {
  .subhead h1 {
    font-size: clamp(2.3rem,10vw,3.1rem);
  }
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-inner nav {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .nav-item {
    font-size: .88rem;
  }
  .guide-heading {
    gap: 8px;
  }
  .footer-links {
    gap: 12px;
  }
  .file-name {
    font-size: .8rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto!important;
    animation-duration: .01ms!important;
    transition-duration: .01ms!important;
  }
}
