:root {
  --bg: #17141a;
  --panel: #221d27;
  --ink: #f1ebf5;
  --muted: #b8aec2;
  --accent: #9b6cff;
  --accent-2: #5fd3a4;
  --line: #352d3d;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-2); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
header.site a.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 18px; }
header.site nav a:hover { color: var(--ink); }

/* Full-bleed art card, like a chapter intro: art behind, dark fade, big title on top */
.card-hero {
  position: relative; overflow: hidden;
  min-height: min(100vh, 860px);
  display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.card-hero .art {
  position: absolute; inset: 0;
  background: url("/hero.jpg") 30% 0% / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
}
.card-hero::before { /* vignette + fade into the page */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 35% 35%, transparent 35%, rgba(10,8,14,.55) 100%),
    linear-gradient(to bottom, rgba(23,20,26,0) 40%, rgba(23,20,26,.82) 68%, var(--bg) 92%);
}
.card-hero .hero { position: relative; z-index: 2; width: 100%; padding-top: 0; }
@keyframes drift { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.12) translate(-2%, -1%); } }
@media (prefers-reduced-motion: reduce) { .card-hero .art { animation: none; } }

.hero { text-align: center; padding: 72px 0 48px; }
.hero h1 {
  font-size: clamp(2.8rem, 10vw, 5.2rem); line-height: 1; margin: 0 0 14px;
  letter-spacing: .02em; text-transform: uppercase; font-weight: 900;
  text-shadow: 0 4px 0 rgba(0,0,0,.55), 0 0 30px rgba(155,108,255,.45);
}
.hero h1 span { color: #c9a8ff; }
.hero p.lead { color: #e2d9ea; font-size: 1.2rem; max-width: 600px; margin: 0 auto 28px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.card-hero .store { background: rgba(23,20,26,.7); backdrop-filter: blur(4px); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.store {
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 10px; padding: 10px 16px; color: var(--ink); text-decoration: none;
}
.store small { display: block; color: var(--muted); font-size: .75rem; }

.shot {
  display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line);
  margin: 8px 0 40px;
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 56px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.doc { padding: 40px 0 64px; }
.doc h1 { font-size: 2rem; margin-bottom: 4px; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc h2 { font-size: 1.25rem; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 24px 0 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 520px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td:first-child { font-weight: 700; padding-bottom: 0; border-bottom: none; }
}
header.site.over { position: absolute; top: 0; left: 0; right: 0; z-index: 2; border-bottom: none; background: linear-gradient(to bottom, rgba(10,8,14,.6), transparent); }
header.site.over a.brand, header.site.over nav a { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
@media (max-width: 600px) {
  .card-hero { min-height: 100vh; }
  .card-hero .art { background-size: auto 72%; background-position: 28% 0%; }
  .card-hero::before { background: linear-gradient(to bottom, rgba(23,20,26,0) 30%, rgba(23,20,26,.8) 52%, var(--bg) 70%); }
}
/* Wide screens: show the whole art at full height, fill the sides with a blurred copy */
.card-hero .art-blur { position: absolute; inset: -40px; background: url("/hero.jpg") center / cover no-repeat; filter: blur(28px) brightness(.5) saturate(1.2); }
@media (min-aspect-ratio: 3/2) and (min-width: 601px) {
  .card-hero .art {
    inset: 0 auto 0 50%; height: 100%; width: auto; aspect-ratio: 1800 / 1343; translate: -50% 0;
    background-size: cover; background-position: center top;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
    animation-name: drift-wide;
  }
}
@keyframes drift-wide { from { transform: scale(1); } to { transform: scale(1.05); } }
