:root {
  --ink: #161717;
  --muted: #66706a;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dedbd2;
  --sage: #4f7a66;
  --clay: #bf5c37;
  --sky: #4d7896;
  --plum: #86556f;
  --sun: #d2a43c;
  --shadow: 0 18px 48px rgba(31, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: max-content minmax(240px, 560px) max-content;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 17px;
  font-weight: 850;
}

.brand img {
  width: 30px;
  height: 30px;
}

.search-wrap {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-wrap svg {
  color: var(--muted);
}

.search-wrap input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.topbar-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 780;
}

.topbar-link {
  background: transparent;
  color: var(--ink);
}

main {
  padding-bottom: 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
  padding: clamp(34px, 6vw, 74px) clamp(18px, 4vw, 44px) 26px;
}

.hero-copy {
  max-width: 640px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p:not(.kicker) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.featured-album {
  display: grid;
  grid-template-rows: minmax(260px, 46vh) auto;
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.featured-media {
  overflow: hidden;
  background: #e9e6dc;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e9e6dc;
}

.featured-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.featured-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.featured-info strong {
  font-size: 22px;
}

.featured-info a {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--sage);
  font-weight: 850;
}

.catalog {
  padding: 20px clamp(18px, 4vw, 44px) 0;
}

.toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

#result-count {
  min-width: max-content;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.album-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.album-card:hover,
.album-card:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 16px 34px rgba(35, 37, 33, 0.12);
}

.album-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 48%),
    #ebe7dc;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.34));
}

.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.card-body {
  padding: 14px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.album-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
}

.album-card p {
  min-height: 62px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-row span {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  color: color-mix(in srgb, var(--accent) 82%, #1b1b1b);
  font-size: 12px;
  font-weight: 760;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(22, 23, 23, 0.44);
}

.drawer.open {
  display: grid;
  justify-items: end;
}

.drawer-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(300px, 50vh) auto;
  width: min(760px, 100vw);
  min-height: 100vh;
  background: #fff;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.18);
}

.close-drawer {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: pointer;
}

.drawer-map {
  min-height: 300px;
  background: #e9e6dc;
}

.drawer-body {
  padding: 30px;
}

.drawer-body h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

.drawer-body p:not(.kicker):not(.copy-status) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
  border: 1px solid var(--line);
}

.meta-list div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.meta-list div:last-child {
  border-right: 0;
}

.meta-list dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-action {
  background: #fff;
  color: var(--ink);
}

.copy-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--sage);
  font-size: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 52px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .featured-album {
    min-height: 360px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero,
  .catalog {
    padding-left: 14px;
    padding-right: 14px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .drawer-panel {
    width: 100vw;
  }

  .drawer-body {
    padding: 24px 18px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .meta-list div,
  .meta-list div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meta-list div:last-child {
    border-bottom: 0;
  }
}
