/* Home Art refresh layer. Built on the existing tokens so light and midnight exhibition themes both work. */
body { --accent-ink: var(--accent); }
body[data-exhibition-theme="light"] { --accent-ink: #7a5b17; }

/* Legibility: the pale gold used on dark heroes was unreadable on light pages. */
main .eyebrow:not(.hero-copy .eyebrow) { color: var(--accent-ink); font-size: 12px; }
button.save { color: var(--ink); background: var(--panel); border: 1px solid var(--line); font-size: 15px; min-height: 44px; padding: 0 18px; border-radius: 999px; }
.art-tile h3, .room-mini h3 { font-size: 16px; line-height: 1.25; }
.art-tile p, .room-mini p, .room-mini small { font-size: 14px; }
.caption { font-size: 14px; }

/* Paintings sit on a darkened tint of their own colour instead of white bars. */
.tinted { background: var(--tint, transparent); }
.art-tile img, .room-mini img { object-fit: contain; background: var(--tint, var(--panel)); }

.rf-frame { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--panel); border: 0; padding: 0; }
.rf-frame img, .rf-frame .art-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.rf-frame.hero { aspect-ratio: 3 / 2; border-radius: 16px; }
.rf-frame.wide { aspect-ratio: 16 / 10; }

.rf-kicker { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--accent-ink); margin: 26px 0 6px; }
.rf-home h1 { font-size: 34px; line-height: 1.08; margin: 0 0 16px; }
.rf-lede { font-size: 17px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.rf-section h2 { font-size: 24px; margin: 0 0 14px; }

/* On your walls now (home Wi-Fi) */
.rf-walls { display: grid; gap: 18px; }
@media (min-width: 760px) { .rf-walls { grid-template-columns: 1fr 1fr; } }
.rf-wall { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .55); }
.rf-wall-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 4px 12px; }
.rf-wall-head h2 { margin: 0; font-size: 18px; }
.rf-wall-link { display: block; color: inherit; text-decoration: none; }
.rf-wall-copy { padding: 14px 6px 4px; }
.rf-wall-copy h3 { font-size: 23px; line-height: 1.2; margin: 0 0 4px; }
.rf-by { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.rf-hook { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.rf-more { font-weight: 600; font-size: 15px; color: var(--accent-ink); }
.rf-note { font-size: 13.5px; line-height: 1.4; color: var(--muted); margin: 10px 6px 4px; }
.rf-pill { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.rf-pill.live { background: #1f6b4f; color: #fff; }
.rf-pill.live.soft { background: #3b6b5c; }
.rf-pill.warn { background: #7a5b17; color: #fff; }

/* Showcase (remote) */
.rf-stats { display: flex; gap: 10px; margin: 18px 0 26px; }
.rf-stats div { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; }
.rf-stats strong { display: block; font: 700 30px Georgia, serif; }
.rf-stats span { font-size: 13px; color: var(--muted); }
.rf-ex-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .rf-ex-grid { grid-template-columns: 1fr 1fr; } }
.rf-ex { display: block; color: var(--ink); text-decoration: none; }
.rf-ex h3 { font-size: 20px; margin: 10px 2px 2px; }
.rf-ex p { font-size: 14px; color: var(--muted); margin: 0 2px; }

/* Horizontal strips */
.rf-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -22px; padding: 4px 22px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rf-strip::-webkit-scrollbar { display: none; }
.rf-tile { flex: 0 0 66%; max-width: 270px; scroll-snap-align: start; color: var(--ink); text-decoration: none; }
.rf-tile h3 { font-size: 16px; line-height: 1.25; margin: 10px 2px 2px; }
.rf-tile p { font-size: 14px; color: var(--muted); margin: 0 2px; }

/* Artwork page */
.rf-art { max-width: 720px; margin: 0 auto; }
.rf-hero { cursor: zoom-in; }
.rf-label { padding: 18px 2px 4px; }
.rf-artist { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); text-decoration: none; margin: 0 0 6px; }
.rf-label h1 { font-size: 34px; line-height: 1.1; margin: 0 0 8px; }
.rf-meta { font-size: 16px; color: var(--muted); margin: 0; }
.rf-chapter { font-size: 14px; color: var(--muted); font-style: italic; margin: 6px 0 0; }
.rf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.rf-listen { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 0 18px; font-size: 15px; }
.rf-hook-big { font: italic 24px/1.35 Georgia, serif; margin: 24px 0; padding-left: 16px; border-left: 3px solid var(--accent-ink); }
.rf-layer { margin: 28px 0; }
.rf-layer h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 8px; }
.rf-layer p { font-size: 17px; line-height: 1.6; margin: 0; }
.rf-layer.look { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.rf-caveat { font-size: 13px; line-height: 1.5; color: var(--muted); font-style: italic; }
.rf-foot { margin: 30px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.rf-foot p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.rf-source { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--accent-ink); }

/* Full-screen viewer */
body.rf-lock { overflow: hidden; }
.rf-viewer { position: fixed; inset: 0; z-index: 50; background: #000; overflow: auto; display: flex; touch-action: pan-x pan-y pinch-zoom; }
.rf-viewer img { margin: auto; max-width: 100%; max-height: 100vh; object-fit: contain; }
.rf-viewer.zoom img { max-width: none; max-height: none; width: 240%; }
.rf-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 51; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: #111; font-size: 15px; }
.rf-hint { position: fixed; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: #cfcfcf; margin: 0; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  #screen.rf-in { animation: rf-in .35s ease both; }
  @keyframes rf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Home and artwork pages are light: do not inherit the pale accent of the last exhibition theme. */
body:has(.rf-home), body:has(.rf-art) { --accent: #1f6b4f; --accent-ink: #6d5214; }
header.rf-label, footer.rf-foot { position: static; display: block; top: auto; background: none; backdrop-filter: none; box-shadow: none; z-index: auto; height: auto; }
header.rf-label { border: 0; padding: 18px 2px 4px; }
footer.rf-foot { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }

.rf-wall-primary { border-color: var(--accent); }
.rf-wall-primary .rf-frame.hero { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .rf-wall-primary { grid-column: 1 / -1; } .rf-wall-primary .rf-frame.hero { aspect-ratio: 16 / 9; } }
.rf-new { display: inline-block; margin: 0 4px 10px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
