/* Lovely Piano Pieces — elegant minimal */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1c1c1a;
  --ink-muted: #6b6b66;
  --ink-faint: #a5a5a0;
  --border: #e8e6df;
  --accent: #1c1c1a;
  --accent-ink: #ffffff;
  --radius: 10px;
  --radius-lg: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-muted);
}

.nav a { transition: color 0.15s ease; }
.nav a:hover { color: var(--ink); }
.nav-youtube { color: var(--ink); font-weight: 500; }

/* Hero */

.hero {
  padding: 96px 0 64px;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0;
}

/* Catalog */

.catalog {
  padding: 48px 0 96px;
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.catalog h2,
.about h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.filters {
  display: flex;
  gap: 16px;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.filter-label { white-space: nowrap; }

.filters select {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.filters select:hover,
.filters select:focus {
  border-color: var(--ink-faint);
}

/* Piece grid */

.pieces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.piece-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.piece-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-faint);
}

.piece-cover {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  color: var(--surface);
}

.piece-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.piece-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.piece-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.piece-desc {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 18px;
  line-height: 1.5;
  flex: 1;
}

.piece-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn:hover { border-color: var(--ink-faint); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #000;
  color: var(--accent-ink);
}

.btn-youtube .yt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c00;
  display: inline-block;
}

.empty-state {
  text-align: center;
  color: var(--ink-muted);
  font-style: italic;
  padding: 48px 0;
}

/* About */

.about {
  padding: 64px 0 96px;
  border-top: 1px solid var(--border);
  background: #f3f1ea;
}

.about-inner {
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
}

.about p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  margin: 24px 0 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */

@media (max-width: 640px) {
  .hero { padding: 64px 0 40px; }
  .hero h1 { font-size: 40px; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav { gap: 18px; font-size: 13px; }
  .catalog-header { flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; }
  .filters label { flex: 1; }
  .filters select { width: 100%; }
}
