:root {
  --ink: #07110f;
  --ink-soft: #10201c;
  --foam: #d7ece4;
  --foam-dim: #9fb8ae;
  --mint: #6fbfa8;
  --mint-deep: #2f7a67;
  --glow: rgba(111, 191, 168, 0.22);
  color: var(--foam);
  background: var(--ink);
  font-family: Sora, "Segoe UI", sans-serif;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

a {
  color: var(--mint);
}

.home {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 50% at 50% 12%, var(--glow), transparent 70%),
    radial-gradient(ellipse 45% 40% at 88% 78%, rgba(47, 122, 103, 0.2), transparent 68%),
    linear-gradient(165deg, #0b1a16 0%, var(--ink) 48%, #081310 100%);
  animation: shift 16s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(215, 236, 228, 0.08) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(215, 236, 228, 0.07) 0 1px, transparent 1.5px);
  background-size: 42px 42px, 56px 56px;
  mask-image: radial-gradient(circle at 50% 35%, #000 15%, transparent 75%);
  animation: drift 22s linear infinite;
}

.home > main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: min(78vh, 40rem);
}

.mark {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(5.5rem, 22vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--mint);
  animation: rise 700ms ease-out both;
}

.brand {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  animation: rise 700ms ease-out 60ms both;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.7rem, 4.8vw, 2.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--foam);
  animation: rise 700ms ease-out 120ms both;
}

.support {
  margin: 0;
  max-width: 36ch;
  color: var(--foam-dim);
  font-size: 1.05rem;
  animation: rise 700ms ease-out 180ms both;
}

.apps {
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 8px 24px 48px;
  animation: rise 700ms ease-out 240ms both;
}

.apps h2 {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foam-dim);
}

.app-link {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid rgba(215, 236, 228, 0.14);
  border-bottom: 1px solid rgba(215, 236, 228, 0.14);
  color: inherit;
  text-decoration: none;
}

.app-link:hover .app-name,
.app-link:focus-visible .app-name {
  color: var(--mint);
}

.app-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.app-blurb {
  color: var(--foam-dim);
}

.app-cta {
  margin-top: 6px;
  color: var(--mint);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(215, 236, 228, 0.08);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-links a,
.brand-link a,
.page-back a {
  text-decoration: none;
}

.site-footer-links a:hover,
.brand-link a:hover,
.page-back a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin: 0;
  color: var(--foam-dim);
  font-size: 0.85rem;
}

.page {
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page.narrow {
  width: min(100%, 38rem);
}

.brand-link {
  margin: 0 0 28px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.8rem;
}

.page h1 {
  margin: 0 0 12px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.page h2 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--mint);
}

.lede {
  margin: 0 0 18px;
  font-size: 1.15rem;
  color: var(--foam-dim);
}

.page p,
.page li {
  color: var(--foam);
}

.page ul {
  margin: 0;
  padding-left: 1.2rem;
}

.page li + li {
  margin-top: 10px;
}

.muted {
  color: var(--foam-dim);
  font-size: 0.95rem;
}

.contact-email {
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-email:hover,
.contact-email:focus-visible {
  text-decoration: underline;
}

.page-back {
  margin-top: 36px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shift {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.15) brightness(1.05);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-18px, 12px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .atmosphere::after,
  .mark,
  .brand,
  .hero h1,
  .support,
  .apps {
    animation: none;
  }
}
