/* SilentSoul:AI – Release-Website v1 */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --graphite: #5c5c5c;
  --mist: #d9d9d9;
  --signal: #8a1116;   /* Rot der Fingernägel auf dem Cover */
  --void: #000000;
  --void-text: #e6e6e6;
  --sans: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

/* ---------- Titel im Stil des Covers ---------- */
.cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh 1.5rem 10vh;
}

.title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.9rem, 6.4vw, 4.2rem);
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* optischer Ausgleich der Laufweite */
  line-height: 1.1;
}

.author {
  margin: 1.1rem 0 0;
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  color: var(--ink);
}

.hand-trigger {
  position: relative;
  display: block;
  width: min(58vw, 340px);
  margin: clamp(3rem, 9vh, 6rem) auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hand { width: 100%; }

.glitch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.hand-trigger.is-glitching .glitch-canvas { opacity: 1; }

.part {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
}

.subtitle {
  margin: 0.8rem 0 0;
  font-size: clamp(0.72rem, 1.5vw, 0.9rem);
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}

/* ---------- Teaser & Buch ---------- */
.book {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 9rem;
  text-align: center;
}

.teaser {
  margin: 0 0 3.5rem;
  font-size: 1.15rem;
  line-height: 1.75;
}

.teaser p { margin: 0 0 1.2em; }

.buy {
  display: inline-block;
  padding: 0.35rem 0;
  text-decoration: none;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--signal);
  transition: color 0.2s ease;
}

.buy:hover { color: var(--signal); }

.note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--graphite);
}

/* ---------- Übergang ins Schwarze ---------- */
.void {
  /* weicher Übergang von Weiß zu Schwarz, danach tiefes Schwarz */
  background: linear-gradient(to bottom, var(--paper) 0, var(--void) 28vh, var(--void) 100%);
  color: var(--void-text);
  min-height: 80svh;
  padding: calc(28vh + 2.5rem) clamp(1.5rem, 5vw, 4rem) calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6rem;
}

.terminal {
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.8;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.terminal a {
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 230, 230, 0.35);
}

.terminal a:hover { border-bottom-color: var(--void-text); }

.legal {
  display: flex;
  gap: 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #9a9a9a;
}

.legal a { text-decoration: none; }
.legal a:hover { color: var(--void-text); }

/* ---------- Rechtsseiten ---------- */
.doc {
  max-width: 40rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

.doc .back {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-decoration: none;
}

.doc h1 {
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  margin: 0 0 2.5rem;
}

.doc h2 {
  font-weight: 400;
  font-size: 1.05rem;
  margin: 2.5rem 0 0.6rem;
}

.doc p, .doc li { color: #1a1a1a; }
.doc ul { padding-left: 1.2rem; }
.doc .stand { color: var(--graphite); font-size: 0.85rem; margin-top: 3rem; }

/* ---------- Konsole ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.console {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: calc(2.5rem + env(safe-area-inset-top, 0px)) clamp(1.5rem, 5vw, 4rem) 2rem;
  border: 0;
  background: var(--void);
  color: #f2f2f2;
}

.console::backdrop { background: var(--void); }

.console[open] { animation: power-on 0.28s steps(4, end); }

@keyframes power-on {
  0% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 0.15; }
  100% { opacity: 1; }
}

.console-output {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  line-height: 2;
  letter-spacing: 0.04em;
  white-space: pre-wrap;
}

.console-output .caret {
  animation: blink 1.1s steps(1, end) infinite;
}

.console-close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: none;
  color: #8c8c8c;
  font: 300 1.8rem/1 var(--sans);
  cursor: pointer;
}

.console-close:hover { color: #f2f2f2; }

@media (prefers-reduced-motion: reduce) {
  .console[open], .console-output .caret { animation: none; }
  .cursor { animation: none; }
  .buy { transition: none; }
}
