/* Wings of Honor — dark, vintage-aviation look: night sky, brass and old paper */
:root {
  --bg: #0f1216;
  --bg-2: #161b21;
  --card: #1b2128;
  --card-hover: #232a33;
  --ink: #efe6d4;
  --muted: #a49a88;
  --rule: rgba(239, 230, 212, .12);
  --brass: #d4a55a;
  --brass-2: #b9803a;
  --brass-soft: rgba(212, 165, 90, .14);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 16px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 165, 90, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(90, 120, 160, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 18px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main, header.site, footer.site { max-width: 46rem; margin: 0 auto; }
main { animation: rise .6s ease-out both; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: #f0c27b; }
::selection { background: var(--brass); color: var(--bg); }

/* ---------- Headings & text ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 2.25rem 0 .75rem; letter-spacing: -.01em; }
h2 {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em; color: var(--brass);
  margin: 3rem 0 1rem; display: flex; align-items: center; gap: .9rem;
}
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--rule), transparent); }
h3 { font-size: 1.2rem; font-weight: 500; font-style: italic; margin: 1.75rem 0 .6rem; }
p { margin: 0 0 1.1rem; }

.kicker {
  margin: 2.5rem 0 0; font: 500 .8rem/1.4 var(--font-ui);
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.kicker a { color: var(--muted); text-decoration: none; }
.kicker a:hover { color: var(--brass); }
.kicker + h1 { margin-top: .4rem; }
.versions { font-family: var(--font-ui); font-size: .9rem; color: var(--muted); }
.versions span { opacity: .8; }

/* ---------- Site header (inner pages) ---------- */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  max-width: none; margin: 0 -16px; padding: .75rem 16px;
  background: rgba(15, 18, 22, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
header.site a {
  max-width: 46rem; margin: 0 auto; display: flex; align-items: center; gap: .7rem;
  color: var(--ink); text-decoration: none;
  font: 700 1.15rem/1 var(--font-display); letter-spacing: .02em;
}
header.site .logo {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--rule); transition: transform .4s var(--ease-bounce);
}
header.site a:hover .logo { transform: rotate(-8deg) scale(1.08); }

/* ---------- Home: Spotify-style artist header ---------- */
.artist-hero {
  margin: 0 -16px;
  min-height: clamp(18rem, 44vw, 30rem);
  display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #3a2c1d, #0f1216) center / cover no-repeat;
  position: relative; overflow: hidden;
}
.artist-hero::before {  /* film grain */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.artist-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(15, 18, 22, 0) 25%, rgba(15, 18, 22, .55) 65%, var(--bg)),
    linear-gradient(to right, rgba(15, 18, 22, .45), transparent 60%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 46rem; margin: 0 auto;
  padding: 2rem 16px 1.75rem;
  display: flex; align-items: center; gap: clamp(.9rem, 3vw, 1.75rem);
  animation: rise .8s ease-out both;
}
.hero-logo {
  flex: none; width: clamp(5rem, 20vw, 10.5rem); aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  background: #000;
  box-shadow: 0 0 0 3px rgba(212, 165, 90, .55), 0 14px 40px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease-bounce);
}
.hero-logo:hover { transform: scale(1.05) rotate(-4deg); }
.artist-hero h1 {
  min-width: 0; margin: 0;
  font-size: clamp(1.6rem, 7vw, 4.2rem); line-height: 1.05; letter-spacing: -.015em;
  white-space: nowrap;
  padding: .05em 0 .18em; margin: 0 0 -.13em;  /* room for descenders (g) with background-clip: text */
  background: linear-gradient(180deg, #fff8ea 0%, #ead7b0 55%, #d4a55a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .55));
}
.intro { margin-top: 1.25rem; font-size: 1.08rem; }
.intro p:first-child { font-size: 1.2rem; color: #f6efe1; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font: 600 .95rem/1 var(--font-ui); letter-spacing: .02em;
  color: #1a1309; text-decoration: none;
  background: linear-gradient(135deg, #f0c27b, var(--brass) 45%, var(--brass-2));
  box-shadow: 0 6px 20px rgba(212, 165, 90, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .35s var(--ease-bounce), box-shadow .3s;
}
.button::before { content: "▶"; font-size: .7em; }
.button:hover { color: #1a1309; transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 28px rgba(212, 165, 90, .4), inset 0 1px 0 rgba(255, 255, 255, .35); }
.button:active { transform: translateY(0) scale(.97); transition-duration: .1s; }

/* ---------- Album grid ---------- */
.albums {
  list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1.5rem;
}
.albums a {
  display: block; padding: .9rem; border-radius: var(--radius);
  background: var(--card); color: var(--ink); text-decoration: none;
  transition: transform .4s var(--ease-bounce), background .25s, box-shadow .3s;
}
.albums a:hover { background: var(--card-hover); transform: translateY(-6px); box-shadow: var(--shadow); }
.albums img, .nocover {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 8px;
  background: var(--bg-2); box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}
.albums span { display: block; margin-top: .8rem; font: 700 1.1rem/1.3 var(--font-display); }

/* ---------- Album page ---------- */
.cover {
  width: 100%; max-width: 22rem; aspect-ratio: 1; object-fit: cover; display: block;
  margin-top: 2.5rem; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

.tracks { list-style: none; counter-reset: track; padding: 0; margin: 0; }
.tracks li {
  counter-increment: track; position: relative;
  border-radius: 10px; transition: background .2s;
}
.tracks li:hover { background: var(--card); }
.tracks li::before {
  content: counter(track); position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  width: 1.5rem; text-align: right; font: 500 .9rem var(--font-ui); color: var(--muted);
}
.tracks a {
  display: block; padding: .75rem 1rem .75rem 3.25rem;
  color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.1rem;
}
.tracks li:hover a { color: var(--brass); }
.langs {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none;
  font: 500 .72rem var(--font-ui); text-transform: uppercase; letter-spacing: .08em;
  color: var(--brass); background: var(--brass-soft); padding: .25rem .6rem; border-radius: 999px;
}

table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { border-bottom: 1px solid var(--rule); padding: .5rem; text-align: left; vertical-align: top; }
li { margin: .3rem 0; }

/* ---------- Song page ---------- */
.media { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin: 2rem 0; }
.media .cover { margin: 0; flex: 1 1 14rem; max-width: 24rem; }
.canvas {
  display: block; flex: 1 1 12rem; max-width: 13.5rem; aspect-ratio: 9 / 16;
  border-radius: 12px; background: #000; object-fit: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px var(--rule);
}
.history p:first-child::first-letter {
  float: left; font: 700 3.4em/.82 var(--font-display); color: var(--brass);
  margin: .08em .1em 0 0;
}
.lyrics {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .25rem clamp(1rem, 4vw, 2rem) 1rem; margin-top: 3rem;
}
.lyrics h2 { margin-top: 1.5rem; }
.lyric { font-size: 1.05rem; line-height: 1.75; }
.lyric p { margin: 0 0 1.4rem; }
.part {
  display: block; margin-bottom: .2rem;
  font: 600 .68rem/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .16em; color: var(--brass);
}

/* Platform links as pills */
.links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.links li { margin: 0; }
.links a {
  display: inline-block; padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--card);
  font: 500 .9rem var(--font-ui); color: var(--ink); text-decoration: none;
  transition: transform .35s var(--ease-bounce), border-color .2s, background .2s;
}
.links a:hover { transform: translateY(-3px); border-color: var(--brass); background: var(--card-hover); color: var(--ink); }

/* Previous / next */
.pager { display: flex; gap: 1rem; margin-top: 3.5rem; flex-wrap: wrap; }
.pager a {
  flex: 1 1 14rem; padding: 1rem 1.2rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--rule); color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-size: 1.05rem;
  transition: transform .4s var(--ease-bounce), border-color .2s;
}
.pager a:hover { transform: translateY(-4px); border-color: var(--brass); color: var(--ink); }
.pager .next { text-align: right; margin-left: auto; }

/* ---------- Footer ---------- */
footer.site {
  margin-top: 5rem; padding: 2rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule); color: var(--muted);
  font: .85rem/1.6 var(--font-ui);
}
footer.site p { margin: .25rem 0; }
.small { font-size: .78rem; opacity: .8; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 30rem) {
  body { font-size: 17px; }
  .langs { position: static; transform: none; display: inline-block; margin: 0 0 .7rem 3.25rem; }
  .tracks li::before { top: 1.45rem; }
}
.tracks li:has(.langs) a { padding-right: 10rem; }
@media (max-width: 30rem) { .tracks li:has(.langs) a { padding-right: 1rem; } }
.lyrics + .lyrics { margin-top: 1.5rem; }
.lyrics h3 { margin-top: -.25rem; font-size: 1.5rem; }
