:root {
  --bg: #0f1114;
  --bg-elevated: #171a1f;
  --surface: #1c2027;
  --surface-hover: #242933;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f1ea;
  --text-muted: #9a958c;
  --accent: #e8a87c;
  --accent-soft: rgba(232, 168, 124, 0.15);
  --accent-2: #7ec8c3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 168, 124, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(126, 200, 195, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(232, 168, 124, 0.06), transparent 60%);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 17, 20, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #c9784a);
  color: #1a120c;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero */
.hero {
  padding: 2.75rem 0 1.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 28rem;
}

/* Category nav */
.category-nav {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.cat-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.cat-btn:hover {
  color: var(--text);
}

.cat-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.cat-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cat-desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-media {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform 0.3s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-media .placeholder {
  font-size: 2.5rem;
  color: var(--text-muted);
  opacity: 0.4;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}

.card-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.card-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-note {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.card:hover .card-cta svg {
  transform: translate(2px, -2px);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem 4.5rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 3.5rem;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
}

.empty-state h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
}

.empty-state p {
  margin: 0 auto;
  max-width: 22rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  opacity: 0.5;
}

@media (max-width: 540px) {
  .tagline {
    width: 100%;
  }

  .hero {
    padding-top: 2rem;
  }

  .grid {
    gap: 1rem;
  }
}
