/* =================================================
   KIUSIU — artist website
   "Sand & Evening City"
   Blurred twilight cityscape · cinematic desert palette
   ================================================= */

:root {
  /* palette */
  --twilight:      #1D2D50;
  --twilight-deep: #16213A;
  --sand:          #D4B28C;
  --dust:          #F3E8DC;
  --steel:         #5B7085;
  --gold:          #F4D160;

  /* film-grade overlays */
  --panel:      rgba(22, 33, 58, 0.55);
  --panel-soft: rgba(22, 33, 58, 0.38);
  --line:       rgba(91, 112, 133, 0.42);
  --line-soft:  rgba(91, 112, 133, 0.22);

  /* type */
  --font-sans:  "Helvetica Neue", system-ui, -apple-system, "Segoe UI",
                Arial, sans-serif;
}

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

html {
  scrollbar-color: var(--steel) var(--twilight-deep);
  scrollbar-width: thin;
  background: var(--twilight);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--dust);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* sharp city art, blurred at full screen resolution (no filter artifacts) */
body::before {
  content: "";
  position: fixed;
  inset: -6%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(11, 17, 33, 0) 55%, rgba(11, 17, 33, 0.55) 100%),
    url("/assets/city-bg.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.06);
  transform: scale(1.08);
  pointer-events: none;
}

/* depth veil over the blur (keeps text legible) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 27, 50, 0.5),
    rgba(18, 27, 50, 0.05) 30%,
    rgba(22, 33, 58, 0.4)
  );
  pointer-events: none;
}

::selection {
  background: var(--gold);
  color: var(--twilight-deep);
}

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

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

::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--twilight-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--steel);
  border: 2px solid var(--twilight-deep);
  border-radius: 8px;
}

/* ================================================
   Header / navigation — quiet, generous whitespace
   ================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding: 2.1rem clamp(1.5rem, 5vw, 4rem) 1.1rem;
  background: linear-gradient(
    to bottom,
    rgba(16, 25, 48, 0.6),
    rgba(16, 25, 48, 0)
  );
}

.site-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--dust);
  text-decoration: none;
  transition: color 0.2s;
}

.site-name:hover {
  color: var(--gold);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--dust);
  border-color: var(--line-soft);
  background: rgba(212, 178, 140, 0.06);
}

/* ================================================
   Layout shell — spacious
   ================================================ */

main,
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

main {
  padding-block: 4.5rem 6rem;
}

/* ================================================
   Footer
   ================================================ */

.site-footer {
  text-align: center;
  padding-block: 2rem 3.5rem;
  border-top: 1px solid var(--line-soft);
}

.site-footer p {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
}

.site-footer p::before,
.site-footer p::after {
  content: "·";
  margin: 0 0.9rem;
  color: var(--gold);
}

/* ================================================
   Home — cinematic landing
   ================================================ */

.hero {
  padding: clamp(3rem, 8vh, 6rem) 0 4rem;
  max-width: 46rem;
}

.kicker {
  margin: 0 0 1.4rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 2rem + 5vw, 5.6rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--dust);
  text-shadow: 0 1px 0 rgba(244, 209, 96, 0.25);
}

.hero-copy {
  margin-top: 2.4rem;
  max-width: 40rem;
  font-size: 1.08rem;
  color: rgba(243, 232, 220, 0.82);
}

.hero-copy p {
  margin: 0 0 0.9em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.8rem;
}

/* sharp, high-contrast call to action */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 2.1rem;
  background: var(--sand);
  color: var(--twilight-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--sand);
  border-radius: 2px;
  box-shadow: 0 14px 34px -16px rgba(244, 209, 96, 0.45);
  transition: background 0.2s, color 0.2s, border-color 0.2s,
              box-shadow 0.2s, transform 0.2s;
}

.cta-arrow {
  font-size: 0.9em;
  transition: transform 0.2s;
}

.cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--twilight-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -14px rgba(244, 209, 96, 0.6);
}

.cta:hover .cta-arrow {
  transform: translate(3px, -3px);
}

.cta-ghost {
  padding: 0.95rem 1.6rem;
  font-size: 0.74rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dust);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.cta-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* section index — clean catalog rows */
.sections {
  margin-top: clamp(4rem, 9vh, 7rem);
}

.sections ul {
  counter-reset: section;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sections li {
  counter-increment: section;
}

.sections a {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 300;
  color: var(--dust);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.sections a::before {
  content: "0" counter(section) " —";
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--gold);
}

.sections a::after {
  content: "↗";
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--steel);
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}

.sections a:hover {
  color: var(--gold);
  padding-left: 0.6rem;
}

.sections a:hover::after {
  opacity: 1;
  color: var(--gold);
}

/* ================================================
   Page headers — cinema credits
   ================================================ */

.listing header,
.poem header,
.song header,
.album header,
.text header,
.image-page header {
  margin-bottom: 2.4rem;
}

.kicker-label,
.listing h1,
.poem h1,
.song h1,
.album h1,
.text h1,
.image-page h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--dust);
}

.listing h1::before,
.poem h1::before,
.song h1::before,
.album h1::before,
.text h1::before,
.image-page h1::before {
  content: "// ";
  font-weight: 200;
  color: var(--gold);
}

.listing h1::after,
.poem h1::after,
.song h1::after,
.album h1::after,
.text h1::after,
.image-page h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.9rem;
  background: var(--sand);
}

.meta {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

.meta a {
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.meta a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.intro,
.summary {
  color: rgba(91, 112, 133, 0.95);
  font-size: 0.98rem;
  font-weight: 300;
}

/* ================================================
   Listing pages — translucent glass cards
   ================================================ */

.listing-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1rem;
}

.listing-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.25rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.listing-list li:hover {
  border-color: rgba(212, 178, 140, 0.75);
  background: rgba(212, 178, 140, 0.07);
  transform: translateY(-2px);
}

.cover-thumb {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -12px rgba(11, 17, 33, 0.6);
}

.listing-item {
  min-width: 0;
  flex: 1;
}

.listing-item > a {
  font-size: 1.24rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--dust);
  text-decoration: none;
  transition: color 0.2s;
}

.listing-item > a:hover {
  color: var(--gold);
}

.listing-item .summary {
  margin: 0.3rem 0 0;
  line-height: 1.6;
}

.listing-list .meta {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
  padding-top: 0.4rem;
}

.duration::after {
  content: " · ";
}

/* ================================================
   Poem
   ================================================ */

.poem {
  max-width: 46rem;
  margin-inline: auto;
  padding: 2.6rem clamp(1.4rem, 5vw, 3.5rem) 3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 30px 70px -30px rgba(11, 17, 33, 0.75);
}

.poem header {
  text-align: center;
}

.poem h1::after {
  margin-inline: auto;
}

.poem-body {
  max-width: 34rem;
  margin: 2.6rem auto 0;
  text-align: center;
  font-size: 1.16rem;
  font-weight: 300;
  line-height: 2.05;
  color: var(--dust);
}

.poem-body p {
  margin: 0 0 0.8em;
}

/* ================================================
   Song
   ================================================ */

.song {
  max-width: 48rem;
  margin-inline: auto;
  padding: 2.6rem clamp(1.4rem, 5vw, 3.5rem) 3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 30px 70px -30px rgba(11, 17, 33, 0.75);
}

.song header {
  text-align: center;
}

.song h1::after {
  margin-inline: auto;
}

.song .meta .artist {
  color: var(--sand);
}

.song .summary {
  max-width: 36rem;
  margin: 1.1rem auto 0;
  text-align: center;
}

.song-cover {
  margin: 2.2rem auto 0;
  text-align: center;
}

.song-cover img {
  display: inline-block;
  max-width: 17rem;
  width: 100%;
  border: 1px solid rgba(244, 209, 96, 0.4);
  border-radius: 8px;
  box-shadow: 0 24px 60px -20px rgba(244, 209, 96, 0.35);
}

/* refined player rack */
.audio-player {
  margin: 2.2rem auto 0;
  max-width: 32rem;
  padding: 1.1rem 1.3rem 1.25rem;
  background: rgba(16, 25, 48, 0.78);
  border: 1px solid rgba(244, 209, 96, 0.4);
  border-radius: 8px;
}

.audio-player::before {
  content: "Now playing — " attr(data-track);
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.audio-player audio {
  width: 100%;
  accent-color: var(--gold);
}

.lyrics {
  max-width: 34rem;
  margin: 2.8rem auto 0;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--dust);
}

.lyrics p {
  margin: 0 0 0.3em;
}

.lyrics h1,
.lyrics h2,
.lyrics h3 {
  margin: 2.6em 0 0.5em;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}

.lyrics h1::before,
.lyrics h2::before,
.lyrics h3::before {
  content: "· ";
}

/* ================================================
   Album
   ================================================ */

.album {
  max-width: 50rem;
  margin-inline: auto;
  padding: 2.6rem clamp(1.4rem, 5vw, 3.5rem) 3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 30px 70px -30px rgba(11, 17, 33, 0.75);
}

.album header {
  text-align: center;
}

.album h1::after {
  margin-inline: auto;
}

.album .summary {
  max-width: 36rem;
  margin: 0.9rem auto 0;
  text-align: center;
}

.album-cover {
  margin: 2.2rem auto 0;
  text-align: center;
}

.album-cover img {
  display: inline-block;
  max-width: 21rem;
  width: 100%;
  border: 1px solid rgba(244, 209, 96, 0.4);
  border-radius: 8px;
  box-shadow: 0 26px 64px -22px rgba(244, 209, 96, 0.35);
}

.album-notes {
  max-width: 40rem;
  margin: 2.6rem auto 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(243, 232, 220, 0.85);
}

.album-notes p {
  margin: 0 0 0.8em;
}

.tracklist {
  max-width: 38rem;
  margin: 3rem auto 0;
}

.tracklist h2 {
  margin: 0 0 1.2rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.tracklist ul {
  counter-reset: track;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tracklist li {
  counter-increment: track;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.2s, background 0.2s;
}

.tracklist li:hover {
  padding-left: 0.5rem;
  background: rgba(212, 178, 140, 0.05);
}

.tracklist li::before {
  content: "0" counter(track) ".";
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.tracklist a {
  flex: 1;
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--dust);
  text-decoration: none;
  transition: color 0.2s;
}

.tracklist a:hover {
  color: var(--gold);
}

.tracklist .duration {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

/* ================================================
   Text (long-form)
   ================================================ */

.text {
  max-width: 52rem;
  margin-inline: auto;
  padding: 2.8rem clamp(1.5rem, 6vw, 4rem) 3.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 30px 70px -30px rgba(11, 17, 33, 0.75);
}

.text-body {
  max-width: 44rem;
}

.text-body p {
  margin: 0 0 1.3em;
}

.text-body h1,
.text-body h2,
.text-body h3 {
  margin: 2.4em 0 0.9em;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}

.text-body h1::before,
.text-body h2::before,
.text-body h3::before {
  content: "// ";
  color: var(--gold);
}

.text-body blockquote {
  margin: 2.2em 0;
  padding: 0.2em 0 0.2em 1.4rem;
  border-left: 2px solid var(--gold);
  color: rgba(243, 232, 220, 0.85);
  font-style: italic;
}

/* gold drop cap (progressive enhancement) */
.text-body > p:first-of-type::first-letter {
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(244, 209, 96, 0.45);
}

/* ================================================
   Image page
   ================================================ */

.image-page {
  max-width: 54rem;
  margin-inline: auto;
  padding: 2.6rem clamp(1.4rem, 5vw, 3.5rem) 3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 30px 70px -30px rgba(11, 17, 33, 0.75);
}

.image-page header {
  text-align: center;
}

.image-page h1::after {
  margin-inline: auto;
}

.photo {
  margin: 0 auto 2.2rem;
  max-width: 48rem;
  text-align: center;
}

.photo img {
  display: inline-block;
  max-height: 74vh;
  object-fit: contain;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.4rem;
  background: rgba(16, 25, 48, 0.5);
}

.photo figcaption {
  margin-top: 1rem;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--steel);
}

.image-body {
  max-width: 40rem;
  margin: 0 auto;
}

.image-body p {
  margin: 0 0 0.8em;
}

/* ================================================
   Motion
   ================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ================================================
   Mobile
   ================================================ */

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding-top: 1.4rem;
  }

  main {
    padding-block: 3rem 4.5rem;
  }

  .listing-list li {
    flex-wrap: wrap;
  }

  .listing-list .meta {
    width: 100%;
    text-align: left;
    padding-left: calc(4.2rem + 1.4rem);
    white-space: normal;
  }

  .song-cover img,
  .album-cover img {
    max-width: 13rem;
  }

  .cover-thumb {
    width: 3.2rem;
    height: 3.2rem;
  }

  .poem,
  .song,
  .album,
  .image-page {
    padding: 1.6rem 1.1rem;
  }

  .audio-player audio {
    max-width: 100%;
  }
}