:root {
  --paper: #ece2d2;
  --paper-light: #f3ece1;
  --ink: #2a2622;
  --ink-soft: #7a7066;
  --line: rgba(42, 38, 34, 0.12);
  --blue: #34509a;
  --teal: #2f8576;
  --stone: #a3b4c0;
  --display: "Fraunces", Georgia, serif;
  --round: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: radial-gradient(140% 100% at 50% 30%, var(--paper-light) 0%, var(--paper) 70%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Paper texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar,
.stage,
.contact {
  position: relative;
  z-index: 2;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px clamp(24px, 6vw, 88px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: fade 1.2s var(--ease) 0.9s both;
}

.topbar__mark {
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink);
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: breathe 3.6s ease-in-out infinite;
}

@keyframes breathe {
  50% { opacity: 0.35; }
}

/* Stage */
.stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(48px, 9vh, 96px);
  padding: 0 clamp(24px, 6vw, 88px) clamp(32px, 6vh, 72px);
}

.logo {
  margin: 0;
  width: min(100%, 760px);
  line-height: 0;
}

.wordmark {
  width: 100%;
  height: auto;
  overflow: visible;
}

.wordmark text {
  font-family: var(--round);
  font-weight: 600;
  font-size: 190px;
}

/* Buchstaben haben keine transform-Attribute, daher ist CSS-transform hier sicher */
.wordmark .l {
  animation: settle 1.2s var(--ease) both;
  animation-delay: calc(0.08s * var(--i));
}

@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Intro */
.intro {
  width: min(100%, 640px);
  display: grid;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  animation: fade 1.2s var(--ease) 0.6s both;
}

.intro__lead {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.intro__body {
  margin: 0;
  max-width: 44ch;
  color: var(--ink-soft);
}

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Contact line */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  padding: 28px clamp(24px, 6vw, 88px) 40px;
  font-size: 13px;
  letter-spacing: 0.02em;
  animation: fade 1.2s var(--ease) 1s both;
}

.contact a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  padding: 2px 0;
}

.contact a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.contact a:hover::after,
.contact a:focus-visible::after {
  transform: scaleX(1);
}

.contact a:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.contact__net {
  color: var(--ink-soft);
  margin-right: 4px;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--stone);
}

@media (max-width: 640px) {
  .contact {
    flex-direction: column;
    gap: 8px;
  }

  .dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
