:root {
  color-scheme: light;
  --paper: #f2efe6;
  --paper-deep: #e8e3d7;
  --surface: #fffefa;
  --ink: #302d2a;
  --muted: #706b65;
  --rule: #d7d0c3;
  --accent: #c44832;
  --accent-dark: #983522;
  --link: #075e70;
  --link-dark: #064958;
  --code: #282725;
  --code-ink: #f4f0e8;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--link-dark);
}

a:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

img {
  display: block;
  height: auto;
}

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

code {
  font-size: 0.9em;
}

kbd {
  display: inline-block;
  padding: 0.08rem 0.38rem;
  color: #403b36;
  background: #fbfaf5;
  border: 1px solid #c9c1b3;
  border-bottom-width: 2px;
  border-radius: 3px;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: nowrap;
}

pre {
  max-width: 100%;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  color: var(--code-ink);
  background: var(--code);
  border-radius: 4px;
  font-size: 0.86rem;
  line-height: 1.6;
  tab-size: 2;
}

pre code {
  font-size: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure,
pre {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 17ch;
  margin-bottom: 1.15rem;
  font-size: clamp(2.55rem, 5.4vw, 3.85rem);
  line-height: 1.03;
}

h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.16;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

h3 small {
  color: var(--muted);
  font-weight: 400;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  transform: translateY(-180%);
  color: white;
  background: var(--accent-dark);
  border-radius: 3px;
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(9px);
}

.header-inner {
  display: flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent-dark);
}

.wordmark-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 750;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.84rem;
  font-weight: 650;
}

.site-header nav a {
  color: #504b46;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--accent-dark);
}

.page {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.75rem);
  padding-top: clamp(3.25rem, 7vw, 6rem);
  padding-bottom: 6rem;
}

.contents {
  align-self: start;
  position: sticky;
  top: 6.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.contents p {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contents nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
}

.contents a {
  padding: 0.34rem 0.75rem;
  color: var(--muted);
  text-decoration: none;
}

.contents a:hover {
  color: var(--accent-dark);
  border-left: 2px solid var(--accent);
  margin-left: -1px;
}

main {
  min-width: 0;
  max-width: 870px;
}

main > section {
  max-width: 730px;
  padding: 4.4rem 0;
  border-top: 1px solid var(--rule);
}

main > .intro {
  padding-top: 0;
  padding-bottom: 2.6rem;
  border-top: 0;
}

.eyebrow,
.section-label {
  margin-bottom: 0.65rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.definition {
  max-width: 690px;
  margin-bottom: 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.23rem, 2.5vw, 1.55rem);
  line-height: 1.45;
}

.summary {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.primary-link {
  display: inline-block;
  padding: 0.48rem 0.78rem;
  color: white;
  background: var(--accent);
  border-radius: 3px;
  text-decoration: none;
}

.primary-link:hover {
  color: white;
  background: var(--accent-dark);
}

.section-heading {
  margin-bottom: 1.7rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.screenshot {
  margin: 0 0 1rem;
}

.screenshot > a {
  display: block;
  padding: 6px;
  overflow: auto;
  background: #272523;
  border: 1px solid #171614;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgb(58 49 39 / 12%);
}

.screenshot img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.screenshot figcaption {
  max-width: 720px;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.screenshot-wide {
  width: 100%;
  max-width: 870px;
  padding-bottom: 4.4rem;
}

.screenshot-tall {
  max-width: 730px;
  margin-top: 2.3rem;
}

.example-list {
  padding-left: 1.2rem;
}

.example-list li::marker {
  color: var(--accent);
}

.problem-list,
.feature-list {
  margin: 1.5rem 0;
}

.problem-list > div,
.feature-list > div {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}

.problem-list > div:last-child,
.feature-list > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.problem-list dt,
.feature-list dt {
  font-weight: 750;
}

.problem-list dd,
.feature-list dd {
  margin: 0;
  color: #56514c;
}

.plain-conclusion {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 650;
}

.tour-steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.tour-steps > li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1.05rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
}

.tour-steps > li:last-child {
  border-bottom: 1px solid var(--rule);
}

.tour-steps p {
  margin-bottom: 0.5rem;
}

.step-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--accent-dark);
  background: var(--paper-deep);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 750;
}

.command {
  color: var(--muted);
  font-size: 0.8rem;
}

.doc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.doc-links > a {
  display: flex;
  min-height: 8rem;
  flex-direction: column;
  padding: 1rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
}

.doc-links > a:hover {
  background: var(--surface);
  border-color: #b9af9f;
}

.doc-links strong {
  margin-bottom: 0.35rem;
  color: var(--link-dark);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.doc-links span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.tree {
  margin: 1.65rem 0;
}

footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  min-height: 7rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #5f5a54;
  font-size: 0.8rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 1rem;
}

@media (max-width: 860px) {
  .site-header nav a:nth-child(-n + 2) {
    display: none;
  }

  .page {
    display: block;
    padding-top: 2.8rem;
  }

  .contents {
    position: static;
    margin-bottom: 3.5rem;
    padding: 0.9rem 1rem;
    background: color-mix(in srgb, var(--surface) 68%, transparent);
    border: 1px solid var(--rule);
    border-radius: 4px;
  }

  .contents nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
  }

  .contents a {
    padding-inline: 0;
  }

  .contents a:hover {
    margin-left: 0;
    border-left: 0;
  }

  main {
    max-width: none;
  }

  main > section,
  .screenshot-wide {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 0.96rem;
  }

  .wrap {
    width: min(100% - 1.2rem, 1120px);
  }

  .header-inner {
    min-height: 3.75rem;
  }

  .wordmark {
    font-size: 1.12rem;
  }

  .wordmark-mark {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.88rem;
  }

  .site-header nav {
    gap: 0.8rem;
    font-size: 0.76rem;
  }

  .site-header nav a:nth-child(-n + 3) {
    display: none;
  }

  .contents nav,
  .doc-links {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.45rem, 12.5vw, 3.4rem);
  }

  main > section {
    padding: 3.5rem 0;
  }

  .problem-list > div,
  .feature-list > div {
    display: block;
  }

  .problem-list dt,
  .feature-list dt {
    margin-bottom: 0.25rem;
  }

  .tour-steps > li {
    grid-template-columns: 2rem 1fr;
    gap: 0.8rem;
  }

  .step-number {
    width: 1.75rem;
    height: 1.75rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
  }
}

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