:root {
  --color-bg: #ece9e4;
  --color-fg: #3d3d3d;
  --color-fg-strong: #1f1f1f;
  --divider-opacity: 0.4;
  --content-max-width: 478px;
  --gap-lg: 37px;
  --gap-md: 24px;
  --ease-elegant: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.content {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-lg);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.divider {
  width: 100%;
  height: 1px;
  border: none;
  background: var(--color-fg);
  transform-origin: center;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

.link {
  position: relative;
  display: inline-block;
  color: var(--color-fg);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding-bottom: 4px;
  transition: color 0.35s var(--ease-elegant), letter-spacing 0.35s var(--ease-elegant);
}

.link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-elegant), left 0.4s var(--ease-elegant);
}

.link:hover,
.link:focus-visible {
  color: var(--color-fg-strong);
  letter-spacing: 0.12em;
}

.link:hover::after,
.link:focus-visible::after {
  width: 100%;
  left: 0;
}

.link:focus-visible {
  outline: none;
}

/* Entrance animation */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes divider-grow {
  from {
    opacity: 0;
    transform: translateY(12px) scaleX(0);
  }
  to {
    opacity: var(--divider-opacity);
    transform: translateY(0) scaleX(1);
  }
}

.logo,
.link {
  opacity: 0;
  animation: fade-in-up 0.9s var(--ease-elegant) forwards;
}

.divider {
  opacity: 0;
  animation: divider-grow 0.9s var(--ease-elegant) forwards;
}

.logo { animation-delay: 0.1s; }
.divider { animation-delay: 0.35s; }

.links .link:nth-child(1) { animation-delay: 0.5s; }
.links .link:nth-child(2) { animation-delay: 0.6s; }
.links .link:nth-child(3) { animation-delay: 0.7s; }
.links .link:nth-child(4) { animation-delay: 0.8s; }

@media (max-width: 600px) {
  .logo {
    width: 92%;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .link {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .divider {
    animation: none;
    opacity: var(--divider-opacity);
    transform: none;
  }

  .link,
  .link::after {
    transition: none;
  }
}
