:root {
  --c-1: #C9F0FF;
  --c-2: #EAFFFD;
  --c-3: #EFEFF0;
  --c-4: #D5CAD6;
  --c-5: #6B5E62;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--c-5);
  background:
    linear-gradient(180deg, var(--c-2), var(--c-3));
  line-height: 1.7;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

header {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  padding-bottom: 4rem;
}

header h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

header p {
  margin: 0;
  max-width: 52ch;
  color: rgba(107, 94, 98, 0.9);
}

nav {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  gap: 1.2rem;
  z-index: 10;
  font-size: 0.9rem;
}

nav a {
  text-decoration: none;
  color: rgba(107, 94, 98, 0.7);
  padding-bottom: 0.2rem;
  transition: color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--c-5);
  border-color: var(--c-4);
}

nav a.is-active {
  color: var(--c-5);
  border-color: var(--c-5);
}

section {
  padding: 4rem 0;
  border-top: 1px solid rgba(107, 94, 98, 0.15);
}

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

section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

section p,
section li {
  max-width: 65ch;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin: 0.4rem 0;
}

a {
  color: var(--c-5);
  text-decoration-color: var(--c-4);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

a:hover {
  color: #000;
}

#contact a {
  font-weight: 500;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(107, 94, 98, 0.2);
  font-size: 0.9rem;
  color: rgba(107, 94, 98, 0.7);
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(201, 240, 255, 0.25),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(213, 202, 214, 0.25),
      transparent 45%
    );
  z-index: -1;
}

section,
header {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

section.is-visible,
header.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 600px) {
  nav {
    right: 1rem;
    left: 1rem;
    justify-content: space-between;
  }
}
