:root {
  color-scheme: light;
  --bg: #f4efe8;
  --bg-soft: #fcf8f2;
  --ink: #18313a;
  --muted: #58727a;
  --line: rgba(24, 49, 58, 0.12);
  --warm: #d9835d;
  --gold: #d8ad4e;
  --teal: #5c998d;
  --sky: #6c8fc8;
  --rose: #c77785;
  --shadow: 0 14px 32px rgba(24, 49, 58, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(216, 173, 78, 0.22), transparent 26%),
    radial-gradient(circle at top right, rgba(108, 143, 200, 0.15), transparent 30%),
    linear-gradient(160deg, #f7f1e8 0%, #eef5f2 50%, #f7edf1 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(217, 131, 93, 0.18) 25%, transparent 25%),
    linear-gradient(225deg, rgba(92, 153, 141, 0.16) 25%, transparent 25%),
    linear-gradient(315deg, rgba(108, 143, 200, 0.14) 25%, transparent 25%),
    linear-gradient(45deg, rgba(199, 119, 133, 0.13) 25%, transparent 25%);
  background-position:
    -26px 0,
    -26px 0,
    0 0,
    0 0;
  background-size: 64px 64px;
  pointer-events: none;
  opacity: 0.5;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(216, 173, 78, 0.1), transparent 20%),
    radial-gradient(circle at 82% 30%, rgba(92, 153, 141, 0.08), transparent 22%),
    radial-gradient(circle at 60% 82%, rgba(199, 119, 133, 0.08), transparent 20%);
  pointer-events: none;
  opacity: 0.75;
}

a {
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
  position: relative;
  z-index: 1;
}

.logo-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48vh;
  padding: 32px 20px 12px;
}

.logo-image {
  display: block;
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(24, 49, 58, 0.12));
}

.section-tag {
  margin: 0 0 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

h2 {
  font-family: "Avenir Next", "Futura", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.section-heading h2 {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.audio-card:hover {
  transform: translateY(-2px);
}

.audio-grid {
  display: grid;
  gap: 18px;
}

.audio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 49, 58, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.audio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audio-status {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.audio-card {
  padding: 24px;
  border-radius: 30px;
  transition: transform 160ms ease;
}

.audio-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--accent, linear-gradient(90deg, #d9835d, #6c8fc8));
}

.audio-card h3 {
  margin: 0;
  font-size: 1.6rem;
  font-family: "Avenir Next", "Futura", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.prepared-by {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(24, 49, 58, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.3;
  text-align: right;
}

.prepared-by-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(24, 49, 58, 0.06);
  color: var(--ink);
}

.prepared-by-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.audio-player {
  width: 100%;
  margin-top: 18px;
}

.audio-player::-webkit-media-controls-panel {
  background: rgba(255, 255, 255, 0.92);
}

.audio-placeholder {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(24, 49, 58, 0.05);
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 980px) {
  body::before,
  body::after {
    position: absolute;
  }

  .audio-grid {
    grid-template-columns: 1fr;
  }

  .logo-banner {
    min-height: 40vh;
    padding: 24px 16px 8px;
  }

  .logo-image {
    width: min(100%, 460px);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 72px 72px;
    opacity: 0.35;
  }

  body::after {
    opacity: 0.45;
  }

  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
  }

  .logo-banner {
    min-height: auto;
    padding: 12px 8px 0;
  }

  .library-section {
    margin-top: 28px;
  }

  .audio-card {
    padding: 20px;
    border-radius: 24px;
  }

  .card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .prepared-by {
    text-align: left;
  }
}
