/* dr is a terminal tool for reviewing diffs with the AI sessions that wrote them. This page introduces dr and its installation options. */
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/MartianMono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #fbfbfc;
  --ink: #0e1117;
  --text: #454d59;
  --muted: #5b6574;
  --line: #d9dee5;
  --surface: #f0f2f5;
  --button: #ffffff;
  --accent: #2c6ad8;
  --fix: #087968;
  --mono: "Martian Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d1015;
    --ink: #f1f4f8;
    --text: #bac2ce;
    --muted: #9ba5b5;
    --line: #303845;
    --surface: #161b23;
    --button: #222a35;
    --accent: #6fb3ff;
    --fix: #4fd6be;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { color: var(--ink); text-decoration: underline; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--page); }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
code, kbd { font-family: var(--mono); font-size: .76em; }
p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h2 { font-size: 36px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
.skip { position: absolute; top: 12px; left: 12px; padding: 12px; background: var(--page); transform: translateY(-160%); z-index: 2; }
.skip:focus { transform: none; }
.header { height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand, .brand img { display: block; }
nav { display: flex; gap: 30px; align-items: center; font-size: 14px; font-weight: 500; }
nav a { padding-block: 10px; }
.nav-install { padding: 8px 15px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.nav-install span { margin-left: 10px; }
.hero { text-align: center; padding-block: 76px 52px; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .055em; margin-bottom: 20px; }
h1 { font-size: clamp(44px, 5.3vw, 76px); font-weight: 600; letter-spacing: -.055em; line-height: 1.06; }
h1 span { display: block; }
.hero-install { max-width: 418px; margin: 40px auto 0; scroll-margin-top: 32px; }
.command { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 9px 10px 9px 16px; min-width: 0; text-align: left; }
.command code { flex: 1; min-width: 0; color: var(--ink); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.primary-command { padding-left: 19px; box-shadow: 0 2px 3px #00000004; }
.primary-command code { font-size: 12px; }
.prompt { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.copy { background: var(--button); color: var(--text); border: 1px solid var(--line); padding: 7px 10px; min-height: 36px; min-width: 64px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.copy:hover { border-color: var(--muted); color: var(--ink); }
.copy[data-copied] { color: var(--fix); }
.install-meta { display: flex; justify-content: center; gap: 12px; color: var(--muted); margin-top: 13px; font-size: 12px; }
.demo { margin-top: 0; }
.demo-frame { border: 1px solid #303845; border-radius: 10px; overflow: hidden; background: #0d1015; box-shadow: 0 12px 40px -16px #00000038; }
.demo img { display: block; width: 100%; height: auto; }
figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 12px; color: var(--muted); }
figcaption span span { margin-inline: 9px; }
.features { padding-top: 115px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-heading .eyebrow, .install .eyebrow { margin-bottom: 13px; }
.text-link { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.text-link span { margin-left: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; gap: 44px; }
.feature-grid article { padding-top: 28px; border-top: 1px solid var(--line); }
.feature-cue { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 22px; color: var(--muted); }
kbd { border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; background: var(--surface); color: var(--ink); white-space: nowrap; }
.feature-cue kbd { min-width: 30px; padding: 4px 8px; text-align: center; font-size: 11px; }
.feature-grid p, .details-grid p { margin-top: 12px; font-size: 16px; line-height: 1.7; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 30px 34px; margin-top: 42px; }
.details-grid h3 { font-size: 17px; }
.details-grid p { margin-top: 8px; font-size: 14px; }
.install { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; margin-top: 116px; border-top: 1px solid var(--line); padding-top: 64px; scroll-margin-top: 32px; }
.install-heading h2 code { font-size: .8em; font-weight: 500; letter-spacing: -.05em; }
.install-heading p:not(.eyebrow) { font-size: 15px; margin-top: 23px; max-width: 340px; }
.install-heading .text-link { display: inline-block; margin-top: 24px; }
.method-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.method-heading h3 { font-size: 15px; letter-spacing: -.01em; }
.method-heading a { font-size: 12px; color: var(--muted); }
.method { padding-top: 25px; }
.method + .method { margin-top: 24px; border-top: 1px solid var(--line); }
.method h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.method h4 span { font-size: 12px; color: var(--muted); font-weight: 400; }
.method p { margin-top: 10px; font-size: 12px; line-height: 1.9; color: var(--muted); overflow-wrap: anywhere; }
.method p code { font-size: .9em; }
.footer { margin-top: 105px; padding-block: 28px 36px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-top p { color: var(--ink); font-size: 20px; font-weight: 600; }
.footer-top p span { margin-left: 18px; font-size: 12px; color: var(--muted); font-weight: 400; }
.footer nav { gap: 24px; font-size: 12px; }
.privacy { color: var(--muted); font-size: 11px; margin-top: 15px; }
.copy-status { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); border-radius: 6px; background: var(--ink); color: var(--page); font-size: 13px; box-shadow: 0 5px 20px #00000020; z-index: 3; }
.copy-status:not(:empty) { padding: 12px 18px; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .feature-grid { gap: 26px; }
  .install { gap: 48px; grid-template-columns: .8fr 1.2fr; }
  .footer-top p span { display: block; margin-left: 0; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 80px; }
  .header img { width: 34px; height: 34px; }
  nav { gap: 19px; font-size: 12px; }
  .nav-install { padding-inline: 10px; }
  .nav-install span { margin-left: 5px; }
  .hero { padding-block: 55px 36px; }
  .eyebrow { font-size: 11px; letter-spacing: .035em; }
  h1 { font-size: clamp(34px, 7.7vw, 52px); letter-spacing: -.045em; line-height: 1.12; }
  .hero-install { margin-top: 30px; }
  .primary-command { gap: 9px; padding-left: 12px; }
  .primary-command code { font-size: 10px; }
  .copy { min-width: 58px; padding-inline: 7px; }
  .install-meta { font-size: 11px; gap: 8px; }
  .demo-frame { border-radius: 5px; }
  figcaption { flex-direction: column; align-items: center; text-align: center; font-size: 10px; gap: 5px; padding-top: 14px; }
  .features { padding-top: 65px; }
  h2 { font-size: 30px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .feature-grid article { padding-top: 24px; }
  .feature-cue { margin-bottom: 14px; }
  .feature-grid p { margin-top: 10px; }
  .details-grid { grid-template-columns: 1fr; padding: 24px; gap: 24px; margin-top: 32px; }
  .install { grid-template-columns: 1fr; margin-top: 64px; padding-top: 40px; gap: 36px; }
  .install-heading p:not(.eyebrow) { max-width: none; margin-top: 18px; }
  .method-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .method .command { gap: 8px; padding-left: 12px; }
  .method .command code { font-size: 10px; }
  .footer { margin-top: 65px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-top p span { display: inline; margin-left: 12px; font-size: 10px; }
  .footer nav { gap: 22px; }
  .privacy { font-size: 10px; }
}
