:root {
  --ink: #171814;
  --paper: #f1ecdf;
  --cream: #dcd4c3;
  --orange: #e75932;
  --acid: #cbd85c;
  --blue: #7796b3;
  --line: rgba(23, 24, 20, 0.2);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  min-height: 78px;
  padding: 18px clamp(22px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.wordmark, .site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav form { display: inline-flex; }
.site-header nav a, .text-button { border-bottom: 1px solid transparent; }
.site-header nav a:hover, .text-button:hover { border-color: currentColor; }

.record-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  box-shadow: inset 0 0 0 4px var(--orange), inset 0 0 0 6px var(--ink);
}
.record-mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--paper); }

.owner-badge {
  padding: 7px 10px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.text-button { padding: 0; color: inherit; background: none; border: 0; text-transform: uppercase; letter-spacing: inherit; font-weight: inherit; }

.hero {
  min-height: min(760px, calc(100vh - 78px));
  padding: clamp(70px, 10vw, 140px) clamp(22px, 7vw, 110px) 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1;
}
.hero::before {
  width: min(64vw, 720px);
  right: -10vw;
  top: -12vw;
  background: var(--orange);
  box-shadow: inset 0 0 0 80px rgba(23,24,20,.08), inset 0 0 0 82px rgba(23,24,20,.25), inset 0 0 0 180px rgba(23,24,20,.06);
}
.hero::after {
  width: 30px;
  right: min(19vw, 230px);
  top: min(20vw, 240px);
  background: var(--paper);
  box-shadow: 0 0 0 12px var(--ink);
}

.eyebrow {
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 800;
}

.hero h1, .release-copy h1, .login-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 900px;
  font: 500 clamp(4.2rem, 10vw, 9.5rem)/0.78 var(--serif);
  letter-spacing: -0.07em;
}
.hero h1 em { color: var(--orange); font-weight: 500; }
.hero-copy { max-width: 520px; margin: 45px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--cream); }
.round-link {
  position: absolute;
  left: clamp(22px, 7vw, 110px);
  bottom: 42px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241,236,223,.5);
  border-radius: 50%;
  transition: .2s ease;
}
.round-link:hover { color: var(--ink); background: var(--acid); border-color: var(--acid); transform: translateY(4px); }

.ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.ledger > div { min-height: 150px; padding: 28px clamp(20px, 3vw, 44px); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.ledger > div:last-child { border-right: 0; }
.ledger strong { font: 500 clamp(2rem, 4vw, 4rem)/1 var(--serif); letter-spacing: -0.05em; }
.ledger span { font-size: .68rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.ledger .private-stat { color: var(--paper); background: var(--orange); }

.browse { padding: 110px clamp(22px, 4vw, 64px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 55px; }
.section-heading h2 { margin: 0; max-width: 780px; font: 500 clamp(2.8rem, 5.5vw, 6rem)/.9 var(--serif); letter-spacing: -.055em; }
.section-heading > p { margin: 0 0 7px; white-space: nowrap; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }

.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 46px; }
.filters input, .filters select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
}
.filters input:focus, .filters select:focus { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.search-field { position: relative; }
.search-field input { padding-right: 48px; }
.search-field kbd { position: absolute; right: 15px; top: 14px; padding: 1px 7px; border: 1px solid var(--line); color: rgba(23,24,20,.55); }

.record-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 58px 22px; }
.record-card[hidden] { display: none; }
.record-card a { display: block; }
.record-card:hover .sleeve { transform: translateY(-7px) rotate(-.4deg); box-shadow: 13px 16px 0 rgba(23,24,20,.13); }

.sleeve {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--cream);
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.sleeve::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.2)); }
.sleeve img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sleeve-artist { max-width: 70%; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.55rem, .8vw, .75rem); font-weight: 900; }
.sleeve-title { max-width: 72%; font: 500 clamp(1.4rem, 2.4vw, 2.7rem)/.9 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.vinyl { position: absolute; width: 60%; aspect-ratio: 1; right: -22%; top: 21%; border-radius: 50%; background: repeating-radial-gradient(circle, #171814 0 2px, #25261f 3px 5px); box-shadow: 0 0 0 8px rgba(255,255,255,.05); }
.vinyl::after { content: ""; position: absolute; inset: 39%; border-radius: 50%; background: var(--accent, var(--orange)); box-shadow: inset 0 0 0 8px rgba(255,255,255,.18); }
.corner-note { position: absolute; right: 0; bottom: 0; padding: 7px 11px; background: var(--ink); color: var(--paper); text-transform: uppercase; letter-spacing: .12em; font-size: .55rem; font-weight: 900; }

.palette-0 { background: #d85b38; --accent: #d5df60; }
.palette-1 { background: #b7c2a3; --accent: #e65d36; }
.palette-2 { background: #7593ad; --accent: #ecac47; }
.palette-3 { background: #d9cd9f; --accent: #834c3d; }
.palette-4 { background: #a4829e; --accent: #d6dd58; }
.palette-5 { background: #dcaa46; --accent: #315259; }
.palette-6 { background: #778b6e; --accent: #f0d7b4; }
.palette-7 { background: #bf5f5b; --accent: #363c54; }

.card-copy { padding-top: 18px; display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.card-copy h3 { margin: 0 0 2px; font: 600 1.3rem/1.05 var(--serif); letter-spacing: -.02em; }
.card-copy p, .pressing-line { margin: 0; }
.card-copy p { font-size: .88rem; font-weight: 700; }
.card-year { padding-top: 2px; color: rgba(23,24,20,.58); font-size: .72rem; letter-spacing: .08em; }
.pressing-line { padding-top: 9px; color: rgba(23,24,20,.62); font-size: .73rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-line { margin: 13px 0 0; padding-top: 10px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--orange); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.empty-state { padding: 100px 20px; text-align: center; font: 500 2rem var(--serif); }

.release-detail { padding: 60px clamp(22px, 6vw, 94px) 110px; }
.back-link { display: inline-block; margin-bottom: 45px; font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; border-bottom: 1px solid var(--ink); }
.release-layout { display: grid; grid-template-columns: minmax(320px, .92fr) minmax(400px, 1.08fr); gap: clamp(50px, 8vw, 130px); align-items: center; }
.detail-sleeve { width: 100%; box-shadow: 24px 26px 0 rgba(23,24,20,.12); }
.detail-sleeve .sleeve-artist { font-size: .8rem; }
.detail-sleeve .sleeve-title { font-size: clamp(3rem, 5vw, 5.8rem); }
.release-copy h1 { font-size: clamp(3.8rem, 6vw, 7.2rem); line-height: .85; }
.artist-name { margin: 25px 0 40px; font: 600 clamp(1.4rem, 2vw, 2rem) var(--serif); }
.public-story { max-width: 650px; font-size: 1.15rem; }
.fact-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.fact-grid > div { padding: 17px 10px 17px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.fact-grid span, .owner-ledger span { color: rgba(23,24,20,.58); font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.fact-grid strong { margin-top: 5px; font-size: .9rem; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 25px; }
.tags span { padding: 7px 10px; border: 1px solid var(--ink); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }

.owner-panel { margin-top: 100px; padding: clamp(28px, 5vw, 65px); color: var(--paper); background: var(--ink); }
.owner-ledger { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border-top: 1px solid rgba(241,236,223,.35); }
.owner-ledger > div { padding: 22px 20px 22px 0; display: flex; flex-direction: column; border-bottom: 1px solid rgba(241,236,223,.18); }
.owner-ledger span { color: rgba(241,236,223,.55); }
.owner-ledger strong { margin-top: 10px; font: 500 clamp(1.4rem, 2.4vw, 2.3rem) var(--serif); }
.private-notes { max-width: 700px; margin-top: 35px; color: var(--cream); }
.owner-panel details { margin-top: 26px; border-top: 1px solid rgba(241,236,223,.25); padding-top: 20px; }
.owner-panel summary { cursor: pointer; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 800; }
.owner-panel details p, .micro-copy { color: rgba(241,236,223,.65); font-size: .78rem; }

.login-card { width: min(650px, calc(100% - 44px)); margin: 90px auto 140px; padding: clamp(30px, 6vw, 70px); border: 1px solid var(--ink); }
.login-card h1 { font-size: clamp(3.5rem, 7vw, 6rem); line-height: .85; }
.login-card > p:not(.eyebrow) { max-width: 500px; margin: 35px 0; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.login-card label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.login-card input { min-height: 52px; padding: 0 14px; background: transparent; border: 1px solid var(--ink); }
.login-card button { min-height: 52px; margin-top: 8px; color: var(--paper); background: var(--ink); border: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.form-error { margin: 0; color: #a12f1a; font-weight: 700; }

footer { min-height: 120px; padding: 28px clamp(22px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--paper); background: var(--ink); font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .record-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger > div:nth-child(2n) { border-right: 0; }
  .ledger > div { border-bottom: 1px solid var(--line); }
  .filters { grid-template-columns: 1fr 1fr; }
  .release-layout { grid-template-columns: 1fr 1fr; gap: 55px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; padding: 14px 18px; }
  .record-mark { width: 32px; height: 32px; }
  .site-header nav { gap: 12px; }
  .site-header nav > a:first-child, .owner-badge { display: none; }
  .hero { min-height: 690px; padding: 90px 22px 100px; justify-content: flex-start; }
  .hero::before { width: 460px; right: -270px; top: 330px; }
  .hero::after { display: none; }
  .hero h1 { font-size: clamp(4.2rem, 22vw, 7rem); }
  .hero-copy { margin-top: 38px; }
  .ledger > div { min-height: 120px; padding: 22px; }
  .browse { padding: 80px 18px; }
  .section-heading { display: block; margin-bottom: 35px; }
  .section-heading > p { margin-top: 25px; }
  .filters { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; }
  .sleeve { padding: 16px; }
  .sleeve-title { font-size: 1.45rem; }
  .card-copy h3 { font-size: 1.05rem; }
  .release-detail { padding: 35px 18px 80px; }
  .release-layout { grid-template-columns: 1fr; }
  .detail-sleeve { max-width: 540px; }
  .fact-grid { grid-template-columns: 1fr; }
  .owner-panel { margin-top: 65px; }
  .owner-ledger { grid-template-columns: 1fr 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 430px) {
  .wordmark > span:last-child { display: none; }
  .ledger strong { font-size: 2rem; }
  .record-grid { grid-template-columns: 1fr; }
  .sleeve { padding: 24px; }
  .sleeve-title { font-size: 2.3rem; }
  .owner-ledger { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

