/*
Theme Name: Musician Starter
Theme URI: https://example.com/
Author: Codex
Description: A clean starter theme for a musician website with sections for music, shows, video, and contact.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: musician-starter
*/

:root {
  --ink: #171717;
  --muted: #66615d;
  --paper: #fffaf3;
  --panel: #ffffff;
  --accent: #c2462f;
  --accent-dark: #7f261c;
  --line: rgba(23, 23, 23, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Amatic SC", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 120px) clamp(20px, 4vw, 64px) clamp(44px, 7vw, 88px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 250, 243, 0.28);
}

.hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 122%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateX(-15%);
}

.hero-copy,
.album-panel {
  position: relative;
}

.hero h1 {
  max-width: 10ch;
  margin: 0 0 20px;
  font-family: "Amatic SC", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4.4rem, 9vw, 9.4rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.album-panel {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(23, 23, 23, 0.08);
}

.album-art {
  aspect-ratio: 1;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(194, 70, 47, 0.82), rgba(23, 23, 23, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 12px);
}

.soundcloud-player {
  position: relative;
  display: grid;
  min-height: 360px;
}

.soundcloud-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(194, 70, 47, 0.84), rgba(23, 23, 23, 0.96)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 12px);
}

.soundcloud-player iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 336px;
  margin: 12px;
  border: 0;
  border-radius: 4px;
  background: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-panel h2,
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.album-panel p,
.section p {
  color: var(--muted);
}

.section {
  position: relative;
  padding: clamp(44px, 6vw, 80px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}

.media-booking-section {
  overflow: hidden;
  background: #fffaf3;
}

.media-booking-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.74), rgba(255, 250, 243, 0.62) 28%, rgba(255, 250, 243, 0.6) 72%, rgba(255, 250, 243, 0.74)),
    rgba(255, 250, 243, 0.18);
}

.cover-wallpaper {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 150px;
  gap: 0;
  z-index: 0;
  opacity: 0.74;
  filter: saturate(1.05) contrast(0.96);
}

.cover-wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.tile {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.music-links {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.music-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  background: #171717;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.music-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 9px);
  opacity: 0.55;
}

.music-banner::after {
  content: ">";
  position: absolute;
  right: 14px;
  top: 50%;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 850;
  transform: translateY(-50%);
}

.music-banner:hover,
.music-banner:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 28px rgba(23, 23, 23, 0.15);
  filter: saturate(1.08);
  transform: translateX(3px);
}

.platform-mark,
.platform-copy {
  position: relative;
  z-index: 1;
}

.platform-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(23, 23, 23, 0.18);
}

.platform-mark img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.platform-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-right: 18px;
}

.platform-name {
  font-weight: 850;
}

.platform-meta {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-banner.bandcamp {
  background: linear-gradient(135deg, #0f8fa4, #14333d);
}

.music-banner.soundcloud {
  background: linear-gradient(135deg, #ff6a1a, #8f2d12);
}

.music-banner.apple {
  background: linear-gradient(135deg, #fb3b72, #6628d8);
}

.music-banner.amazon {
  background: linear-gradient(135deg, #1f3d55, #00a8e1);
}

.instagram-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.instagram-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  background:
    linear-gradient(135deg, rgba(251, 59, 114, 0.08), rgba(102, 40, 216, 0.08)),
    #fff;
}

.instagram-card-head h3 {
  margin: 0;
}

.instagram-card-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.instagram-card-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb3b72, #6628d8);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.instagram-feed {
  flex: 1;
  min-height: 320px;
  max-height: 320px;
  overflow: auto;
  margin: 0;
  border-width: 1px 0 0;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
  scrollbar-width: none;
}

.instagram-feed::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.instagram-feed iframe {
  display: block;
  width: calc(100% + 18px);
  min-height: 620px;
  margin: 0 0 0 -1px;
  border: 0;
}

.booking-trigger {
  margin-top: 12px;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.booking-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.54);
  backdrop-filter: blur(6px);
}

.booking-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(23, 23, 23, 0.28);
}

.booking-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.booking-modal__panel h2 {
  margin: 0 40px 10px 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.booking-modal__intro {
  margin: 0 0 20px;
  color: var(--muted);
}

.booking-form {
  display: grid;
  gap: 14px;
}

.booking-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 750;
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.booking-form textarea {
  resize: vertical;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-modal__close:focus-visible {
  outline: 2px solid rgba(194, 70, 47, 0.28);
  outline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-notice {
  padding: 12px 14px;
  border-radius: 4px;
  font-weight: 750;
}

.form-notice.success {
  background: rgba(30, 130, 76, 0.12);
  color: #17663c;
}

.form-notice.error {
  background: rgba(194, 70, 47, 0.12);
  color: var(--accent-dark);
}

body.booking-modal-open {
  overflow: hidden;
}

.show-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.show {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.show-date {
  color: var(--accent-dark);
  font-weight: 850;
  text-transform: uppercase;
}

.site-footer {
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

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