/*
  page.css
  Simple reading pages: Music and Privacy.
  The footer styles come from home.css, which these pages also load.
*/

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 5%;
  background: rgba(10, 6, 8, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  font-weight: 500;
}

.page-nav a[aria-current="page"] {
  color: var(--red-light);
}

/* Photo banner at the top of each page */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(260px, 42vh, 420px);
  padding: 0 5% 36px;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 8, 0.2) 0%, var(--bg) 100%);
}

.page-hero__text {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 120px);
  line-height: 0.9;
}

.page-hero p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* Main text column */
.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 5% 72px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-body h2 {
  margin: 44px 0 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  color: var(--ink);
}

.page-body h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  color: var(--ink);
}

.page-body p,
.page-body ul {
  margin: 0 0 16px;
}

.page-body ul {
  padding-left: 20px;
}

.page-body li {
  margin-bottom: 6px;
}

.page-body a:not(.btn):not(.pill):not(.apps__link) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 59, 78, 0.6);
  text-underline-offset: 3px;
}

.page-body a:not(.btn):not(.pill):not(.apps__link):hover {
  color: var(--red-light);
}

.lead {
  font-size: 19px;
  color: var(--ink);
}

.quote {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 2px solid var(--red);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
}

.updated {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Music page ---------- */

.release {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 12px 0 8px;
}

.release__cover {
  flex: 0 0 240px;
  align-self: flex-start;
  width: 240px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.release__info {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.release__info h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
}

.release__info p {
  margin: 0;
}

.release__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.release__actions .btn {
  padding: 12px 20px;
  font-size: 14px;
}

.tracklist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tracklist li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tracklist__num {
  width: 28px;
  font-weight: 800;
  color: var(--muted);
}

.tracklist__title {
  flex: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}

.tracklist__status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tracklist__status--out {
  color: var(--red-text);
}

@media (max-width: 640px) {
  .page-header {
    flex-wrap: nowrap;
    padding: 12px 5%;
  }

  .release__cover {
    flex-basis: 100%;
    width: 100%;
    max-width: 320px;
  }

  .release__info h3 {
    font-size: 36px;
  }

  .quote {
    font-size: 22px;
  }
}

/* Pages without a photo banner (Privacy) */
.page-title {
  margin: 32px 0 18px;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.95;
  color: var(--ink);
}

/* ---------- 404 page ---------- */

.not-found {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  padding: 48px 6%;
  overflow: hidden;
  text-align: center;
}

.not-found img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.not-found__text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.not-found h1 {
  margin: 0 0 10px;
  font-size: clamp(54px, 11vw, 130px);
  line-height: 0.9;
}

.not-found p {
  margin: 0;
  color: var(--ink-soft);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
