/* Mobile homepage: a conversion page in the release-story language.
   Phones get this in place of the desktop homepage, without the site header or footer;
   nothing here reaches wider screens.
   Frames and slides are squares measured in container units, as in Studio's slides. */
.rh-landing { display: none; }

@media (max-width: 700px) {
    .r-home #rh-public-header, .r-home .site-footer, .r-home .rh-desktop { display: none; }
    .rh-landing { display: block; }
}

.rh-landing {
    --l-ink: #171615;
    --l-paper: #f4f1ea;
    --l-card: #fbf9f5;
    --l-teal: #1a8f8b;
    --l-mustard: #d9a441;
    --l-pale: #eadc86;
    --l-gutter: 6vw;
    font-family: var(--rh-sans);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}
.rh-landing :where(h1, h2, h3, p, ul, li) { margin: 0; padding: 0; font: inherit; color: inherit; list-style: none; }
.rh-landing img { display: block; max-width: none; }

/* Running header: mark, title and position, as on the Instagram slides. */
.rh-landing-run {
    position: absolute;
    z-index: 2;
    top: 5cqi;
    left: 6cqi;
    right: 6cqi;
    display: flex;
    align-items: center;
    gap: 2.4cqi;
    font-size: 3.3cqi;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.rh-landing-mark { flex: none; width: 3.4cqi; height: auto; }
.rh-landing-run-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rh-landing-run-index { font-variant-numeric: tabular-nums; }
.rh-landing-hero .rh-landing-run { top: calc(5cqi + env(safe-area-inset-top)); }
.rh-landing-frame .rh-landing-mark,
.rh-landing-ground--ink .rh-landing-mark { filter: invert(1); }

/* Note frames: track notes over artwork, swiped like a carousel post. The opening uses the
   homepage's sample records; Editors' Picks, near the end, use each pick's first illustrated note. */
.rh-landing-stage {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: var(--l-ink);
}
.rh-landing-stage::-webkit-scrollbar { display: none; }
.rh-landing-stage:focus-visible { outline-offset: -4px; }
.rh-landing-frame {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 1;
    overflow: hidden;
    container-type: inline-size;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--l-ink);
    color: var(--l-paper);
}
.rh-landing-frame::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: 28cqi;
    background: linear-gradient(180deg, rgba(8, 7, 6, 0.5) 0%, rgba(8, 7, 6, 0) 100%);
    pointer-events: none;
}
.rh-landing-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms ease; }
.rh-landing-art.is-loading, .rh-landing-art.is-error { opacity: 0; }
.rh-landing .rh-landing-frame-link { position: absolute; inset: 0; color: inherit; text-decoration: none; }
.rh-landing-frame-link:focus-visible { outline-offset: -4px; }
.rh-landing-pick-meta {
    position: absolute;
    z-index: 2;
    top: 12cqi;
    left: 6cqi;
    right: 6cqi;
    display: flex;
    align-items: center;
    gap: 1.4cqi;
    font-size: 3cqi;
    font-weight: 400;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(8, 7, 6, 0.5);
}
.rh-landing-pick-meta svg { flex: none; width: 4cqi; height: 4cqi; }
.rh-landing-pick-meta span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* The entry page's paper track card. */
.rh-landing-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4cqi;
    padding: 5cqi 5.4cqi 5.2cqi;
    border-radius: 0.8cqi;
    background: var(--l-card);
    color: var(--l-ink);
}
.rh-landing-frame .rh-landing-card { position: absolute; z-index: 2; left: 6cqi; right: 6cqi; bottom: 6cqi; }
.rh-landing-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 3cqi; }
.rh-landing .rh-landing-card-heading h3 {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 4.9cqi;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.045em;
}
.rh-landing-card-heading span { flex: none; color: color-mix(in srgb, currentColor 55%, transparent); font-size: 3.1cqi; font-weight: 400; letter-spacing: -0.01em; }
.rh-landing-card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 3.9cqi;
    font-weight: 400;
    line-height: 1.42;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

/* The pitch: one line and the App Store. */
.rh-landing-pitch { padding: 7vw var(--l-gutter) 9vw; }
.rh-landing .rh-landing-pitch h1 {
    margin: 0 0 6.5vw;
    padding: 0;
    color: var(--rh-ink);
    font: 500 clamp(2.8rem, 14.6vw, 4.4rem)/0.92 var(--rh-sans);
    letter-spacing: -0.062em;
    text-align: left;
}
.rh-landing .rh-landing-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 56px;
    padding: 0 1.2rem;
    border-radius: 8px;
    background: var(--l-ink);
    color: var(--l-paper);
    font: var(--rh-button-font);
    letter-spacing: var(--rh-button-tracking);
    text-decoration: none;
    transition: opacity 150ms ease;
}
.rh-landing .rh-landing-cta:active { opacity: 0.82; }
.rh-landing-cta svg { flex: none; width: 17px; height: 20px; margin-top: -3px; }
.rh-landing-free { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; color: var(--rh-muted); font-size: 0.8rem; font-weight: 400; letter-spacing: -0.01em; }
.rh-landing .rh-landing-free a { display: flex; align-items: center; gap: 0.3rem; color: var(--rh-ink); text-decoration: none; }
.rh-landing-free svg { flex: none; width: 18px; height: 18px; margin: -2px 0; }
body.dark-mode .rh-landing-pitch .rh-landing-cta { background: var(--rh-ink); color: var(--rh-paper); }

/* Feature slides: flat grounds, one line each, set like posters. */
.rh-landing-slide {
    --em-line: none;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    container-type: inline-size;
    background: var(--ground);
    color: var(--fg);
}
.rh-landing-ground--teal { --ground: var(--l-teal); --fg: var(--l-ink); --em: var(--l-paper); }
.rh-landing-ground--ink { --ground: var(--l-ink); --fg: var(--l-paper); --em: var(--l-mustard); }
.rh-landing-ground--mustard { --ground: var(--l-mustard); --fg: var(--l-ink); --em: var(--l-paper); }
.rh-landing-ground--pale { --ground: var(--l-pale); --fg: var(--l-ink); --em: var(--l-ink); --em-line: underline; }
.rh-landing-slide em {
    font-style: normal;
    color: var(--em);
    text-decoration: var(--em-line);
    text-decoration-thickness: 0.07em;
    text-underline-offset: 0.12em;
}
.rh-landing-stack {
    position: absolute;
    top: 13cqi;
    bottom: 6cqi;
    left: 6cqi;
    right: 6cqi;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4cqi;
}
.rh-landing-statement { font-weight: 500; text-wrap: pretty; }
.rh-landing-statement--xl { font-size: 19cqi; line-height: 0.9; letter-spacing: -0.064em; }
.rh-landing-statement--l { font-size: 10.6cqi; line-height: 0.96; letter-spacing: -0.06em; }
.rh-landing-statement--m { font-size: 7.8cqi; line-height: 1; letter-spacing: -0.055em; }
.rh-landing-detail { max-width: 84cqi; font-size: 5.8cqi; line-height: 1.08; letter-spacing: -0.045em; text-wrap: pretty; }
.rh-landing-figure { margin-left: -1cqi; font-size: 40cqi; line-height: 0.8; letter-spacing: -0.075em; font-variant-numeric: lining-nums; white-space: nowrap; }
.rh-landing-figure-note { margin-top: 4cqi; color: color-mix(in srgb, var(--fg) 62%, transparent); font-size: 4.4cqi; font-weight: 400; letter-spacing: -0.02em; }

/* The artist verification seal, set as the slide's picture. */
.rh-landing-seal { align-self: flex-start; width: 26cqi; height: 26cqi; color: #9a8460; }

/* Artist account claim, continuing the ink slide above it. */
.rh-landing-claim { margin-top: -1px; padding: 0 var(--l-gutter) 7vw; background: var(--l-ink); color: var(--l-paper); }
.rh-landing-claim summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    border-top: 1px solid rgba(244, 241, 234, 0.16);
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    list-style: none;
    cursor: pointer;
}
.rh-landing-claim summary::-webkit-details-marker { display: none; }
.rh-landing-claim summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform 180ms ease; }
.rh-landing-claim[open] summary::after { transform: rotate(45deg); }
.rh-landing-claim form { padding-top: 0.4rem; }
.rh-landing-claim label { display: block; margin-bottom: 0.3rem; color: rgba(244, 241, 234, 0.6); font-size: 0.75rem; font-weight: 400; }
.rh-landing-claim-field { display: flex; align-items: center; gap: 0.45rem; min-height: 48px; border-bottom: 1px solid rgba(244, 241, 234, 0.35); }
.rh-landing-claim-field:focus-within { border-bottom-color: var(--l-paper); }
.rh-landing .rh-landing-claim-field input { flex: 1; min-width: 0; padding: 0.5rem 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font: 400 16px/1.3 var(--rh-sans); outline: none; }
.rh-landing .rh-landing-claim-field button { flex: none; min-height: 44px; padding: 0 0 0 0.6rem; border: 0; background: transparent; color: inherit; font: 500 0.85rem/1 var(--rh-sans); letter-spacing: -0.02em; }
.rh-landing .rh-landing-claim-field button:disabled { opacity: 0.5; }
.rh-landing-claim .rh-invite-trap { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rh-landing .rh-landing-claim-status { margin-top: 0.75rem; font-size: 0.8rem; font-weight: 400; line-height: 1.5; }
.rh-landing-claim-status.is-error { color: #e3a08a; }
.rh-landing-claim-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Board: a scrollable rail of artist subjects beneath the headline. */
.rh-landing-stack--board { right: 0; bottom: auto; justify-content: flex-start; gap: 7cqi; }
.rh-landing-artist-rail {
    display: flex;
    gap: 3cqi;
    width: 94cqi;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.rh-landing-artist-rail::-webkit-scrollbar { display: none; }
.rh-landing-artist-rail figure { flex: 0 0 38cqi; margin: 0; scroll-snap-align: start; }
.rh-landing-artist-rail img { width: 38cqi; height: 60cqi; object-fit: cover; background: color-mix(in srgb, var(--fg) 10%, transparent); }
.rh-landing-artist-rail figcaption { margin-top: 2cqi; overflow: hidden; font-size: 3.8cqi; line-height: 1.1; letter-spacing: -0.025em; text-overflow: ellipsis; white-space: nowrap; }

/* The app, set like the record at the end of a story. */
.rh-landing-icon { align-self: flex-start; width: 30cqi; height: 30cqi; border-radius: 22.4%; box-shadow: 0 2cqi 5cqi rgba(0, 0, 0, 0.18); }
.rh-landing .rh-landing-app-title { margin: 0; color: inherit; font: 500 12cqi/0.95 var(--rh-sans); letter-spacing: -0.062em; }
.rh-landing-app-lines { display: grid; gap: 0.4cqi; margin: 2.4cqi 0 5cqi; color: color-mix(in srgb, var(--fg) 68%, transparent); font-size: 4cqi; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }

/* In place of the site footer. */
.rh-landing-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem var(--l-gutter) max(0.4rem, env(safe-area-inset-bottom));
    color: var(--rh-muted);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.rh-landing-legal nav { display: flex; gap: 1.1rem; }
.rh-landing .rh-landing-legal a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }

/* Once the pitch has scrolled away, the App Store stays one tap away. */
.rh-landing-dock {
    position: fixed;
    z-index: 60;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 8px;
    border-radius: 14px;
    background: rgba(23, 22, 21, 0.94);
    color: var(--l-paper);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(12px);
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}
.rh-landing .rh-landing-dock { color: var(--l-paper); text-decoration: none; }
.rh-landing-dock.is-visible { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms ease, transform 200ms ease; }
.rh-landing-dock img { flex: none; width: 40px; height: 40px; border-radius: 9px; }
.rh-landing-dock-name { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.rh-landing-dock-name span:first-child { font-size: 15px; letter-spacing: -0.03em; }
.rh-landing-dock-name span:last-child { color: rgba(244, 241, 234, 0.6); font-size: 12px; font-weight: 400; letter-spacing: -0.01em; }
.rh-landing-dock-get { flex: none; padding: 7px 18px; border-radius: 999px; background: var(--l-paper); color: var(--l-ink); font: var(--rh-compact-button-font); letter-spacing: var(--rh-button-tracking); }

@media (prefers-reduced-motion: reduce) {
    .rh-landing *, .rh-landing *::before, .rh-landing *::after { transition: none !important; }
}
