/* ---------- Palette, pulled from the guitar photo ---------- */
:root {
  --base: #0E1620;        /* deep navy */
  --base-raised: #16222F;
  --teal: #2F8FB3;        /* backdrop */
  --accent: #6CCFE8;      /* bright aqua from the banner backdrop */
  --cream: #EFE8D8;       /* guitar body */
  --cream-soft: rgba(239, 232, 216, 0.72);
  --line: rgba(239, 232, 216, 0.12);

  --radius-card: 24px;
  --shadow: 0 14px 34px rgba(3, 8, 14, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--base);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(90% 520px at 50% 300px, rgba(47, 143, 179, 0.2), transparent 70%),
    radial-gradient(70% 420px at 50% 100%, rgba(47, 143, 179, 0.1), transparent 70%),
    var(--base);
  background-repeat: no-repeat;
}

/* Film grain over everything, matching the photo. Decorative, ignores clicks. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.1 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

svg { display: block; }

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  height: clamp(110px, 30vw, 140px); /* thin strip */
  overflow: hidden;
  /* The curved bottom edge */
  border-radius: 0 0 50% 50% / 0 0 28px 28px;
  box-shadow: 0 18px 50px rgba(47, 143, 179, 0.28);
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%; /* shows the guitar neck beside the profile photo */
}

/* ---------- 2–5. Profile ---------- */
.content {
  padding: 0 16px calc(40px + env(safe-area-inset-bottom));
}

.profile {
  position: relative; /* sits above the hero's shadow */
  text-align: center;
}

.avatar {
  position: relative;
  width: 132px;
  height: 132px;
  margin: -70px auto 0;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid var(--base);
  box-shadow: 0 0 0 1px rgba(47, 143, 179, 0.55), 0 10px 30px rgba(47, 143, 179, 0.35);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

h1 {
  margin: 14px 0 6px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bio {
  max-width: 320px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--cream-soft);
  text-wrap: balance;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 26px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 232, 216, 0.07);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), color 0.2s, border-color 0.2s, background-color 0.2s;
}

.socials svg {
  width: 21px;
  height: 21px;
}

/* ---------- 6–7. Cover art cards ---------- */
/* A card shows its cover image. If the file is missing, the gradient behind it shows instead. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 14px;
  border-radius: var(--radius-card);
  background-color: var(--base-raised);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* The art lives on its own layer so it can zoom on hover without moving the text */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--art);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}

/* Dark fade so titles stay readable on any artwork */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 13, 20, 0.86), rgba(8, 13, 20, 0.2) 45%, transparent 70%);
}

.art-dltfo {
  --art: url("dont-let-them-find-out.jpg"),
         linear-gradient(160deg, #2BA3C9, #123148 80%);
}

.art-imaginary {
  --art: url("imaginary-friend.jpg"),
         radial-gradient(70% 70% at 72% 26%, rgba(108, 207, 232, 0.5), transparent 70%),
         linear-gradient(150deg, #2F8FB3, #123148 75%);
}

.art-cant-stop {
  --art: url("cant-stop.jpg"),
         radial-gradient(80% 80% at 25% 20%, rgba(108, 207, 232, 0.75), transparent 72%),
         linear-gradient(160deg, #6b3f22, #14202c);
}

.art-clouds {
  --art: url("clouds.jpg"),
         radial-gradient(70% 55% at 65% 25%, rgba(239, 232, 216, 0.75), transparent 72%),
         linear-gradient(170deg, #5aa8c6, #173a52);
}

.featured {
  height: clamp(150px, 38vw, 180px); /* half the original card height */
  padding: 14px 16px;
}

/* Shows the guitar and hands; keeps the cover's own text clear of the title */
.featured::before { background-position: 50% 100%; }

.eyebrow {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--base);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.featured .card-title {
  font-size: clamp(21px, 6vw, 25px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.card-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 232, 216, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s;
}

.card-arrow svg {
  width: 15px;
  height: 15px;
}

.featured .card-arrow {
  width: 38px;
  height: 38px;
  background: var(--cream);
  color: var(--base);
}

.featured .card-arrow svg {
  width: 19px;
  height: 19px;
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.bento .card { aspect-ratio: 1; }

/* Tall card spans both rows on the left */
.bento .card-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Frames the face; crops the cover's own title text off the right */
.card-tall::before { background-position: 18% 50%; }

.card-tall .card-title { font-size: 18px; }

/* Cover art shown in a song window until its Spotify player is added */
.player-art {
  object-fit: cover;
  object-position: 50% 50%;
}

/* ---------- 8. Pills ---------- */
.pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgba(239, 232, 216, 0.06);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.2s, background-color 0.2s;
}

.pill-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #BFE4F2;
  background: rgba(47, 143, 179, 0.24);
  transition: color 0.2s, background-color 0.2s;
}

.pill-icon svg {
  width: 20px;
  height: 20px;
}

.pill-label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.pill-arrow {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--cream-soft);
  transition: transform 0.3s var(--ease), color 0.2s;
}

/* ---------- Song player window ---------- */
html:has(dialog[open]) { overflow: hidden; }

.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  margin: auto auto 0;   /* bottom sheet on phones */
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #121C28;
  color: var(--cream);
  box-shadow: 0 -20px 60px rgba(3, 8, 14, 0.6);
}

.sheet[open] { animation: sheet-up 0.38s var(--ease); }

.sheet::backdrop {
  background: rgba(5, 9, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes sheet-up {
  from { transform: translateY(40px); opacity: 0; }
}

/* Stays visible while the window scrolls */
.sheet-close {
  position: sticky;
  top: 12px;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  height: 0;
  padding-right: 12px;
}

.sheet-close button {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #1D2937;
  color: var(--cream);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.sheet-close svg {
  width: 18px;
  height: 18px;
}

.sheet-close button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sheet-body {
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
}

.sheet-head {
  padding: 0 44px 16px;
  text-align: center;
}

.sheet-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.sheet-head p {
  margin: 0;
  font-size: 13px;
  color: var(--cream-soft);
}

.player {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 16px;
  background: var(--base-raised);
}

.sheet-body h3 {
  margin: 22px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-soft);
}

.services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(239, 232, 216, 0.04);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), border-color 0.2s, background-color 0.2s;
}

.services a:active { transform: scale(0.98); }

.svc {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.svc svg {
  width: 24px;
  height: 24px;
}

.svc-spotify { background: #1ED760; color: #0B0F0C; border-radius: 50%; }
.svc-apple   { background: linear-gradient(#FA6E82, #F0344B); color: #fff; }
.svc-youtube { background: #F0343F; color: #fff; }
.svc-tidal   { background: #000; color: #fff; }
.svc-amazon  { background: #0B3A52; color: #5BD6E6; }
.svc-pandora { background: #2F5BEA; color: #fff; }

.svc-out {
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--cream-soft);
  transition: color 0.2s;
}

/* Centered window once there's room for it */
@media (min-width: 560px) {
  .sheet {
    margin: auto;
    border-bottom: 1px solid var(--line);
    border-radius: 24px;
  }
}

/* ---------- Hover (mouse only, so it never sticks on phones) ---------- */
@media (hover: hover) {
  .socials a:hover {
    transform: translateY(-3px);
    color: var(--accent);
    border-color: rgba(108, 207, 232, 0.6);
    background-color: rgba(108, 207, 232, 0.1);
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(3, 8, 14, 0.6), 0 0 34px rgba(47, 143, 179, 0.28);
  }

  .card:hover::before { transform: scale(1.05); }

  .card:hover .card-arrow {
    transform: translate(2px, -2px);
    background: var(--accent);
    color: var(--base);
  }

  .pill:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 207, 232, 0.55);
    background-color: rgba(239, 232, 216, 0.09);
  }

  .pill:hover .pill-icon {
    color: var(--base);
    background: var(--accent);
  }

  .services a:hover {
    border-color: rgba(108, 207, 232, 0.55);
    background-color: rgba(239, 232, 216, 0.08);
  }

  .services a:hover .svc-out,
  .sheet-close button:hover { color: var(--accent); }

  .sheet-close button:hover { border-color: rgba(108, 207, 232, 0.55); }

  .pill:hover .pill-arrow {
    transform: translate(2px, -2px);
    color: var(--accent);
  }
}

/* ---------- Tap feedback ---------- */
.socials a:active,
.card:active,
.pill:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* ---------- Respect the "reduce motion" system setting ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
