/* ============================================================
   RecordPlayerLab Dark Theme — main.css
   ============================================================ */

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

:root {
  --dark:    #0e0c0a;
  --dark2:   #110f0c;
  --dark3:   #0a0908;
  --cream:   #f0ead8;
  --gold:    #d4b464;
  --gold2:   #e8ca7a;
  --muted:   #9e9484;
  --muted2:  #6b6456;
  --border:  rgba(212,180,100,0.1);
  --border2: rgba(212,180,100,0.2);
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
}

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Noise grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  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)'/%3E%3C/svg%3E");
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.rpl-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

/* ── BUTTONS ── */
.rpl-btn-primary {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  display: inline-block;
  transition: background .2s;
}
.rpl-btn-primary:hover { background: var(--gold2); color: var(--dark); }
.rpl-btn-ghost {
  background: transparent;
  color: #b8ad96;
  border: 0.5px solid var(--border2);
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  display: inline-block;
  transition: all .2s;
}
.rpl-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.rpl-btn-small {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 8px 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s;
}
.rpl-btn-small:hover { background: var(--gold2); }

/* ── NAVBAR ── */
.rpl-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0.5px solid var(--border2);
  transition: background .3s;
}
.rpl-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.rpl-navbar.logo-center .rpl-navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.rpl-navbar.logo-center .rpl-nav-links { justify-self: start; }
.rpl-navbar.logo-center .rpl-logo-wrap { justify-self: center; text-align: center; }
.rpl-navbar.logo-center .rpl-nav-right { justify-self: end; }
.rpl-navbar.logo-left .rpl-logo-wrap { order: -1; }
.rpl-navbar.logo-right .rpl-logo-wrap { order: 1; }

.rpl-logo-wrap img { height: auto; display: block; }
.rpl-logo-text {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rpl-nav-links { display: flex; gap: 2rem; }
.rpl-nav-links a {
  color: #b8ad96;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color .2s;
}
.rpl-nav-links a:hover { color: var(--gold); }
.rpl-nav-right { display: flex; align-items: center; }

@media(max-width:768px){
  .rpl-nav-links { display: none; }
  .rpl-navbar.logo-center .rpl-navbar-inner { grid-template-columns: 1fr auto; }
  .rpl-navbar.logo-center .rpl-nav-links { display: none; }
}

/* ── HERO ── */
.rpl-hero {
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.rpl-hero-eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rpl-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.rpl-hero-title {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1.4rem;
}
.rpl-hero-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 2rem;
}
.rpl-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.rpl-hero-visual { display: flex; align-items: center; justify-content: center; }
.rpl-hero-img { border-radius: 6px; width: 100%; max-height: 380px; object-fit: cover; }

/* Vinyl animation */
.rpl-vinyl {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1510 0%, #0d0b08 60%, #1a1510 100%);
  border: 1px solid rgba(212,180,100,0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(212,180,100,0.08);
  animation: rpl-spin 18s linear infinite;
}
@keyframes rpl-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.rpl-vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 20px, rgba(212,180,100,0.04) 21px, transparent 22px);
}
.rpl-vinyl-label {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #1c1508;
  border: 1px solid rgba(212,180,100,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}
.rpl-vinyl-label-text {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.6;
  text-align: center;
}

/* ── STATS ── */
.rpl-stats {
  display: flex;
  justify-content: center;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  position: relative;
  z-index: 2;
}
.rpl-stat {
  flex: 1;
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 0.5px solid var(--border);
  max-width: 220px;
}
.rpl-stat:last-child { border-right: none; }
.rpl-stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}
.rpl-stat-label {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-top: 4px;
}

/* ── BLOG SECTION ── */
.rpl-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
}
.rpl-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.rpl-section-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--cream);
  font-weight: 700;
}
.rpl-see-all {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color .2s;
}
.rpl-see-all:hover { color: var(--gold2); }

/* Blog Grid */
.rpl-blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  background: rgba(212,180,100,0.08);
  border: 0.5px solid rgba(212,180,100,0.08);
}
.rpl-card {
  background: var(--dark2);
  padding: 1.8rem;
  cursor: pointer;
  transition: background .2s;
  position: relative;
  overflow: hidden;
  display: block;
}
.rpl-card:hover { background: #161310; }
.rpl-card-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1c1710 0%, #251e12 100%);
  border-radius: 2px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.rpl-card-img img { width: 100%; height: 100%; object-fit: cover; }
.rpl-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1c1710, #251e12);
  border-radius: 2px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.rpl-card-tag {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rpl-card-tag::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--gold);
}
.rpl-card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: .8rem;
}
.rpl-card.small .rpl-card-title { font-size: 16px; }
.rpl-card-excerpt {
  font-size: 13px;
  color: #7a7060;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.rpl-card-meta {
  font-size: 11px;
  color: #524a40;
  letter-spacing: .08em;
}

/* ── COMPARE SECTION ── */
.rpl-compare {
  background: var(--dark3);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  position: relative;
  z-index: 2;
}
.rpl-compare-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.rpl-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 13px;
}
.rpl-compare-table th {
  padding: 10px 16px;
  text-align: left;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 0.5px solid rgba(212,180,100,0.15);
  font-family: var(--sans);
}
.rpl-compare-table th.hl { background: rgba(212,180,100,0.05); }
.rpl-compare-table td {
  padding: 12px 16px;
  color: #9e9484;
  border-bottom: 0.5px solid rgba(212,180,100,0.05);
  font-family: var(--sans);
}
.rpl-compare-table td:first-child { color: #c5b98a; font-weight: 400; }
.rpl-compare-table td.hl { background: rgba(212,180,100,0.04); color: var(--cream); }
.rpl-compare-table tr:last-child td { border-bottom: none; }
.rpl-compare-badge {
  display: inline-block;
  background: rgba(212,180,100,0.15);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}
.rpl-compare-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ── NEWSLETTER ── */
.rpl-newsletter {
  position: relative;
  z-index: 2;
  border-top: 0.5px solid var(--border);
}
.rpl-newsletter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.rpl-nl-title {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.rpl-nl-sub { font-size: 13px; color: var(--muted2); line-height: 1.65; }
.rpl-nl-form { display: flex; flex-direction: column; gap: 12px; }
.rpl-nl-input {
  background: #161310;
  border: 0.5px solid var(--border2);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 2px;
  outline: none;
  transition: border-color .2s;
}
.rpl-nl-input:focus { border-color: rgba(212,180,100,0.5); }
.rpl-nl-input::placeholder { color: #4a4033; }
.rpl-nl-success { color: var(--gold); font-size: 14px; padding: 12px 0; }
.rpl-nl-error { color: #e07070; font-size: 14px; padding: 12px 0; }

/* ── FOOTER ── */
.rpl-footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem;
  position: relative;
  z-index: 2;
}
.rpl-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.rpl-footer-logo {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rpl-footer-logo img { height: 32px; width: auto; }
.rpl-footer-copy { font-size: 11px; color: #3d3628; letter-spacing: .08em; }
.rpl-footer-links { display: flex; gap: 1.5rem; }
.rpl-footer-links a {
  font-size: 11px;
  color: #4a4033;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
.rpl-footer-links a:hover { color: var(--gold); }

/* ── SINGLE POST ── */
.rpl-post-hero {
  padding: 4rem 2rem 3rem;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.rpl-post-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rpl-post-eyebrow::before {
  content: ''; display: inline-block; width: 24px; height: 1px; background: var(--gold);
}
.rpl-post-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1rem;
}
.rpl-post-meta { font-size: 12px; color: #524a40; letter-spacing: .08em; }
.rpl-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
}
.rpl-post-content h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--cream); margin: 2rem 0 1rem; }
.rpl-post-content h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--cream); margin: 1.5rem 0 .75rem; }
.rpl-post-content p { font-size: 16px; color: var(--muted); line-height: 1.85; font-weight: 300; margin-bottom: 1.25rem; }
.rpl-post-content a { color: var(--gold); }
.rpl-post-content a:hover { text-decoration: underline; }
.rpl-post-content img { border-radius: 4px; margin: 1.5rem 0; }
.rpl-post-content ul, .rpl-post-content ol { margin: 1rem 0 1.25rem 1.5rem; color: var(--muted); font-size: 15px; line-height: 1.7; }
.rpl-post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: .75rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--cream);
}
.rpl-post-cta {
  background: rgba(212,180,100,0.06);
  border: 0.5px solid var(--border2);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 3rem;
}
.rpl-post-cta p { font-size: 14px; color: var(--muted2); margin-bottom: 1rem; }

/* ── BLOG ARCHIVE ── */
.rpl-archive { padding: 3rem 0; position: relative; z-index: 2; }
.rpl-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(212,180,100,0.08);
  border: 0.5px solid rgba(212,180,100,0.08);
  margin-top: 2rem;
}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .rpl-hero { grid-template-columns: 1fr; }
  .rpl-hero-title { font-size: 38px; }
  .rpl-vinyl { width: 200px; height: 200px; }
  .rpl-blog-grid { grid-template-columns: 1fr; }
  .rpl-newsletter-inner { grid-template-columns: 1fr; }
  .rpl-stats { flex-wrap: wrap; }
  .rpl-stat { max-width: 50%; border-right: none; border-bottom: 0.5px solid var(--border); }
}
@media(max-width:480px){
  .rpl-hero { padding: 3rem 1.25rem 2rem; }
  .rpl-hero-title { font-size: 30px; }
  .rpl-wrap, .rpl-section, .rpl-compare-inner, .rpl-newsletter-inner, .rpl-footer-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
}
