/* The site's shared look: palette, type, top and bottom bars, buttons, glass
 * cards and form fields. The homepage and catalogue carry their own copies of
 * these rules inline; the contact, feedback and About pages link this file.
 *
 * Fonts it expects (one Google Fonts link):
 *   Cinzel 600/700 (the wordmark only), Inter 400-600, Space Grotesk 500-700
 *
 * The feedback page also links css/themes.css, whose variable names overlap
 * these. A creator's theme on <body data-theme="…"> wins there on purpose, so
 * their form keeps their colours; their accent drives --volt (see feedback.html).
 */

:root {
  --bg: #0a0c18;
  --bg-2: #11142a;
  --glass: rgba(255,255,255,0.055);
  --glass-hi: rgba(255,255,255,0.09);
  --line: rgba(255,255,255,0.10);
  --line-hi: rgba(255,255,255,0.18);
  --text: #f6f7ff;
  --text-mid: #c8cee6;
  --text-dim: #8e97b8;
  --cyan: #39d5ff;
  --violet: #8b5cff;
  --pink: #ff4fd8;
  --ok: #4fe0a5;
  --err: #ff7a90;
  --volt: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 55%, var(--pink) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  color-scheme: dark;   /* native checkboxes, pickers and scrollbars match */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  min-height: 100vh; min-height: 100dvh; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 12% 0%, rgba(57,213,255,0.13) 0%, transparent 70%),
    radial-gradient(55% 45% at 92% 8%, rgba(139,92,255,0.2) 0%, transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(255,79,216,0.08) 0%, transparent 70%);
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 1.2rem 5rem; }
.wrap.narrow { max-width: 760px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1040px; margin: 0 auto; padding: 0.8rem 1.2rem;
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10,12,24,0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 0.3s;
}
.topbar.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand span { font-family: "Cinzel", serif; font-weight: 700; letter-spacing: 0.08em; font-size: 0.95rem; }
.brand.ca span { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; font-size: 1rem; }
.topnav { display: flex; gap: 0.3rem; }
.topnav a {
  text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 0.92rem;
  color: var(--text-mid); padding: 0.45rem 0.85rem; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.topnav a:hover, .topnav a[aria-current] { color: var(--text); background: var(--glass-hi); }
@media (max-width: 720px) { .topnav { display: none; } }
/* The sister collective's link: its own dusty rose, so it reads as somewhere else */
.topnav a.vk-link { display: inline-flex; align-items: center; gap: 0.35rem; color: #e8a0b0; }
.topnav a.vk-link svg { width: 15px; height: 15px; }
.topnav a.vk-link:hover { color: #fff; background: rgba(176,40,74,0.2); }

/* Mobile bottom bar */
.bottombar {
  position: fixed; z-index: 45; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%); display: none; gap: 0.2rem; padding: 0.35rem;
  background: rgba(17,20,42,0.82); border: 1px solid var(--line-hi); border-radius: 999px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.bottombar a {
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem; min-width: 64px;
  text-decoration: none; color: var(--text-mid); font-family: var(--display); font-size: 0.68rem; font-weight: 500;
  padding: 0.4rem 0.6rem; border-radius: 999px;
}
.bottombar a[aria-current] { color: var(--text); background: var(--glass-hi); }
.bottombar a svg { width: 20px; height: 20px; }
.bottombar a.vk-link { color: #e8a0b0; }
.bottombar a { white-space: nowrap; }
@media (max-width: 400px) { .bottombar a { min-width: 0; padding: 0.4rem 0.5rem; } }
@media (max-width: 720px) { .bottombar { display: flex; } }

/* Page header */
.page-head { padding: 2rem 0 2rem; }
.page-head.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 0.82rem; color: var(--cyan);
  background: rgba(57,213,255,0.1); border: 1px solid rgba(57,213,255,0.25); border-radius: 999px;
  padding: 0.25rem 0.75rem; margin-bottom: 0.9rem;
}
.page-head h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.05; margin-bottom: 0.7rem;
}
.spark, .page-head h1 em {
  font-style: normal; background: var(--volt);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-head .sub { color: var(--text-mid); font-size: 1.05rem; max-width: 600px; }
.page-head.center .sub { margin: 0 auto; }

/* Sections */
section, .section { margin-bottom: 3rem; scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sec-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 3.4vw, 1.7rem); letter-spacing: -0.01em; }
.sec-link { font-family: var(--display); font-weight: 500; font-size: 0.92rem; color: var(--cyan); text-decoration: none; white-space: nowrap; }
.sec-link:hover { color: var(--text); }

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.panel { padding: 1.5rem 1.6rem; }
@media (max-width: 520px) { .panel { padding: 1.2rem 1.1rem; } }
.lead { color: var(--text-mid); font-size: 0.98rem; margin-bottom: 1.2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 1rem; border: 0;
  padding: 0.85rem 1.5rem; border-radius: 999px; color: var(--text); min-height: 50px;
  transition: transform 0.15s ease, box-shadow 0.25s, background 0.25s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--volt); color: #0a0c18; box-shadow: 0 8px 30px rgba(139,92,255,0.4); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 40px rgba(57,213,255,0.45); transform: translateY(-2px); }
.btn-glass { background: var(--glass-hi); border: 1px solid var(--line-hi); }
.btn-glass:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Form fields */
.field { margin-bottom: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; gap: 0; } }
.field > label, label.field-label {
  display: block; font-family: var(--display); font-size: 0.95rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.45rem; line-height: 1.35;
}
.opt { font-family: var(--body); font-weight: 400; color: var(--text-dim); font-size: 0.85rem; }
input[type="text"], input[type="email"], textarea, select.input {
  width: 100%; background: var(--glass); border: 1px solid var(--line-hi); color: var(--text);
  font-family: var(--body); font-size: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; -webkit-appearance: none; appearance: none;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select.input:focus {
  border-color: rgba(57,213,255,0.6); box-shadow: 0 0 0 4px rgba(57,213,255,0.12); background: var(--glass-hi);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.check { display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer; font-size: 0.95rem; color: var(--text-mid); }
.field > label.check { display: flex; font-family: var(--body); font-weight: 400; font-size: 0.95rem; color: var(--text-mid); margin: 0; }
.check input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--violet); cursor: pointer; }
.msg { margin-top: 0.9rem; font-size: 0.92rem; min-height: 1.2em; }
.msg.ok  { color: var(--ok); }
.msg.err { color: var(--err); }

/* Footer */
footer { position: relative; z-index: 1; text-align: center; padding: 2rem 1rem 6rem; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 0.82rem; }
footer p { font-size: inherit; }
footer a { color: var(--text-dim); }
@media (min-width: 721px) { footer { padding-bottom: 2rem; } }

/* Scroll reveal — content is only hidden once a script has said it will show it */
html.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
}

/* Release cards: a small square thumbnail on the left, words and tags on the
 * right. Cover art is mostly wide banners, so the thumbnail shows the whole
 * image, uncropped, over a blurred copy of itself that fills the square.
 *
 *   <a class="rel">                    (or <div> on the catalogue)
 *     <div class="thumb t-audio">
 *       <img class="thumb-bg" …> <img class="thumb-img" …>   or  <span class="gen">M</span>
 *       <button class="play">…</button>                        when there is a track
 *     </div>
 *     <div class="rel-body"> .rel-title  .rel-meta  .chips </div>
 *   </a>
 */
.rel {
  position: relative; display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.75rem; color: var(--text); text-decoration: none;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.25s, box-shadow 0.25s;
}
.rel:hover { transform: translateY(-3px); border-color: rgba(139,92,255,0.55); box-shadow: 0 12px 34px rgba(139,92,255,0.2); }
.rel:active { transform: scale(0.99); }
.rel-body { flex: 1; min-width: 0; }
.rel-title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-meta { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }

.thumb {
  position: relative; flex-shrink: 0; width: var(--thumb, 104px); aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #1b2350, #3a1f6e 60%, #6b1f63);
  display: flex; align-items: center; justify-content: center; isolation: isolate;
}
.thumb.t-script { background: linear-gradient(135deg, #3b2a0b, #6e4d12 60%, #8a3a1f); }
.thumb.t-story  { background: linear-gradient(135deg, #0b3b33, #12655a 60%, #1f4f8a); }
.thumb.t-poem   { background: linear-gradient(135deg, #2a0b3b, #5a1f8a 60%, #8a1f6b); }
.thumb.t-music  { background: linear-gradient(135deg, #0b3b2f, #128a6e 60%, #1f6b8a); }
.thumb-bg {
  position: absolute; inset: -15%; width: 130%; height: 130%; object-fit: cover; z-index: -1;
  filter: blur(14px) saturate(1.35) brightness(0.72);
}
.thumb-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb .gen { font-family: "Cinzel", serif; font-weight: 700; font-size: 2.3rem; color: rgba(255,255,255,0.85); text-shadow: 0 0 24px rgba(57,213,255,0.55); }
@media (max-width: 520px) { .thumb { --thumb: 88px; } .thumb .gen { font-size: 2rem; } }

.badge-new {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; line-height: 1.5;
  color: #0a0c18; background: var(--volt); padding: 0.05rem 0.5rem; border-radius: 999px;
}
.play {
  position: absolute; right: 5px; bottom: 5px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--volt); color: #0a0c18; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5); transition: transform 0.15s;
}
.play:hover { transform: scale(1.08); }
.play:active { transform: scale(0.94); }
.play svg { width: 14px; height: 14px; }
.rel.playing .thumb { box-shadow: 0 0 0 2px var(--cyan), 0 0 24px rgba(57,213,255,0.45); }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.chip { font-size: 0.78rem; font-weight: 600; color: var(--text); border-radius: 999px; padding: 0.2rem 0.62rem; line-height: 1.35; background: rgba(57,213,255,0.12); border: 1px solid rgba(57,213,255,0.38); }
/* Audience tags (F4M and the like) are what most people filter on first */
.chip.gender { color: #ffc56b; background: rgba(255,180,84,0.16); border-color: rgba(255,180,84,0.55); }

/* The homepage's and About's row of the newest few, scrolling sideways */
.drops {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 86vw); gap: 0.9rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.3rem 1.2rem 1rem; margin: 0 -1.2rem;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.drops::-webkit-scrollbar { display: none; }
.drops > .rel { scroll-snap-align: start; }
.drops-empty { color: var(--text-dim); padding: 1.2rem 1.4rem; }

.skeleton { pointer-events: none; }
.skeleton .thumb, .skeleton .sk-line { background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.10), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line { height: 0.8rem; border-radius: 6px; margin-top: 0.5rem; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton .thumb, .skeleton .sk-line { animation: none; } }
