@import url("fonts.css");

:root {
  --bg: #f9fafd;
  --surface: #ffffff;
  --ink: #1c244b;
  --text: #324a6d;
  --muted: #6f7f99;
  --accent: #467ff7;
  --accent-dark: #2f63d6;
  --spotify: #12813f;
  --line: #e4e9f2;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 45px rgba(28, 36, 75, 0.08);
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 250, 253, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  min-height: 78px;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.logo {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
}

.logo:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.15rem;
  margin-inline: auto;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.socials {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.socials a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}

.socials a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  color: #fff;
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(70, 127, 247, 0.25);
}

.btn-spotify {
  background: var(--spotify);
}

.btn-spotify:hover {
  background: #0c6a32;
  box-shadow: 0 10px 24px rgba(18, 129, 63, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Page intro ---------- */

.page-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  max-width: 760px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.page-head .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  margin-top: 1.2rem;
  max-width: 62ch;
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-copy .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-top: 1rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
}

.about-copy p:last-of-type {
  margin-bottom: 0;
}

.about-figure {
  margin: 0;
  position: sticky;
  top: 110px;
}

.about-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 46ch;
}

/* ---------- Photo gallery ---------- */

.gallery {
  columns: 3 250px;
  column-gap: 1.1rem;
}

.gallery figure {
  margin: 0 0 1.1rem;
  break-inside: avoid;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(28, 36, 75, 0.05);
}

.gallery img {
  width: 100%;
  transition: transform 0.45s ease;
}

.gallery figure:hover img {
  transform: scale(1.025);
}

.gallery figcaption {
  padding: 0.7rem 0.95rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Texts ---------- */

.text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.text-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

a.text-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
  color: var(--text);
}

.text-card .year {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.text-card strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
}

.text-card .meta {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.text-card.is-unavailable {
  background: transparent;
  border-style: dashed;
}

.text-card.is-unavailable strong {
  color: var(--muted);
}

.text-card.is-unavailable .meta {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Audio ---------- */

.audio-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.audio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.audio-card h3 {
  margin: 0;
}

.audio-card audio {
  width: 100%;
  height: 40px;
}

/* ---------- Discography ---------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}

.album {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
}

.album figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(28, 36, 75, 0.07);
}

.album img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.album:hover img {
  transform: scale(1.03);
}

.album .year {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.album strong {
  color: var(--ink);
  display: block;
  line-height: 1.3;
}

.album .type {
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- Shop ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-body h2 {
  font-size: 1.25rem;
}

.product-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.price {
  display: inline-block;
  align-self: flex-start;
  margin: 0.4rem 0 0.7rem;
  background: #eef4ff;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.product-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Contact ---------- */

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
  box-shadow: var(--shadow);
}

.contact-card img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contact-card h2 {
  margin-bottom: 0.6rem;
}

.contact-card .email {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 600;
  word-break: break-word;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner .logo {
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-note {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .header-inner {
    gap: 0.5rem 1rem;
  }

  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 0.2rem 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    padding-bottom: 0.2rem;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .socials {
    margin-left: auto;
  }

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

  .about-figure {
    position: static;
    order: -1;
  }

  .about-figure img {
    aspect-ratio: 4 / 5;
    max-width: 420px;
  }

  .contact-card img {
    max-width: 440px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .socials a {
    padding: 0.3rem 0.65rem;
  }

  .gallery {
    columns: 2 150px;
    column-gap: 0.75rem;
  }

  .gallery figure {
    margin-bottom: 0.75rem;
  }

  .gallery figcaption {
    display: none;
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-head {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Header tools / design switcher ---------- */

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.select-wrap {
  position: relative;
  display: inline-flex;
}

.select-wrap::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  position: absolute;
  right: 0.8rem;
  top: calc(50% - 3px);
  pointer-events: none;
  color: var(--ink);
}

.theme-picker select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 1.8rem 0.38rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  max-width: 9.5rem;
}

.theme-picker select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .theme-picker > span:first-child {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-tools {
    margin-left: auto;
  }

  .socials {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .theme-picker select {
    max-width: 7.5rem;
    padding-left: 0.6rem;
  }
}

.theme-picker select option,
.theme-picker select optgroup {
  background: var(--surface);
  color: var(--ink);
}

/* Prevent decorative offsets from creating horizontal scroll */
body {
  overflow-x: hidden;
}
