:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #5f5f64;
  --line: #d8d8dc;
  --accent: #009193;      /* focus outline, matches Microfish's default */
  --accent-text: #00706f; /* links and small text on --bg: 5.9:1 */
  --button-bg: #007577;   /* white text on it: 5.5:1 */
  --button-text: #ffffff;
  --button-hover: #006466;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --bg-soft: #1f1f22;
    --text: #f2f2f4;
    --text-2: #a0a0a6;
    --line: #333337;
    --accent: #2fb5b7;
    --accent-text: #4cc9cb;  /* 9:1 on --bg */
    --button-bg: #4cc9cb;
    --button-text: #0b2a2b;  /* 7.6:1 on the button */
    --button-hover: #66d6d8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent-text); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
code, kbd { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; }
code { background: var(--bg-soft); padding: 0.1em 0.35em; border-radius: 4px; }
pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}
pre code { background: none; padding: 0; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.25rem; }
header.site .name { font-weight: 600; color: var(--text); text-decoration: none; }
header.site nav a { margin-left: 1.25rem; font-size: 0.94rem; }

.hero { padding: 2.5rem 0 1rem; }
.hero img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); }
.hero h1 { font-size: 2.25rem; line-height: 1.15; margin: 1.75rem 0 0.5rem; letter-spacing: -0.01em; }
.hero p { margin: 0.5rem 0; max-width: 40rem; }

.download { margin: 1.5rem 0 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.button {
  display: inline-block;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  min-height: 2.75rem;
}
.button:hover { background: var(--button-hover); text-decoration: none; }
.button:focus-visible { outline-color: var(--text); }
.meta { color: var(--text-2); font-size: 0.92rem; margin: 0; }

section { padding: 1.75rem 0 0.5rem; }
h2 { font-size: 1.4rem; margin: 0 0 0.6rem; line-height: 1.25; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
p { margin: 0.5rem 0; }
ol, ul { padding-left: 1.4rem; margin: 0.5rem 0; }
li { margin: 0.35rem 0; }
.note { color: var(--text-2); }

.tour-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.pause {
  font: inherit; font-size: 0.92rem; color: var(--accent-text);
  background: none; border: 1px solid var(--line); border-radius: 6px; padding: 0.2rem 0.6rem; cursor: pointer;
}
.pause:hover { border-color: var(--text-2); }
figure.clip { margin: 1.5rem 0; }
figure.clip video { cursor: pointer; }
figure.clip video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 878;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
figure.clip figcaption { margin-top: 0.5rem; }
figure.clip figcaption strong { font-weight: 600; }

footer { margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.25rem 0 2.5rem; color: var(--text-2); font-size: 0.92rem; }
footer p { margin: 0.25rem 0; }

@media (max-width: 30rem) {
  .hero { padding-top: 1.5rem; }
  .hero h1 { font-size: 1.8rem; }
  header.site nav a { margin-left: 0.9rem; }
  .button { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
