/* N1MM Scope Bridge website: one stylesheet, light and dark (STYLE.md, Website). */
:root {
  --bg: #ffffff;
  --fg: #1b1f24;
  --muted: #57606a;
  --accent: #0b6e8a;
  --accent-fg: #ffffff;
  --surface: #f3f6f9;
  --border: #d0d7de;
  --banner-bg: #fff4ce;
  --banner-fg: #3b2e00;
  --max: 64rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --fg: #e6edf3;
    --muted: #9da7b1;
    --accent: #5cc8e6;
    --accent-fg: #0f1419;
    --surface: #161d24;
    --border: #30363d;
    --banner-bg: #3b2e00;
    --banner-fg: #fff4ce;
  }
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.6 system-ui, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--fg); text-decoration: none; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

.banner { background: var(--banner-bg); color: var(--banner-fg); padding: 0.6rem 0; }
.banner a { color: inherit; font-weight: 600; }

.hero { padding: 3rem 0 2rem; background: linear-gradient(180deg, var(--surface), var(--bg)); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 1rem; }
h2 { margin-top: 2.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-fg);
  padding: 0.7rem 1.2rem; border-radius: 0.5rem; font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.steps li { margin-bottom: 0.6rem; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface); }
code { background: var(--surface); padding: 0.1rem 0.3rem; border-radius: 0.25rem; }
.note { color: var(--muted); font-size: 0.95rem; }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.95rem; padding: 1rem 0; }

/* Screenshots (#68): explicit width/height from the manifest keep layout stable. */
.screenshot { margin: 1.5rem 0; }
.screenshot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
.screenshot video { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
.hero .screenshot video { box-shadow: 0 8px 24px rgb(0 0 0 / 15%); }
/* Live recordings: the colour-scheme variant plays; reduced motion gets a still. */
.motion-dark, .motion-still { display: none; }
@media (prefers-color-scheme: dark) {
  .motion-light { display: none; }
  .motion-dark { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .screenshot video.motion { display: none; }
  .motion-still { display: block; }
}
.screenshot figcaption { margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.gallery .screenshot { margin: 0; }
.hero .screenshot img { box-shadow: 0 8px 24px rgb(0 0 0 / 15%); }
.badge { display: inline-block; margin-left: .5rem; padding: 0 .5rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: .8rem; }

/* Tables (user-doc pages such as Troubleshooting, #23) */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
blockquote { margin: 1rem 0; padding: .25rem 1rem; border-left: 4px solid var(--border); }
pre { overflow-x: auto; padding: .75rem; border: 1px solid var(--border); border-radius: 6px; }

/* SHA-256 checksums wrap on narrow screens instead of scrolling the page. */
.checksum { overflow-wrap: anywhere; }
