/* Section : art */
:root {
  --muted: #8a8a7a;
  --dim:   #cccab4;
}

.art-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 6vh 2vw 12vh 8vw;
  display: flex;
  flex-direction: column;
  background: var(--panel);
}
.art-page .section-name { color: var(--bg); }
.art-page a.back-btn:hover { color: var(--bg); }

/* Header : title + back + tags */
.art-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
}
.art-header .back-btn { font-size: 11px; }

.art-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
  margin-top: 1.2rem;
}

.art-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--dim);
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.art-tag:hover,
.art-tag.active {
  color: var(--bg);
  border-color: var(--bg);
}

/* Main layout */
.art-layout {
  display: flex;
  gap: 2.5rem;
  flex: 1;
  align-items: flex-start;
}

.art-main { flex: 1; min-width: 0; }

/* Year sections */
.year-section { margin-bottom: 4rem; }

.year-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--dim);
}

/* Grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

a.art-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
a.art-card:hover { background: rgba(255, 255, 255, 0.06); }

.art-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dim);
}
.art-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
a.art-card:hover .art-card-img img { transform: scale(1.04); }

.art-card-info {
  padding: 0.9rem 1rem 1.1rem;
  flex: 1;
}
.art-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.art-card-ext {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.art-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.35;
  flex: 1;
  color: var(--dim);
}
.art-card-summary {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

/* Year sidebar */
.art-years {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: sticky;
  top: 6vh;
  align-self: flex-start;
  text-align: right;
}
a.art-year-link {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
a.art-year-link:hover,
a.art-year-link.active { color: var(--bg); }

/* Responsive */
@media (max-width: 860px) {
  .art-page { padding: 5vh 5vw 10vh; }
  .art-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .art-years { display: none; }
}
