:root {
  color-scheme: light dark;
  --bg: #f4f6f8;
  --ink: #1c2128;
  --muted: #5c6773;
  --line: #e2e6eb;
  --paper: #ffffff;
  --notice: #f3f7fb;
  --accent: #1b6ec2;
  --on-accent: #ffffff;
  --focus: #1b6ec2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --ink: #f2f4f7;
    --muted: #aeb6c0;
    --line: #2a3036;
    --paper: #1b1f24;
    --notice: #1a2430;
    --accent: #8ebfff;
    --on-accent: #0e141b;
    --focus: #8ebfff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 640px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2rem 0 0.6rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

p, ul, ol { margin: 0.7rem 0; }

.lede {
  font-size: 1.12rem;
  margin-top: 0;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.2rem 1.15rem 0.4rem;
  margin: 1.25rem 0;
}

.notice {
  background: var(--notice);
}

.card h2:first-child,
.card h3:first-child { margin-top: 0.85rem; }

a { color: var(--accent); overflow-wrap: anywhere; }

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.button {
  display: inline-block;
  margin: 0.4rem 0;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
}

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

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.shots figure { margin: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.shots figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
  }

  .shots figure {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

code { font-size: 0.92em; }
