/* Editorial front page. The original masthead wash carries over the first display. */
body[data-mode=home] #app>:is(.intro,.entry-pair,.workspace,.return-shelf,#collection,#unavailable){display:none!important}
header{grid-template-columns:auto 1fr auto}
header nav{display:flex;justify-content:flex-end;gap:clamp(18px,2.8vw,48px)}
#nav-more{position:relative}
#nav-more summary{list-style:none;cursor:pointer;display:grid;place-items:center;min-height:44px;padding:4px;font:16px Georgia,serif}
#nav-more summary::-webkit-details-marker{display:none}
#nav-more summary:after{content:'+';position:absolute;right:-8px;top:9px;font:10px monospace}
#nav-more[open] summary:after{content:'−'}
#nav-more>div{position:absolute;z-index:31;right:0;top:100%;box-shadow:0 5px 24px #3823321a;background:#fffaef;border:1px solid #caafa6;min-width:158px;padding:5px 13px}
#nav-more>div button{display:block;width:100%;text-align:left}
#home{max-width:1300px;margin:0 auto;padding:0 0 50px}
.home-section{margin:0 auto;padding:clamp(25px,4vw,60px) 0;border-bottom:1px solid #c9afa1}
.home-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}
.rubric,.home-copy small{font:600 10px/1.5 monospace;letter-spacing:.16em;color:#653947}
.home-heading h1,.home-heading h2{margin:4px 0 0;font:normal clamp(34px,4vw,60px)/1.02 Georgia,serif;letter-spacing:-.055em;color:#271823}
.home-heading p,.home-section>p{font:15px/1.5 Arial,sans-serif;margin:5px 0;color:#58464b}
.home-heading button,#home-browse-more,#browse-continue,.home-section>button,.home-section>div>button,#home-gems>button{min-height:44px;border:0;border-bottom:1px solid #573141;background:transparent;border-radius:0;color:#472837;padding:8px 2px}
#featured-grid{display:grid;grid-template-columns:1.18fr 1fr;gap:14px}
.home-card{position:relative;min-width:0}
.home-card>button{display:grid;width:100%;background:transparent;border:0;padding:0;text-align:left;align-items:center;color:inherit}
.home-card .home-copy{display:grid;gap:5px}
.home-copy strong{font:normal clamp(23px,2.4vw,38px)/1.04 Georgia,serif;letter-spacing:-.045em}
.home-copy span,.home-copy em{font:13px/1.45 Arial,sans-serif;color:#664c55}
.home-copy b{font:600 11px/1.5 Arial,sans-serif;color:#68384e}
.home-cover{display:block;min-width:0}
.home-cover .release-art{width:100%;height:100%;aspect-ratio:1;display:grid;padding:0;background:#f2e3d6;overflow:hidden}
.home-cover img{width:100%;height:100%;object-fit:contain}
.hc-featured{background:#fff5e9;border:1px solid #d6baad;padding:14px}
.hc-featured>button{grid-template-columns:clamp(85px,9vw,160px) 1fr;gap:17px}
.hc-featured:first-child{grid-row:span 2;background:#29202a;color:#fff9ef;border-color:#29202a;padding:20px}
.hc-featured:first-child>button{grid-template-columns:minmax(130px,.95fr) minmax(0,1fr);gap:20px;height:100%}
.hc-featured:first-child .home-copy :is(small,span,em,b){color:#f2d9cb}
.home-card>gems-heart{position:absolute;bottom:8px;right:8px}
.hc-featured .home-copy{padding-bottom:23px}
#home-cds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 18px}
.hc-shelf>button{grid-template-rows:auto auto}
.hc-shelf .home-cover{width:100%;padding:4px 5px 4px 10px;background:linear-gradient(90deg,#aa9f99,#eee7db 3%,#b3aaa3 4%,#e9dfcd 5%,#d0c2b6);border:1px solid #aaa097;border-radius:4px;box-shadow:1px 2px 0 #b5a594}
.hc-shelf .home-copy{width:100%;padding:10px 44px 2px 0}
.hc-shelf .home-copy strong{font-size:clamp(20px,2vw,29px)}
.home-preview{grid-column:1/-1;background:#fffaf4;color:#2e2028;border:1px solid #d8bdb0;padding:14px;margin:12px 0 40px}
.home-preview p{font:16px/1.45 Georgia,serif}
.home-preview button,.home-preview a{display:inline-flex;align-items:center;min-height:44px;margin:3px 6px 0 0;background:transparent;border:0;text-decoration:underline;color:#622e48;padding:5px}
.home-preview [data-home-listen]{background:#241b21;color:#fff9ed;border-radius:22px;padding:8px 16px;text-decoration:none}
.home-card:has(.home-preview){grid-column:1/-1}
.home-card.hc-shelf:has(.home-preview)>button{grid-template-columns:90px 1fr;grid-template-rows:auto;gap:16px}
#home-browse-more{margin-top:18px}
.home-section small,#collection-actions span{font:12px/1.5 Arial,sans-serif;color:#635058}
#trend-month{font:13px monospace;text-transform:uppercase}
.chart-row{display:grid;grid-template-columns:48px 1fr;align-items:center;border-top:1px solid #cfb9af;padding:7px 0}
.rank{font:italic 28px Georgia,serif;color:#743a50}
#home-gems .record-row,.chart-row .record-row,#location-finds .record-row{max-width:100%;width:100%;background:transparent}
.atlas{display:grid;grid-template-columns:2.3fr 1fr;gap:20px;align-items:center;margin:14px 0;background:#f6eee2;border:1px solid #dbc7b9;padding:16px}
#world-map{position:relative;aspect-ratio:720/300;background:linear-gradient(#eee5d7,#faf3e9)}
#world-map img{display:block;width:100%;height:100%}
#world-map button{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;border:0;background:transparent;padding:0;border-radius:0}
#world-map button::after{content:'';display:block;margin:auto;width:8px;height:8px;transform:rotate(45deg);background:#763452;outline:2px solid #fff3db}
#world-map button[aria-pressed=true]::after{box-shadow:0 0 0 6px #9e50694a}
.atlas-key h3,.atlas-key h4{font:normal 23px Georgia,serif;margin:5px 0}
#location-list{display:flex;flex-wrap:wrap;gap:5px}
#location-list button{min-height:44px;border:0;background:none;font-size:12px;padding:5px}
#location-list button[aria-pressed=true]{text-decoration:underline}
#watch-theater{max-width:900px;margin:14px auto 35px;background:#19151d;color:#fff1e6;padding:clamp(12px,2.5vw,30px)}
.theater-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.theater-head .rubric{color:#e8b6aa}
.theater-head h2{font:normal clamp(19px,3vw,32px) Georgia,serif;margin:3px 0}
.theater-head button{flex:none;border:1px solid #9e8092;border-radius:20px;background:transparent;color:white;min-height:44px;padding:6px 12px}
#watch-slot{height:clamp(200px,44vw,380px);position:relative;background:#09080b}
.artist-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:15px 0}
.artist-links a{padding:8px 0;color:#6d2949}
.release-art.missing-art{position:relative;display:flex;flex-flow:column;align-items:flex-start;justify-content:center;padding:8%;gap:4px;color:#35252d;background:#edddcd;white-space:normal;overflow:hidden}
.missing-art strong{font:normal clamp(13px,2vw,26px)/1 Georgia,serif}.missing-art em,.missing-art small{font:10px/1.2 Arial,sans-serif}
gems-heart .reaction-pill,.card-actions gems-heart button{font:normal 23px/1 Arial,sans-serif;display:grid;place-items:center;width:44px;height:44px;padding:0;background:#fff8f0;border:1px solid #cda7af;border-radius:50%;color:#772c50}
gems-heart .reaction-pill[aria-pressed=true]{background:#f5c8cd}
#mini-heart{display:flex}
#listening:not(.expanded) #mini-heart{display:none}
#collection-actions{display:flex;align-items:center;justify-content:center;gap:10px;padding:18px}
@media(max-width:900px){header{grid-template-columns:1fr auto}header nav{justify-content:flex-start;gap:clamp(12px,4vw,36px)}}
@media(min-width:621px) and (max-width:850px){.listen-row{justify-content:center}}
@media(max-width:620px){
 #featured-grid{grid-template-columns:1fr;gap:8px}
 .hc-featured:first-child{grid-row:auto;padding:13px}
 .hc-featured:first-child>button{grid-template-columns:minmax(96px,.78fr) minmax(0,1.22fr);gap:12px}
 .hc-featured>button{grid-template-columns:65px minmax(0,1fr);gap:12px}
 .hc-featured .home-copy em{display:none}.hc-featured:first-child .home-copy em{display:block;font-size:12px}
 .hc-featured:not(:first-child) .home-copy{padding:0 38px 0 0}.hc-featured:not(:first-child) .home-copy strong{font-size:20px}
 #home-cds{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
 .home-heading{align-items:center;margin-bottom:12px}
 .home-heading p{max-width:108px;font-size:12px}
 .home-heading h1,.home-heading h2{font-size:34px}
 .hc-shelf .home-copy{padding-right:0;padding-bottom:44px}
 .home-copy small{font-size:8px}.hc-shelf .home-copy strong{font-size:20px}
 .atlas{grid-template-columns:1fr;padding:9px}
 header nav{display:flex;justify-content:space-between;gap:8px;padding-right:10px}
 #nav-more summary{font-size:15px}
}
@media(min-width:621px) and (max-width:1000px) and (max-height:500px){header{grid-template-columns:auto 1fr auto}header nav{gap:12px;justify-content:center}}
.hc-featured:has(.home-preview)>button{height:auto;grid-template-columns:minmax(90px,150px) 1fr}
.hc-featured:has(.home-preview){grid-row:auto}

#home-cds,#collection-items{overflow-anchor:none}
#browse-continue[aria-disabled=true]{opacity:.7}
.collection-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d8c7bb}
@media(min-width:621px) and (min-height:501px){
 #listening:not(.expanded) #mini-heart{display:flex;grid-column:1;grid-row:1/3;align-self:center}
}
@media(min-width:621px) and (max-width:1000px) and (max-height:500px){
 #home-cds{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){#world-map button{width:30px;height:30px;min-height:30px}}
@media(min-width:621px) and (max-width:900px){
 #featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hc-featured:first-child{grid-area:auto / 1 / auto / -1}
 .hc-featured:first-child>button{grid-template-columns:minmax(160px,.6fr) 1fr;height:auto}
 .hc-featured:not(:first-child)>button{grid-template-columns:80px minmax(0,1fr);gap:10px}
}
#home-card-preview button:focus-visible,#location-list button:focus-visible,#world-map button:focus-visible{outline:2px solid #762d51;outline-offset:2px}
@media(max-width:620px){.hc-featured:has(.home-preview) .home-copy em{display:block}}
#near-heart gems-heart{display:inline-flex;align-items:center;justify-content:center;gap:0}
