/* denkraum.one */

:root {
  --bg: #f8f6f3;
  --essence: #5c554a;
  --muted: rgba(92, 85, 74, 0.70);
  --brand: rgba(92, 85, 74, 0.55);
  --imprint: rgba(92, 85, 74, 0.50);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  position: relative;

  background-color: var(--bg);

  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(248, 246, 243, 0.30),
      rgba(248, 246, 243, 0.30)
    ),
    url('/assets/img/denkraum-bg.png');

  background-size:
    cover,
    cover;

  background-position:
    center center,
    center center;

  background-repeat:
    no-repeat,
    no-repeat;

  opacity: 0;
  animation: backgroundFadeIn 5s ease forwards;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 96px;
}

.essence {
  max-width: 680px;
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--essence);
  text-wrap: balance;
  hyphens: none;
  animation: fadeIn 6s ease forwards;
}

.footer-block {
  z-index: 1;
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.footer-block .index {
  color: var(--muted);
}

.footer-block .brand {
  color: var(--brand);
  text-decoration: none;
}

.footer-block .brand:hover {
  color: var(--essence);
}

.footer-block .imprint {
  color: var(--imprint);
  text-decoration: none;
}

.footer-block .imprint:hover {
  color: var(--essence);
}

.debug-block {
  z-index: 1;
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100vw - 32px);
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(92, 85, 74, 0.60);
  pointer-events: none;
}


@keyframes backgroundFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {

  main {
    min-height: 100svh;
    padding: 32px 24px 126px;
  }

  .essence {
    font-size: clamp(24px, 7vw, 26px);
    line-height: 1.45;
  }

  .footer-block {
    right: 24px;
    bottom: 24px;
    gap: 12px;
    font-size: 11px;
  }

  .debug-block {
    display: none;
  }
}