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

:root {
  color-scheme: light dark;
  --bg: #f7f6f3;
  --fg: #1a1a18;
  --fg-muted: #5c5c58;
  --mark-size: clamp(3rem, 8vw, 4rem);
  --space-sm: 1.25rem;
  --space-md: 2rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0d;
    --fg: #e8e6e1;
    --fg-muted: #9a9893;
  }
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background-color: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 28rem);
  animation: fade-in 1.4s ease-out both;
}

.mark {
  width: var(--mark-size);
  height: var(--mark-size);
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.wordmark {
  margin: var(--space-sm) 0 0;
  color: var(--fg);
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.2;
  text-decoration: none;
}

.tagline {
  margin: var(--space-md) 0 0;
  color: var(--fg-muted);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

footer {
  position: fixed;
  bottom: var(--space-md);
  left: 0;
  right: 0;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}
