/* Shared by the project's pages, in the tool's own palette. */
:root {
  color-scheme: dark;
  --bg: #111217; --surface: #1a1c23; --border: #2c2f3a;
  --text: #eceef3; --muted: #9ba1b0; --accent: #818cf8; --accent-fg: #0f1020; --link: #86a9f7;
  --page: 76rem;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f6f9; --surface: #eaecf1; --border: #cfd3dc;
    --text: #1b1d24; --muted: #585d6a; --accent: #4f46e5; --accent-fg: #ffffff; --link: #2356c7;
  }
}
* { box-sizing: border-box; }
::selection { background: var(--accent); color: var(--accent-fg); }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  border-top: 4px solid var(--accent);
}
/* Prose avoids a lone last word; headings even out their lines. */
p, li, figcaption { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
main { max-width: var(--page); margin: 0 auto; padding: 3rem 1rem 2rem; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:focus-visible, .button:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

nav.top { max-width: var(--page); margin: 0 auto; padding: 1rem 1rem 0; display: flex; gap: 1.5rem; font-weight: 600; }
nav.top a { text-decoration: none; color: var(--muted); padding: 0.25rem 0; border-bottom: 2px solid transparent; }
nav.top a:hover { color: var(--text); }
nav.top a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }

header { max-width: 60rem; }
h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.lede { margin: 1rem 0 0; max-width: 46rem; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.45; }
.byline { margin: 0.75rem 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.button {
  display: inline-block; padding: 0.6rem 1.15rem; border-radius: 6px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); color: var(--text); transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
.button:hover { background: var(--surface); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.button.primary:hover { filter: brightness(1.08); }

figure { margin: 3rem 0 0; }
figure img, video, .shot img {
  display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); box-shadow: 0 12px 32px -16px rgb(0 0 0 / 0.45);
}
figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }


section { margin-top: 4rem; }
section > h2 { font-size: 1.5rem; margin: 0 0 0.6rem; }
section > p { max-width: 70ch; }
pre { margin: 0.8rem 0; max-width: 46rem; padding: 0.9rem 1.1rem; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
table { border-collapse: collapse; margin: 0.8rem 0; font-variant-numeric: tabular-nums; }
th, td { padding: 0.45rem 1.25rem 0.45rem 0; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-weight: 600; }

/* Tour: on a wide screen each step's title and text sit side by side above the capture, using its width. */
.shots { display: grid; gap: 4.5rem; margin-top: 4rem; }
.shot { margin: 0; }
.shot .text { display: grid; gap: 0.4rem 3rem; margin-bottom: 1.25rem; }
.shot h2 { font-size: 1.35rem; margin: 0; line-height: 1.3; }
.shot p { margin: 0; color: var(--muted); max-width: 70ch; font-size: 1.05rem; }
@media (min-width: 56rem) {
  .shot .text { grid-template-columns: 16rem 1fr; align-items: baseline; }
}

footer { max-width: var(--page); margin: 2rem auto 0; padding: 2rem 1rem 3rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); }
/* Two lists side by side on a wide screen, one above the other on a narrow one. */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 3rem; }
.columns h3 { margin: 1rem 0 0.4rem; font-size: 1.1rem; }
.columns ul { margin: 0; padding-left: 1.2rem; }
.columns li + li { margin-top: 0.4rem; }
kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.85em; padding: 0.05em 0.35em; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }
