:root {
  --bg: #fbfbfd;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --button-bg: #1d1d1f;
  --button-fg: #fff;
  --glow: 22%;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #6e6e73;
    --button-bg: #f5f5f7;
    --button-fg: #1d1d1f;
    --glow: 30%;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-content: center;
  gap: 48px 32px;
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scroll-margin-top: 48px;
}

/* A soft wash of the app's color behind its icon. */
.app::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40px;
  width: 320px;
  height: 280px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) var(--glow), transparent), transparent);
  filter: blur(8px);
  pointer-events: none;
}

.icon {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.14));
}

h2 {
  margin: 18px 0 6px;
  font: 600 32px/1.1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
}

.tagline {
  /* Fills the card, so side-by-side download buttons line up. */
  flex-grow: 1;
  margin: 0 0 26px;
  max-width: 20em;
  color: var(--muted);
  font-size: 19px;
  text-wrap: balance;
}

.nowrap { white-space: nowrap; }

.download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.download::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v9M3.5 6.5 8 11l4.5-4.5M2 14.5h12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v9M3.5 6.5 8 11l4.5-4.5M2 14.5h12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.download:hover { opacity: 0.85; }
.download:active { transform: scale(0.97); }

.meta {
  min-height: 1.45em;
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* No release uploaded yet. */
.app.unreleased .download,
.app.unreleased .meta { visibility: hidden; }

/* Pliable's wordmark: Anybody, a variable font with a width axis (SIL OFL,
   fonts/), each letter wider than the last as if pulled from the right.
   Pointing at the card pulls it further; it springs back. */
@font-face {
  font-family: "Anybody";
  src: url("/fonts/Anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
.stretch {
  font-family: "Anybody", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 850;
  letter-spacing: 0;
}
.stretch span {
  display: inline-block;
  font-variation-settings: "wdth" var(--w);
  transition: font-variation-settings 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.app:hover .stretch span { font-variation-settings: "wdth" var(--pull); }
@media (prefers-reduced-motion: reduce) {
  .stretch span { transition: none; }
}
