/* ==========================================================================
   MDRNCRCK / ATRAXIA — DESIGN SYSTEM (STARK BRUTALIST LIGHT)
   ========================================================================== */

:root {
  /* Color Palette */
  --color-bg: #ffffff;
  --color-text-main: #000000;
  --color-text-muted: #666666;
  --color-button-bg: #e2e7f0;
  --color-button-text: #334155;

  /* Typography */
  --font-sans: Arial, Helvetica, "Helvetica Neue", sans-serif;
  
  /* Font Sizes */
  --size-title: 1.6rem;
  --size-body: 1.15rem;
  --size-button: 0.85rem;

  /* Spacing */
  --space-y: 1.25rem;
  --space-x: 1.5rem;
}

/* Modern Minimal Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  padding: var(--space-x);
  margin: 0;
}

.content-container {
  width: 100%;
  max-width: 500px;
  margin-left: 0;
}

@media (min-width: 769px) {
  .content-container {
    max-width: 1000px;
    margin: calc(var(--space-y) * 2.5) auto;
  }
}

/* Base Typographic Rules */
h1, h2, h3, p, a, button {
  font-weight: 400;
}

/* Header & Title Layout */
.release-header {
  margin-bottom: var(--space-y);
}

.release-title {
  font-size: var(--size-title);
  color: var(--color-text-main);
  letter-spacing: -0.015em;
}

.italic-title {
  font-style: italic;
}

/* Catalog List & Links (used on subpages) */
.catalog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-y);
  margin-top: calc(var(--space-y) * 1.5);
  margin-bottom: calc(var(--space-y) * 1.5);
}

.catalog-link {
  font-size: var(--size-body);
  color: var(--color-text-main);
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.15s ease;
  transform-origin: center bottom;
}

.catalog-link:hover {
  transform: translateY(-2px);
  text-decoration: underline;
}

.catalog-static-item {
  font-size: var(--size-body);
  color: #71717a;
  display: inline-block;
}

/* Catalog Grid & Thumbnails (used on landing page) */
.catalog-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-y) * 1.5);
  margin-top: calc(var(--space-y) * 2);
  margin-bottom: calc(var(--space-y) * 2);
}

.grid-item {
  width: 100%;
}

.grid-link {
  color: var(--color-text-main);
  text-decoration: none;
  display: block;
}

.grid-label {
  font-size: var(--size-body);
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center bottom;
}

.grid-link:not(.static-item):hover .grid-label {
  transform: translateY(-2px);
  text-decoration: underline;
}

.static-item {
  color: #71717a;
}

/* Thumbnail wrapper - Hidden by default on Mobile to match vertical list style */
.thumbnail-wrapper {
  display: none;
}

/* Desktop Horizontal Layout with Art Thumbnails */
@media (min-width: 769px) {
  .catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--space-x) * 1.5);
    margin-top: calc(var(--space-y) * 2.5);
  }

  .thumbnail-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: var(--space-y);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .grid-link:not(.static-item):hover .thumbnail {
    transform: scale(1.04);
  }
}

.italic-text {
  font-style: italic;
}

/* Footer Section */
.release-footer {
  margin-top: calc(var(--space-y) * 1.5);
}

.footer-text {
  font-size: var(--size-body);
  color: var(--color-text-main);
}

.modern-trigger {
  text-decoration: underline dotted;
  cursor: help;
}


/* Back Link Navigation */
.back-nav {
  margin-bottom: calc(var(--space-y) * 1.5);
}

.back-link {
  font-size: var(--size-body);
  color: var(--color-text-main);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-block;
}

.back-link:hover {
  transform: translateX(-4px);
  text-decoration: underline;
}

/* Checkout Page Specific Styles */
.checkout-section {
  margin-top: calc(var(--space-y) * 1.5);
  margin-bottom: calc(var(--space-y) * 2);
}

.section-title {
  font-size: var(--size-body);
  margin-bottom: calc(var(--space-y) * 1.5);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-y) * 1.5);
  max-width: 400px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label {
  font-size: var(--size-button);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.form-input {
  border: none;
  border-bottom: 1px solid var(--color-text-main);
  padding: 6px 0;
  font-family: var(--font-sans);
  font-size: var(--size-body);
  color: var(--color-text-main);
  background-color: transparent;
  width: 100%;
  border-radius: 0;
  outline: none;
  transition: border-bottom-color 0.2s ease;
}

.form-input::placeholder {
  color: #a1a1aa;
  opacity: 0.6;
}

.form-input:focus {
  border-bottom-color: #0052cc;
}

/* Price input formatting */
.price-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 0;
  font-size: var(--size-body);
  color: var(--color-text-main);
  pointer-events: none;
}

.price-input {
  padding-left: 14px;
}

/* Pill Button */
.pill-button {
  background-color: var(--color-button-bg);
  color: var(--color-button-text);
  border: none;
  border-radius: 8px; /* Matching the soft pill corner curve in the mockup */
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: var(--size-button);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.15s ease;
}

.pill-button:hover {
  background-color: #cbd5e1;
  transform: translateY(-2px);
}

.pill-button:active {
  transform: translateY(0);
}

.pill-button:focus-visible {
  outline: 2px solid #0052cc;
  outline-offset: 2px;
}

/* Listen Page Grouping Layout */
.listen-group {
  margin-top: calc(var(--space-y) * 1.5);
  margin-bottom: calc(var(--space-y) * 1.5);
}

.group-title {
  font-size: var(--size-button);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: calc(var(--space-y) * 0.75);
}



