/* HouseCrates foundation — based on the House Music Factory layout. */
@font-face {
  font-family: "Manrope";
  src: url("Manrope-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme:dark;
  --bg:#101115; --panel:#1d1f26; --text:#f2f2f5; --muted:#a8abb5;
  --accent:#f9a247; --house:#e244a2; --blue:#35aff9;
  --content:1100px; --font-size-body:16px; --line-height-body:1.62;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scrollbar-gutter:stable}
body{margin:0;color:var(--text);font-family:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--font-size-body);background:radial-gradient(ellipse at 50% -10%,#25232b 0%,var(--bg) 50%)}
.page{width:min(var(--content),calc(100% - 48px));margin:auto}
.site-header{position:relative}
.hero{padding:48px 0 32px;display:flex;justify-content:space-between;align-items:center;gap:22px}
.eyebrow{letter-spacing:.22em;color:var(--accent);font-size:11px;font-weight:700;margin:0 0 16px}
.hero h1{font-size:clamp(30px,5.5vw,70px);line-height:1;letter-spacing:-.045em;margin:0;font-weight:850}
.hero h1 .house{color:var(--house)}
.hero h1 .crates{color:#fff}
.tagline{color:var(--muted);font-size:14px;margin:16px 0 0}
/* Subtle watermark between the HouseCrates wordmark and the logo. */
.hero-preview{display:block;flex:0 0 auto;color:#fff;opacity:.27;font-size:clamp(18px,2.25vw,31px);font-weight:800;letter-spacing:.15em;line-height:1;white-space:nowrap;transform:rotate(-15deg);pointer-events:none;user-select:none}
.hero-logo{height:160px;width:130px;object-fit:contain;flex:0 0 auto}
.collection-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0 0 27px;border-bottom:1px solid #33343c}
.collection-tabs .collection-tab{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:75px;padding:12px 4px 10px;background:#202229;border:1px solid #292c34;border-bottom:5px solid #393b44;border-radius:11px;color:var(--text);cursor:pointer;font-family:inherit;line-height:1.2}
.collection-tabs .collection-tab strong{font-size:clamp(9px,1.05vw,13px);font-weight:650;white-space:nowrap}
.collection-tabs .collection-tab span{font-size:clamp(9px,.93vw,11px);color:var(--muted);white-space:nowrap}
.collection-tabs .collection-tab:hover{background:#2b2d35}
.collection-tabs .collection-tab.is-selected{background:#332d34;border-color:#51334b;border-bottom-color:var(--house)}
.collection-tabs .collection-tab.is-selected strong{color:#fff}
.collection-tabs .collection-tab:focus-visible{outline:2px solid #fff;outline-offset:3px}
.collection-tabs .collection-tab--planned:disabled{opacity:.67;cursor:default}
.collection-tabs .collection-tab--planned:disabled:hover{background:#202229}
.collection[hidden]{display:none!important}
.collection{padding:32px 0 40px;min-height:45vh}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:22px}
.section-head h2{font-size:21px;letter-spacing:.08em;margin:0}
.section-head p{margin:10px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.playlist-page-head{align-items:flex-end}
.footer{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;color:#989ba6;border-top:1px solid #30333b;font-size:11px;letter-spacing:.09em;text-align:center;padding:26px 0 45px}
.footer a{color:#d2d4dc;text-decoration:none}.footer a:hover{text-decoration:underline}
.placeholder-copy{max-width:830px;color:#c8cad4;line-height:1.75}
.placeholder-copy p{margin:0 0 18px}
.legal-block{max-width:820px;line-height:1.7;margin-bottom:46px}
.legal-block h2{font-size:22px}.legal-block h3{margin-top:22px;font-size:16px}
.legal-block p{color:#c7cad1}.legal-block a{color:var(--blue)}
/* Editorial text shares the existing content column across IDEA and the legal pages. */
.legal-block h2,.legal-block h3{color:var(--theme-accent,var(--house))}
.legal-block h2{letter-spacing:.055em;margin-top:0;margin-bottom:18px}
/* Match the visible top baseline of RECORDS/HISTORY: editorial h2s had inherited a 1.7 line-height. */
.editorial-block > h2:first-child{font-size:21px;line-height:normal}
.legal-block h3{font-size:17px;letter-spacing:.015em;margin:28px 0 9px}
.legal-block p{margin:0 0 17px}
.legal-block .editorial-lead{font-size:17px;color:#f0f0f4;line-height:1.75}
.legal-block .draft-info{font-size:13px;line-height:1.6;color:#aeb2be;border-left:2px solid var(--theme-accent,#888);padding-left:14px;margin:2px 0 26px}
.legal-block address{font-style:normal;color:#c7cad1;line-height:1.8;margin:6px 0 18px}
.legal-block code{overflow-wrap:anywhere;color:#d5d5de}
.legal-block a{overflow-wrap:anywhere}
/* Keep the TOP button near the right edge of the centered page, not the browser window. */
.back-to-top{position:fixed;right:max(18px, calc((100vw - var(--content)) / 2 - 58px));bottom:22px;z-index:100;background:#fff;color:#151515;border:0;border-radius:50%;width:42px;height:42px;box-shadow:0 4px 16px #0008;cursor:pointer}
.back-to-top[hidden]{display:none}
/* Mobile navigation and header scroll away naturally with the page. */
@media(max-width:940px) and (min-width:651px){
 .collection-tabs{gap:4px}.collection-tabs .collection-tab{min-height:60px;padding:11px 2px 9px}
 .collection-tabs .collection-tab strong{font-size:clamp(9px,1.04vw,11px);white-space:normal}
 .collection-tabs .collection-tab span{display:none}
}
@media(max-width:650px){
 .page{width:calc(100% - 28px)}
 .hero{padding:24px 0;gap:10px}
 .hero h1{font-size:clamp(24px,7.8vw,45px)}
 .hero-preview{position:absolute;top:14px;right:80px;font-size:12px;letter-spacing:.09em;opacity:.27;transform:rotate(-15deg)}
 .hero-logo{width:78px;height:103px}
 .tagline{font-size:12px;margin-top:8px}.eyebrow{font-size:9px;letter-spacing:.12em;margin-bottom:10px}
 .collection-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:12px 0 16px}
 .collection-tabs .collection-tab{min-height:43px;height:43px;gap:0;padding:6px 4px 5px;border-radius:9px;border-bottom-width:3px}
 .collection-tabs .collection-tab strong{font-size:11px;white-space:normal}
 .collection-tabs .collection-tab span{display:none}
 .section-head h2{font-size:18px}
 .editorial-block > h2:first-child{font-size:18px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* HISTORY OF HOUSE – article only; common HouseCrates header/navigation remain unchanged. */
.history-article{max-width:850px;color:#c8cad4;line-height:1.78}
.history-article .history-strap{color:var(--theme-accent,#e84da8);font-size:12px;font-weight:750;letter-spacing:.14em;margin:0 0 9px}
.history-article .history-intro{font-size:17px;line-height:1.65;color:#e5e6ee;margin:0 0 30px}
/* Chapter headings match subheadings on IDEA, IMPRINT and PRIVACY. */
.history-article h3{font-size:17px;font-weight:700;line-height:1.7;letter-spacing:.015em;color:var(--theme-accent,#e84da8);margin:28px 0 9px}
.history-article h3:first-of-type{margin-top:28px}
.history-article p{margin:0 0 20px}
.history-article strong{color:#f5f5f7;font-weight:750}
@media(max-width:650px){
 .history-article{font-size:15px;line-height:1.76}
 .history-article .history-intro{font-size:16px}
}

@media(max-width:360px){.hero-preview{top:36px;right:93px;font-size:9px;letter-spacing:.05em}}

/* Desktop-only: reveal the *original* navigation after deliberate upward scrolling.
   A same-height spacer prevents document/scroll position jumps. Mobile is untouched. */
.desktop-navigation-spacer[hidden]{display:none!important}
@media (min-width:951px) and (hover:hover) and (pointer:fine){
  html.desktop-navigation-floating .site-header .collection-tabs{
    position:fixed;
    top:0;
    left:50%;
    width:min(var(--content),calc(100% - 48px));
    z-index:40;
    background:var(--bg,#101115);
    box-shadow:0 7px 24px rgba(0,0,0,.45);
    transform:translate(-50%,calc(-100% - 8px));
    opacity:0;
    pointer-events:none;
    transition:transform .22s ease-out,opacity .18s ease-out;
  }
  html.desktop-navigation-floating.desktop-navigation-visible .site-header .collection-tabs{
    transform:translate(-50%,0);
    opacity:1;
    pointer-events:auto;
  }
  /* Keep the sticky record player below the revealed navigation. */
  html.desktop-navigation-visible #panel-records .records-sticky{
    top:calc(var(--desktop-navigation-height,103px) + 8px);
  }
}
@media (prefers-reduced-motion:reduce){
  html.desktop-navigation-floating .site-header .collection-tabs{transition:none}
}


/* Editorial pages – same title position and Manrope typography on all four pages.
   The included content HTML is retained as-is; JS places its existing headline
   into the shared section-head used by HISTORY, without duplicating headings. */
#panel-idea, #panel-history, #panel-imprint, #panel-privacy {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#panel-idea .editorial-section-head,
#panel-history .editorial-section-head,
#panel-imprint .editorial-section-head,
#panel-privacy .editorial-section-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin: 0 0 22px;
}
#panel-idea .editorial-page-title,
#panel-history .editorial-page-title,
#panel-imprint .editorial-page-title,
#panel-privacy .editorial-page-title {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 21px !important;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35 !important;
  color: var(--text);
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
}
/* IDEA retains its orange editorial accent; the other page titles stay light. */
#panel-idea .editorial-page-title { color: var(--theme-accent, #f9a247); }
/* Even if separately maintained legal content has its own font declaration,
   all ordinary editorial text uses the same project font. */
#panel-idea :is(h1,h2,h3,h4,h5,h6,p,span,strong,em,a,li,dt,dd,address,blockquote),
#panel-history :is(h1,h2,h3,h4,h5,h6,p,span,strong,em,a,li,dt,dd,address,blockquote),
#panel-imprint :is(h1,h2,h3,h4,h5,h6,p,span,strong,em,a,li,dt,dd,address,blockquote),
#panel-privacy :is(h1,h2,h3,h4,h5,h6,p,span,strong,em,a,li,dt,dd,address,blockquote) {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
@media (max-width: 650px) {
  #panel-idea .editorial-page-title,
  #panel-history .editorial-page-title,
  #panel-imprint .editorial-page-title,
  #panel-privacy .editorial-page-title { font-size: 18px !important; }
}

/* Editorial content alignment: the heading and its content start on the
   same inset edge across IDEA, HISTORY, IMPRINT and PRIVACY.
   The HISTORY article has its own 32px/18px page-wrapper padding. */
#panel-idea, #panel-history, #panel-imprint, #panel-privacy {
  --hc-editorial-indent:32px;
}
#panel-idea > .editorial-section-head,
#panel-history > .editorial-section-head,
#panel-imprint > .editorial-section-head,
#panel-privacy > .editorial-section-head {
  margin-left:var(--hc-editorial-indent);
}
#panel-idea > .editorial-block,
#panel-imprint > .editorial-block,
#panel-privacy > .editorial-block {
  margin-left:var(--hc-editorial-indent);
}
/* Remove the former double-heading gap from the HISTORY article. */
#panel-history .page-wrapper { padding-top:0; }
@media (max-width:799px) {
  #panel-idea, #panel-history, #panel-imprint, #panel-privacy {
    --hc-editorial-indent:18px;
  }
}


/* ABOUT / FAQ – silver-grey palette retained; compact native accordion. */
#panel-idea .hc-about { max-width:840px; padding-right:24px; }
#panel-idea .hc-about > p { max-width:790px; }
#panel-idea .hc-about .hc-about-faq-title {
  margin:35px 0 12px; color:#d6d8dc; font-size:17px; letter-spacing:.06em;
}
#panel-idea .hc-faq { border-top:1px solid #41454d; }
#panel-idea .hc-faq h4 {
  color:#bfc3cb; margin:23px 0 8px; font-size:12px;
  letter-spacing:.1em; text-transform:uppercase; font-weight:700;
}
#panel-idea .hc-faq details { border-bottom:1px solid #383d45; }
#panel-idea .hc-faq summary {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:13px 2px; color:#e7e8ec; font-size:14px; line-height:1.5;
  font-weight:600; cursor:pointer; list-style:none;
}
#panel-idea .hc-faq summary::-webkit-details-marker{display:none}
#panel-idea .hc-faq summary::after {
  content:""; flex:none; width:8px; height:8px; margin-right:8px;
  border-right:1.6px solid #bec2ca; border-bottom:1.6px solid #bec2ca;
  transform:rotate(45deg); transition:transform .15s ease;
}
#panel-idea .hc-faq details[open] summary::after { transform:rotate(225deg); }
#panel-idea .hc-faq details[open] summary { color:#f4f5f7; }
#panel-idea .hc-faq details p { margin:0 32px 16px 2px; max-width:760px;
  color:#bec2cc; font-size:14px; line-height:1.65; }
#panel-idea .hc-faq a { color:#d5d8de; text-underline-offset:3px; }
#panel-idea .hc-faq summary:focus-visible { outline:2px solid #c5c8ce; outline-offset:2px; }
@media(max-width:650px) {
  #panel-idea .hc-about { padding-right:12px; }
  #panel-idea .hc-faq summary { font-size:13px; padding:12px 2px; }
  #panel-idea .hc-faq details p { font-size:13px; }
}
@media(prefers-reduced-motion:reduce){#panel-idea .hc-faq summary::after{transition:none}}


/* ABOUT / FAQ – clear blue secondary accents, silver-grey page identity. */
#panel-idea .hc-about .hc-about-faq-title {
  color:#F5F5F7;
  font-size:19px;
  font-weight:750;
  letter-spacing:.055em;
}
#panel-idea .hc-faq h4 {
  display:flex;
  align-items:center;
  gap:11px;
  margin:26px 0 11px;
  color:#35AFF9;
  font-size:14px;
  font-weight:750;
  line-height:1.4;
  letter-spacing:.055em;
}
#panel-idea .hc-faq h4::before {
  content:"";
  display:block;
  flex:0 0 3px;
  align-self:stretch;
  min-height:20px;
  border-radius:2px;
  background:#35AFF9;
}
#panel-idea .hc-faq details[open] > summary::after {
  border-color:#35AFF9;
}
#panel-idea .hc-faq summary:focus-visible {
  outline-color:#35AFF9;
}
@media(max-width:650px){
  #panel-idea .hc-about .hc-about-faq-title {font-size:17px;}
  #panel-idea .hc-faq h4 {font-size:13px;}
}

/* Small, always accessible legal navigation underneath the main navigation divider. */
.header-legal-links{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  padding:10px 0 0;
  color:#9fa4ae;
  font-size:12px;
  font-weight:500;
  letter-spacing:.012em;
  line-height:1.35;
}
.header-legal-links a{
  color:#c5c8ce;
  text-decoration:none;
}
.header-legal-links a:hover,
.header-legal-links a:focus-visible{
  color:#f5f5f7;
  text-decoration:underline;
  text-underline-offset:3px;
}
.header-legal-links a:focus-visible{outline:2px solid #c5c8ce;outline-offset:3px}
@media(max-width:650px){.header-legal-links{padding-top:9px;font-size:11px;gap:9px}}
