/* ─── dB minor — shared site layout ─────────────────────────────────────── */
:root {
  --content-width:  1280px;
  --content-pad:    0 48px;
  --header-height:  56px;
  --bg:             #09090b;
  --text:           #fafafa;
  --muted:          #a1a1aa;
  --purple:         #9333ea;
  --purple-10:      rgba(147,51,234,0.10);
  --purple-40:      rgba(147,51,234,0.40);
  --purple-text:    oklch(0.827 0.119 306.383);
  --red:            #d41f1f;
}

/* HEADER */
header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(9,9,11,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  padding: var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 8px; object-fit: contain; display: block;
}
.logo-text {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text);
}

/* NAV */
nav { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
nav a {
  font-size: 12px; font-weight: 400;
  color: var(--purple-text);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--purple-40);
  background: var(--purple-10);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
nav a:hover {
  background: rgba(147,51,234,0.18);
  border-color: rgba(147,51,234,0.65);
  color: #e2d4f8;
}
nav a.active {
  background: rgba(147,51,234,0.22);
  border-color: rgba(147,51,234,0.80);
  color: #fff;
}

/* CONTENT WRAPPER — use on <main> on every non-catalogue page */
.site-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: calc(var(--header-height) + 54px);
  padding-left: 48px;
  padding-right: 48px;
  padding-bottom: 80px;
}

/* Noise overlay */
.noise::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.6;
}
