* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111827;
  color: #f8fafc;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.topbar a:not(.brand) {
  color: color-mix(in srgb, var(--ink), transparent 24%);
  font-weight: 650;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: calc(100vh - 86px);
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 96px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.shareButton,
.ghost {
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 72%);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent), white 22%);
  font-weight: 800;
  cursor: pointer;
}

.ghost {
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--ink), transparent 88%);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

.scene::before,
.scene::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

[data-motion="sun"] .scene::before {
  width: 34vmin;
  height: 34vmin;
  top: 12%;
  right: 12%;
  background: radial-gradient(circle, rgba(255,255,255,.8), rgba(255,255,255,0));
  animation: float 9s ease-in-out infinite;
}

[data-motion="snow"] .scene {
  background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 2px, transparent 3px);
  background-size: 42px 42px;
  animation: fall 18s linear infinite;
}

[data-motion="rain"] .scene {
  background-image: linear-gradient(110deg, rgba(255,255,255,.28) 0 1px, transparent 1px 18px);
  background-size: 18px 44px;
  animation: rain 0.8s linear infinite;
}

[data-motion="stars"] .scene {
  background-image: radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 2px);
  background-size: 70px 70px;
  animation: pulse 4s ease-in-out infinite;
}

[data-motion="grid"] .scene {
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 52px 52px;
}

[data-motion="leaves"] .scene::before,
[data-motion="embers"] .scene::before,
[data-motion="waves"] .scene::before {
  inset: 8%;
  border: 1px solid rgba(255,255,255,.18);
  animation: float 7s ease-in-out infinite;
}

.archive {
  min-height: 100vh;
  padding-bottom: 80px;
  background: #0f172a;
}

.archive .topbar,
.archiveIntro,
.grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.archiveIntro {
  padding: 48px 0 28px;
}

.archiveIntro h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.archiveIntro p {
  color: #cbd5e1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  min-height: 180px;
  scroll-margin-block: 45vh;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
}

.tile.is-selected,
.tile.is-today {
  border-color: #f8fafc;
  box-shadow: 0 0 0 2px rgba(248,250,252,.18), 0 24px 70px rgba(15,23,42,.38);
}

.tile.is-today::after {
  position: absolute;
  right: 14px;
  bottom: 12px;
  content: "Heute";
  border-radius: 999px;
  padding: 6px 10px;
  color: #0f172a;
  background: #f8fafc;
  font-size: .78rem;
  font-weight: 850;
}

.tile span,
.tile small {
  display: block;
  color: #94a3b8;
  font-weight: 750;
}

.tile strong {
  display: block;
  margin: 18px 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 16px, 0) scale(1.05); }
}

@keyframes fall {
  from { background-position: 0 -80px; }
  to { background-position: 0 380px; }
}

@keyframes rain {
  from { background-position: 0 0; }
  to { background-position: -18px 44px; }
}

@keyframes pulse {
  0%, 100% { opacity: .58; }
  50% { opacity: 1; }
}

@media (max-width: 640px) {
  .topbar {
    padding: 18px 0;
  }

  .hero {
    min-height: calc(100vh - 70px);
    padding-bottom: 56px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5.4rem);
  }
}
