:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #252321;
  --muted: #5e5954;
  --rule: #c7c3bd;
  --route: #ae3023;
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
.wrap { width: min(72rem, calc(100% - 5rem)); margin-inline: auto; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, summary:hover { color: var(--route); }
:focus-visible { outline: 2px solid var(--route); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 2; padding: .5rem 1rem; background: white; }
.skip:focus { top: .5rem; }
.masthead, footer, .prompt-actions { display: flex; align-items: center; }
.masthead { min-height: 4.25rem; border-bottom: 2px solid var(--ink); }
.brand { font: bold 2rem/1 var(--serif); letter-spacing: -.08em; text-decoration: none; }
.brand span { color: var(--route); }
.hero { display: grid; grid-template-columns: 4fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 4.5vw, 4.5rem); }
h1 { font-family: var(--serif); font-weight: 400; max-width: 8ch; font-size: clamp(3.8rem, 7.7vw, 7.25rem); letter-spacing: -.062em; line-height: .95; }
.lede { max-width: 30ch; margin-top: 1.5rem; font-size: clamp(1.15rem, 1.75vw, 1.45rem); line-height: 1.45; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
#chat-install { min-width: 0; }
#install { margin-top: 1rem; scroll-margin-top: 1rem; }
#install label { display: block; margin-bottom: .3rem; font-weight: 600; }
#paste-instructions { color: var(--muted); }
.help { border-top: 1px solid var(--rule); padding-block: 1.2rem; }
.help p { max-width: 67ch; }
summary { cursor: pointer; width: fit-content; padding-block: .35rem; text-decoration: underline; text-underline-offset: .18em; }
summary::marker { color: var(--muted); font-size: .8em; }
.method-body { padding: .25rem .25rem 1.4rem; scroll-margin-top: 1rem; }
.method-body h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.method-body ol { margin: 0 0 1.2rem; padding-left: 1.5rem; max-width: 67ch; }
.method-body li + li { margin-top: .5rem; }
.method-body li::marker { color: var(--muted); }
#prompt-text {
  display: block;
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid #76736f;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgb(30 30 30 / .13);
  background: white;
  color: var(--ink);
  font: 1rem/1.4 var(--sans);
  resize: vertical;
}
.prompt-actions { gap: .8rem; margin-block: .65rem 1rem; font-size: .9rem; }
button { background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 2px; padding: .45rem .85rem; font: 600 .95rem/1.4 var(--sans); cursor: pointer; }
button:hover { background: #49433e; }
.note, footer { color: var(--muted); font-size: .9rem; }
details p { margin-top: .75rem; }
footer { justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-block: 1.2rem 1.8rem; }
@media (max-width: 48rem), (pointer: coarse) and (max-height: 30rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 1.75rem; }
  h1 { max-width: none; font-size: clamp(2.7rem, 10vw, 3.8rem); }
  .lede { margin-top: .8rem; }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 3.75rem; }
  .brand { font-size: 1.7rem; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 30rem) {
  #prompt-text { height: 4.5rem; }
}
