:root {
  --bg: #0e0f11;
  --text: #ece9e1;
  --muted: #918e85;
  --faint: #55534d;
  --accent: #d9622b;
  --border: rgba(255, 255, 255, 0.08);
  --maxw: 640px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand img {
  width: 18px;
  height: 18px;
  display: block;
}

.topnav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: var(--text);
}

/* Homepage hero */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  gap: 40px;
}

.hero-mark {
  width: 200px;
  height: 200px;
  animation: spin 50s linear infinite;
  opacity: 0;
  animation: spin 50s linear infinite, fade-in 1s ease 0.1s forwards;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.headline {
  max-width: 480px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  opacity: 0;
  animation: rise 0.8s ease 0.4s forwards;
}

.hero-link {
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  opacity: 0;
  animation: rise 0.8s ease 0.6s forwards;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.foot {
  position: fixed;
  bottom: 24px;
  left: 32px;
  font-size: 12px;
  color: var(--faint);
}

/* Vision / memo page */

.doc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 160px 24px 120px;
}

.doc h1 {
  font-size: 34px;
  font-weight: 500;
  margin: 0 0 8px;
}

.doc .lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 72px;
  max-width: 46ch;
}

.doc section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.doc section:first-of-type {
  border-top: none;
}

.doc h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.doc p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.doc .back {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.doc .back:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .topbar {
    padding: 20px;
  }

  .hero {
    padding: 100px 20px 60px;
    gap: 32px;
  }

  .hero-mark {
    width: 140px;
    height: 140px;
  }

  .headline {
    font-size: 19px;
  }

  .doc {
    padding: 120px 20px 80px;
  }

  .doc h1 {
    font-size: 28px;
  }
}
