:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #101615;
  color: #f6f0df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #101615;
}

a {
  color: inherit;
}

.gallery-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.gallery-header,
.toolbar,
.notice,
.composition-card {
  border: 1px solid rgba(125, 222, 204, 0.28);
  background: #17201e;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 8px;
}

.eyebrow,
.label,
.meta,
.status,
.copyright-notice {
  margin: 0;
  color: #9bded1;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.route-links,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-links a,
.card-actions a,
button {
  min-height: 40px;
  border: 1px solid rgba(125, 222, 204, 0.42);
  border-radius: 6px;
  background: #0f1715;
  color: #f6f0df;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.route-links a:hover,
.card-actions a:hover,
button:hover {
  border-color: #f0d66b;
  color: #f0d66b;
}

.notice,
.toolbar {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 8px;
}

.notice p {
  margin: 0;
  color: #d7dccf;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.composition-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 16px;
  border-radius: 8px;
}

.composition-card h2 {
  margin: 0;
  color: #fff7dc;
  font-size: 1.25rem;
  line-height: 1.2;
}

.composition-card p {
  margin: 0;
  color: #d7dccf;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(246, 240, 223, 0.28);
  border-radius: 8px;
  padding: 28px;
  color: #d7dccf;
}

.copyright-notice {
  margin-top: 20px;
  color: #b2b8b0;
  font-size: 0.68rem;
}

@media (max-width: 720px) {
  .gallery-header,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .route-links a,
  .card-actions a,
  button {
    width: 100%;
    text-align: center;
  }
}
