:root {
  --ink: #14241c;
  --muted: #3e5649;
  --paper: #f3f6f1;
  --accent: #16382c;
  --accent-hover: #0e2820;
  --line: rgba(20, 36, 28, 0.14);
}

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

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

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Literata", "Iowan Old Style", Palatino, serif;
  background:
    radial-gradient(1100px 640px at 115% -8%, #b9d8c8 0%, transparent 58%),
    radial-gradient(820px 520px at -18% 112%, #d7e6c4 0%, transparent 52%),
    linear-gradient(168deg, var(--paper) 0%, #dce8df 52%, #c5d9cc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
  animation: drift 28s linear infinite;
}

.stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 7vh, 5.5rem);
}

.brand {
  margin: 0 0 0.35rem;
  font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
  font-weight: 720;
  font-size: clamp(3.4rem, 18vw, 11.5rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  animation: rise 0.7s ease both;
}

h1 {
  margin: 0.6rem 0 0;
  max-width: 16ch;
  font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
  font-weight: 560;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  animation: rise 0.7s ease 0.12s both;
}

.lead {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  animation: rise 0.7s ease 0.22s both;
}

.lead + .lead {
  margin-top: 0.45rem;
}

.actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  animation: rise 0.7s ease 0.34s both;
}

.download[hidden],
.pending[hidden],
.others[hidden] {
  display: none !important;
}

.download {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  background: var(--accent);
  color: #f4f8f3;
  text-decoration: none;
  font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
  font-weight: 560;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.download:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.download:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.pending {
  margin: 0;
  font-family: "Bricolage Grotesque", "Avenir Next", sans-serif;
  font-size: 1.05rem;
  font-weight: 560;
}

.others {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.others a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.soon {
  color: var(--muted);
}

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

@keyframes drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@media (max-width: 640px) {
  .stage {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  h1,
  .lead,
  .actions,
  body::before {
    animation: none;
  }

  .download {
    transition: none;
  }
}
