:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-deep: #e8dfcf;
  --ink: #181713;
  --muted: #686257;
  --red: #982d27;
  --rule: #c9c0b1;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1180px, calc(100vw - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--red);
}

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

.install-section a:focus-visible {
  outline-color: var(--paper);
}

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

code {
  font-size: 0.92em;
}

pre {
  max-width: 100%;
  margin: 1.4rem 0;
  overflow-x: auto;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(0.83rem, 1.2vw, 0.96rem);
  line-height: 1.5;
}

pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 1.05rem 1.15rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 0.7rem 1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

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

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--red);
}

.hero {
  display: grid;
  min-height: calc(100svh - 71px);
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.27fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(5rem, 11vh, 9rem) 2rem;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.5rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.25rem, 9.8vw, 9.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 em {
  color: var(--red);
  font-weight: 400;
}

.hero-lede {
  max-width: 620px;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-lede code {
  color: var(--red);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  border-color: var(--red);
  background: var(--red);
}

.button-secondary:hover {
  background: var(--paper-deep);
}

.hero-aside {
  align-self: end;
  margin-bottom: 4rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--red);
}

.hero-if {
  display: block;
  margin-left: -0.08em;
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 9rem);
  font-style: italic;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.hero-aside p {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero-facts {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 4rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.section {
  display: grid;
  grid-template-columns: minmax(72px, 0.22fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--rule);
}

.section-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.section-content h2,
.install-content h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.prompt {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: 1.2rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.prompt span,
.response-header span,
.install-path span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.response {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem) 0;
}

.response + .response {
  padding-right: 0;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  border-left: 1px solid var(--rule);
}

.response-after {
  background: color-mix(in srgb, var(--red) 4%, transparent);
}

.response-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.response-header h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.response-header h3 code {
  color: var(--red);
}

.response-body {
  padding-top: 1rem;
}

.response-body p {
  max-width: 520px;
  margin: 0 0 1.2rem;
  color: #3f3c35;
}

.response-body p:last-child {
  margin-bottom: 0;
}

.principles-list {
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.principles-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.principle-number {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.principles-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.principles-list p {
  max-width: 690px;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.install-section {
  background: var(--ink);
  color: var(--paper);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(72px, 0.22fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-index-light {
  color: #9d968b;
}

.section-kicker-light {
  color: #d65a4e;
}

.install-lede {
  max-width: 690px;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  color: #c8c0b4;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.install-lede code {
  color: var(--paper);
}

.install-path {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 3rem);
  margin-top: 3rem;
  padding: 1.3rem 0;
  border-top: 1px solid #4d4942;
  border-bottom: 1px solid #4d4942;
}

.install-path span {
  color: #9d968b;
}

.install-path code {
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.button-light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  border-color: #d65a4e;
  background: #d65a4e;
  color: var(--ink);
}

.button-dark-outline {
  border-color: #6a645b;
  color: var(--paper);
}

.button-dark-outline:hover {
  border-color: var(--paper);
}

.install-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid #4d4942;
  color: #9d968b;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  list-style: none;
  text-transform: uppercase;
}

.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
}

.source-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.source-links {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}

.source-links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-decoration: none;
}

.source-links a:hover {
  color: var(--red);
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-aside {
    display: none;
  }

  .hero-facts {
    margin-top: 5rem;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

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

  .header-inner {
    min-height: 0;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.85rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.8rem;
    overflow-x: auto;
  }

  .hero {
    min-height: calc(100svh - 106px);
    padding-block: 4rem 1.2rem;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 17.5vw, 6.25rem);
    line-height: 0.85;
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero-lede {
    margin-top: 2.5rem;
  }

  .hero-facts {
    flex-wrap: wrap;
    align-self: end;
    margin-top: 4rem;
  }

  .section,
  .install-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-index {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--rule);
  }

  .section-index-light {
    border-color: #4d4942;
  }

  .prompt {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .response {
    padding-right: 0;
  }

  .response + .response {
    padding-left: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .principles-list li {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .install-path {
    display: grid;
    gap: 0.55rem;
  }

  .install-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding-block: 1.5rem;
  }
}

@media (max-width: 430px) {
  .nav a:nth-child(2) {
    display: none;
  }

  .actions,
  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .actions,
  .skip-link {
    display: none;
  }

  body,
  .install-section {
    background: #fff;
    color: #000;
  }

  .install-lede,
  .install-facts,
  .section-index-light {
    color: #333;
  }

  pre {
    border: 1px solid #999;
    background: #fff;
    color: #000;
  }

  .install-lede code,
  .install-path code {
    color: #000;
  }

  .section,
  .install-grid {
    break-inside: avoid;
  }
}
