/*
  DECISION POINTS
  - z-index: -1 on the background: it is a position:fixed layer, so a negative z-index paints it
    below all in-flow and positioned content in the root stacking context. The header (60) and
    content (20) need positive z-index values so they reliably paint above it, with the logo above
    the content.
  - Multiplier -0.12 (set in main.js): the background moves 12% of the scroll distance, so it reads
    as a distant layer. Larger magnitudes add depth; cost stays the same, one transform per frame.
  - Stacking-context gotcha: transform, filter, backdrop-filter, perspective, opacity < 1,
    will-change (transform/opacity/filter), mix-blend-mode, isolation:isolate, clip-path, mask,
    contain:paint, and positioned elements with a z-index all create stacking contexts. This layout
    avoids them on <body> and the content wrappers, and keeps .parallax as a direct child of <body>.
    The only will-change is on the image inside .parallax.
  - Breakpoints: >=720px is where the card reaches comfortable width (bigger logo, art and About
    photo, wider spacing); <=520px targets phones (smaller logo, tighter padding, stacked layout).
*/

:root {
  --card-bg: #14171c;
  --text: #e4e6ea;
  --muted: #a3a9b3;
  --accent: #D3B285;
  --line: rgba(211, 178, 133, 0.25);

  --logo-h: 48px;
  --art-size: 300px;
  --about-img: 160px;
  --card-pad: 28px;
  --page-pad: 16px;
}

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

/* Color on <html> only: a body background would paint above the z-index:-1 layer */
html { background: #0b0d10; }

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Required stacking block */
.parallax { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.top-logo { position: fixed; top: 18px; left: 0; right: 0; z-index: 60; display:flex; justify-content:center; }
.content { position: relative; z-index: 20; }

.parallax { overflow: hidden; }

.parallax-img {
  position: absolute;
  left: 0;
  top: -10%;        /* fallback; main.js sets exact top/height */
  width: 100%;
  height: 120%;     /* fallback */
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

.top-logo img { display: block; height: var(--logo-h); width: auto; }

.column {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--logo-h) + 42px) var(--page-pad) 40px;
}

.card {
  background: var(--card-bg);
  color: var(--text);
  border-radius: 16px;
  padding: var(--card-pad);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

/* Navigation */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* Typography */
.card h1 { margin: 0 0 0.6em; font-size: 2rem; line-height: 1.2; color: var(--accent); }
.card h1:focus { outline: none; }
.card h2 { margin: 1.6em 0 0.5em; font-size: 1.25rem; line-height: 1.25; color: var(--accent); }
.card p { margin: 0 0 1em; }
.card main a { color: var(--accent); }

/* Album art (square cover, never cropped) */
.art-figure { margin: 1.5rem 0; display: flex; justify-content: center; }
.album-art {
  display: block;
  width: 100%;
  max-width: var(--art-size);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* About: heading on the left, photo top-right on the same level, text beneath */
.about-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 1.25rem;
}
.about-head h1 { margin: 0; }
.about-photo {
  display: block;
  flex: none;
  width: var(--about-img);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

/* Footer and social icons */
.site-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.social {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 22px;
}
.social-link {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.social-link svg { display: block; width: 100%; height: 100%; }
.social-link:hover,
.social-link:focus-visible { color: var(--accent); }

.linktree { margin: 0 0 10px; font-size: 0.85rem; }
.linktree a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.linktree a:hover,
.linktree a:focus-visible { color: var(--accent); }

.copyright { margin: 0; color: var(--muted); font-size: 0.8rem; }

/* Desktop */
@media (min-width:720px) {
  :root {
    --logo-h: 72px;
    --art-size: 360px;
    --about-img: 200px;
    --card-pad: 40px;
    --page-pad: 24px;
  }
}

/* Mobile */
@media (max-width:520px) {
  :root {
    --logo-h: 36px;
    --art-size: 240px;
    --card-pad: 18px;
    --page-pad: 12px;
  }
  .site-nav { gap: 6px 16px; }
  .card h1 { font-size: 1.6rem; }
  .about-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .about-photo { width: 100%; aspect-ratio: 4 / 3; }
}