/*
Theme Name: Gold Record
Theme URI: https://example.com/gold-record
Author: Zora Music
Description: A focused, warm-gold release landing page for Richh E Richh.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: gold-record
*/

:root {
  color-scheme: dark;
  --ink: #0e1115;
  --ink-soft: #151a20;
  --cream: #f4eddd;
  --muted: #b5aa96;
  --gold: #d9b66d;
  --gold-bright: #efd18c;
  --line: rgba(244, 237, 221, .14);
  --line-gold: rgba(217, 182, 109, .44);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 4%, rgba(122, 93, 42, .17), transparent 44rem),
    linear-gradient(160deg, #11161b 0%, var(--ink) 45%, #101317 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

a { color: inherit; }

button { color: inherit; }

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--cream);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-shell {
  width: min(100% - 44px, 1160px);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
}

.brand-copy { display: grid; gap: 1px; }
.brand-name { font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.brand-caption, .header-edition { color: var(--muted); font-size: 9px; letter-spacing: .19em; text-transform: uppercase; }
.header-edition { display: flex; align-items: center; gap: 10px; }
.header-edition::before { width: 5px; height: 5px; content: ""; background: var(--gold); border-radius: 50%; }

.release-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: clamp(38px, 7vh, 78px) 0 54px;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .94fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.release-visual {
  width: min(100%, 500px);
  aspect-ratio: 1;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.record-disc {
  position: absolute;
  z-index: -1;
  width: 91%;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 182, 109, .38);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #d9b66d 0 3%, #af8a45 3.4% 5.6%, transparent 5.9%),
    repeating-radial-gradient(circle at center, rgba(239, 209, 140, .22) 0 1px, rgba(13, 16, 20, .18) 2px 5px, transparent 6px 10px),
    radial-gradient(circle at 36% 30%, #33302a 0, #1c1e1e 29%, #101316 62%, #080a0c 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .48), inset 0 0 0 10px rgba(0, 0, 0, .16);
}

.record-disc::before, .record-disc::after {
  position: absolute;
  inset: 9%;
  content: "";
  border: 1px solid rgba(217, 182, 109, .14);
  border-radius: 50%;
}

.record-disc::after { inset: 15%; border-color: rgba(244, 237, 221, .08); }

.record-sleeve {
  width: 74%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 237, 221, .64);
  background: #252322;
  box-shadow: 0 26px 58px rgba(0, 0, 0, .5);
  transform: rotate(-3deg);
}

.record-sleeve img { width: 100%; height: 100%; display: block; object-fit: cover; }

.artwork-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  background: radial-gradient(circle, #3c3322, #131619 68%);
  font-family: var(--serif);
  font-size: clamp(60px, 10vw, 112px);
  font-style: italic;
}

.visual-caption {
  position: absolute;
  right: 0;
  bottom: 2%;
  color: rgba(244, 237, 221, .62);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: right bottom;
}

.release-copy { max-width: 490px; padding: 8px 0; }

.release-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 25px;
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.release-eyebrow::before { width: 22px; height: 1px; content: ""; background: var(--gold); }

.release-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(66px, 8vw, 106px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .95;
}

.release-artist {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
}

.release-artist strong { color: var(--cream); font-weight: 400; font-style: normal; }

.release-description {
  max-width: 390px;
  margin: 23px 0 28px;
  color: #c7beaf;
  font-size: 14px;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.release-meta .meta-dot { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }

.listen-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 13px;
  color: #c7beaf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.listen-heading::after { flex: 1; height: 1px; content: ""; background: var(--line); }

.provider-list { display: grid; gap: 9px; }

.provider-button {
  min-height: 60px;
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 17px 9px 11px;
  border: 1px solid rgba(244, 237, 221, .18);
  border-radius: 3px;
  background: linear-gradient(105deg, rgba(244, 237, 221, .045), rgba(244, 237, 221, .015));
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.provider-button:hover:not(:disabled) {
  border-color: var(--line-gold);
  background: linear-gradient(105deg, rgba(217, 182, 109, .13), rgba(244, 237, 221, .025));
  transform: translateY(-1px);
}

.provider-button:disabled { cursor: progress; opacity: .68; }
.provider-number { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold-bright); font-family: var(--serif); font-size: 13px; font-style: italic; }
.provider-label { display: grid; gap: 1px; }
.provider-hint { color: var(--muted); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.provider-name { color: var(--cream); font-size: 14px; font-weight: 600; }
.provider-arrow { color: var(--gold); font-size: 19px; line-height: 1; transition: transform .18s ease; }
.provider-button:hover .provider-arrow { transform: translate(2px, -2px); }

.no-providers { color: var(--muted); font-size: 13px; }

.preview-player { margin: 0 0 25px; }
.preview-player summary { width: fit-content; color: var(--cream); cursor: pointer; font-size: 12px; }
.preview-player audio { display: block; width: min(100%, 390px); margin-top: 12px; }

.release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
}

.text-action, .social-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-decoration: none;
}

.text-action:hover, .social-link:hover { color: var(--gold-bright); }
.social-link svg { width: 15px; height: 15px; }
.action-divider { width: 1px; height: 18px; background: var(--line); }
.handoff-status { min-height: 20px; margin: 9px 0 0; color: var(--gold-bright); font-size: 11px; }

.consent-panel {
  width: min(100%, 850px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 38px auto 0;
  padding: 17px 19px;
  border: 1px solid rgba(217, 182, 109, .25);
  border-radius: 4px;
  background: rgba(10, 13, 16, .78);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
}

.consent-panel[hidden] { display: none; }
.consent-copy { margin: 0; color: #c7beaf; font-size: 11px; }
.consent-copy strong { display: block; margin-bottom: 2px; color: var(--cream); font-size: 12px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-button { min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--cream); cursor: pointer; font-size: 10px; font-weight: 600; }
.consent-button:hover { border-color: var(--gold); }
.consent-button-primary { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.consent-button-primary:hover { background: var(--gold-bright); }

.site-footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: rgba(181, 170, 150, .72);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer p { margin: 0; }
.privacy-choice { padding: 6px 0; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: inherit; letter-spacing: inherit; text-transform: inherit; }
.privacy-choice:hover { color: var(--gold-bright); }

.share-toast {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  max-width: calc(100vw - 36px);
  padding: 11px 15px;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  color: var(--cream);
  background: #151a20;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  font-size: 12px;
}

.share-toast[hidden] { display: none; }
.empty-release { max-width: 600px; margin: auto; padding: 80px 0; text-align: center; }
.empty-release h1 { font-family: var(--serif); font-size: clamp(44px, 8vw, 74px); font-weight: 400; }
.empty-release p { color: var(--muted); }

@media (max-width: 860px) {
  .site-shell { width: min(100% - 36px, 610px); }
  .site-header { min-height: 78px; }
  .release-main { padding: 34px 0 42px; }
  .release-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .release-visual { width: min(80vw, 380px); }
  .release-copy { width: 100%; max-width: 500px; margin: 0 auto; }
  .release-eyebrow { margin-bottom: 18px; }
  .release-title { font-size: clamp(60px, 14vw, 84px); }
  .release-description { margin: 17px 0 20px; }
  .release-meta { margin-bottom: 27px; }
  .consent-panel { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
}

@media (max-width: 480px) {
  .site-shell { width: min(100% - 32px, 420px); }
  .site-header { min-height: 70px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-edition { font-size: 8px; letter-spacing: .12em; }
  .release-main { padding-top: 26px; }
  .release-layout { gap: 18px; }
  .release-visual { width: min(76vw, 300px); }
  .visual-caption { right: -3px; bottom: 4%; font-size: 7px; }
  .release-title { font-size: clamp(58px, 17vw, 76px); }
  .release-artist { margin-top: 8px; font-size: 20px; }
  .release-meta { margin: 0 0 23px; }
  .provider-button { min-height: 57px; grid-template-columns: 36px 1fr auto; gap: 11px; padding-right: 14px; }
  .provider-number { width: 33px; height: 33px; }
  .consent-panel { padding: 14px; }
  .consent-actions { width: 100%; }
  .consent-button { flex: 1; }
  .site-footer { min-height: 70px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding: 11px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
