/* Home design: approved Lunar Atlas desktop reference, adapted for narrow screens. */
.header-phases{display:none}
.atlas-home{--home-ivory:#f6e7d5;--home-gold:#e9c49c;--home-line:#edcba9}
.atlas-home .site-header{background:#081521;border-color:#baada0}
.atlas-home .header-inner{min-height:60px;display:grid;grid-template-columns:1fr auto 1fr;gap:24px}
.atlas-home .wordmark{font-size:clamp(1.35rem,2.12vw,2rem);letter-spacing:0;gap:10px;color:#fbf1e6}
.atlas-home .wordmark img{width:80px;height:57px;object-fit:contain;border-radius:0}
.atlas-home .top-nav{gap:28px}
.atlas-home .top-nav a{font:clamp(1.13rem,1.55vw,1.5rem)/1.1 var(--serif);color:#fcf1e6;padding:13px 0 17px}
.atlas-home .top-nav a+a:before{content:"·";color:#f5e5d4;margin-right:28px;pointer-events:none}
.atlas-home .top-nav a[aria-current=page]{color:var(--home-gold)}
.atlas-home .top-nav a[aria-current=page]:after{height:2px;bottom:5px}
.atlas-home .header-access{display:flex;gap:16px;align-items:center;justify-self:end}
.atlas-home .header-phases{display:block;white-space:nowrap;font:1.27rem/1 var(--serif);letter-spacing:.19em;color:#b59b7d;opacity:.58}
.atlas-home .account-link{padding:8px;border-color:transparent}
.atlas-home .account-link:hover,.atlas-home .account-link:focus-visible{border-color:var(--home-gold)}
.atlas-home .account-link span{display:none}
.atlas-home .hero{border:0;background:#081723}
.atlas-home .hero:before{background:linear-gradient(90deg,transparent,#07152024 13%,#07152028 37%,transparent 48%)}
.atlas-home .hero-inner{min-height:clamp(550px,38.3vw,630px);align-items:flex-start}
.atlas-home .hero-copy{max-width:540px;width:43%;padding:clamp(34px,3vw,52px) 0 34px;text-align:center}
.atlas-home .hero h1{font:400 clamp(3.25rem,5.65vw,5.65rem)/1.03 var(--serif);letter-spacing:-.04em;margin:0 0 6px;color:var(--home-ivory);text-shadow:0 2px 12px #061521ab;white-space:nowrap}
.atlas-home .hero-intro{color:#fff3e8;font:clamp(1.13rem,1.58vw,1.53rem)/1.25 var(--serif);text-shadow:0 2px 8px #071520}
.atlas-home .celestial-divider{width:min(323px,75%);margin:15px auto 17px;gap:10px;font-size:1.65rem}
.atlas-home .hero-actions{display:grid;width:min(398px,90%);gap:13px;margin:0 auto}
.atlas-home .hero-actions a{position:relative;border-radius:22px;font:400 clamp(1.32rem,1.92vw,1.85rem)/1.2 var(--serif);padding:7px 44px;min-height:50px}
.atlas-home .hero-actions .btn-gold{min-height:59px;background:linear-gradient(180deg,#ffead0,#edccad 44%,#a88769);color:#091722;border-color:#f7d7b6}
.atlas-home .hero-actions .btn-gold:hover{background:#f5d7b7}
.atlas-home .hero-actions .btn-gold span{position:absolute;right:11%;font:1.7rem/1 var(--sans)}
.atlas-home .hero-actions .btn-outline{border-color:var(--home-line);color:#fff2e7;background:#0b1b27c7}
.atlas-home .hero-actions .btn-outline:hover{background:#1d2c37}
.atlas-home .lunar-panel{display:grid;grid-template-columns:29% minmax(0,1fr) auto;grid-template-rows:auto auto;gap:10px 14px;width:min(446px,100%);min-width:0;min-height:168px;margin:21px auto 0;padding:12px 24px 10px 25px;text-align:left;align-items:center;border-radius:22px;border-color:var(--home-line);background:#091723f0;box-shadow:0 6px 24px #07152042}
.atlas-home .lunar-title{grid-column:1/3;grid-row:1;margin:0;font:400 clamp(1.13rem,1.62vw,1.58rem)/1.25 var(--serif);color:#fff4e9}
.atlas-home .lunar-choose{grid-column:3;grid-row:1;background:#493f37;border:1px solid #987c62;border-radius:999px;justify-self:end;padding:1px 8px;max-width:134px;gap:4px}
.atlas-home .city-button{color:#fff1de;font:400 .94rem/1.1 var(--serif);min-height:26px;overflow-wrap:anywhere;text-decoration:none;text-align:center}
.atlas-home .lunar-panel img{grid-column:1;grid-row:2;width:100%;max-width:112px;height:auto;border-radius:50%;object-fit:contain;justify-self:center}
.atlas-home .lunar-text{grid-column:2/4;grid-row:2;border-left:1px solid var(--home-line);padding:0 0 0 26px;min-height:73px;display:grid;align-content:center;gap:8px}
.atlas-home .lunar-number,.atlas-home .lunar-sub{display:block;margin:0;font:400 clamp(1rem,1.37vw,1.34rem)/1.27 var(--serif);color:#fcf2e8}
.atlas-home .deck-section{position:relative;padding:22px 0 50px;background:#091723 url('/art/home-ornament-left.webp') left bottom/auto 199px no-repeat}
.atlas-home .deck-section:before{content:"";position:absolute;right:0;bottom:0;width:125px;height:199px;background:url('/art/home-ornament-right.webp') right bottom/contain no-repeat;pointer-events:none}
.atlas-home .deck-section .container{position:relative}
.home-divider{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);width:min(85%,1280px);display:flex;align-items:center;gap:13px;pointer-events:none;color:var(--home-gold);font:1.8rem/1 var(--serif)}
.home-divider:before,.home-divider:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,var(--home-line))}
.home-divider:after{transform:rotate(180deg)}
.atlas-home .deck-heading{max-width:none;margin:0 auto 23px}
.atlas-home .deck-heading h2{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:29px;width:min(100%,1180px);margin:0 auto 10px;font:400 clamp(2.1rem,3.3vw,3.2rem)/1.16 var(--serif);letter-spacing:-.015em;color:var(--home-ivory)}
.atlas-home .deck-heading h2:before,.atlas-home .deck-heading h2:after{content:none}
.atlas-home .deck-heading i{display:flex;gap:2px;align-items:center;color:var(--home-gold);font:400 1rem/1 var(--serif)}
.atlas-home .deck-heading i:first-child:before,.atlas-home .deck-heading i:last-child:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#b69875)}
.atlas-home .deck-heading i:last-child:after{transform:rotate(180deg)}
.atlas-home .deck-heading p{color:#fff2e7;font:400 clamp(1.02rem,1.46vw,1.45rem)/1.24 var(--serif);margin:0}
.atlas-home .deck-grid{gap:32px}
.atlas-home .deck-tile{min-height:162px;border-radius:20px;border-color:var(--home-line);background:#0b1a26;color:var(--home-ivory)}
.atlas-home .deck-tile img{width:45.5%;height:auto;object-fit:cover}
.atlas-home .deck-info{min-width:0;padding:3px 10px 17px 28px;border-color:var(--home-line)}
.atlas-home .deck-info strong{font:400 clamp(2rem,3.2vw,3rem)/1.03 var(--serif);margin:0 0 7px}
.atlas-home .deck-info small{font:400 clamp(1rem,1.38vw,1.34rem)/1.2 var(--serif);color:#fff2e7}
.atlas-home .tile-icon{width:38px;height:38px;margin-right:18px;font:1.65rem/1 var(--serif);border-color:var(--home-line)}
@media(max-width:1160px){.atlas-home .hero-copy{width:46%}.atlas-home .lunar-panel{padding-inline:15px;gap:9px}.atlas-home .lunar-text{padding-left:16px}.atlas-home .deck-info{padding-left:16px}.atlas-home .header-phases{font-size:1rem}.atlas-home .wordmark img{width:60px}}
@media(max-width:900px){.atlas-home .top-nav{gap:17px}.atlas-home .top-nav a+a:before{margin-right:17px}.atlas-home .header-phases{display:none}.atlas-home .hero:before{background:linear-gradient(90deg,#07152020,#07152060 25%,transparent 62%)}.atlas-home .hero h1{white-space:normal}.atlas-home .lunar-panel{grid-template-columns:22% minmax(0,1fr) auto}.atlas-home .deck-grid{gap:14px}.atlas-home .deck-info{padding:4px 6px 7px 13px}.atlas-home .tile-icon{width:29px;height:29px;margin-right:8px;font-size:1.2rem}.atlas-home .deck-tile{min-height:132px}}
@media(max-width:690px){.atlas-home .header-inner{grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:4px 0 0}.atlas-home .wordmark{gap:2px;font-size:1.58rem}.atlas-home .wordmark img{width:53px;height:41px}.atlas-home .top-nav{justify-content:center;gap:20px}.atlas-home .top-nav a{font-size:1.08rem;padding:5px 0 10px}.atlas-home .top-nav a+a:before{margin-right:0;content:none}.atlas-home .top-nav a[aria-current=page]:after{bottom:2px}.atlas-home .hero{background:#081723}.atlas-home .hero:before{background:linear-gradient(180deg,transparent 15%,#09172366 26%,#091723 47%)}.atlas-home .hero-inner{padding-top:clamp(145px,45vw,256px);min-height:0}.atlas-home .hero-copy{width:100%;max-width:480px;margin:auto;padding:0 0 33px}.atlas-home .hero h1{font-size:clamp(2.75rem,11vw,5rem)}.atlas-home .hero-intro{font-size:1.08rem}.atlas-home .celestial-divider{margin:10px auto 12px}.atlas-home .hero-actions{width:min(100%,390px);gap:9px}.atlas-home .hero-actions a,.atlas-home .hero-actions .btn-gold{min-height:46px;padding:6px 38px;font-size:1.37rem}.atlas-home .lunar-panel{grid-template-columns:24% minmax(0,1fr) auto;gap:9px;width:min(100%,390px);min-height:135px;margin-top:16px;padding:10px 12px;border-radius:16px}.atlas-home .lunar-title{font-size:1.15rem}.atlas-home .lunar-text{padding-left:12px;min-height:56px;gap:5px}.atlas-home .lunar-sub,.atlas-home .lunar-number{font-size:1rem}.atlas-home .city-button{font-size:.86rem;min-height:30px}.atlas-home .deck-section{padding:22px 0 28px;background-size:auto 130px}.atlas-home .deck-section:before{width:82px;height:130px}.atlas-home .deck-heading{margin-bottom:18px}.atlas-home .deck-heading h2{font-size:clamp(1.62rem,6.7vw,2.4rem);gap:7px}.atlas-home .deck-heading i{font-size:.7rem}.atlas-home .deck-heading p{font-size:1.03rem}.atlas-home .deck-grid{gap:12px}.atlas-home .deck-tile{min-height:109px;border-radius:14px}.atlas-home .deck-tile img{width:39%;max-height:none}.atlas-home .deck-info strong{font-size:2rem}.atlas-home .tile-icon{margin-right:12px}}
@media(max-width:355px){.atlas-home .lunar-panel{grid-template-columns:24% minmax(0,1fr);gap:7px}.atlas-home .lunar-title{grid-column:1/3}.atlas-home .lunar-choose{grid-column:2;grid-row:3;justify-self:start}.atlas-home .lunar-text{grid-column:2}.atlas-home .deck-info strong{font-size:1.7rem}}
/* Keep the engraved margins proportional to the approved widescreen layout. */
.atlas-home .top-nav a+a:before{content:"";display:inline-block;vertical-align:middle;width:5px;height:5px;border-radius:50%;background:#f5e5d4;margin-right:28px}
.atlas-home .deck-section{background:#091723}
.atlas-home .deck-section:before,.atlas-home .deck-section:after{mask-image:linear-gradient(to top,#000 73%,transparent);z-index:0}
.atlas-home .deck-section:after{content:"";position:absolute;left:0;bottom:0;width:125px;height:199px;background:url('/art/home-ornament-left.webp') left bottom/contain no-repeat;pointer-events:none;mask-image:radial-gradient(ellipse at bottom left,#000 39%,transparent 76%)}
.atlas-home .deck-section:before{mask-image:radial-gradient(ellipse at bottom right,#000 39%,transparent 76%)}
.atlas-home .deck-section .container{z-index:1}
@media(min-width:1161px){.atlas-home .header-inner,.atlas-home .hero-inner,.atlas-home .deck-section .container{width:min(83.333%,1280px)}.atlas-home .hero h1{font-size:clamp(3.25rem,5.88vw,5.85rem)}}
@media(max-width:900px){.atlas-home .top-nav a+a:before{margin-right:17px}}
@media(max-width:690px){.atlas-home .top-nav a+a:before{display:none}.atlas-home .deck-section:after{width:82px;height:130px}}
.atlas-home .deck-heading i{width:100%}
.atlas-home .deck-heading h2{justify-items:stretch;justify-content:stretch}
.atlas-home .lunar-choose{position:relative}
.atlas-home .city-button:after{content:"";position:absolute;inset:-5px -3px;min-height:38px}

/* Keep the full Tarot deck name readable in the two-column cards. */
.atlas-home .deck-tile[href="#/deck/tarot"] .deck-info strong{
  font-size:clamp(1rem,1.8vw,1.75rem);
  line-height:1.12;
  overflow-wrap:anywhere;
}
@media(max-width:690px){
  .atlas-home .deck-tile[href="#/deck/tarot"] .deck-info strong{font-size:clamp(1rem,4.4vw,1.6rem)}
}
