@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root { --paper:#f3efe7; --sky:#f3efe7; --ground:#f0ebe2; --ink:#171512; --grey:#6e675c; --line:#ddd5c7; --prompt:#8f5a2e; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper:#0e0d0c; --sky:#121110; --ground:#0e0d0c; --ink:#ece8e1; --grey:#857e74; --line:#262320; --prompt:#c8834a; color-scheme: dark; } }
:root[data-theme="dark"] { --paper:#0e0d0c; --sky:#121110; --ground:#0e0d0c; --ink:#ece8e1; --grey:#857e74; --line:#262320; --prompt:#c8834a; color-scheme: dark; }

* { box-sizing: border-box; }
html { scrollbar-gutter: stable both-edges; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 400 15px/1.65 "Geist", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.mono, code { font-family: "Geist Mono", ui-monospace, Menlo, monospace; }
.grey { color: var(--grey); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* theme switch */
.theme { position: absolute; z-index: 10; top: 14px; right: 16px; width: 26px; height: 26px; padding: 4px; cursor: pointer; color: var(--grey); background: none; border: 0; }
.theme:hover { color: var(--ink); }
.theme svg { width: 18px; height: 18px; display: block; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: none; } :root:not([data-theme="light"]) .theme .moon { display: block; } }

/* pixel art */
.roo svg { width: 100%; height: 100%; display: block; overflow: visible; shape-rendering: crispEdges; }
.roo noscript img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.roo rect { transition: opacity .7s ease, transform .9s cubic-bezier(.3,.6,.3,1), fill .6s ease; transform-box: fill-box; }
.roo .head { transition: transform .25s ease; }

/* home: the horizon, sky above it and ground below. A browser without :has
   keeps the whole page on the paper. */
html:has(.top), body:has(.top) { background: var(--ground); }
.top { height: 50vh; min-height: 320px; display: flex; align-items: flex-end; justify-content: center; position: relative; overflow: hidden; background: var(--sky); }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.top .roo { width: 208px; height: 208px; margin-bottom: -13px; }

/* the sun and the moon, and the line beside them */
.orb { position: absolute; left: 0; top: 0; z-index: 5; width: 45px; height: 45px; padding: 0; border: 0; background: none; cursor: pointer; }
.orb svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.orb.glide { transition: transform .6s cubic-bezier(.4, .1, .3, 1); }
.cap { position: absolute; left: 0; top: 0; z-index: 4; font: 10.5px/1.35 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: .02em; color: var(--grey); white-space: pre; pointer-events: none; transition: opacity .6s ease; }
.cap.fade { opacity: 0; }

/* columns */
.wrap { max-width: 560px; margin: 0 auto; padding: 44px 24px 40px; }
.name { font-size: 15px; margin: 0; font-weight: 400; }
.tagline { color: var(--grey); margin: 4px 0 40px; max-width: 440px; }

/* install line */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; }
.tab { font: inherit; font-size: 12.5px; color: var(--grey); cursor: pointer; padding: 2px 0; background: none; border: 0; border-bottom: 1px solid transparent; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--prompt); }
.cmd { display: flex; align-items: center; gap: 12px; width: 100%; font: 14px "Geist Mono", ui-monospace, Menlo, monospace; color: var(--ink); text-align: left;
       cursor: pointer; padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cmd .text { white-space: normal; overflow-wrap: anywhere; min-width: 0; flex: 1 1 auto; }
.cmd .p { color: var(--prompt); }
.cmd .cursor { width: 8px; height: 15px; background: var(--ink); display: inline-block; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; margin-left: 4px; }
@keyframes blink { 50% { opacity: 0; } }
.cmd .copy { margin-left: auto; flex: none; font: 12.5px "Geist", sans-serif; color: var(--grey); }
.cmd:hover .copy { color: var(--ink); }

/* links */
.links { display: flex; gap: 28px; margin-top: 30px; font-size: 14px; }
.links a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.links a svg { width: 12px; height: 12px; transition: transform .2s ease; }
.links a:hover svg { transform: translate(2px, -2px); }
.links a:hover svg.in { transform: translateX(2px); }

/* why a babysitter */
.why { max-width: 440px; margin: -32px 0 32px; }
.why summary { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--grey); cursor: pointer; user-select: none; padding: 2px 0; list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary:hover { color: var(--ink); }
.why summary svg { width: 10px; height: 10px; transition: transform .2s ease; }
.why[open] summary svg { transform: rotate(90deg); }
.why-body { color: var(--grey); font-size: 14px; line-height: 1.6; margin-top: 6px; }
.why-body p { margin: 0 0 10px; }
.why-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.why-body a:hover { text-decoration-color: var(--ink); }
.why-body sup { font-size: .7em; line-height: 0; }
.why-body a.fn { color: var(--ink); text-decoration: none; padding: 0 1px; }
.why-body a.fn:hover { text-decoration: underline; }
.why-body ol.notes { margin: 12px 0 0; padding-left: 18px; font-size: 13px; }
.why-body ol.notes li { margin: 0 0 6px; }
.why-body code { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: .92em; color: var(--ink); }
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .why::details-content { height: 0; opacity: 0; overflow: clip; transition: content-visibility .3s allow-discrete, height .3s ease, opacity .3s ease; }
  .why[open]::details-content { height: auto; opacity: 1; }
}

/* footer */
.foot { max-width: 560px; margin: 0 auto; padding: 60px 24px 40px; font-size: 12px; color: var(--grey); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .cmd .cursor { animation: none; }
  .roo rect, .roo .head { transition: none; }
  .orb.glide, .cap { transition: none; }
  .why summary svg, .why::details-content { transition: none; }
}
@media (max-width: 480px) {
  .top { height: 46vh; min-height: 300px; }
  .top .roo { width: 160px; height: 160px; margin-bottom: -10px; }
  .orb { width: 36px; height: 36px; }
}

/* not found: the lone baby, 6 px to a pixel */
.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.lost + .foot { text-align: center; }
.lost .roo.baby { width: 24px; height: 36px; shape-rendering: crispEdges; }
