:root {
  --ground: #070c14;
  --ground-2: #0c1523;
  --paper: #f4efe5;
  --dim: #a3b2c6;
  --dimmer: #8494a9;
  --line: rgba(146, 162, 184, 0.22);
  --line-soft: rgba(146, 162, 184, 0.12);
  --gold: #e8b75f;
  --gold-deep: #c8933c;
  --shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.85);
  --sans: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: #05090f;
  scrollbar-color: var(--dimmer) var(--ground);
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(120% 62% at 50% -14%, rgba(232, 183, 95, 0.16) 0%, rgba(232, 183, 95, 0) 62%),
    linear-gradient(180deg, var(--ground-2) 0%, var(--ground) 34%, #05090f 100%);
  background-repeat: no-repeat;
  background-color: #05090f;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #0a1018; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.shell {
  width: 100%;
  max-width: 34rem;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: clamp(2.75rem, 11vw, 5.5rem) clamp(1.25rem, 6vw, 2rem) 3.5rem;
}

/* Masthead ---------------------------------------------------------- */

.mark {
  display: block;
  margin: 0 0 1.5rem;
  color: var(--gold);
}

h1 {
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}

.lede {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 32ch;
  color: var(--paper);
}

/* Download ---------------------------------------------------------- */

.get { margin-top: clamp(2rem, 7vw, 2.75rem); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #10161f;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), filter 0.32s var(--ease);
}

.btn svg { flex: none; }

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 24px 52px -18px rgba(232, 183, 95, 0.45);
}

.btn:active { transform: translateY(0); }

.meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.25rem;
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}

.meta dt { color: var(--dimmer); }
.meta dd { margin: 0; color: var(--dim); }

.meta .hash {
  grid-column: 1 / -1;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  word-break: break-all;
  color: var(--dimmer);
  padding-top: 0.4rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 0.2rem;
}

.fresh {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--dimmer);
}

.fresh.is-stale { opacity: 0.75; }

/* Footer ------------------------------------------------------------ */

footer {
  margin-top: auto;
  padding-top: clamp(2rem, 8vw, 3rem);
  border-top: 1px solid var(--line-soft);
  color: var(--dimmer);
  font-size: 0.8125rem;
}

footer p { margin: 0 0 0.375rem; }
footer p:last-child { margin-bottom: 0; }

/* Motion ------------------------------------------------------------ */

.rise { animation: rise 1s var(--ease) backwards; }

.mark.rise { animation-delay: 0s; }
h1.rise { animation-delay: 0.08s; }
.lede.rise { animation-delay: 0.16s; }
.get.rise { animation-delay: 0.24s; }

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

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .btn { transition: none; }
}
