:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #1c1c1e; background: #f5f5f7; -webkit-tap-highlight-color: transparent; } body { margin: 0; } /* In the docs' phone frame: no desktop scrollbars. */ html, .carousel { scrollbar-width: none; } a { color: inherit; text-decoration: none; } .bar { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; gap: 6px; height: 64px; padding: 8px 18px 0; box-sizing: border-box; background: rgb(245 245 247 / 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid #e5e5ea; } /* The props, one select each: three across a phone. */ .bar label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 10px; color: #6e6e73; overflow: hidden; white-space: nowrap; } .bar select { width: 100%; font-size: 12px; } .hint { position: fixed; inset: auto 0 0; z-index: 10; margin: 0; padding: 8px; font-size: 12px; text-align: center; color: #6e6e73; background: rgb(245 245 247 / 0.9); pointer-events: none; } .page { /* svh: Safari's 100vh is the height with its toolbar hidden, which left a short page a little scroll with the toolbar shown. */ min-height: 100vh; min-height: 100svh; padding: 76px 16px 48px; box-sizing: border-box; background: #f5f5f7; } h1 { margin: 8px 0 16px; } h2 { margin: 24px 0 8px; font-size: 15px; color: #6e6e73; } .cover, .hero { display: block; background: linear-gradient( 135deg, hsl(var(--hue) 70% 60%), hsl(calc(var(--hue) + 40) 70% 45%) ); } .carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px 4px; } [data-stack-animating] .carousel { overflow-x: hidden; } .tile { flex: 0 0 120px; font-size: 13px; scroll-snap-align: start; } .tile .cover { height: 120px; margin-bottom: 6px; border-radius: 12px; } .list { margin: 0; padding: 0; list-style: none; } .list a { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e5e5ea; } .list .cover { width: 48px; height: 48px; border-radius: 8px; } .list small { display: block; color: #6e6e73; } .back { border: 0; padding: 4px 0; font-size: 17px; color: #007aff; background: none; } .hero { height: 200px; border-radius: 16px; } .tabs { display: flex; gap: 8px; } .tabs button { flex: 1; padding: 8px; border: 0; border-radius: 8px; background: #e5e5ea; text-transform: capitalize; } .tabs [aria-pressed="true"] { color: #fff; background: #1c1c1e; } .tracks { padding: 0; list-style: none; } .tracks a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #e5e5ea; } .artist { display: block; margin: -8px 0 16px; color: #007aff; } .chips { display: flex; flex-wrap: wrap; gap: 8px; } .chips a { padding: 6px 12px; border-radius: 999px; background: #e5e5ea; } .disc { width: 220px; height: 220px; margin: 8px auto 16px; border-radius: 50%; background: radial-gradient(circle, #f5f5f7 12%, transparent 13%), conic-gradient( from 0deg, hsl(var(--hue) 70% 55%), hsl(calc(var(--hue) + 60) 70% 45%), hsl(var(--hue) 70% 55%) ); } .note { box-sizing: border-box; width: 100%; margin: 16px 0; padding: 12px; border: 1px solid #d1d1d6; border-radius: 10px; font-size: 16px; } .next { display: block; padding: 14px; border-radius: 12px; color: #fff; background: #007aff; text-align: center; } /* Where a mouse drag swipes: the stack's 20px edge zone, drawn only. */ @media (pointer: fine) { html[data-swipe="edge"] body::after { content: ""; position: fixed; inset: 0 auto 0 0; width: 20px; pointer-events: none; background: linear-gradient(to right, rgb(0 122 255 / 0.15), transparent); } }