/* ─────────────────────────────────────────────
   INNERLICHT.CH · Emotional Journey
   Dark entry → warm earthy sub-pages
───────────────────────────────────────────── */

:root {
  /* ── Dark palette (landing) ── */
  --dark-bg:       #13121a;
  --dark-bg-sub:   #1a1922;
  --dark-text:     #e5e1db;
  --dark-text-dim: #a8a49c;
  --dark-text-faint:#7a7670;
  --dark-warm:     #c4a070;
  --dark-warm-deep:#9a7a48;

  /* ── Light palette (sub-pages) ── */
  --light-bg:      #f3ede4;
  --light-bg-warm: #ece4d7;
  --light-text:    #3a2e26;
  --light-text-mid:#5c4a3d;
  --light-text-dim:#6e5a4d;
  --light-warm:    #b8864a;
  --light-warm-deep:#8e6234;
  --light-sage:    #7a8a6e;

  /* ── Shared ── */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--dark-bg);
  color: var(--dark-text);
  font-family: var(--font-sans);
  font-weight: 300;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Ambient Glow (landing only) ── */
.glow {
  position: fixed;
  top: 35%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(196, 160, 112, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glow-breathe 10s ease-in-out infinite;
  transition: opacity 0.8s ease;
}

.glow.dim { opacity: 0; }

@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* ── Page System ── */
.page {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Sub-pages: warm light background */
.page-sub {
  background: var(--light-bg);
  color: var(--light-text);
}

.page-sub .back-btn,
.page-sub .page-footer .footer-email {
  color: var(--light-text-dim);
}

.page-sub .back-btn:hover {
  color: var(--light-text);
  background: rgba(0, 0, 0, 0.03);
}

.page-sub .page-footer .footer-email:hover {
  color: var(--light-text-mid);
}

/* ── Brand ── */
.brand {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 6vw, 4rem);
  position: relative;
  z-index: 3;
}

.brand-link {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--dark-text-dim);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.brand-link:hover { opacity: 1; }
.brand-tld { color: var(--dark-warm-deep); font-weight: 300; }

/* ── Landing ── */
.page-landing {
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(3.5rem, 10vh, 6rem);
  padding: 0 clamp(1.5rem, 6vw, 4rem);
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.landing-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.4;
  color: #f7f1e9;
  letter-spacing: 0.005em;
  max-width: 26ch;
}

/* ── Path Choices (horizontal) ── */
.paths {
  display: flex;
  flex-direction: row;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: 720px;
  flex-wrap: wrap;
  justify-content: center;
}

.path-choice {
  background: rgba(196, 160, 112, 0.03);
  border: 1px solid rgba(196, 160, 112, 0.15);
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(1rem, 2vw, 1.5rem);
  cursor: pointer;
  text-align: center;
  transition: background 0.6s ease, border-color 0.6s ease, transform 0.3s var(--ease);
  border-radius: 6px;
  font-family: inherit;
  color: inherit;
  flex: 1;
  min-width: 140px;
  max-width: 240px;
}

.path-choice:hover,
.path-choice:focus-visible {
  background: rgba(196, 160, 112, 0.06);
  border-color: rgba(196, 160, 112, 0.45);
  transform: translateY(-2px);
}

.path-choice:active {
  transform: translateY(0);
  background: rgba(196, 160, 112, 0.1);
  border-color: rgba(196, 160, 112, 0.6);
}

.path-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-warm);
  transition: color 0.5s ease;
  display: block;
}

.path-choice:hover .path-text,
.path-choice:active .path-text,
.path-choice:focus-visible .path-text {
  color: #fff;
}

/* ── Landing Footer ── */
.landing-footer {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.landing-nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--dark-text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.landing-nav-link:hover {
  color: var(--dark-text);
}

.landing-nav-sep {
  color: var(--dark-text-faint);
  font-size: 0.8rem;
}

.footer-email {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--dark-text-faint);
  text-decoration: none;
  transition: color 0.3s ease;
}

.landing-footer .footer-email:hover {
  color: var(--dark-text-dim);
}

/* ── Back Button ── */
.back-btn {
  position: fixed;
  top: clamp(1.2rem, 3vw, 2rem);
  left: clamp(1.2rem, 3vw, 2rem);
  z-index: 10;
  background: none;
  border: none;
  color: var(--light-text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  transition: color 0.3s ease, background 0.3s ease;
}

.back-btn:hover {
  color: var(--light-text);
  background: rgba(0, 0, 0, 0.03);
}

.back-btn svg {
  transition: transform 0.3s var(--ease);
}

.back-btn:hover svg {
  transform: translateX(-3px);
}

/* ── Sub Page Layout ── */
.page-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(5rem, 12vh, 8rem) clamp(2rem, 8vw, 5rem) clamp(3rem, 8vh, 5rem);
}

.page-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--light-warm-deep);
  opacity: 0.7;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.page-portrait {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  width: 100%;
  max-width: 440px;
}

.page-portrait img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: sepia(0.1) contrast(1.02);
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.page-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--light-text);
  letter-spacing: -0.01em;
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

/* ── Text Blocks ── */
.page-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.page-text p {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--light-text-mid);
  max-width: 38ch;
}

.page-text-bridge {
  opacity: 0.9;
}

/* ── Glossary ── */
.glossary {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.glossary-item {
  padding-bottom: clamp(1.5rem, 4vw, 2rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.glossary-item:last-child { border-bottom: none; }

.glossary-term {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.glossary-def {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.8vw, 0.98rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--light-text-dim);
  max-width: 38ch;
}

/* ── CTA ── */
.page-cta {
  margin-top: auto;
  padding-top: clamp(1rem, 3vw, 2rem);
}

.cta-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-warm-deep);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.cta-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--light-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.cta-link:hover { color: var(--light-warm-deep); }
.cta-link:hover::after { transform: scaleX(1); }

/* ── Sub Page Footer ── */
.page-footer {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

/* ── Reveal Animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .paths {
    flex-direction: column;
    align-items: center;
  }

  .path-choice {
    max-width: 320px;
    min-width: 0;
  }

  .landing-quote {
    font-size: 1.4rem;
  }

  .page-headline {
    font-size: 1.8rem;
  }

  .page-text p {
    font-size: 1.1rem;
  }

  .glossary-term,
  .glossary-def {
    font-size: 1rem;
  }
}
