/* Someoddpilot Records — shared stylesheet
   Tokens and specs per design handoff README.
   Fonts (Archivo, Space Mono, JetBrains Mono) are linked from each page's <head>. */

:root {
  --ink: #111;
  --body-c: #222;
  --secondary: #333;
  --muted: #444;
  --meta: #666;
  --label: #888;
  --faint: #999;
  --faintest: #b3b3b3;
  --disabled: #ccc;
  --hairline: #eee;
  --field-border: #ddd;
  --field-bg: #fafafa;
  --ground: #fff;
  --error: #c0392b;
  --success-bg: #eef8ef;
  --success-border: #b7dcb9;
  --success-text: #2e6b34;
  --fail-bg: #fbf1f0;
  --fail-border: #e0c4c0;
  --fail-text: #8a3a30;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
}

body {
  font-family: Archivo, sans-serif;
}

a { color: inherit; }

.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  padding: 28px 32px;
}

.page--home { padding: 24px 32px; }

img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  row-gap: 14px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 16px;
  margin-bottom: 8px;
  position: relative;
}

.brand-marks { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.brand-mark {
  display: block;
  line-height: 0;
  position: relative;
  opacity: 0.35;
  transition: opacity 0.15s ease;
}

.brand-mark:hover { opacity: 0.7; }

.brand-mark--active { opacity: 1; }
.brand-mark--active:hover { opacity: 1; }

.brand-logo { height: 30px; width: auto; max-width: none; display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-icon-btn {
  display: none; /* hidden until Shopify is integrated */
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--ink);
  opacity: 0.35;
  cursor: default;
}

.cart-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-list a,
.artist-trigger {
  font: 600 10.5px 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #333;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-list a.active,
.artist-trigger.active {
  color: #111;
  font-weight: 700;
  border-bottom: 2px solid #111;
  padding-bottom: 3px;
}

.artist-nav {
  position: relative;
  cursor: pointer;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.artist-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #111;
  min-width: 170px;
  padding: 6px 0;
  z-index: 30;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
  margin: 0;
  list-style: none;
}

.artist-nav:hover .artist-menu,
.artist-nav:focus-within .artist-menu { display: block; }

.artist-menu li { margin: 0; }

.artist-menu a {
  display: block;
  padding: 9px 16px;
  color: #111;
  text-decoration: none;
  font: 600 11px 'Space Mono', monospace;
  text-transform: none;
  letter-spacing: 0;
}

.artist-menu a:hover { background: #f4f4f4; }

/* ---------- Footer / colophon ---------- */

.site-footer {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font: 400 10px/1.6 'Space Mono', monospace;
  color: #999;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
}

.footer-name { text-transform: uppercase; color: #666; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-links a {
  font: 500 13px Archivo, sans-serif;
  color: #111;
  text-decoration: underline;
}

/* ---------- Section headers ---------- */

.section-header {
  font: 600 11px 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: inline-block;
  font: 11px 'Space Mono', monospace;
  color: #888;
  margin-bottom: 20px;
  text-decoration: none;
}

/* ---------- Homepage: filter chips ---------- */

.filter-row {
  display: flex;
  gap: 8px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0;
  border: none;
  background: none;
  font: 400 12px Archivo, sans-serif;
  color: #999;
  cursor: pointer;
}

.filter-chip.active {
  font-weight: 600;
  color: #111;
  text-decoration: underline;
}

.empty-state {
  font: 400 13px Archivo, sans-serif;
  color: #999;
  padding: 40px 0;
}

/* ---------- Release grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 26px 20px;
}

.tile {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: 4px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.tile.no-link { pointer-events: none; }

.tile-head {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tile-artist,
.tile-title {
  font: 400 12px 'Space Mono', monospace;
  color: #333;
}

.tile-title { line-height: 15px; }

.tile-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 6px;
}

.tile-category {
  font: 600 9px 'Space Mono', monospace;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tile-catalog {
  font: 400 10px 'Space Mono', monospace;
  color: #b3b3b3;
}

.tile-cover {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Video tiles keep their source frame uncropped, inset on a neutral backdrop */
.tile[data-category="Videos"] .tile-cover {
  box-sizing: border-box;
  padding: 6%;
  background-size: contain;
  background-color: #e5e5e5;
  background-origin: content-box;
}

/* No-subgrid fallback: header heights just render at natural size, stacked per column */
@supports not (grid-template-rows: subgrid) {
  .tile { display: flex; flex-direction: column; gap: 4px; }
}

/* Placeholder artwork angles */
.ph-0   { background-image: repeating-linear-gradient(0deg,   #eee, #eee 2px, #e0e0e0 2px, #e0e0e0 9px); }
.ph-30  { background-image: repeating-linear-gradient(30deg,  #eee, #eee 2px, #e0e0e0 2px, #e0e0e0 9px); }
.ph-45  { background-image: repeating-linear-gradient(45deg,  #eee, #eee 2px, #e0e0e0 2px, #e0e0e0 9px); }
.ph-60  { background-image: repeating-linear-gradient(60deg,  #eee, #eee 2px, #e0e0e0 2px, #e0e0e0 9px); }
.ph-90  { background-image: repeating-linear-gradient(90deg,  #eee, #eee 2px, #e0e0e0 2px, #e0e0e0 9px); }
.ph-135 { background-image: repeating-linear-gradient(135deg, #eee, #eee 2px, #e0e0e0 2px, #e0e0e0 9px); }
.ph-150 { background-image: repeating-linear-gradient(150deg, #eee, #eee 2px, #e0e0e0 2px, #e0e0e0 9px); }
.ph-180 { background-image: repeating-linear-gradient(180deg, #eee, #eee 2px, #e0e0e0 2px, #e0e0e0 9px); }
.ph-210 { background-image: repeating-linear-gradient(210deg, #eee, #eee 2px, #e0e0e0 2px, #e0e0e0 9px); }

/* ---------- Product detail ---------- */

.product-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
}

.product-media { min-width: 0; }

.product-image-frame {
  width: 280px;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
}

.product-image-frame img,
.product-image-frame .ph-fill { width: 100%; height: 100%; object-fit: cover; }

.thumb-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--field-border);
  cursor: pointer;
  padding: 0;
  background: none;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: #111; }

.product-title {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.product-price {
  font: 600 15px 'Space Mono', monospace;
  color: #111;
  margin-bottom: 22px;
  min-height: 18px;
}

.product-description p {
  font: 400 13px/1.6 Archivo, sans-serif;
  color: #444;
  margin: 0 0 14px;
}
.product-description { margin-bottom: 22px; }

.option-label {
  font: 600 10px 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #888;
  margin-bottom: 8px;
}

.variant-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.variant-btn {
  padding: 9px 16px;
  background: transparent;
  color: #111;
  border: 1px solid #ddd;
  font: 600 12px Archivo, sans-serif;
  cursor: pointer;
}

.variant-btn.selected {
  background: #111;
  color: #fff;
  border: none;
  font-weight: 700;
}

.variant-btn.unavailable {
  color: #ccc;
  border-color: #eee;
  cursor: not-allowed;
}

.stream-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.stream-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  color: #111;
  border: 1px solid #ddd;
  cursor: pointer;
}

.stream-btn:hover { border-color: #111; }

.stream-btn svg { width: 18px; height: 18px; flex: none; }

.bundle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 13px Archivo, sans-serif;
  color: #333;
  margin-bottom: 24px;
  cursor: pointer;
}

.bundle-row input {
  width: 16px;
  height: 16px;
  accent-color: #111;
}

.buy-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  background: #111;
  color: #fff;
  border: none;
  font: 700 13px Archivo, sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.buy-btn.sold-out { background: #999; cursor: not-allowed; }

.pickup-note {
  font: 400 12px Archivo, sans-serif;
  color: #666;
  margin-top: 14px;
}

/* ---------- Checkout page ---------- */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-top: 24px;
  align-items: start;
}

.checkout-line {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.checkout-line-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex: none;
  background: var(--field-bg);
}

.checkout-line-image--placeholder {
  border: 1px dashed var(--field-border);
}

.checkout-line-info { flex: 1; }

.checkout-line-title {
  font-weight: 700;
  margin: 0 0 4px;
}

.checkout-line-price {
  color: var(--meta);
  margin: 0;
  font: 500 13px 'Space Mono', monospace;
}

.checkout-line { position: relative; }

.checkout-remove-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  margin-left: auto;
  align-self: flex-start;
  font-size: 20px;
  line-height: 1;
  color: var(--faint);
  cursor: pointer;
}

.checkout-remove-btn:hover { color: var(--ink); }

.checkout-empty-note {
  font: 400 13px Archivo, sans-serif;
  color: var(--meta);
  padding: 16px 0;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
  padding: 16px 0;
}

.checkout-integration-panel {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  padding: 24px;
}

.checkout-integration-note {
  font: 400 13px Archivo, sans-serif;
  color: var(--meta);
  margin: 8px 0 20px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

/* ---------- Artist / About hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-bottom: 34px;
}

.hero--about { margin-top: 26px; }

.hero-photo {
  width: 220px;
  height: 330px;
  object-fit: cover;
  filter: grayscale(1);
}

.hero-photo.ph-fill { width: 220px; height: 330px; }

.hero--square .hero-photo,
.hero--square .hero-photo.ph-fill { width: 220px; height: 220px; }

.hero--horizontal { grid-template-columns: 1fr; }
.hero--horizontal .hero-photo,
.hero--horizontal .hero-photo.ph-fill {
  width: 100%;
  height: 330px;
  margin-bottom: 20px;
  filter: grayscale(1);
}

.page-title {
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.lineup-line {
  font: 400 12px Archivo, sans-serif;
  color: #666;
  margin: 0 0 20px;
}

.bio p {
  font: 400 14px/1.65 Archivo, sans-serif;
  color: #222;
  margin: 0 0 14px;
}

.bio-placeholder {
  font: 400 14px/1.65 Archivo, sans-serif;
  color: #999;
  font-style: italic;
  border: 1px dashed #ddd;
  padding: 14px 16px;
  margin: 0;
}

/* ---------- Releases (artist page) ---------- */

.release-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 34px;
}

.release-item { display: flex; gap: 14px; }

.release-cover {
  display: block;
  width: 110px;
  height: 110px;
  flex: none;
  object-fit: cover;
}

.release-cover.ph-fill { width: 110px; height: 110px; }

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

/* Video thumbnails: exact same technique as .tile[data-category="Videos"] .tile-cover —
   a background-image div/anchor, not an <img>, so rendering is identical to the grid */
.release-list--videos a.release-cover {
  box-sizing: border-box;
  padding: 6.6px; /* 6% of the 110px box, matching .tile-cover's 6% proportion */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e5e5e5;
  background-origin: content-box;
}

.release-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.release-title {
  display: block;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.release-credits {
  font: 11px 'Space Mono', monospace;
  color: #999;
  margin-top: 2px;
}

.release-link {
  font: 500 12px Archivo, sans-serif;
  text-decoration: none;
  color: #111;
}

/* ---------- Links row ---------- */

.links-row {
  display: flex;
  gap: 26px;
  font: 500 13px Archivo, sans-serif;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.links-row a { text-decoration: underline; color: #111; }

/* ---------- Contact ---------- */

.contact-intro {
  font: 400 12px Archivo, sans-serif;
  color: #666;
  max-width: 420px;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
}

.field label {
  display: block;
  font: 600 10px 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #888;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  background: #fafafa;
  border: 1px solid #ddd;
  color: #111;
  font: 400 13px Archivo, sans-serif;
  font-family: Archivo, sans-serif;
}

.field textarea { resize: vertical; }

.field.has-error input,
.field.has-error textarea { border-color: #c0392b; }

.field-error {
  font: 400 11px Archivo, sans-serif;
  color: #c0392b;
  margin-top: 5px;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-banner {
  padding: 14px 16px;
  font: 400 13px Archivo, sans-serif;
  display: none;
}

.form-banner.show { display: block; }

.form-banner.success {
  background: #eef8ef;
  border: 1px solid #b7dcb9;
  color: #2e6b34;
}

.form-banner.fail {
  background: #fbf1f0;
  border: 1px solid #e0c4c0;
  color: #8a3a30;
}

.content-flag {
  font: 400 11px 'Space Mono', monospace;
  color: #b3b3b3;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; }
  .product-image-frame { width: 100%; max-width: 320px; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo, .hero-photo.ph-fill { width: 100%; }
  .release-list { grid-template-columns: 1fr; }
  .page-title { font-size: 34px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Video viewing page ---------- */

.video-page-title {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.video-context {
  font: 400 12px Archivo, sans-serif;
  color: #666;
  margin: 0 0 22px;
}

.video-embed-wrap {
  max-width: 700px;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}

.video-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-poster {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-poster:hover .play-icon { background: rgba(0, 0, 0, .75); }

.video-credits {
  font: 400 12px/1.6 Archivo, sans-serif;
  color: #666;
  margin-top: 16px;
  max-width: 400px;
}

.watch-video-link {
  display: inline-block;
  font: 500 12px Archivo, sans-serif;
  color: #111;
  text-decoration: underline;
  margin: 4px 0 22px;
}

@media (max-width: 460px) {
  .grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .nav-list { gap: 14px; }
}
