:root {
  /* Rose Pine Dark */
  --base: #191724;
  --surface: #1f1d2e;
  --overlay: #26233a;
  --muted: #6e6a86;
  --subtle: #908caa;
  --text: #e0def4;
  --iris: #c4a7e7;
  --love: #eb6f92;
  --gold: #f6c177;
  --foam: #9ccfd8;
  --pine: #31748f;
  --highlight-low: #524f67;
}

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

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family:
    ui-monospace, "Cascadia Code", "Fira Code", "JetBrains Mono",
    "Source Code Pro", Menlo, Consolas, monospace;
  background: var(--base);
  color: var(--text);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* Header */

header {
  width: min(90vw, 520px);
  margin-bottom: 1.75rem;
  text-align: left;
}

header h1 {
  font-size: 2.25rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

header .subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Terminal */

.terminal {
  width: min(90vw, 520px);
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--overlay);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: var(--love);
}
.terminal-dot.yellow {
  background: var(--gold);
}
.terminal-dot.green {
  background: var(--foam);
}

.terminal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  height: 260px;
  overflow: hidden;
  scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar {
  display: none;
}

.terminal-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--subtle);
  white-space: pre;
}

.prompt {
  color: var(--iris);
}

.prompt::before {
  content: "❯ ";
  color: var(--pine);
}

.command {
  color: var(--text);
}

.output {
  color: var(--muted) !important;
}

.blink {
  animation: blink 1s step-end infinite;
  color: var(--text);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

footer {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
}

/* Links */

a {
  color: var(--highlight-low);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--iris);
}

footer a {
  font-size: 0.8rem;
}

/* Impressum */

.impressum {
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: left;
}

.impressum h1 {
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.impressum .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.impressum section {
  margin-bottom: 2rem;
}

.impressum h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--iris);
  margin-bottom: 0.5rem;
}

.impressum p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--subtle);
}

.impressum .inline-link {
  font-size: inherit;
  color: var(--subtle);
}

.impressum .inline-link:hover {
  color: var(--iris);
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
}

/* Mobile */

@media (max-width: 480px) {
  main {
    padding: 1.5rem 1rem;
  }

  header {
    width: 100%;
  }

  header h1 {
    font-size: 1.75rem;
  }

  .terminal {
    width: 100%;
    border-radius: 6px;
  }

  .terminal-bar {
    padding: 10px 12px;
  }

  .terminal-dot {
    width: 10px;
    height: 10px;
  }

  .terminal-body {
    padding: 1rem 1rem 1.25rem;
    height: 220px;
  }

  .terminal-body p {
    font-size: 0.75rem;
  }

  footer {
    justify-content: center;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
  }

  .impressum {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .impressum h1 {
    font-size: 1.5rem;
  }

  .impressum p {
    font-size: 0.85rem;
  }
}
