:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  --accent: #9b4e32;
  --canvas: #f7f1e4;
  --ink: #2e251f;
  --border: #d8d0c4;
  --muted: #786f67;
  --panel: #ece2d0;
  --control: #f9f2e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #14100e;
    --ink: #f9f2e6;
    --border: #372d27;
    --muted: #aca39b;
    --panel: #ffffff0e;
    --control: #1e1714;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
main { margin: 3rem auto; max-width: 48rem; padding: 0 1.5rem 3rem; }
main.narrow { max-width: 36rem; }
.landing-page main { max-width: 72rem; }
.site-brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; font-size: .95rem; font-weight: 650; text-decoration: none; }
.site-brand img { width: 40px; height: 40px; }
.site-brand.hero { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.site-brand.hero img { width: 144px; height: 144px; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -.04em; line-height: 1.05; margin: 2.5rem 0 1.25rem; }
h2 { font-size: 1.6rem; letter-spacing: -.025em; margin: 3rem 0 1rem; }
h3 { font-size: 1.15rem; letter-spacing: -.015em; margin: 2.5rem 0 .75rem; }
p, li { font-size: 1.05rem; line-height: 1.6; }
.lead { color: var(--muted); font-size: 1.2rem; }
.note { color: var(--muted); font-size: .875rem; }
a { color: var(--accent); }
ol { padding-left: 1.5rem; }
li { margin: .65rem 0; padding-left: .35rem; }
.command-line { display: flex; align-items: center; gap: 12px; min-width: 0; margin-top: 1.5rem; }
.command-line button { flex: none; }
pre { flex: 1; min-width: 0; margin: 0; overflow: hidden; white-space: pre; font: .8rem/1.6 ui-monospace, monospace; }
code { font-family: ui-monospace, monospace; }
button, .button, .actions a { display: inline-flex; align-items: center; justify-content: center; background: var(--control); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; padding: 4px 11px; min-height: 28px; cursor: pointer; font: 500 13px/18px system-ui, sans-serif; text-decoration: none; box-shadow: 0 1px 1px #0000000d; }
button:hover, .button:hover, .actions a:hover { filter: brightness(.96); }
button:active, .button:active, .actions a:active { filter: brightness(.90); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary, .actions a.primary { background: var(--accent); border-color: transparent; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.callout { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; margin: 1.25rem 0; padding: .25rem 1rem; }
.warning { border-left: 4px solid var(--accent); }
.frontpage-sections { margin-top: 2.5rem; }
.frontpage-sections h1 { margin-top: 0; }
.recall-section { margin-top: 4rem; }
.recall-section h2 { font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.05; margin: 0 0 1.25rem; }
.chat-example { display: grid; gap: 1rem; margin: 1.5rem 0; }
.chat-message { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.chat-message p { margin: .45rem 0 0; }
.user-message { background: var(--panel); margin-left: 2rem; }
.agent-message { background: var(--control); margin-right: 2rem; }
.chat-role { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.recall-status { align-items: center; color: var(--muted); display: flex; font-size: .85rem; gap: .55rem; padding-left: .4rem; }
.status-dot { background: var(--accent); border-radius: 50%; height: .5rem; width: .5rem; }
.install-page main { margin-top: 2rem; }
.install-page h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin: 1.5rem 0 1rem; }
.install-phase { align-items: center; display: flex; font-size: .95rem; font-weight: 650; gap: .55rem; margin: 2rem 0 .75rem; }
.install-phase span { align-items: center; background: var(--accent); border-radius: 999px; color: #fff; display: inline-flex; flex: none; font: 650 .75rem/1 system-ui, sans-serif; height: 1.45rem; justify-content: center; width: 1.45rem; }
.install-guide { margin-top: 3rem; }
.install-guide > .install-phase { margin-top: 0; }
.install-guide h2 { font-size: 1.15rem; margin: 1.75rem 0 .45rem; }
.install-guide p, .install-guide li { font-size: .95rem; line-height: 1.4; }
.install-guide ol { margin: .4rem 0 1rem; }
.install-guide li { margin: .3rem 0; }
figure { margin: .75rem 0 1.25rem; }
figure img { background: #111; border: 1px solid var(--border); border-radius: 8px; display: block; height: auto; max-width: min(100%, 26rem); }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

@media (min-width: 52rem) {
  .guide-illustrated { align-items: start; column-gap: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) 20rem; }
  .guide-illustrated figure { margin: 0; }
  .guide-illustrated figure img { max-width: 100%; }
}

@media (min-width: 68rem) {
  .frontpage-sections { align-items: start; display: grid; gap: 4rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .recall-section { margin-top: 0; }
}

@media (max-width: 36rem) {
  main { margin-top: 2rem; padding-inline: 1.1rem; }
  .site-brand.hero img { width: 112px; height: 112px; }
}
