:root {
  --paper: #efebe3;
  --ink: #161715;
  --line: #c3bdb2;
  --accent: #2f574c;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 63% 42%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.3) 24%, transparent 49%),
    linear-gradient(135deg, #e7e2d9 0%, #f4f1ea 54%, #e2ddd3 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.card {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 38px clamp(32px, 3.6vw, 78px) 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 1.8vw, 2.2rem);
  line-height: 1;
  font-weight: 480;
  letter-spacing: -0.055em;
  z-index: 1;
}

.orbit {
  position: absolute;
  top: 43%;
  left: 62%;
  width: clamp(220px, 27vw, 390px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  animation: breathe 9s ease-in-out infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  background: var(--line);
}

.orbit::before {
  width: 142%;
  height: 1px;
  transform: rotate(-25deg);
}

.orbit::after {
  width: 1px;
  height: 142%;
  transform: rotate(25deg);
}

.orbit-core {
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1;
}

@keyframes breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) rotate(3deg) scale(1.025);
  }
}

nav {
  width: min(100%, 410px);
  margin-left: auto;
  border-top: 1px solid var(--ink);
  z-index: 1;
}

nav a {
  min-height: 52px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 480;
  letter-spacing: -0.018em;
  transition: color 180ms ease, padding 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  padding-left: 14px;
  color: var(--accent);
  outline: none;
}

.arrow {
  margin-left: 32px;
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: 0;
  transition: transform 180ms ease;
}

nav a:hover .arrow,
nav a:focus-visible .arrow {
  transform: translate(4px, -4px);
}

@media (max-width: 700px) {
  .card {
    padding: 24px 16px 28px;
  }

  nav {
    width: 100%;
  }

  h1 {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }

  .orbit {
    top: 43%;
    left: 54%;
    width: min(64vw, 270px);
  }

  nav a {
    min-height: 48px;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
