/* Vinyl ID — Sonos-inspired design system */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens — Sonos.com palette: white, black, neutral greys ── */
:root {
  --white: #ffffff;
  --off-white: #f7f7f7;
  --black: #000000;
  --ink: #000000;
  --grey-90: #1a1a1a;
  --grey-60: #6e6e6e;
  --grey-30: #cccccc;
  --grey-15: #e5e5e5;
  --grey-10: #efefef;
  --grey-05: #f5f5f5;

  /* Single accent for sale / live indicators */
  --rust: #c44a2a;
  --pine: #2f4d3a;
  --sky:  #94b8c8;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html, body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Sonos-style typography ──
   Big lowercase headlines, very tight tracking, heavy weight
   Aktiv Grotesk substitute: Inter with letter-spacing tightened */

.s-display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.s-h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(44px, 5.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.s-h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.s-h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.s-h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.s-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--grey-60);
}

.s-body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--grey-90);
}

.s-body-sm {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-90);
}

.s-tiny {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: var(--grey-60);
}

/* ── Buttons ── */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.s-btn-primary {
  background: var(--ink);
  color: var(--white);
}
.s-btn-primary:hover { background: var(--grey-90); }

.s-btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.s-btn-secondary:hover { background: var(--ink); color: var(--white); }

.s-btn-light {
  background: var(--white);
  color: var(--ink);
}
.s-btn-light:hover { background: var(--grey-10); }

.s-btn-text {
  padding: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.s-btn-text:hover { color: var(--rust); }

/* ── Photo / image placeholder utilities ──
   Sonos photography is warm, naturalistic — we mimic with painted gradients */
.photo {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

/* Section spacing */
.s-section { padding: 96px 32px; }
.s-section-tight { padding: 64px 32px; }
.s-section-loose { padding: 144px 32px; }

@media (max-width: 900px) {
  .s-section { padding: 64px 20px; }
  .s-section-tight { padding: 48px 20px; }
  .s-section-loose { padding: 96px 20px; }
}

/* Vinyl record visual */
.vinyl-disc {
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--rust) 0 14%, transparent 14.5% 16%),
    radial-gradient(circle at center, var(--ink) 16% 18%, transparent 18.5%),
    repeating-radial-gradient(circle at center,
      #0a0805 0 1px,
      #1a1410 1px 4px),
    #0a0805;
}
.vinyl-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin { animation: spin 8s linear infinite; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  gap: 64px;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee-track { overflow: hidden; width: 100%; }

/* Grid divider */
.s-divider { height: 1px; background: var(--grey-10); }
