/* ==========================================================================
   chelli — Design System
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

/* Gloock — self-hosted (SIL OFL 1.1, see assets/fonts/OFL.txt), latin subset
   only since all site copy is German/English. No external request. */
@font-face {
  font-family: 'Gloock';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/gloock-v8-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors */
  --bg-void: #0a0710;
  --bg-elevated: #14101f;
  --bg-elevated-2: #1b1530;
  --fg: #f5f2fa;
  --fg-muted: #cac3da;
  --fg-faint: #a89fc0;

  --lilac: #c9a7ec;
  --lilac-soft: #ddc7f2;
  --violet: #7c5cb8;
  --violet-deep: #3a2a5c;
  --rose: #e8c9e0;

  --line: rgba(245, 242, 250, 0.12);
  --line-strong: rgba(245, 242, 250, 0.24);

  --glow-lilac: rgba(201, 167, 236, 0.35);

  /* Type */
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
  --font-accent: 'Gloock', 'Iowan Old Style', Georgia, serif;

  /* Spacing (8px base) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;
  --sp-9: 10rem;

  --radius-sm: 6px;
  --radius-md: 10px;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--bg-void);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 700; margin: 0; }
p { margin: 0; }
button { font-family: inherit; }

/* Selective editorial accent — use sparingly, never as the default heading font */
.accent {
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: 0.005em;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--sp-3); }
}

/* ---- Starfield canvas ---- */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(124, 92, 184, 0.14), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(10, 7, 16, 0.6), transparent 60%);
}

main, header, footer { position: relative; z-index: 2; }

/* ---- Ornament helpers ---- */
.ornament-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  opacity: 0.7;
}
.ornament-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.ornament-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.ornament-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.ornament-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Small lowercase label — used selectively, not as a mandatory pattern on every section */
.kicker {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  font-weight: 500;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft), backdrop-filter 0.4s var(--ease-soft);
}
.nav.is-scrolled {
  background: rgba(10, 7, 16, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--fg);
}
.nav__links {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--fg-muted);
  position: relative;
  transition: color 0.25s var(--ease-soft);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a.is-active { color: var(--lilac); }
.nav__cta {
  border: 1px solid var(--line-strong);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}
.nav__cta:hover {
  border-color: var(--lilac);
  box-shadow: 0 0 18px var(--glow-lilac);
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: var(--sp-1);
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease-soft);
}
.nav__mobile.is-open { transform: translateY(0); }
.nav__mobile a { font-family: var(--font-body); font-weight: 600; font-size: 1.4rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.btn--primary {
  background: var(--fg);
  color: var(--bg-void);
  border: 1px solid var(--fg);
}
.btn--primary:hover {
  box-shadow: 0 0 24px var(--glow-lilac);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--lilac);
  box-shadow: 0 0 18px rgba(201, 167, 236, 0.18);
}

/* ---- Hero ---- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding: calc(var(--sp-8) + 60px) var(--sp-4) var(--sp-6);
  max-width: 1240px;
  margin: 0 auto;
  gap: var(--sp-4);
  position: relative;
}
.hero__content { position: relative; z-index: 3; }
.hero__kicker { display: block; margin-bottom: var(--sp-3); }
.hero__title {
  margin-bottom: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.32em;
  row-gap: 0.05em;
}
.hero__title-pre {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1;
  color: var(--fg);
}
.hero__name {
  font-family: var(--font-accent);
  font-weight: 400;
  /* Measured: Gloock's ascender height runs ~8% taller than Satoshi's at
     an identical px font-size (canvas metrics: 79px vs 73px @ 100px).
     Sizing it down by that factor keeps "chelli" and "Hi, ich bin"
     optically level instead of Gloock visually overpowering the line. */
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.hero__desc {
  color: var(--fg-muted);
  font-size: 1.08rem;
  max-width: 40ch;
  margin-bottom: var(--sp-4);
}
.hero__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  align-items: center;
}

.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg);
  background: rgba(201, 167, 236, 0.08);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 22px var(--glow-lilac);
  transition: box-shadow 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}
.hero__live:hover { transform: translateY(-1px); box-shadow: 0 0 30px var(--glow-lilac); }
.hero__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d98cc9;
  box-shadow: 0 0 10px #d98cc9;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.is-hidden { display: none !important; }

.hero__art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 480px;
}
.hero__art::before {
  content: '';
  position: absolute;
  inset: 8% 8% 0 8%;
  background: radial-gradient(ellipse 60% 55% at 50% 35%, rgba(124, 92, 184, 0.22), transparent 72%);
  filter: blur(6px);
  z-index: 0;
}
.hero__art-img {
  position: relative;
  z-index: 1;
  width: 118%;
  max-width: 640px;
  margin-left: -9%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 70px rgba(124, 92, 184, 0.22));
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  color: var(--fg-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 3;
}
.hero__scroll-cue::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--line-strong), transparent);
  animation: scroll-cue 2.2s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--sp-7) + 40px);
    text-align: left;
  }
  .hero__art { order: -1; min-height: 300px; margin-bottom: var(--sp-2); }
  .hero__art-img { width: 78%; margin-left: 0; }
  .hero__title-pre { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .hero__name { font-size: clamp(1.65rem, 6.9vw, 2.2rem); }
}

/* ---- Section base ---- */
.section {
  padding: var(--sp-8) var(--sp-4);
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}
@media (max-width: 640px) {
  .section { padding: var(--sp-6) var(--sp-3); }
}
.section__head {
  margin-bottom: var(--sp-6);
}
.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: var(--sp-2) 0 var(--sp-2);
}
.section__desc { color: var(--fg-muted); font-size: 1.02rem; max-width: 60ch; }

/* asymmetric header: big heading left, short free-standing note offset to
   the right — plain text, no card/border, not part of the grid below */
.section__head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.section__head--split .section__title { margin: var(--sp-2) 0 0; max-width: 14ch; }
.section__head--split .section__desc { max-width: 34ch; padding-bottom: 0.3em; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- About section ---- */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--sp-6);
  align-items: center;
}
.about__art {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.about__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__headline {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  margin: var(--sp-2) 0 var(--sp-4);
}
.about__headline .accent {
  display: block;
  font-size: 1.15em;
  color: var(--fg);
}
.about__body p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: var(--sp-4);
  max-width: 52ch;
}
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--fg-muted);
  transform: rotate(var(--tilt, 0deg));
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.tag:hover { color: var(--lilac); border-color: var(--lilac); }
.tag:nth-child(2) { --tilt: -1.5deg; }
.tag:nth-child(3) { --tilt: 1deg; }
.tag:nth-child(4) { --tilt: -0.8deg; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__art { max-width: 280px; margin: 0 auto; }
}

/* ---- Pillars: exact 2x2 bento grid, four cards only ----
   Row 1: wide (2/3) | narrow (1/3)
   Row 2: narrow (1/3) | wide (2/3)
   Grid items stretch to equal height within their row by default, so the
   two cards sharing a row line up without any manual height matching. */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-soft), transform 0.35s var(--ease-soft);
}
.pillar__constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}
.pillar:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 0%, rgba(124, 92, 184, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
}
.pillar:hover::before { opacity: 1; }
.pillar__index {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-family: var(--font-accent);
  font-size: 2.2rem;
  color: var(--line-strong);
  opacity: 0.6;
  z-index: 0;
  line-height: 1;
}
.pillar__icon { width: 24px; height: 24px; color: var(--lilac); margin-bottom: var(--sp-2); position: relative; z-index: 1; }
.pillar__title { font-size: 1.18rem; margin-bottom: 0.35rem; position: relative; z-index: 1; }
.pillar__desc { color: var(--fg-muted); font-size: 0.92rem; position: relative; z-index: 1; }

.pillar--gaming { grid-column: span 2; }
.pillar--yt { grid-column: span 1; }
.pillar--tiktok { grid-column: span 1; }
.pillar--creative { grid-column: span 2; }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar--gaming, .pillar--yt, .pillar--tiktok, .pillar--creative {
    grid-column: span 1;
  }
}

/* ---- Streams ---- */
.streams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
}
.streams__panel { position: relative; }
.streams__panel p { color: var(--fg-muted); margin-top: var(--sp-2); max-width: 46ch; }

.platform-links { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.platform-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.platform-link:hover { border-color: var(--lilac); background: rgba(201, 167, 236, 0.05); }
.platform-link__name { font-size: 0.98rem; font-weight: 600; }
.platform-link__handle { font-size: 0.78rem; color: var(--fg-faint); margin-left: 0.5rem; }
.platform-link__arrow { color: var(--fg-faint); transition: transform 0.25s var(--ease-soft); }
.platform-link:hover .platform-link__arrow { transform: translateX(3px); color: var(--lilac); }

@media (max-width: 860px) {
  .streams { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ---- Business & Collabs (intentionally understated) ---- */
.business {
  padding: var(--sp-6) var(--sp-4);
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.business__inner { max-width: 640px; }
.business__title { font-size: 1.5rem; margin-bottom: var(--sp-2); }
.business__inner p { color: var(--fg-muted); margin-bottom: var(--sp-3); max-width: 55ch; }
.business__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15em;
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.business__mail:hover { color: var(--lilac); border-color: var(--lilac); }

/* ---- Community ---- */
.community {
  text-align: center;
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.community__title { font-size: clamp(2rem, 4vw, 3rem); margin: var(--sp-2) auto var(--sp-3); max-width: 22ch; }
.community__title .accent { color: var(--fg); }
.community__desc { color: var(--fg-muted); max-width: 54ch; margin: 0 auto var(--sp-5); }
.community__actions { display: flex; justify-content: center; gap: var(--sp-2); flex-wrap: wrap; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-6) var(--sp-4) var(--sp-5);
}
.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-5);
}
.footer__brand { font-family: var(--font-body); font-weight: 700; color: var(--fg); }
.footer__col { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__col-title { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--fg-faint); text-transform: uppercase; margin-bottom: 0.2rem; }
.footer__socials { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.footer__socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.footer__socials a:hover { color: var(--lilac); border-color: var(--lilac); }
.footer__socials svg { width: 16px; height: 16px; }
.footer__legal { display: flex; gap: var(--sp-3); font-size: 0.85rem; color: var(--fg-muted); }
.footer__legal a:hover { color: var(--lilac); }
.footer__mail { font-size: 0.9rem; color: var(--fg-muted); }
.footer__mail:hover { color: var(--lilac); }
.footer__meta { color: var(--fg-faint); font-size: 0.82rem; width: 100%; margin-top: var(--sp-4); text-align: center; border-top: 1px solid var(--line); padding-top: var(--sp-3); }

/* ---- Page header (for sub-pages) ---- */
.page-header {
  padding: calc(var(--sp-8) + 40px) var(--sp-4) var(--sp-6);
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.page-header__title { font-family: var(--font-accent); font-weight: 400; font-size: clamp(2.8rem, 7vw, 4.6rem); margin: var(--sp-2) 0; }
.page-header__desc { color: var(--fg-muted); max-width: 52ch; margin: 0 auto; font-size: 1.05rem; }

/* ---- Lore hero (asymmetric, left-aligned — used only on the Sternenwarte page) ---- */
.lore-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--sp-5);
  padding: calc(var(--sp-8) + 40px) var(--sp-4) var(--sp-6);
  max-width: 1240px;
  margin: 0 auto;
}
.lore-hero__title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin: var(--sp-2) 0 var(--sp-3);
  color: var(--fg);
}
.lore-hero__desc { color: var(--fg-muted); max-width: 46ch; font-size: 1.05rem; }
.lore-hero__decor {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lore-hero__decor::before {
  content: '';
  position: absolute;
  inset: 6%;
  background: radial-gradient(ellipse 60% 60% at 50% 45%, rgba(124, 92, 184, 0.16), transparent 72%);
  filter: blur(4px);
}
.lore-hero__decor svg { position: relative; width: 100%; height: 100%; }

@media (max-width: 860px) {
  .lore-hero { grid-template-columns: 1fr; padding-top: calc(var(--sp-7) + 40px); }
  .lore-hero__decor { display: none; }
}

/* ---- Lore page ---- */
.lore-entry {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-7) 0;
  border-bottom: 1px solid var(--line);
}
.lore-entry:last-child { border-bottom: none; }
.lore-entry:nth-child(even) { direction: rtl; }
.lore-entry:nth-child(even) > * { direction: ltr; }
.lore-entry__art {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}
.lore-entry__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.lore-entry__kicker { display: block; margin-bottom: var(--sp-2); }
.lore-entry__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: var(--sp-3); }
.lore-entry__body p { color: var(--fg-muted); margin-top: var(--sp-2); max-width: 54ch; }
.lore-entry__body p + p { margin-top: var(--sp-3); }

/* Decorative panel — a deliberate atmospheric element, not a stand-in for a missing image */
.lore-decor {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: var(--sp-5);
}
.lore-decor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 35%, rgba(124, 92, 184, 0.18), transparent 70%);
}
.lore-decor__word {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  color: rgba(245, 242, 250, 0.22);
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0 var(--sp-3);
  position: relative;
  z-index: 1;
}
.lore-decor svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }

@media (max-width: 860px) {
  .lore-entry, .lore-entry:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

/* ---- Gallery page ---- */
.gallery-grid {
  columns: 3 260px;
  column-gap: var(--sp-3);
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  aspect-ratio: var(--ar, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-faint);
  font-size: 0.78rem;
  text-align: center;
  padding: var(--sp-2);
}
.gallery-item:nth-child(3n+1) { --ar: 0.8; }
.gallery-item:nth-child(3n+2) { --ar: 1.2; }
.gallery-item:nth-child(3n+3) { --ar: 1; }

@media (max-width: 640px) {
  .gallery-grid { columns: 1 100%; }
}

/* ---- Legal pages (compact, left-aligned — not a landing-page hero) ---- */
.legal-header {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--sp-6) + 40px) var(--sp-4) var(--sp-3);
}
.legal-header__title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--fg);
}
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--sp-4) var(--sp-8);
}
.legal p { color: var(--fg-muted); margin-bottom: var(--sp-3); }
.legal h2.legal__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: var(--sp-5) 0 var(--sp-2);
}
.legal h2.legal__heading:first-child { margin-top: 0; }
.legal address.legal__address {
  font-style: normal;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}
.legal ul {
  list-style: disc;
  padding-left: 1.3em;
  margin-bottom: var(--sp-3);
}
.legal li {
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.legal .placeholder-block {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  color: var(--fg-faint);
  font-size: 0.92rem;
  margin-bottom: var(--sp-4);
}

/* ---- Credits ---- */
.credits-intro { max-width: 780px; margin: 0 auto; padding: 0 var(--sp-4) var(--sp-4); }
.credits-intro p { color: var(--fg-muted); }
.credits-list { max-width: 780px; margin: 0 auto; padding: 0 var(--sp-4) var(--sp-8); }
.credits-group {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.credits-group:last-child { border-bottom: none; }
.credits-group__title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--fg);
  min-width: 220px;
}
.credits-group__entries {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
  min-width: 220px;
  max-width: 440px;
  margin-left: auto;
  text-align: left;
}
.credits-group__entry { color: var(--fg-muted); font-size: 0.95rem; }
.credits-group__entry--pending { color: var(--fg-faint); font-style: italic; }

/* One filled credit: name (Satoshi, primary) -> source/credit (muted) -> link or note */
.credits-entry { display: flex; flex-direction: column; gap: 0.2rem; }
.credits-entry__name { color: var(--fg); font-size: 0.98rem; font-weight: 600; }
.credits-entry__source { color: var(--fg-muted); font-size: 0.9rem; }
.credits-entry__note { color: var(--fg-faint); font-size: 0.82rem; }
.credits-entry__link {
  display: inline-block;
  width: fit-content;
  margin-top: 0.1rem;
  color: var(--fg-muted);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.credits-entry__link:hover { color: var(--lilac); border-color: var(--lilac); }

/* Categories with nothing filled in yet recede behind the ones that do */
.credits-group--pending { padding: var(--sp-2) 0; }
.credits-group--pending .credits-group__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--fg-faint);
}
.credits-group--pending .credits-group__entry { font-size: 0.85rem; }

@media (max-width: 640px) {
  .credits-group { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .credits-group__entries { margin-left: 0; max-width: none; }
}

/* ==========================================================================
   Shop (Häkelecke) — reuses the existing design system, no new colors/fonts.
   ========================================================================== */

.shop-toolbar {
  display: flex;
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: var(--sp-4);
}
.shop-cart-btn { position: relative; }
.shop-cart-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: 0.5rem;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--bg-void);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---- Generic state message (loading / error / empty) ---- */
.state-message {
  text-align: center;
  padding: var(--sp-6) var(--sp-3);
  color: var(--fg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.state-message__title { font-family: var(--font-accent); font-size: 1.4rem; color: var(--fg); margin-bottom: var(--sp-2); }
.state-message--error { border-color: rgba(220, 120, 120, 0.3); }

/* ---- Product grid & cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-3);
}
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.product-card__image {
  aspect-ratio: 1 / 1;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-card__name { font-size: 1.02rem; font-weight: 600; }
.product-card__price { color: var(--fg-muted); font-size: 0.92rem; }
.badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

/* ---- Product detail ---- */
.shop-back {
  display: inline-block;
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin-bottom: var(--sp-4);
  transition: color 0.25s var(--ease-soft);
}
.shop-back:hover { color: var(--lilac); }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.product-detail__image {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elevated);
}
.product-detail__image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--sp-2); }
.product-detail__price { font-size: 1.15rem; color: var(--fg); margin-bottom: var(--sp-3); }
.product-detail__desc { color: var(--fg-muted); margin-bottom: var(--sp-4); }

.variant-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--sp-4); }
.variant-option {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
  cursor: pointer;
  background: transparent;
  transition: border-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}
.variant-option:hover { border-color: var(--lilac); color: var(--fg); }
.variant-option.is-selected { border-color: var(--lilac); color: var(--fg); box-shadow: 0 0 14px rgba(201, 167, 236, 0.18); }
.variant-option:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.qty-row { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.qty-input {
  width: 64px;
  padding: 0.6rem;
  text-align: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
}

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* ---- Cart drawer ---- */
.cart-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.cart-drawer.is-open { pointer-events: auto; }
.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 16, 0.6);
  opacity: 0;
  transition: opacity 0.3s var(--ease-soft);
}
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--bg-elevated);
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-soft);
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.cart-drawer__head h2 { font-size: 1.2rem; }
.cart-drawer__close { background: none; border: none; color: var(--fg-muted); font-size: 1.1rem; cursor: pointer; padding: 0.4rem; }
.cart-drawer__close:hover { color: var(--fg); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.cart-drawer__foot { padding: var(--sp-4); border-top: 1px solid var(--line); }
.cart-drawer__subtotal { display: flex; justify-content: space-between; margin-bottom: var(--sp-3); font-size: 1rem; }

.cart-item { display: flex; gap: var(--sp-2); }
.cart-item__image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-void);
  flex-shrink: 0;
}
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.cart-item__name { font-size: 0.92rem; font-weight: 600; }
.cart-item__variant { font-size: 0.8rem; color: var(--fg-faint); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.3rem; }
.cart-item__qty {
  width: 52px;
  padding: 0.3rem;
  text-align: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.cart-item__remove { background: none; border: none; color: var(--fg-faint); font-size: 0.8rem; cursor: pointer; text-decoration: underline; }
.cart-item__remove:hover { color: var(--fg); }
