:root {
  color-scheme: dark;
  --bg: #111212;
  --text: #ecece8;
  --muted: #aaaead;
  --line: #353837;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  font: 100%/1.55 var(--mono);
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { max-width: 65rem; margin: auto; padding: 0 clamp(1.1rem, 4vw, 3rem); }
h1, h2, p, pre, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sr-only, input[type="radio"], .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; top: .5rem; padding: .3rem; background: var(--bg); }

header, footer, figcaption, fieldset { display: flex; align-items: center; }
header, footer, figcaption { justify-content: space-between; gap: 1rem; }
header { padding: clamp(2rem, 4vw, 3.6rem) 0 1.6rem; }
header a, footer { font-size: .85rem; color: var(--muted); }
.wordmark {
  display: block;
  width: max-content;
  white-space: pre;
  font: normal clamp(.85rem, 2.1vw, 1.25rem)/1 var(--mono);
  letter-spacing: 0;
}
.lead { font-size: clamp(1.2rem, 2.6vw, 1.8rem); line-height: 1.3; letter-spacing: -.045em; }
.summary { max-width: 77ch; margin-top: .7rem; color: var(--muted); font-size: .93rem; }

#install { margin: 1.85rem 0 2rem; }
.install-heading, #install-methods { display: flex; flex-wrap: wrap; align-items: center; }
.install-heading { justify-content: space-between; gap: .25rem 1rem; }
#install-methods { min-width: 0; gap: 0 .9rem; }
#install-methods label { padding-block: .4rem; }
label:has(input:disabled) { color: #888c89; cursor: default; }
[data-method] { display: none; }
#install:has([value="quick"]:checked) [data-method="quick"],
#install:has([value="verified"]:checked) [data-method="verified"],
#install:has([value="source"]:checked) [data-method="source"] { display: block; }
h2, figcaption > span { font-size: .95rem; font-weight: 600; }
.command-line {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin: .65rem 0 .55rem;
  padding: .85rem 1rem;
  background: #1b1d1c;
  border: 1px solid #434745;
  border-radius: 3px;
}
.prompt { user-select: none; }
pre { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
pre, code { font: .9rem/1.55 var(--mono); }
button, label { cursor: pointer; }
button { font: inherit; }
#copy { align-self: center; padding: 0; border: 0; background: none; color: var(--muted); font-size: .8rem; white-space: nowrap; }
#copy:not([hidden]) { display: inline-flex; align-items: center; gap: .4rem; }
#copy::after { content: ""; position: absolute; inset: 0; border-radius: 3px; }
#copy:hover, #copy:focus-visible { color: var(--text); }
#copy:focus-visible { outline: none; }
#copy:focus-visible::after { outline: 2px solid currentColor; outline-offset: 3px; }
.note, dd { color: var(--muted); font-size: .8rem; }
.note a { white-space: nowrap; }

.details { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4.75rem); padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
figcaption { min-height: 1.9rem; margin-bottom: .55rem; }
fieldset { border: 0; padding: 0; margin: 0; gap: .9rem; }
label { padding: .2rem 0; color: var(--muted); font-size: .8rem; }
label:has(:checked) { color: var(--text); text-decoration: underline; text-underline-offset: .3em; }
label:has(:focus-visible) { outline: 2px solid currentColor; outline-offset: 3px; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 2px; }
#upload-screen, figure:has([value="upload"]:checked) #share-screen { display: none; }
figure:has([value="upload"]:checked) #upload-screen { display: block; }
.guides h2 { line-height: 1.9rem; }
dt { margin: .75rem 0 .15rem; font-size: .93rem; }
dd + dt { margin-top: 1rem; }

footer { padding: 1rem 0 1.6rem; border-top: 1px solid var(--line); }
@media (max-width: 45rem) {
  .details { grid-template-columns: 1fr; gap: 1.5rem; }
  .wordmark { font-size: clamp(.65rem, 3vw, 1.15rem); }
  .command-line { gap: .5rem; padding: .7rem; }
}
@media (max-width: 24rem) {
  pre, code { font-size: .8rem; }
}
