:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #767676;
  --hover: #f5f5f5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 32px;
}

.exhibit-list {
  display: flex;
  flex-direction: column;
}

.exhibit-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
}

.exhibit-item .exhibit-year {
  font-size: 13px;
  color: var(--muted);
}

.exhibit-item .exhibit-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.exhibit-item:hover .exhibit-name,
.exhibit-item.active .exhibit-name {
  color: var(--ink);
}

.exhibit-item.active .exhibit-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Content */
.content {
  flex: 1;
  padding: 24px 48px 80px;
  max-width: 900px;
}

.exhibit-heading {
  margin-bottom: 32px;
}

.exhibit-description {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.exhibit-heading .exhibit-heading-year {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.exhibit-heading h1 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.record {
  margin-bottom: 40px;
}

.record img {
  display: block;
  width: 100%;
  height: auto;
}

.record img.portrait {
  max-width: 640px;
}

.record img.landscape {
  max-width: 800px;
}

.record-caption {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  max-width: 640px;
}

.record-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  max-width: 520px;
  color: var(--ink);
}

/* Hover preview */
.hover-preview {
  position: fixed;
  pointer-events: none;
  width: 160px;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--hover);
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 10;
}

.hover-preview.visible { opacity: 1; }

@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .content { padding: 24px; }
  .hover-preview { display: none; }
}