/* Riffle site: always dark like the app, a faint glow of cover colours behind, a title and 3D phones in a
   cover-flow row on a mirroring floor. The system font: nothing to download. */
:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.6);
  --text-3: rgba(245, 245, 247, 0.36);
  --glow-1: #00d2ff;
  --glow-2: #3f5efb;
  --glow-3: #fc466b;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, "Helvetica Neue", Oxygen, "Fira Sans", "Droid Sans", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The now-playing glow: blurred cover colours behind the page. */
.glow {
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 34vmax at 50% 34%, color-mix(in srgb, var(--glow-1) 30%, transparent), transparent 70%),
    radial-gradient(38vmax 32vmax at 12% 60%, color-mix(in srgb, var(--glow-2) 24%, transparent), transparent 70%),
    radial-gradient(44vmax 36vmax at 88% 80%, color-mix(in srgb, var(--glow-3) 18%, transparent), transparent 70%);
  filter: blur(40px);
  opacity: 0.4;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--text-3); }
a:hover { text-decoration-color: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

h1 { font-weight: 600; letter-spacing: -0.03em; }
h1 span { color: var(--text-3); }

/* Header */
.top { display: flex; justify-content: center; padding: 28px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 24px; font-size: 15px; }
.top nav a { color: var(--text-2); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 64px 0 8px; }
/* App icon on a soft glow, with the name under it. */
.mark { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 56px; }
.mark img {
  width: 112px; height: 112px;
  border-radius: 25px; /* iOS icon corner, 22.4% */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 90px color-mix(in srgb, var(--glow-1) 22%, transparent);
}
.mark span { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-2); }
h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1; margin: 0 auto; max-width: 10em; }
/* Home headline: as big as the width allows, one line each on desktop. */
.hero h1 { font-size: clamp(34px, 9.4vw, 136px); line-height: 0.95; letter-spacing: -0.045em; max-width: none; }
.hero h1 span { display: block; } /* "played quietly." always on its own line */
.lead { font-size: clamp(18px, 2vw, 24px); color: var(--text-2); margin: 36px 0 0; }
.badge { display: inline-block; margin-top: 32px; }
.badge img { display: block; height: 50px; width: auto; }
/* Glass pill like the app's bottom bar, until the App Store badge goes in. */
.soon {
  display: inline-block;
  margin: 40px 0 0;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Cover-flow render (transparent, the mirror image included): the glow shows through. On phones it's drawn wider
   than the screen, so the middle phone stays big and the outer ones run off the edges, like the app's covers. */
.flow { margin: 16px auto 0; max-width: 1280px; overflow: hidden; }
.flow img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .flow { margin-left: -16px; margin-right: -16px; }
  .flow img { width: 180%; margin-left: -40%; }
}

/* Footer */
footer {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 24px 0 48px;
  font-size: 14px;
  color: var(--text-3);
}
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Text pages (privacy, support) */
.doc { max-width: 680px; margin: 0 auto; padding: 24px 0 96px; }
.doc h1 { font-size: clamp(44px, 7vw, 68px); margin: 0 0 12px; }
.doc .date { color: var(--text-3); font-size: 15px; margin: 0 0 48px; }
.doc h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin: 56px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero > :nth-child(2) { animation-delay: 0.08s; }
  .hero > :nth-child(3) { animation-delay: 0.16s; }
  .hero > :nth-child(4) { animation-delay: 0.24s; }
  .flow { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 480px) {
  .hero { padding: 48px 0 0; }
  .mark { margin-bottom: 40px; }
  .mark img { width: 88px; height: 88px; border-radius: 20px; }
}
