:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #1c2128;
  --muted: #57606a;
  --line: #d8dee4;
  --accent: #1A72C8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --card: #171b21;
    --ink: #e6edf3;
    --muted: #9aa4b0;
    --line: #2a313a;
    --accent: #58a6ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
main {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.75rem;
}
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .35rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 2rem 0 .5rem; letter-spacing: -.005em; }
h3 { font-size: .98rem; margin: 1.35rem 0 .3rem; }
p, li { color: var(--ink); }
ul { padding-left: 1.25rem; }
li { margin: .3rem 0; }
a { color: var(--accent); }
.sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.note {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  padding: .8rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
}
footer {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
footer a { color: var(--muted); }

/* ---- media on the project page ---- */

/* The GIF is 340px wide natively. It was being stretched to 400px, which is an
   upscale and reads soft. Cap it at its own resolution and never above. */
.shot-hero {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 2rem auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}

/* Phone captures are ~1:2.17, so three across gets tall and thin fast. Grid with
   auto-fit lets them drop to two-up and then one-up on narrow screens instead of
   shrinking into slivers. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  justify-items: center;
}
.shots img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  /* The captures have a near-white background that dissolves into the light
     theme's card. The border is what keeps them reading as screens. */
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}
.shots figure { margin: 0; display: contents; }
