:root {
  --bg: #fbf8f3;
  --fg: #2b2622;
  --muted: #7a6f66;
  --card: #ffffff;
  --line: #ece5db;
  --accent: #c27c5b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a18;
    --fg: #ece6de;
    --muted: #a39789;
    --card: #262320;
    --line: #34302b;
    --accent: #e0a07f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

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

header { padding-top: 56px; text-align: center; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 .amp { color: var(--accent); font-weight: 400; }

.zh { margin: 4px 0 0; color: var(--muted); letter-spacing: 0.3em; }

.intro { max-width: 34em; margin: 16px auto 40px; color: var(--muted); }

figure { margin: 0; }

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--line);
}

figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

.wide { margin-bottom: 40px; }

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.cats article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}
.cats h2 { margin: 0 0 6px; font-size: 1.25rem; }
.cats h2 span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.cats p { margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px 16px;
}
.grid img { aspect-ratio: 3 / 4; object-fit: cover; }

footer {
  margin-top: 56px;
  padding-bottom: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
