@font-face {
  font-family: 'Panama Monospace';
  src: url('../fonts/Panama Monospace.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panama Monospace';
  src: url('../fonts/Panama Monospace Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-text: #000;
  --color-bg: #fff;
  --color-active: #6b7c3e;
  --color-border: #000;
  --color-accent: #E4FFBE;
  --font-mono: 'Panama Monospace', 'Courier New', Courier, monospace;
  --font-size: 16px;
  --line-height: 1.5;
  --pill-height: 38px;
}

html, body {
  height: 100%;
  overflow: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-mono);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--font-size);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  opacity: 0.7;
}

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

/* ==========================================
   LAYOUT: Two-Column Sidebar (all pages)
   ========================================== */

.layout-sidebar {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar-content {
  flex: 1;
  margin-right: 25vw;
  padding: 30px 24px 30px 20px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-content::-webkit-scrollbar {
  display: none;
}

.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 25vw;
  height: 100vh;
  border-left: 1px solid var(--color-border);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
}

/* --- Header: Brand + Logo side by side --- */

.sidebar-header {
  position: relative;
  margin-bottom: 52px;
}

.sidebar-logo-link {
  position: absolute;
  left: 75px;
  top: 5px;
}

.sidebar-logo-link:hover {
  opacity: 1;
}

.sidebar-logo {
  display: block;
  width: 60px;
  height: auto;
}

.sidebar-logo path {
  transition: fill 0.2s;
}

.sidebar-logo-link:hover .sidebar-logo path {
  fill: #000;
}

/* --- Brand diagonal letters --- */

.sidebar-brand {
  line-height: calc(var(--font-size) * var(--line-height));
  font-size: var(--font-size);
  text-transform: uppercase;
}

.sidebar-brand a {
  display: block;
}

.sidebar-brand a:hover {
  opacity: 1;
}

.sidebar-brand .letter-line {
  display: block;
}

.sidebar-brand .letter-line:nth-child(1) { padding-left: 0; }
.sidebar-brand .letter-line:nth-child(2) { padding-left: 14px; }
.sidebar-brand .letter-line:nth-child(3) { padding-left: 28px; }
.sidebar-brand .letter-line:nth-child(4) { padding-left: 42px; }
.sidebar-brand .letter-line:nth-child(5) { padding-left: 56px; }
.sidebar-brand .letter-line:nth-child(6) { padding-left: 0; }
.sidebar-brand .letter-line:nth-child(7) { padding-left: 14px; }
.sidebar-brand .letter-line:nth-child(8) { padding-left: 28px; }
.sidebar-brand .letter-line:nth-child(9) { padding-left: 42px; }

/* --- Separator --- */

.sidebar-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 -28px 80px -28px;
}

/* --- Nav --- */

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.sidebar-nav a {
  font-size: var(--font-size);
  letter-spacing: 0.42px;
  text-transform: uppercase;
}

.sidebar-nav a:hover {
  opacity: 1;
  color: #69823a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-nav a.active {
  color: var(--color-active);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-nav-mobile-newsletter {
  display: none;
}

/* --- Newsletter in sidebar --- */

.sidebar-newsletter-label {
  font-size: var(--font-size);
  letter-spacing: 0.42px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sidebar-newsletter-form {
  margin-bottom: 32px;
}

.sidebar-newsletter-input {
  font-family: var(--font-mono);
  font-size: var(--font-size);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  width: 150px;
  height: 24px;
  background: transparent;
  outline: none;
}

.sidebar-newsletter-input:focus {
  border-color: var(--color-text);
}

/* --- Contact --- */

.sidebar-contact {
  font-size: var(--font-size);
  margin-bottom: auto;
}

.sidebar-contact a {
  text-decoration: none;
}

/* --- Footer --- */

.sidebar-footer {
  font-size: var(--font-size);
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* ==========================================
   HOME PAGE
   ========================================== */

.home-cd {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
  padding: 40px 0;
}

.home-cd a {
  display: block;
  position: relative;
}

.home-cd a:hover {
  opacity: 1;
}

.home-cd a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #5d823a;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.home-cd a:hover::after {
  opacity: 1;
}

.home-cd img {
  max-width: 504px;
  width: 90%;
  transition: filter 0.3s ease;
}

.home-cd a:hover img {
  filter: grayscale(100%);
}

/* ==========================================
   RELEASES PAGE
   ========================================== */

.releases-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.release-item a {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.release-item a:hover {
  opacity: 1;
}

.release-item img {
  transition: filter 0.3s ease;
}

.release-cover {
  width: 28vw;
  min-width: 28vw;
  flex-shrink: 0;
  position: relative;
}

.release-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #5d823a;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.release-item a:hover .release-cover img {
  filter: grayscale(100%);
}

.release-item a:hover .release-cover::after {
  opacity: 1;
}

.release-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.release-info {
  padding-top: 4px;
}

.release-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 16px;
  min-width: 200px;
}

.release-catalog {
  font-size: var(--font-size);
}

.release-year {
  font-size: var(--font-size);
}

.release-artist {
  font-size: var(--font-size);
  margin-bottom: 2px;
}

.release-title {
  font-style: italic;
  font-size: var(--font-size);
}

/* ==========================================
   UPDATES PAGE
   ========================================== */

.updates-section {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 60px;
  margin-bottom: 30px;
  align-items: start;
}

.updates-year {
  font-size: var(--font-size);
  font-weight: normal;
  line-height: var(--line-height);
}

.updates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.updates-list li {
  font-size: var(--font-size);
}

.updates-list a:hover {
  opacity: 1;
  color: var(--color-active);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.updates-list .italic {
  font-style: italic;
}

/* ==========================================
   NEWSLETTER PAGE
   ========================================== */

.newsletter-description {
  font-size: var(--font-size);
  margin-bottom: 28px;
  max-width: 600px;
}

.newsletter-form-label {
  font-size: var(--font-size);
  margin-bottom: 10px;
}

.newsletter-input {
  font-family: var(--font-mono);
  font-size: var(--font-size);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  width: 200px;
  height: 24px;
  background: transparent;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--color-text);
}

/* ==========================================
   INFO PAGE
   ========================================== */

.info-text {
  font-size: var(--font-size);
  margin-bottom: 24px;
  max-width: 520px;
}

.info-contact {
  font-size: var(--font-size);
  margin-bottom: 30px;
}

.info-contact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 32px;
}

.info-image {
  max-width: 380px;
  margin-top: 10px;
}

.info-image img {
  width: 100%;
  filter: grayscale(100%);
}

/* ==========================================
   RELEASE DETAIL PAGE
   ========================================== */

.release-detail {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

.release-detail-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.release-detail-left {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 18vw;
  min-width: 18vw;
}

.release-detail-left .release-catalog {
  display: block;
  font-size: var(--font-size);
  margin-bottom: 10px;
}

.release-detail-cover {
  width: 100%;
}

.release-detail-cover img {
  width: 100%;
  height: auto;
}

.release-detail-info {
  flex: 1;
  padding-top: 0;
}

.release-detail-header {
  margin-bottom: 20px;
}

.release-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.release-artist-title {
  font-size: var(--font-size);
}

.release-tracklist {
  margin-bottom: 20px;
  font-size: var(--font-size);
}

.release-tracklist p {
  margin-bottom: 4px;
}

.release-credits {
  margin-bottom: 24px;
  font-size: var(--font-size);
}

.release-credits p {
  margin-bottom: 10px;
}

.release-soundcloud {
  margin-top: 10px;
  background: var(--color-accent);
  border-radius: 20px;
  padding: 8px 12px;
  width: 100%;
}

.release-soundcloud iframe {
  border: none;
  max-width: 100%;
  display: block;
}

.release-buy {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.release-price {
  font-size: var(--font-size);
  background: var(--color-accent);
  padding: 0 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--pill-height);
  box-sizing: border-box;
}

.release-price-inner {
  display: block;
  line-height: 1;
  transform: translateY(0.5px);
}

.paypal-form {
  display: inline;
}

.paypal-button {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 0 16px;
  height: var(--pill-height);
  box-sizing: border-box;
  border-radius: 20px;
  cursor: pointer;
  color: var(--color-text);
  line-height: 1;
}

.paypal-button:hover {
  background: var(--color-accent);
}

.back-link {
  display: inline-block;
  font-size: var(--font-size);
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 20px;
}

.back-arrow {
  font-size: 1.75em;
  line-height: 1;
  vertical-align: -0.1em;
}

/* ==========================================
   RESPONSIVE: Sidebar collapses to top nav
   ========================================== */

@media (max-width: 768px) {
  .layout-sidebar {
    flex-direction: column;
  }

  .sidebar-content {
    margin-right: 0;
    padding: 20px;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-left: none;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 20px;
    order: -1;
    overflow: visible;
  }

  .sidebar-header {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .sidebar-logo-link {
    position: static;
    margin-bottom: 10px;
  }

  .sidebar-logo {
    width: 45px;
  }

  .sidebar-brand {
    line-height: 1;
    width: 100%;
  }

  .sidebar-brand a {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .sidebar-brand .letter-line {
    display: inline;
    padding-left: 0 !important;
  }

  .sidebar-nav {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 0;
  }

  .sidebar-newsletter-label {
    display: none;
  }

  .sidebar-nav .sidebar-nav-mobile-newsletter {
    display: block;
  }

  .sidebar-newsletter-form,
  .sidebar-newsletter-input,
  .sidebar-contact,
  .sidebar-footer {
    display: none;
  }

  .sidebar-separator {
    display: none;
  }

  .home-cd {
    min-height: 60vh;
  }

  .home-cd img {
    max-width: 360px;
  }

  .release-item a {
    flex-direction: column;
    gap: 16px;
  }

  .release-cover {
    width: 100%;
    min-width: unset;
    max-width: 300px;
  }

  .release-detail-top {
    flex-direction: column;
  }

  .release-detail-left {
    width: 100%;
    min-width: unset;
    max-width: 250px;
  }

  .updates-section {
    grid-template-columns: 70px 1fr;
    gap: 0 24px;
  }
}
