/* ==========================================================================
   CROSS-RHYTHM — EDITORIAL ESSAY & CRITIQUE STYLESHEET
   Inspiration: Post-Trash & The Quietus
   Aesthetic: Refined dark mode (#111111 / #E5E5E5), high-legibility serif,
              680px-720px centered reading column, generous 1.78 line-height.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Inter:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg-primary: #111111;
  --bg-surface: #171717;
  --bg-subtle: #1F1F1F;
  --text-main: #E5E5E5;
  --text-muted: #9E9E9E;
  --text-subtle: #737373;
  --border-subtle: #262626;
  --border-light: #383838;
}

html {
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #383838;
  color: #FFFFFF;
}

/* Masthead & Title Typography */
.font-masthead {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.font-article-title {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.15;
}

.font-spec-mono {
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
}

/* Longform Reading Typography (Post-Trash / The Quietus) */
.article-body {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1875rem; /* ~19px */
  line-height: 1.78;
  color: #DFDFDF;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .article-body {
    font-size: 1.0625rem;
    line-height: 1.7;
  }
}

.article-body p {
  margin-bottom: 1.65rem;
}

/* Refined Drop Cap */
.drop-cap::first-letter {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 4.25rem;
  line-height: 0.8;
  float: left;
  margin-right: 0.75rem;
  margin-top: 0.2rem;
  color: #FFFFFF;
  font-weight: 500;
}

/* Editorial Blockquote */
.editorial-quote {
  border-left: 2px solid #555555;
  padding-left: 1.5rem;
  margin: 2.25rem 0;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.6;
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .editorial-quote {
    font-size: 1.1875rem;
    padding-left: 1.25rem;
    margin: 1.75rem 0;
  }
}

/* Studio Spec Box (Quiet, delicate The Quietus / Post-Trash aesthetic) */
.studio-spec-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem; /* 12px */
  line-height: 1.55;
  color: var(--text-muted);
}

.studio-spec-box .spec-label {
  color: #7A7A7A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6875rem; /* 11px */
  display: block;
}

.studio-spec-box .spec-value {
  color: #E0E0E0;
  font-weight: 400;
}

/* Square Album Artwork Container */
.album-art-container {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  background-color: #161616;
}

/* Flexible Embed Iframe Wrapper & Sandbox Fallback */
iframe {
  background-color: #18181b !important;
  color-scheme: dark;
}

.bandcamp-player-container,
.embed-iframe-wrapper,
.audio-bar-wrapper {
  width: 100%;
  border: 1px solid #27272a;
  background-color: #18181b;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.embed-iframe-wrapper:hover,
.audio-bar-wrapper:hover {
  border-color: #3f3f46;
}

/* Custom Scrollbar for Longform Reading */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #111111;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

/* ==========================================================================
   DYNAMIC STICKY COMPACT NAVIGATION HEADER ON SCROLL
   Independent fixed overlay header with hardware-accelerated slide transition
   ========================================================================== */
#sticky-compact-header {
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#sticky-compact-header.translate-y-0 {
  transform: translateY(0) !important;
}


