/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #17131c;
  color: #fff9ec;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, rgb(224 77 53 / 18%), transparent 32rem),
    radial-gradient(circle at 88% 78%, rgb(239 177 76 / 12%), transparent 28rem),
    #17131c;
}

.record-store-home {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 1.15fr);
  align-items: center;
  width: min(74rem, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 6rem);
  overflow: hidden;
}

.record-store-intro {
  position: relative;
  z-index: 1;
}

.record-store-eyebrow {
  margin: 0 0 1rem;
  color: #efb14c;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.record-store-intro h1 {
  max-width: 8ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.8;
  text-wrap: balance;
}

.record-store-tagline {
  max-width: 31rem;
  margin: 2rem 0;
  color: #c9c0c8;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.record-store-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 1.4rem;
  border: 1px solid rgb(255 249 236 / 24%);
  border-radius: 999px;
  background: #fff9ec;
  color: #211a24;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.record-store-link::after {
  margin-left: 0.7rem;
  content: "→";
}

.record-store-link:hover {
  transform: translateY(-2px);
  background: #efb14c;
}

.record-store-link:focus-visible {
  outline: 3px solid #efb14c;
  outline-offset: 4px;
}

.turntable-wrap {
  width: min(100%, 40rem);
  margin-left: auto;
}

.turntable {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.turntable-base {
  fill: #e9ddc9;
  stroke: #fff9ec;
  stroke-width: 3;
}

.platter {
  fill: #302b32;
  stroke: #898087;
  stroke-width: 8;
}

.vinyl-record {
  transform-origin: 250px 250px;
  animation: vinyl-spin 4.8s linear infinite;
}

.vinyl-groove {
  fill: none;
  stroke: rgb(255 255 255 / 10%);
  stroke-width: 2;
}

.vinyl-shine {
  fill: none;
  stroke: rgb(255 255 255 / 18%);
  stroke-linecap: round;
  stroke-width: 7;
}

.vinyl-shine-short {
  stroke-width: 4;
}

.label-ring {
  fill: none;
  stroke: rgb(255 244 220 / 45%);
  stroke-width: 2;
}

.label-title,
.label-subtitle {
  fill: #fff3db;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.label-subtitle {
  font-size: 11px;
  letter-spacing: 0.35em;
}

.label-star {
  fill: #55231f;
}

.spindle-hole {
  fill: #f6ead4;
}

.tonearm-pivot {
  fill: #504950;
  stroke: #777078;
  stroke-width: 4;
}

.tonearm-cap {
  fill: #d4d0c9;
  stroke: #918b86;
  stroke-width: 3;
}

.tonearm-arm {
  fill: none;
  stroke: #cbc8c2;
  stroke-linecap: round;
  stroke-width: 12;
}

.tonearm-head {
  fill: #504950;
}

.tonearm-needle {
  stroke: #252126;
  stroke-width: 3;
}

.power-light {
  fill: #df4d38;
  filter: drop-shadow(0 0 7px rgb(223 77 56 / 80%));
}

.speed-switch {
  fill: #8c837e;
}

@keyframes vinyl-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .record-store-home {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .record-store-intro h1 {
    max-width: none;
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  .turntable-wrap {
    order: -1;
    width: min(90vw, 28rem);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vinyl-record {
    animation: none;
  }

  .record-store-link {
    transition: none;
  }
}
