:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --paper-deep: #f1eee8;
  --ink: #24211d;
  --muted: #756f66;
  --line: #ded8ce;
  --accent: #4f6f52;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(36, 33, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Noto Sans SC", "Microsoft YaHei", Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--ink);
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 56vh;
  place-content: center;
  padding: 88px clamp(20px, 8vw, 120px);
  text-align: left;
}

.hero-kicker,
.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.intro,
.statement,
.artwork-guide {
  margin: 0 clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
  gap: 28px;
  padding: 48px 0 64px;
}

.intro h2,
.statement h2,
.artwork-guide h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.15;
}

.intro p:not(.section-label),
.statement p:not(.section-label) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.gallery-section {
  padding: 72px clamp(20px, 5vw, 80px) 96px;
  background: #f6f4ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 38px;
  padding: 8px 16px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  gap: 28px;
  justify-content: center;
}

.art-card {
  display: flex;
  flex-direction: column-reverse;
  grid-column: 1 / -1;
  padding: clamp(16px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.art-card:nth-child(5n + 2),
.art-card:nth-child(5n + 5) {
  grid-column: 1 / -1;
}

.art-card:nth-child(5n + 3) {
  grid-column: 1 / -1;
}

.art-frame {
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: #f7f5f0;
  border: 1px solid rgba(36, 33, 29, 0.08);
  border-radius: 8px;
  box-shadow: none;
}

.art-placeholder {
  display: grid;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  min-height: 252px;
  place-items: center;
  color: rgba(36, 33, 29, 0.45);
  background: #f7f5f0;
  border: 1px dashed rgba(36, 33, 29, 0.18);
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.art-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  min-height: 0;
  object-fit: contain;
}

.art-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 0 0 18px;
}

.art-caption h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.art-caption p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.art-caption .entry-note {
  max-width: 720px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.art-number {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.statement {
  max-width: 920px;
  padding: 84px 0;
}

.artwork-guide {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 32px;
  padding: 64px 0 84px;
}

.artwork-guide ul {
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.artwork-guide li + li {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 4vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20, 18, 15, 0.82);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  width: min(1120px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
}

.lightbox-image {
  min-height: 560px;
  background: var(--paper-deep);
}

.lightbox-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-text {
  padding: clamp(28px, 5vw, 54px);
}

.lightbox-text h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
}

.lightbox-text p:not(.section-label) {
  color: var(--muted);
}

.lightbox-text dl {
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.lightbox-text dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.lightbox-text dt {
  color: var(--muted);
}

.lightbox-text dd {
  margin: 0;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 900px) {
  .section-heading,
  .intro,
  .artwork-guide,
  .lightbox-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .art-card,
  .art-card:nth-child(5n + 2),
  .art-card:nth-child(5n + 3),
  .art-card:nth-child(5n + 5) {
    grid-column: span 6;
  }

  .lightbox-image {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
  }

  .hero {
    min-height: 54vh;
  }

  .hero h1 {
    font-size: clamp(56px, 20vw, 96px);
  }

  .gallery-section {
    padding-top: 52px;
  }

  .art-card,
  .art-card:nth-child(5n + 2),
  .art-card:nth-child(5n + 3),
  .art-card:nth-child(5n + 5) {
    grid-column: 1 / -1;
  }

  .art-frame,
  .art-image {
    min-height: 280px;
  }

  .site-footer {
    flex-direction: column;
  }
}
