/* Shared visual foundation. Legacy accent names remain compatible. */
:root {
    --bg: #17191d;
    --bg-elev: #202329;
    --bg-soft: #2b2e35;
    --text: #f5f2e9;
    --cream: #f5f2e9;
    --text-soft: #d5dcd4;
    --text-muted: #b6bfb6;
    --accent: #d5b779;
    --accent-hover: #ead4a7;
    --premium: #d5b779;
    --gold: var(--accent);
    --gold-light: var(--accent-hover);
    --gold-dark: #96723c;
    --border: #383b42;
    --border-strong: #68635a;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --gradient-gold: linear-gradient(135deg, var(--accent), #ead4a7);
    --gradient-bg: linear-gradient(180deg, #1b1e24, #17191d);
}
body { background-attachment: scroll; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 5px; }
#main-content:focus { outline: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 12px 20px; background: var(--accent); color: #101413; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.hero-header { background: rgba(23,25,29,.94); padding: 12px 0; }
.nav-links { gap: 8px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: .86rem; }
.brand-sub { color: var(--premium); }
.btn { min-height: 48px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.btn-primary { background: var(--accent); color: #101413; box-shadow: none; }
.btn-primary:hover { background: var(--accent-hover); color: #101413; transform: translateY(-2px); box-shadow: none; }
.btn-secondary { border-color: var(--border-strong); }
.section-panel { padding: clamp(48px, 6vw, 80px) 0; }
.card { box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.home-intro { padding: 40px 0 16px; }
.editorial-hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.editorial-copy { padding: 32px 0; }
.editorial-copy .eyebrow { font-size: .65rem; letter-spacing: .16em; }
.editorial-copy h1 { font-size: clamp(2.8rem, 4.7vw, 4.8rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 24px; }
.editorial-copy h1 em { font-weight: 500; color: var(--accent); }
.editorial-copy > p { max-width: 440px; font-size: 1.08rem; line-height: 1.8; color: var(--text-muted); }
.editorial-copy .btn-group { margin: 28px 0 24px; }
.hero-note { display: flex; gap: 12px; max-width: 440px; font-size: .78rem; color: var(--text-muted); }
.hero-note > span { color: var(--premium); }
.editorial-visual { position: relative; aspect-ratio: 4/5; max-height: 620px; border-radius: 140px 24px 24px 24px; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--border); }
.editorial-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,17,13,.95)); pointer-events: none; }
.editorial-portrait { width: 100%; height: 100%; object-fit: cover; }
.portrait-caption { position: absolute; bottom: 32px; left: 32px; right: 24px; z-index: 1; display: grid; gap: 8px; }
.portrait-caption .eyebrow { margin: 0; font-size: .65rem; }
.portrait-caption strong { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 500; line-height: 1.2; }
.portrait-caption > span:last-child { color: var(--text-soft); font-size: .82rem; }
.editorial-art { height: 100%; display: grid; place-items: center; background: radial-gradient(ellipse at 60% 20%, #476c50, #192b20 45%, #101413); }
.editorial-art > span { font: italic 19rem 'Playfair Display', serif; color: var(--premium); opacity: .55; transform: rotate(-10deg); }
.discovery-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.discovery-strip a { padding: 24px; display: grid; gap: 8px; transition: background .2s; }
.discovery-strip a:first-child { padding-left: 0; }
.discovery-strip a + a { border-left: 1px solid var(--border); }
.discovery-strip a:hover { background: rgba(133,200,161,.04); }
.discovery-strip span { color: var(--text-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.discovery-strip strong { font-weight: 500; font-size: .94rem; }
.artist-media { isolation: isolate; }
.faq-a[hidden] { display: none; }
/* Content remains readable if JavaScript is unavailable. */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
    [data-reveal].is-visible { animation: refined-reveal .45s var(--ease) both; }
}
@keyframes refined-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
    .editorial-hero { gap: 28px; }
    .editorial-copy .btn-group { flex-wrap: wrap; }
    .editorial-copy h1 { font-size: 2.7rem; }
}
@media (max-width: 640px) {
    .home-intro { padding-top: 16px; }
    .editorial-hero { grid-template-columns: 1fr; gap: 12px; }
    .editorial-copy { padding: 16px 0; }
    .editorial-copy h1 { font-size: clamp(2.3rem, 9vw, 3.3rem) !important; }
    .editorial-visual { aspect-ratio: 5/4; border-radius: 80px 20px 20px 20px; }
    .editorial-portrait { object-position: center 25%; }
    .portrait-caption { left: 24px; bottom: 24px; }
    .discovery-strip { grid-template-columns: 1fr; margin-top: 24px; }
    .discovery-strip a, .discovery-strip a:first-child { padding: 18px 0; }
    .discovery-strip a + a { border-left: none; border-top: 1px solid var(--border); }
    .artist-card.card { padding: 0 !important; }
}
/* Ivory editorial homepage; transactional screens retain dark surfaces. */
:is(.home-page, .editorial-page) {
    --bg: #f5f2eb;
    --bg-elev: #fffdf8;
    --bg-soft: #ebe6dc;
    --text: #25272b;
    --cream: #25272b;
    --text-soft: #50514f;
    --text-muted: #666760;
    --accent: #886332;
    --accent-hover: #674820;
    --premium: #886332;
    --border: #ded9ce;
    --border-strong: #aaa18f;
    --surface: #fffdf8;
    --surface-strong: #eee9df;
    background: var(--bg);
    color: var(--text);
}
:is(.home-page, .editorial-page) .container-wide { width: min(1240px, calc(100% - 64px)); }
:is(.home-page, .editorial-page) .hero-header { background: rgba(245,242,235,.96); border-bottom: 1px solid var(--border); box-shadow: none !important; }
:is(.home-page, .editorial-page) .brand-name { color: #25272b; }
:is(.home-page, .editorial-page) .brand-mark { filter: none; }
:is(.home-page, .editorial-page) .nav-links a { color: #5d5e59; font-weight: 500; }
:is(.home-page, .editorial-page) .nav-links a:hover, :is(.home-page, .editorial-page) .nav-links a.active { color: #886332; }
:is(.home-page, .editorial-page) .nav-cta { color: #25272b; background: transparent; border: 1px solid #b7afa0; border-radius: 8px; box-shadow: none; padding: 10px 22px; }
:is(.home-page, .editorial-page) .home-intro { padding: clamp(28px, 4vh, 48px) 0 8px; }
:is(.home-page, .editorial-page) .editorial-hero { grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 80px); }
:is(.home-page, .editorial-page) .editorial-copy { padding: 20px 0; }
:is(.home-page, .editorial-page) .editorial-copy .eyebrow { font-size: .62rem; letter-spacing: .16em; margin-bottom: 22px; }
:is(.home-page, .editorial-page) .editorial-copy h1 { font-size: clamp(2.7rem, 4.1vw, 4rem); line-height: 1.12; max-width: 14ch; letter-spacing: -.04em; margin-bottom: 20px; }
:is(.home-page, .editorial-page) .editorial-copy h1 em { color: #886332; }
:is(.home-page, .editorial-page) .editorial-copy > p { font-size: 1rem; line-height: 1.75; max-width: 400px; }
:is(.home-page, .editorial-page) .btn { border-radius: 8px; font-size: .86rem; padding: 13px 23px; min-height: 48px; }
:is(.home-page, .editorial-page) .btn-primary { color: #fffdf8; background: #25272b; }
:is(.home-page, .editorial-page) .btn-primary:hover { color: #fffdf8; background: #886332; }
:is(.home-page, .editorial-page) .btn-secondary { color: #25272b; border-color: #b7afa0; }
:is(.home-page, .editorial-page) .editorial-copy .btn-group { gap: 12px; margin: 26px 0 22px; }
:is(.home-page, .editorial-page) .hero-note { font-size: .72rem; max-width: 360px; }
:is(.home-page, .editorial-page) .editorial-visual { height: clamp(360px, 57vh, 510px); aspect-ratio: auto; border-radius: 8px; border: none; box-shadow: 16px 16px 0 #e9e3d7; }
:is(.home-page, .editorial-page) .editorial-portrait { object-position: center 24%; }
:is(.home-page, .editorial-page) .editorial-visual::after { background: linear-gradient(180deg, transparent 50%, rgba(23,25,29,.87)); }
:is(.home-page, .editorial-page) .portrait-caption { bottom: 26px; left: 28px; }
:is(.home-page, .editorial-page) .portrait-caption strong { color: #fffaf0; font-size: 1.9rem; }
:is(.home-page, .editorial-page) .portrait-caption .eyebrow { color: #e5c995; }
:is(.home-page, .editorial-page) .portrait-caption > span:last-child { color: #e5e0d6; }
:is(.home-page, .editorial-page) .editorial-art { background: radial-gradient(ellipse at 60% 20%, #776146, #35302b 55%, #17191d); }
:is(.home-page, .editorial-page) .editorial-art > span { color: #e5c995; }
:is(.home-page, .editorial-page) .discovery-strip { margin-top: 42px; }
:is(.home-page, .editorial-page) .discovery-strip a { padding-top: 20px; padding-bottom: 20px; }
:is(.home-page, .editorial-page) .discovery-strip a:hover { background: #eee9df; }
:is(.home-page, .editorial-page) .section-panel.alt { background: #eee9e0; }
:is(.home-page, .editorial-page) .card, :is(.home-page, .editorial-page) .news-card, :is(.home-page, .editorial-page) .testimonial { background: #fffdf8; border-color: #ded9ce; box-shadow: 0 4px 20px rgba(37,39,43,.035); }
:is(.home-page, .editorial-page) .artist-caption h3 { color: #fffaf0; }
:is(.home-page, .editorial-page) .artist-caption p { color: #e5e0d6; }
:is(.home-page, .editorial-page) .artist-badge, :is(.home-page, .editorial-page) .news-tag { background: #25272b; color: #f5f2eb; }
:is(.home-page, .editorial-page) .testimonial-quote { color: #50514f; }
:is(.home-page, .editorial-page) .testimonial-avatar { background: #eee9df; color: #886332; }
:is(.home-page, .editorial-page) .faq-item { border-color: #ded9ce; }
:is(.home-page, .editorial-page) .faq-q { color: #25272b; }
:is(.home-page, .editorial-page) .alert { background: #ebe6dc; color: #50514f; border-color: #ded9ce; }
:is(.home-page, .editorial-page) .site-footer {
    --cream: #f5f2eb;
    --text-soft: #d5d2cb;
    --text-muted: #b6b3ac;
    --border: #383b42;
    background: #202329;
    color: #f5f2eb;
}
:is(.home-page, .editorial-page) .site-footer .brand-name { color: #f5f2eb; }
:is(.home-page, .editorial-page) .site-footer a { color: #d5d2cb; }
:is(.home-page, .editorial-page) .nav-bell { background: #ebe6dc; color: #25272b; }
:is(.home-page, .editorial-page) .nav-bell-panel { --cream: #f5f2eb; --text-soft: #d5d2cb; --text-muted: #b6b3ac; background: #202329; }
#pp-chat .pp-fab-core { background: #d5b779; box-shadow: 0 8px 24px rgba(23,25,29,.18); }
#pp-chat .pp-fab-ring { display: none; }
@media (max-width: 1100px) {
    :is(.home-page, .editorial-page) #primary-nav a { color: #50514f !important; background: #eee9df !important; border-color: #ded9ce !important; }
    :is(.home-page, .editorial-page) #primary-nav a.active { color: #fffdf8 !important; background: #25272b !important; box-shadow: none !important; }
    :is(.home-page, .editorial-page) .nav-cta { background: #25272b !important; color: #fffdf8 !important; box-shadow: none !important; }
}
@media (max-width: 760px) {
    :is(.home-page, .editorial-page) .container-wide { width: calc(100% - 32px); padding-left: 0 !important; padding-right: 0 !important; }
    :is(.home-page, .editorial-page) .editorial-hero { grid-template-columns: 1fr; gap: 24px; }
    :is(.home-page, .editorial-page) .editorial-copy h1 { font-size: clamp(2.4rem, 7.5vw, 3.6rem) !important; max-width: 17ch; }
    :is(.home-page, .editorial-page) .editorial-visual { height: 380px; box-shadow: 8px 8px 0 #e9e3d7; margin-right: 8px; }
    :is(.home-page, .editorial-page) .discovery-strip { grid-template-columns: 1fr; margin-top: 32px; }
    :is(.home-page, .editorial-page) .discovery-strip a, :is(.home-page, .editorial-page) .discovery-strip a:first-child { padding: 16px 0; }
    :is(.home-page, .editorial-page) .discovery-strip a + a { border-left: none; border-top: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}
/* Keep fan activities discoverable without horizontal menu scrolling. */
@media (max-width: 880px) {
    .site-shell #primary-nav.nav-links {
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 4px 0 0 !important;
        padding: 6px 0 !important;
        gap: 8px !important;
        overflow: visible !important;
    }
    .site-shell #primary-nav a { padding: 10px 12px !important; font-size: .75rem !important; }
}
/* The wrapped mobile nav is too tall to stay pinned; let it scroll away. */
@media (max-width: 880px) {
    .site-shell .hero-header { position: relative; }
}

/* Password show/hide toggle (added by app.js to every password field) */
label.has-peek { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pw-peek { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; margin: -4px -6px -4px 0; border: 0; border-radius: 4px; background: none; color: var(--text-muted); font-family: inherit; font-size: .74rem; font-weight: 500; line-height: 1; letter-spacing: .02em; cursor: pointer; transition: color .2s, background .2s; }
.pw-peek:hover { color: var(--text); background: rgba(127,127,127,.1); }
.pw-peek:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-peek[aria-pressed="true"] { color: var(--accent); }

/* Signed-in header: the bell and account button left too little room, wrapping
   the last nav item onto a second row; and the zero badge ignored [hidden]. */
.nav-bell-badge[hidden] { display: none !important; }
@media (min-width: 1181px) {
    .site-shell #primary-nav.nav-links { flex-wrap: nowrap; gap: 2px; }
    .site-shell #primary-nav.nav-links a { padding-left: 11px; padding-right: 11px; white-space: nowrap; }
    .editorial-page #primary-nav.nav-links a::after, .home-page #primary-nav.nav-links a::after { left: 11px; right: 11px; }
}

/* Notification bell: paper dropdown matching the member area */
.site-shell .nav-bell { background: #ebe6dc; border-color: #d8d1c4; color: #25282c; }
.site-shell .nav-bell:hover { border-color: #82613b; color: #82613b; }
.site-shell .nav-bell-badge { background: #82613b; box-shadow: 0 0 0 2px #f7f4ed; }
.site-shell .nav-bell-panel { width: 360px; background: #fffdf8; border: 1px solid #d8d1c4; border-radius: 10px; box-shadow: 0 24px 50px -18px rgba(37,39,43,.35); color: #25282c;
    --cream: #25282c; --text-soft: #50514f; --text-muted: #8a8478; }
.site-shell .nav-bell-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #25282c; background: transparent; }
.site-shell .nav-bell-head :is(span, strong, h3, h4, div):first-child { font: 500 1.05rem 'Playfair Display', serif; letter-spacing: -.01em; text-transform: none; color: #25282c; }
.site-shell .nav-bell-clear { background: none; border: 0; padding: 0; font: 600 .74rem 'Inter', sans-serif; letter-spacing: 0; text-transform: none; color: #674820; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-shell .nav-bell-list { max-height: 380px; overflow-y: auto; }
.site-shell .nav-bell-item { position: relative; display: block; padding: 14px 16px 14px 30px; border-bottom: 1px solid #ece6da; background: transparent; color: #25282c; text-transform: none; letter-spacing: 0; }
.site-shell .nav-bell-item:hover { background: #f6f1e8; }
.site-shell .nav-bell-item.unread { background: linear-gradient(90deg, rgba(130,97,59,.07), transparent 70%); }
.site-shell .nav-bell-item.unread::before { content: ''; position: absolute; left: 13px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: #82613b; }
.site-shell .nav-bell-item-title { font-size: .88rem; font-weight: 600; color: #25282c; text-transform: none; letter-spacing: 0; }
.site-shell .nav-bell-item-body { margin-top: 3px; font-size: .8rem; line-height: 1.5; color: #66645c; text-transform: none; letter-spacing: 0; }
.site-shell .nav-bell-item-time { margin-top: 5px; font-size: .7rem; color: #8a8478; text-transform: none; letter-spacing: 0; }
.site-shell .nav-bell-empty { padding: 28px 16px; text-align: center; font-size: .84rem; color: #8a8478; }
.site-shell .nav-bell-foot { display: block; padding: 12px 16px; text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #674820; background: #f7f4ed; }
.site-shell .nav-bell-foot:hover { background: #efe7d8; }
