:root { color-scheme: light; --ink: #171717; --line: #d7d7d7; --muted: #606060; --nav-height: 76px; }
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif; -webkit-text-size-adjust: 100%; }
body.viewer-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #171717; outline-offset: 4px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px; background: #fff; transform: translateY(-180%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 64px, 1600px); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px 24px; }
h1 { margin: 0; font-size: 1.5rem; font-weight: 650; letter-spacing: .025em; line-height: 1.5; }
.subtitle { margin: 4px 0 0; font-size: .9375rem; color: var(--muted); line-height: 1.6; }
.vote-status { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.vote-area { flex-shrink: 0; }
.vote-link { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 18px 28px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-size: 1.125rem; font-weight: 600; line-height: 1.4; letter-spacing: .025em; }
.vote-link:hover { background: #333; }
.entry-nav { position: sticky; top: 0; z-index: 5; background: #fff; border-block: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.nav-label { font-size: .875rem; color: var(--muted); flex-shrink: 0; }
.entry-links { display: grid; grid-template-columns: repeat(11, minmax(44px, 1fr)); gap: 7px; width: min(100%, 736px); }
.entry-links a { display: flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid var(--line); font-size: 1rem; font-weight: 600; text-decoration: none; }
.entry-links a:hover { border-color: var(--ink); }
.entry-links a[aria-current='location'] { color: #fff; background: var(--ink); border-color: var(--ink); }
.entry { padding-block: 32px 48px; scroll-margin-top: calc(var(--nav-height) + 12px); }
.entry + .entry { border-top: 1px solid var(--ink); }
.entry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h2 { margin: 0; font-size: 1.75rem; font-weight: 600; line-height: 1.2; }
h2 .entry-prefix { font-size: .9375rem; font-weight: 500; margin-right: 10px; }
.view-hint { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
figure { min-width: 0; margin: 0; }
.artwork { display: block; border: 1px solid var(--line); cursor: zoom-in; background: #fff; }
.artwork img { display: block; width: 100%; height: auto; }
figcaption, #viewer-original { display: none; }
figcaption a { text-underline-offset: 3px; }
.concept-block { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; margin-top: 28px; }
h3 { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.9; }
.concept { max-width: 80ch; margin: 0; font-size: 1rem; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px 40px; font-size: .875rem; line-height: 1.6; }
.site-footer p { margin: 0; }
.site-footer a { text-underline-offset: 4px; }
.viewer { width: calc(100vw - 32px); max-width: none; height: calc(100dvh - 32px); max-height: none; margin: auto; border: 1px solid var(--line); padding: 0; background: #fff; color: var(--ink); }
.viewer::backdrop { background: rgba(0, 0, 0, .72); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.viewer-title { margin: 0; font-size: 1rem; font-weight: 600; }
.viewer-actions { display: flex; align-items: center; gap: 8px; }
.viewer-actions button, .viewer-actions a { border: 1px solid var(--line); background: #fff; min-height: 44px; padding: 9px 14px; font-size: .875rem; line-height: 1.4; text-decoration: none; cursor: pointer; }
.viewer-actions button:hover, .viewer-actions a:hover { border-color: var(--ink); }
.viewer-actions .close { border-color: var(--ink); background: var(--ink); color: #fff; }
.viewer-stage { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: flex; align-items: center; justify-content: center; }
.viewer-image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.viewer.zoomed .viewer-stage { display: block; }
.viewer.zoomed .viewer-image { max-width: none; max-height: none; width: 200%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .nav-inner { gap: 16px; }
  .entry-links { grid-template-columns: repeat(11, minmax(30px, 1fr)); }
  .image-grid { grid-template-columns: 1fr; gap: 24px; }
  .concept-block { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .masthead { align-items: flex-start; flex-direction: column; gap: 14px; padding-block: 22px 20px; }
  h1 { font-size: 1.25rem; }
  .subtitle { font-size: .875rem; }
  .vote-area { width: 100%; }
  .vote-link { width: 100%; padding-inline: 20px; }
  .nav-inner { display: block; padding-block: 10px; }
  .nav-label { display: none; }
  .entry-links { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .entry { padding-block: 24px 36px; }
  .entry-heading { margin-bottom: 14px; }
  h2 { font-size: 1.625rem; }
  .view-hint { font-size: .875rem; }
  .concept-block { margin-top: 22px; }
  .concept { line-height: 1.9; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .viewer { width: 100vw; height: 100dvh; border: 0; }
  .viewer-toolbar { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .viewer-actions { width: 100%; }
  .viewer-actions button, .viewer-actions a { padding-inline: 11px; }
  .viewer-actions .close { margin-left: auto; }
  .viewer-stage { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .entry-nav, .vote-status, .view-hint, .viewer, figcaption a, .skip { display: none; }
  .wrap { width: 100%; }
  .entry { break-before: page; }
  .masthead + .entry-nav + main .entry:first-child { break-before: auto; }
}
