/* A single, permanent dark palette. No system preference or theme toggle.
   Charcoal paper and gently brightened crayon inks preserve the handmade feel. */
:root {
  color-scheme: dark;
  --paper: #191d22;
  --white: #252a30;
  --ink: #eeeae2;
  --muted: #aeb5b8;
  --line: #41484c;
  --lime: #dbc27e;
  --lime-deep: #c5a55d;
  --blue: #a0bcf2;
  --red: #e99182;
  --ochre: #d8b768;
  --bluewash: #303e56;
  --redwash: #443332;
  --paperedge: #424a50;
}
html {color-scheme: dark;background: #191d22}
body {
  color: var(--ink);
  background-color: #191d22;
  background-image: repeating-linear-gradient(19deg,rgba(227,220,203,.009) 0,rgba(227,220,203,.009) 1px,transparent 1px,transparent 7px);
}
::selection {background: #637eaf;color: #fff}
:focus-visible {outline-color: #abc5f7}

/* Navigation and title: chalky type on dark stock. */
.site-header {background: #1b2025;border-bottom-color: #414951}
.wordmark {color: #f0eee8}
.wordmark-period,.accent-period {color: var(--red)}
.logo-mark {border-color: #9bbcf3}
.logo-mark::before {border-color: #e99182}
.logo-mark::after {border-color: #9bbcf3}
.logo-mark span {background: #dec67c}
.nav-link {color: #cbd1d1}
.nav-link:hover {color: #b8cefc}
.crate-header-button {background: #262c33;color: #e4e8e6;border-color: #596b82}
.crate-header-button:hover {background: #35445b}
.crate-count {background: #a2b9e8;color: #202a38}

/* The mission stays airy; hand-made lines glow just enough. */
.eyebrow,.section-index {color: #b0c6fa}
.eyebrow-end {color: #96a1a5}
.eyebrow-mark {border-color: #e89a8c}
.hero-copy>.hero-mission {color: #e3e5e3;font-size: clamp(23px,2.25vw,32px);line-height: 1.49;letter-spacing: -.03em;max-width: 650px;font-weight: 520}
.hero-scribble path:first-child {stroke: #e78577}
.hero-scribble path:nth-child(2) {stroke: #86a8ed}
.hero-scribble path:nth-child(3) {stroke: #d5b363}
.button-dark {background: #aec5f2;color: #1c2635;border-color: #b5c9ef}
.button-dark:hover {background: #c9d9f5}
.button-ghost {background: #242930;color: #e7e9e6;border-color: #65707a}
.button-ghost:hover {background: #34383f}
.button-outline {background: #272d34;color: #bed1fc;border-color: #7899d5}
.button-outline:hover {background: #34445b}
.hero-footnote {color: #9da7aa}
.pulsing-dot {background: #e68d7e}

/* Dark blue-gray paper mount, original sleeve in full color. */
.feature {
  background: #28323c;
  color: #f2eee7;
  border-color: #657889;
  box-shadow: 8px 9px 0 #20252a;
}
.feature-top {color: #a9c0df}
.feature-top button {color: #bcd1f5;border-color: #829ab7;background: #303d4c}
.feature-top button:hover {background: #41516a}
.feature-doodle path:first-child {stroke: #86aff5}
.feature-doodle path:nth-child(2) {stroke: #ea887c}
.feature-doodle path:nth-child(3) {stroke: #d8b46a}
.feature-vinyl {box-shadow: 10px 12px 0 -3px #b89656}
.feature-vinyl::before {background: #d5b46b}
.feature-art.has-cover .feature-vinyl {border-color: #d5d8d5;box-shadow: 12px 13px 0 -2px #c87468,0 17px 25px rgba(0,0,0,.24)}
.feature-bottom {border-top-color: #586574}
.feature-kicker {color: #efa596}
.feature h2 {color: #eeeae4}
.feature p {color: #a8b7c2}
.feature-open {color: #bfcef4;background: #344153;border-color: #8da8dd}
.feature-open:hover {background: #465877}

/* The archive is a darker sheet; controls are legible, not luminous. */
.index-section {background: #20252a;border-top: 0;padding-top: 36px}
.section-index {color: #e89788}
.section-heading h2 {color: #f0ece6}
.section-heading p {color: #b0b7ba}
.index-annotation {color: #b1c7f7}
.index-annotation svg path:first-child {stroke: #9ab9f7}
.index-annotation svg path:last-child {stroke: #eb9486}
.filter-panel {background: #292f35;border-color: #596169;box-shadow: 4px 5px 0 #20262b}
.search-wrap input {
  background: #1d2227;
  color: #f0ede8;
  border-color: #66727d;
  caret-color: #acc3f3;
}
.search-wrap input::placeholder {color: #929da4}
.search-wrap input:focus {border-color: #a6c1ed;box-shadow: 0 0 0 3px rgba(138,173,236,.17)}
.search-icon {color: #bbc6d1}
.slash-hint {background: #2a3037;border-color: #535d68;color: #a3adb7}
.filter-label {color: #ed9b8c}
.text-reset {color: #b3c9fc}
.text-reset:hover {color: #fff}
.genre-pill {background: #30363d;color: #e1e4e1;border-color: #626b74}
.genre-pill:hover {background: #38465a;color: #f0f3f2;border-color: #8fa9d9}
.genre-pill.is-active {color: #f0f2f5;background: #4c658f;border-color: #a5bfff;box-shadow: inset 0 -3px 0 #405a83}
.genre-more {background: #2a3036;color: #eea598;border-color: #bf837e}
.select-wrap>span,.sort-wrap>span {color: #aab8c6}
.select-wrap select,.sort-wrap select {background: #20262c;color: #e5e9eb;border-color: #69747f}
.select-wrap .icon,.sort-wrap .icon {color: #bbcad8}
.check-filter {color: #c7cdd0}
.check-box {background: #222831;border-color: #8294a9}
.check-filter input:checked+.check-box {background: #7293cd;border-color: #aec5ef}
.check-filter input:checked+.check-box .icon {color: #172332}
.results-summary {color: #b6ccff}
.results-context {color: #e2a296}
.view-switch {background: #2b3239;border-color: #5a6772}
.view-switch button {color: #a7b7c4}
.view-switch button.is-active {background: #4b5e7b;color: #e4eeff}

/* Sleeves stand out against almost-black catalogue pages. */
.record-card {background: #292f35;border-color: #4c565e}
.record-card:hover {background: #303943;border-color: #869fc8;box-shadow: 5px 6px 0 #202936}
.record-title {color: #f1eee9}
.record-artist {color: #b4bec6}
.record-year {color: #9da8ae}
.sleeve {box-shadow: 0 1px 3px rgba(0,0,0,.35)}
.sleeve .cover-art {background: #343b43}
.save-button {background: #303841;color: #c5d3df;border-color: #616d76}
.save-button:hover {background: #4e5060}
.save-button.is-saved {background: #e4c984;border-color: #bdac7b;color: #26303a}
.tag {background: #343a40;border-color: #566069;color: #d3d9da}
.tag--more {background: #2d343a;border-color: #67727b}
.record-card-foot {border-top-color: #4a535b}
.ratio-block strong {color: #bacdff}
.ratio-block small {color: #aeb8bc}
.ratio-block.ratio-na strong {color: #bec3c4}
.card-link {color: #efa395}
.record-grid.is-list {border-color: #59636d}
.record-grid.is-list .record-card {border-bottom-color: #424b53}
.record-grid.is-list .record-card:hover {background: #343e47}
.empty-state {background: #292f35;border-color: #5b6770}
.empty-state h3 {color: #e8e8e1}
.empty-state p {color: #b6bfc3}
.empty-disc {background: #3a4a66;color: #d4e1ff}

/* The note, footer and overlays use the same family of dark papers. */
.closing h2 {color: #f1ede7}
.closing p {color: #b8c0c0}
.closing-icon svg path:first-child {stroke: #96b7f2}
.closing-icon svg path:nth-child(2) {stroke: #e99286}
.inline-link {color: #b8cfff;border-bottom-color: #de9389}
.site-footer {background: #191d22;border-top-color: #3e464d}
.footer-inner p {color: #9ca6ac}
.footer-inner>span {color: #9ca8ad}
.footer-inner>span a {text-decoration-color: #abc2ef}
dialog {background: #292f36;color: #edeae5;border-color: #71808b;box-shadow: 9px 10px 0 rgba(0,0,0,.24),0 18px 58px rgba(0,0,0,.42)}
dialog::backdrop {background: rgba(5,9,14,.75);backdrop-filter: blur(3px)}
.dialog-record-heading h2 {color: #f3eee7}
.dialog-record-heading p {color: #c2ccd1}
.dialog-close {background: #333d46;color: #e3e9ec;border-color: #64727d}
.dialog-close:hover {background: #45566a}
.dialog-pill-list .tag {background: #343b42}
.dialog-metrics {border-color: #5a6571}
.metric {background: #30363d;border-right-color: #59646f}
.metric:first-child {background: #3a4d6d}
.metric strong {color: #c7d8fd}
.metric span {color: #b8c3cf}
.detail-line span {color: #a9b5c0}
.detail-line strong {color: #e7e9e6}
.match-note {background: #333236;color: #c2c5c3;border-left-color: #e09085}
.match-note strong {color: #f0e7dc}
.crate-intro {color: #b6c2c5}
.crate-items,.crate-item {border-color: #515c65}
.crate-item-main span {color: #acb9c1}
.crate-item button {background: #343c45;color: #e5e8e6}
.crate-item button:hover {background: #45515c}
.crate-empty {color: #b2bec1}
.method-card {background: #32383f;border-color: #535d65;border-left-color: #9db9f4}
.method-card:nth-child(2) {border-left-color: #e59384}
.method-card:nth-child(3) {border-left-color: #d6b568}
.method-card>span {color: #e7a397}
.method-card h3 {color: #f0ebe5}
.method-card p {color: #c0c7c9}
.method-card p strong {color: #f0ede6}
.toast {background: #aec6f4;color: #1e2b3a}

@media (max-width: 800px) {
  .feature {box-shadow: 6px 7px 0 #20252a}
}
@media (max-width: 620px) {
  .feature {box-shadow: 5px 6px 0 #20252a}
  .shell {width: calc(100% - 32px)}
  .site-header {height: 64px}
  .header-inner {gap: 8px}
  .wordmark {font-size: 20px;gap: 7px;letter-spacing: -.07em}
  .logo-mark {width: 24px;height: 24px}
  .crate-header-button {min-height: 41px;padding: 6px 8px;gap: 6px}
  .crate-header-button .crate-count {height: 23px;min-width: 23px}
  .hero {padding-top: 42px;padding-bottom: 47px;gap: 28px}
  .eyebrow {font-size: 10px;letter-spacing: .08em;line-height: 1.6}
  .hero-scribble {width: 182px;height: 34px;margin: 18px 0 10px}
  .hero-copy>.hero-mission {font-size: 21px;line-height: 1.5;letter-spacing: -.025em;margin-bottom: 22px}
  .hero-actions {gap: 9px}
  .hero-actions .button {min-height: 46px;padding: 11px 14px;font-size: 13px}
  .hero-footnote {margin-top: 17px}
  .feature {height: 326px;padding: 18px;box-shadow: 5px 6px 0 #20252a}
  .feature-top button {width: 42px;height: 42px}
  .feature-art {height: 191px}
  .feature-art.has-cover .feature-vinyl {width: 159px;height: 159px}
  .feature-vinyl {width: 159px;height: 159px}
  .feature-vinyl::before {inset: 46px}
  .feature-bottom {padding-top: 10px;gap: 8px}
  .feature h2 {font-size: 19px}
  .feature-open {width: 44px;height: 44px}
  .index-section {padding-top: 24px;padding-bottom: 68px}
  .section-heading {margin-bottom: 23px}
  .section-heading h2 {font-size: 40px}
  .section-heading p {font-size: 14px}
  .filter-panel {padding: 14px}
  .search-wrap {height: 54px}
  .search-wrap input {padding-left: 43px;padding-right: 12px;font-size: 16px}
  .search-icon {left: 13px;width: 20px}
  .genre-pills {
    flex-wrap: nowrap;overflow-x: auto;overflow-y: hidden;
    margin-right: -14px;padding: 1px 14px 9px 0;
    scrollbar-width: none;-webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }
  .genre-pills::-webkit-scrollbar {display: none}
  .genre-pill {flex: 0 0 auto;min-height: 42px;font-size: 13px;padding: 10px 14px}
  .filter-label-line {margin-top: 17px}
  .secondary-filters {gap: 10px;margin-top: 10px}
  .select-wrap {min-width: calc(50% - 5px);max-width: none}
  .select-wrap select {height: 46px;font-size: 14px}
  .check-filter {min-height: 42px;padding: 3px 0;margin: 0;width: 100%;font-size: 13px}
  .check-box {width: 22px;height: 22px}
  .results-toolbar {padding: 23px 0 16px;gap: 13px}
  .results-summary {font-size: 14px}
  .results-controls {gap: 8px}
  .sort-wrap select {min-width: 175px;height: 44px;font-size: 13px}
  .sort-wrap .icon {bottom: 14px}
  .view-switch button {width: 42px;height: 42px}
  .record-grid {gap: 12px}
  .record-card {padding: 15px;min-height: 210px}
  .record-card-top {gap: 13px}
  .record-top-text {padding-right: 28px}
  .save-button {height: 40px;width: 40px;right: 9px;top: 9px}
  .save-button .icon {width: 17px;height: 17px}
  .record-grid.is-list .record-card {grid-template-columns: minmax(0,1fr) 79px 42px;min-height: 86px;gap: 8px;padding: 12px}
  .record-grid.is-list .save-button {transform: none}
  .record-grid.is-list .record-top-text {padding-right: 0}
  .load-more-wrap {padding-top: 34px}
  .closing {padding-top: 62px;padding-bottom: 66px}
  .dialog-close {height: 42px;width: 42px}
  .dialog-actions .button {min-height: 46px}
}
