:root {
  --bg: #0b0c0e;
  --surface: #111317;
  --line: #252a31;
  --text: #eceff2;
  --muted: #8d959f;
  --font-sans: system-ui, -apple-system, "Segoe UI", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --content-max: 1540px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--content-max); margin: auto; min-height: 72px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-name { font-size: .84rem; font-weight: 650; letter-spacing: .18em; }
.global-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: .73rem; letter-spacing: .10em; color: var(--muted); }
.site-main { max-width: var(--content-max); margin: auto; padding: 22px 28px 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; color: #686f79; font-size: .72rem; }
.breadcrumb a:hover { color: #cfd4da; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 18px; }
.gallery-card { min-width: 0; }
.thumb-frame { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.thumb-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-title { display: block; margin-top: 8px; color: #aeb4bc; font-size: .72rem; letter-spacing: .035em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.list-heading h1 { margin: 0; font-size: 1.65rem; font-weight: 400; letter-spacing: .04em; }
.list-heading small, .list-heading > span { color: var(--muted); font-size: .72rem; }
.taxonomy-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.taxonomy-index li { border-bottom: 1px solid var(--line); }
.taxonomy-index a { display: flex; justify-content: space-between; gap: 20px; padding: 14px 4px; }
.taxonomy-index small { color: var(--muted); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin-top: 44px; color: var(--muted); font-size: .72rem; }
.pagination > :last-child { text-align: right; }
.work-detail { max-width: 1460px; margin: auto; }
.work-heading { text-align: center; margin: 18px 0 28px; }
.work-heading h1 { margin: 0; font-weight: 350; font-size: clamp(1.6rem, 3vw, 2.45rem); letter-spacing: .055em; }
.work-photo-frame { margin: 0; min-height: 220px; background: #000; display: flex; justify-content: center; align-items: center; }
.work-photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 82vh; object-fit: contain; }
.work-comment { max-width: 780px; margin: 26px auto 0; text-align: center; color: #b8bec5; font-size: .92rem; }
.work-taxonomy { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 16px auto 0; color: #737b85; font-size: .72rem; }
.work-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.work-nav > :last-child { text-align: right; }
.site-footer { max-width: var(--content-max); margin: auto; padding: 24px 28px 42px; border-top: 1px solid var(--line); color: #575e67; font-size: .7rem; letter-spacing: .1em; }
@media (max-width: 700px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-top: 18px; padding-bottom: 18px; }
  .global-nav { gap: 16px; }
  .site-main { padding-left: 16px; padding-right: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .card-title { font-size: .68rem; }
}