:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #595959;
  --link: #0b57d0;
  --line: #8a8a8a;
  --code-bg: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #e8e8e8;
    --muted: #a6a6a6;
    --link: #8cb4ff;
    --line: #6e6e6e;
    --code-bg: #1e1e1e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header, main, footer {
  max-width: 65ch;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

header nav { display: flex; gap: 16px; }

.site-title { font-weight: 700; color: var(--text); text-decoration: none; }

main { padding-top: 32px; padding-bottom: 48px; }

footer {
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p { font-size: 0.875rem; }

a { color: var(--link); }

h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-size: 1.125rem; margin: 24px 0 8px; }
p, ul, ol, pre, blockquote, figure { margin: 0 0 16px; }

.meta, .muted { color: var(--muted); font-size: 0.875rem; }

.list { list-style: none; padding: 0; }
.list li { margin: 0 0 24px; }
.list h2, .list h3 { font-size: 1.125rem; margin: 0 0 8px; }

.links { display: flex; flex-wrap: wrap; gap: 16px; }

img, iframe { max-width: 100%; height: auto; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }

blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 4px solid var(--line);
  color: var(--muted);
}

pre, code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.875rem; }
pre { padding: 16px; overflow-x: auto; background: var(--code-bg); border-radius: 8px; }
