:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --ink: #f3f0ea;
  --muted: #a39e94;
  --line: #2a2c31;
  --card: #14161b;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  min-height: 100vh;
  padding: 22px 22px 32px;
}
h1, h2, p { margin: 0; }
h1 { font-family: Georgia, "Iowan Old Style", serif; font-weight: 500; font-size: 34px; letter-spacing: -0.03em; }
h2 { font-size: 18px; font-weight: 600; }
.kicker { color: var(--muted); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; }
.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.readout {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  line-height: 1.45;
  text-align: right;
  max-width: 640px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
canvas { display: block; width: 100%; height: auto; background: #081018; }
.card-copy { padding: 14px 14px 16px; display: grid; gap: 8px; }
.card-copy p { color: var(--muted); font-size: 14px; line-height: 1.4; }
button {
  appearance: none;
  border: 1px solid #3a3d44;
  background: #1c1f26;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
button:hover { border-color: #8ecae6; }
button[aria-current="true"] { background: #f3f0ea; color: #14161b; border-color: #f3f0ea; }
.note { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 820px; }
.focus { display: grid; gap: 12px; }
.focus[hidden], .gallery[hidden] { display: none; }
.focus-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.switch { display: flex; gap: 8px; flex-wrap: wrap; }
.focus canvas { width: 100%; height: min(78vh, 900px); border-radius: 16px; border: 1px solid var(--line); }
@media (max-width: 980px) {
  .gallery { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: start; }
  .readout { text-align: left; }
  body { padding: 16px; }
  h1 { font-size: 28px; }
}
