/* ==========================================================================
   Mixtape Cat — shared stylesheet
   80s synthwave palette: deep purple night, hot pink, electric cyan,
   sunset orange, cassette yellow. Accessibility first: WCAG AA contrast,
   visible focus rings, reduced-motion support, semantic-friendly hooks.
   ========================================================================== */

:root {
  --night: #170f2e;        /* page background */
  --night-2: #221646;      /* raised panels */
  --night-3: #2d1d5c;      /* cards */
  --grid-line: #3c2a73;
  --pink: #ff3e9d;
  --pink-deep: #d61f7c;
  --cyan: #2ee6e6;
  --yellow: #ffd23f;
  --orange: #ff7a3d;
  --text: #efeaff;         /* body text — AA on --night */
  --text-dim: #c0b4e8;     /* secondary text — AA on --night */
  --focus: #ffd23f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  font-size: 1.05rem;
}

/* ---- Skip link (keyboard users) ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: #170f2e;
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 0.5rem 0.5rem;
}
.skip-link:focus {
  left: 1rem;
}

/* ---- Focus visibility everywhere ---- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Header / nav ---- */
.site-header {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background:
    linear-gradient(180deg, rgba(255, 62, 157, 0.16) 0%, rgba(23, 15, 46, 0) 60%),
    var(--night);
  border-bottom: 4px solid var(--pink);
  position: relative;
  overflow: hidden;
}

/* Retro horizon grid behind the header */
.site-header::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 44px);
  transform: perspective(280px) rotateX(48deg);
  transform-origin: bottom;
  opacity: 0.5;
  pointer-events: none;
}

.site-header > * { position: relative; }

/* ---- Logo + wordmark bar (logo aligned left) ---- */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  text-align: left;
  max-width: 60rem;
  margin: 0 auto 0.25rem;
}

.header-logo {
  flex: none;
  height: clamp(104px, 17vw, 184px);
  width: auto;
  filter:
    drop-shadow(0 0 18px rgba(46, 230, 230, 0.55))
    drop-shadow(3px 3px 0 rgba(214, 31, 124, 0.5));
}

.header-text { min-width: 0; }
.header-text .tagline { margin: 0.35rem 0 0; }

@media (max-width: 30rem) {
  .header-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }
  .header-text .tagline { margin-top: 0.4rem; }
}

.wordmark {
  font-family: "Monoton", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: var(--cyan);
  text-shadow:
    0 0 6px rgba(46, 230, 230, 0.95),
    0 0 14px rgba(46, 230, 230, 0.85),
    0 0 28px rgba(46, 230, 230, 0.65),
    0 0 48px rgba(46, 230, 230, 0.45),
    3px 3px 0 var(--pink-deep);
  text-transform: uppercase;
}

.tagline {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  background: rgba(46, 230, 230, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: var(--cyan);
  color: var(--night);
}

.site-nav a[aria-current="page"] {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--night);
}

/* ---- Main layout ---- */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-left: 6px solid var(--pink);
  padding-left: 0.75rem;
  margin: 2.5rem 0 1rem;
}

h3 {
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin: 1.5rem 0 0.5rem;
}

p { max-width: 65ch; }

a { color: var(--cyan); }
a:hover { color: var(--yellow); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 3px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--pink);
  color: var(--night);
  box-shadow: 4px 4px 0 var(--cyan);
}
.btn-primary:hover {
  background: var(--yellow);
  color: var(--night);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn-secondary:hover {
  background: var(--cyan);
  color: var(--night);
}

/* ---- Cards ---- */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--night-3);
  border: 2px solid var(--grid-line);
  border-top: 6px solid var(--orange);
  border-radius: 0.9rem;
  padding: 1.4rem;
}

.card:nth-child(2n) { border-top-color: var(--cyan); }
.card:nth-child(3n) { border-top-color: var(--pink); }
.card:nth-child(4n) { border-top-color: var(--yellow); }

.card h3 { margin-top: 0; }
.card p { color: var(--text-dim); margin-bottom: 0; }

/* ---- Cassette hero (decorative SVG sits inside) ---- */
.hero-cassette {
  margin: 2rem auto 0;
  max-width: 420px;
}
.hero-cassette svg { width: 100%; height: auto; display: block; }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---- App screenshot placeholders ----
   Swap each .screen-placeholder <div> for:
   <img src="/img/screen-NAME.png" alt="DESCRIPTION" width="280" height="572">
   keeping the surrounding <figure> and <figcaption>. */
.screens {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
}

.screens figure {
  margin: 0;
  text-align: center;
}

.screen-placeholder {
  aspect-ratio: 9 / 19;
  max-width: 280px;
  margin: 0 auto;
  border: 3px dashed var(--cyan);
  border-radius: 2rem;
  background:
    linear-gradient(160deg, rgba(255, 62, 157, 0.12), rgba(46, 230, 230, 0.08)),
    var(--night-2);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 1rem;
}

.screens figcaption {
  margin-top: 0.75rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---- Callout / notice ---- */
.notice {
  background: var(--night-2);
  border: 2px solid var(--yellow);
  border-radius: 0.9rem;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}
.notice strong { color: var(--yellow); }

/* ---- Share page ---- */
.share-card {
  max-width: 540px;
  margin: 1rem auto;
  text-align: center;
  background: var(--night-3);
  border: 3px solid var(--pink);
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  box-shadow: 8px 8px 0 rgba(46, 230, 230, 0.35);
}

.share-card .mixtape-id {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text-dim);
  font-size: 0.85rem;
  word-break: break-all;
  margin-top: 2rem;
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  border-top: 2px solid var(--grid-line);
  font-size: 0.95rem;
}

.site-footer .regions {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
