:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e2d9;
  --accent: #b45309;
  --maxw: 1020px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1c1a18;
    --ink: #ece8e1;
    --muted: #a8a29e;
    --line: #2c2926;
    --accent: #d97706;
  }
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
header { border-bottom: 1px solid var(--line); padding: 28px 0 22px; }
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.brand { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.04em; }
.brand span { display: block; font-size: 0.82rem; font-weight: 400; color: var(--muted); letter-spacing: 0.12em; }
nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; font-size: 0.92rem; color: var(--muted); }
nav a:hover, nav a.active { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.hero { padding: 44px 0 28px; border-bottom: 1px solid var(--line); }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 500; letter-spacing: 0.02em; }
.hero p { margin: 0; max-width: 680px; color: var(--muted); font-size: 0.98rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding: 36px 0 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform 0.18s ease; }
.card:hover { transform: translateY(-2px); }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.card-body { padding: 16px 18px 20px; }
.meta { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.card h2 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 600; }
.card p { margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); }
.exif { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; color: var(--accent); }
.article { max-width: 740px; margin: 0 auto; padding: 40px 0 60px; }
.article h1 { font-size: 1.9rem; font-weight: 500; margin: 8px 0 18px; }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; }
.article figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 8px; }
.article p { margin: 0 0 18px; font-size: 1.02rem; }
.back { display: inline-block; margin-top: 24px; color: var(--accent); font-size: 0.92rem; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
