:root {
  --ink: #1c2622;
  --ink-soft: #3d4a44;
  --leaf: #2f5c4a;
  --leaf-hover: #1f4336;
  --paper: #f2f4f0;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
    serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica,
    sans-serif;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 12% 8%, rgba(90, 130, 110, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 18%, rgba(160, 150, 120, 0.16), transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(70, 100, 90, 0.12), transparent 55%),
    linear-gradient(165deg, #eef1eb 0%, #e0e5dc 48%, #d5ddd4 100%);
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

@keyframes atmosphere-drift {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }
  to {
    filter: hue-rotate(8deg) saturate(1.05);
  }
}

.shell {
  flex: 1;
  width: min(36rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 18vh, 8rem) 0 3rem;
}

.hero {
  animation: rise 0.9s ease-out both;
}

.mark {
  margin: 0 0 1.25rem;
}

.mark img {
  display: block;
  width: 3rem;
  height: 3rem;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.75rem, 9vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 3.2vw, 1.4rem);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 28ch;
  color: var(--ink-soft);
}

.cta {
  margin: 2.25rem 0 0;
  animation: rise 0.9s ease-out 0.15s both;
}

.email {
  display: inline-block;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--leaf);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.email:hover,
.email:focus-visible {
  color: var(--leaf-hover);
  border-bottom-color: currentColor;
  outline: none;
}

.apps {
  margin-top: clamp(3.5rem, 10vh, 5.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(28, 38, 34, 0.14);
  animation: rise 0.9s ease-out 0.28s both;
}

.apps h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.apps ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.apps li {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.apps a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

.apps a:hover,
.apps a:focus-visible {
  color: var(--leaf);
  outline: none;
}

footer {
  width: min(36rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

footer p {
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

footer a:hover,
footer a:focus-visible {
  color: var(--leaf);
  outline: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .hero,
  .cta,
  .apps {
    animation: none;
  }
}
