/* Same tokens and type as aindriub.app, so the two read as one site. dl. has
   its own document root, so the font is a copy rather than a link. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/_assets/bricolage-grotesque-latin-opsz.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F2F5F3;
  --ink: #1F2633;
  --muted: #566173;
  --rule: #D5DDD8;
  --link-line: #4FBF7C;
  --focus: #465568;
  --code-bg: #E4EAE6;
  --note-bg: #E8F7EE;
  --note-line: #4FBF7C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171C25;
    --ink: #E6ECE8;
    --muted: #9AA6B6;
    --rule: #2C3442;
    --link-line: #85EEAB;
    --focus: #85EEAB;
    --code-bg: #222A36;
    --note-bg: #1D2A27;
    --note-line: #85EEAB;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body { margin: 0; }

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 1rem 3rem;
}

header { margin-bottom: 3rem; }
.home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 560;
  text-decoration: none;
  margin-bottom: 2rem;
}
.home img { width: 1.75rem; height: auto; }
.home:hover { color: var(--ink); }

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.5rem);
  font-weight: 760;
  font-variation-settings: "opsz" 96;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}
.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  margin: 0;
  max-width: 36rem;
}

/* The page is a real sequence -- install, pair, connect -- so the steps are
   numbered. Nothing else is. */
.step {
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
  margin-top: 2.75rem;
}
.step > h2 {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}
.step > h2 .n { color: var(--muted); font-weight: 600; }
.step > :not(h2) { margin-left: 2.25rem; }

h3 {
  font-size: 1.125rem;
  font-weight: 680;
  margin: 2rem 0 0.5rem;
}

p, li {
  font-size: 1.0625rem;
  line-height: 1.62;
}
p { margin: 0 0 0.75rem; }
ol, ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--muted); }

.who { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1rem; }

a {
  color: inherit;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.2em;
  border-radius: 2px;
}
a:hover { text-decoration-thickness: 0.28em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0.25rem 0 1rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; font-size: 0.9rem; overflow-wrap: normal; }

/* Files to fetch: a plain definition list, name then what it is. */
.files { margin: 0.5rem 0 1.25rem; }
.files dt { font-weight: 600; }
.files dd { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.9375rem; }

.note {
  background: var(--note-bg);
  border-left: 3px solid var(--note-line);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0 1.25rem;
}
.note p { margin: 0; font-size: 1rem; }

footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 34rem) {
  .step > h2 { grid-template-columns: 1.75rem 1fr; }
  .step > :not(h2) { margin-left: 0; }
}
