:root {
  --ink: #0a100e;
  --ink-soft: #16201c;
  --fog: #5f6f69;
  --line: #c9d6d1;
  --paper: #f3f8f5;
  --teal: #0e9f91;
  --teal-deep: #087a72;
  --mist: #e6f4ef;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(14, 159, 145, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(8, 122, 114, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fbf9 0%, var(--paper) 45%, #eef5f1 100%);
  line-height: 1.55;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 16, 14, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 16, 14, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
  z-index: 0;
}

.top,
.hero,
.doc,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

nav a {
  color: var(--fog);
  text-decoration: none;
  font-weight: 600;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--teal-deep);
}

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  animation: rise 700ms ease-out both;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-soft);
  animation: rise 800ms ease-out 80ms both;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--fog);
  animation: rise 850ms ease-out 140ms both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: rise 900ms ease-out 200ms both;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 0.55rem;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.cta:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.cta.ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid var(--line);
}

.cta.ghost:hover {
  background: var(--mist);
}

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.doc h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.doc .meta {
  margin: 0.5rem 0 1.75rem;
  color: var(--fog);
  font-size: 0.95rem;
}

.doc h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc ul {
  padding-left: 1.2rem;
}

.doc code {
  font-size: 0.92em;
  background: var(--mist);
  padding: 0.1em 0.35em;
  border-radius: 0.3rem;
}

.doc a {
  color: var(--teal-deep);
}

.foot {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 0.95rem;
}

.foot a {
  color: var(--teal-deep);
}

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

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .hero h1,
  .lede,
  .cta-row {
    animation: none;
  }
}
