:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #62605c;
  --line: #e5e0d8;
  --paper: #fffdf9;
  --soft: #f5f1ea;
  --accent: #0d6b5f;
  --rose: #9a4f58;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; background: var(--soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
}
.brand { font-size: 20px; font-weight: 760; }
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.header-cta, .primary-link, .secondary-link, .floating-cta, .quick-links a, .link-row a, .review-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 680;
}
.header-cta, .primary-link, .floating-cta { background: var(--accent); color: white; }
.secondary-link, .quick-links a, .link-row a, .review-row a, .brand-tile {
  border: 1px solid var(--line);
  background: white;
}
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.site-frame {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}
.site-main { min-width: 0; }
.catalog-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fbf8f2;
  padding: 18px 14px 24px;
}
.sidebar-title {
  margin: 0 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0;
}
.sidebar-group {
  border-bottom: 1px solid rgba(229, 224, 216, 0.78);
  padding: 5px 0;
}
.sidebar-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 8px;
  cursor: pointer;
  list-style: none;
}
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-group summary::before {
  content: "+";
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-weight: 760;
}
.sidebar-group[open] summary::before { content: "-"; }
.sidebar-group summary a {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 730;
}
.sidebar-group summary > span {
  grid-column: 2;
  grid-row: 1;
  margin-right: 18px;
  color: var(--muted);
  font-size: 12px;
}
.sidebar-subnav {
  display: grid;
  gap: 2px;
  padding: 2px 0 8px 8px;
}
.sidebar-subnav a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 0 8px 0 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
}
.sidebar-subnav a.is-active {
  border-left-color: var(--accent);
  color: var(--accent);
  background: #eef6f3;
}
.sidebar-subnav a.is-empty { opacity: 0.62; }
.sidebar-subnav a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-subnav small {
  min-width: 16px;
  color: var(--accent);
  text-align: right;
}

.page-intro, .home-hero, .section-head, .quick-links, .detail-hero, .content-columns, .related-band, .search-panel, .review-table {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}
.page-intro { padding: 34px 0 22px; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 32px 0 18px;
}
.compact-hero h1 { font-size: clamp(34px, 5vw, 54px); }
.compact-hero p { margin-bottom: 0; }
.home-hero img, .detail-hero img { width: 100%; max-height: 620px; object-fit: cover; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 { max-width: 760px; font-size: clamp(36px, 7vw, 72px); }
h2 { font-size: 26px; }
.page-intro p:not(.eyebrow), .home-hero p, .detail-hero p {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}
.detail-actions, .link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quick-entry {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.quick-entry a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 13px;
  font-weight: 730;
}
.quick-entry img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
}
.quick-entry span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-strip {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(94px, 132px);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.home-strip a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.home-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.brand-directory, .source-category-directory, .empty-state {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 34px;
}
.source-category-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.source-category-directory a {
  display: grid;
  gap: 9px;
  min-height: 72px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.source-category-directory a.is-active {
  border-color: var(--accent);
  color: var(--accent);
}
.source-category-directory a.is-empty {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
}
.source-category-directory img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.source-category-directory span {
  font-weight: 760;
}
.brand-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.brand-tile {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
}
.brand-tile.is-empty {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
}
.brand-tile.is-empty img {
  filter: grayscale(1);
  opacity: 0.45;
}
.brand-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.brand-tile span {
  font-weight: 760;
}
.brand-tile small,
.empty-state p {
  color: var(--muted);
}
.empty-state {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 34px 0 22px;
}
.compact-head {
  padding-top: 10px;
}
.section-head > a { color: var(--accent); font-weight: 720; }
.toolbar, .search-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  color: var(--muted);
}
.toolbar {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 24px;
}
.toolbar input, .search-panel input {
  width: min(520px, 100%);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.grid, .mini-grid {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.mini-grid { width: 100%; margin-bottom: 0; }
.lookbook-card { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.lookbook-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 12px; }
.card-title, .card-meta { display: block; }
.card-title { font-weight: 720; }
.card-meta { margin-top: 4px; color: var(--muted); font-size: 13px; }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 48px;
  align-items: center;
  padding: 44px 0 36px;
}
.gallery {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  columns: 3 260px;
  column-gap: 18px;
}
.gallery img { width: 100%; break-inside: avoid; margin: 0 0 18px; }
.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  padding: 56px 0;
}
.content-columns p { color: var(--muted); }
.details-table { margin: 0; border-top: 1px solid var(--line); }
.details-table div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.details-table dt { color: var(--muted); }
.details-table dd { margin: 0; font-weight: 650; }
.related-band {
  margin-bottom: 84px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.review-table {
  margin-bottom: 86px;
  border-top: 1px solid var(--line);
}
.review-row {
  display: grid;
  grid-template-columns: 72px minmax(240px, 1.4fr) 120px minmax(180px, 1fr) 70px 92px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.review-row img { width: 72px; height: 72px; object-fit: cover; }
.review-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}
.review-row small { display: block; margin-top: 2px; color: var(--muted); }
mark {
  border-radius: 4px;
  padding: 3px 7px;
  background: #e9f2ef;
  color: var(--accent);
}

@media (max-width: 900px) {
  .site-frame { grid-template-columns: 220px minmax(0, 1fr); }
  .catalog-sidebar { padding-inline: 10px; }
  .sidebar-subnav a { padding-left: 8px; }
  .grid, .brand-directory { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
}

@media (max-width: 560px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; padding: 0 20px; }
  .nav { grid-column: 1 / -1; order: 3; padding-bottom: 12px; overflow-x: auto; }
  .site-frame { display: block; }
  .catalog-sidebar {
    position: static;
    height: auto;
    max-height: 34vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }
  .sidebar-title { margin-bottom: 6px; }
  .sidebar-group { padding: 2px 0; }
  .sidebar-group summary { min-height: 34px; }
  .sidebar-subnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 132px;
    overflow: auto;
    padding-bottom: 6px;
  }
  .sidebar-subnav a { min-height: 28px; font-size: 12px; }
  .home-hero, .detail-hero, .content-columns { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .toolbar, .search-panel, .section-head { align-items: stretch; flex-direction: column; }
  .quick-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .brand-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .page-intro { padding-top: 26px; }
  .brand-tile { padding: 9px; }
  .brand-tile img { aspect-ratio: 1 / 1; }
  .review-table { overflow-x: auto; }
  .review-row { min-width: 850px; }
  .floating-cta { right: 12px; bottom: 12px; min-height: 38px; padding-inline: 12px; }
}