/* Home page only. Tokens, .wrap, .bleed, .btn, .label, .link-arrow, .eyepiece, .path-svg, .stars, .reveal live in site.css. */

.hp-stand,.hp-view,.hp-kit,.hp-limits,.hp-faq{padding-block:clamp(64px,9vw,128px)}

/* ---------- 1 · tonight-sky: poster first screen ---------- */
.hp-hero{display:grid;align-items:end;min-height:min(94vh,900px);overflow:hidden;isolation:isolate;background:var(--bg)}
.hp-hero__media{position:absolute;inset:0;z-index:-2;overflow:hidden}
.hp-hero__media img{display:block;max-width:none;width:126%;height:100%;margin-left:-26%;object-fit:cover;object-position:center 100%;will-change:transform}
/* the silhouette sits in the open middle column; copy (left) and the Tonight panel (right) carry their own dark ground */
.hp-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    linear-gradient(to right,rgba(10,20,23,.92) 0%,rgba(10,20,23,.86) 45%,rgba(10,20,23,0) 57%),
    linear-gradient(to top,rgba(10,20,23,.4) 0%,rgba(10,20,23,0) 25%),
    linear-gradient(to bottom,rgba(10,20,23,.55) 0%,rgba(10,20,23,0) 22%)}
.hp-hero .stars{z-index:0;bottom:55%}
.hp-hero__inner{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,540px) 1fr minmax(300px,340px);gap:clamp(28px,4vw,64px);align-items:end;padding-top:clamp(160px,30vh,320px);padding-bottom:clamp(32px,6vw,72px)}
.hp-hero__copy{max-width:540px}
.hp-tonight{grid-column:3}
.hp-hero__copy h1{margin-bottom:.35em}
.hp-hero__lead{font-size:clamp(1.08rem,1.5vw,1.22rem);max-width:58ch}
.hp-hero__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}

.hp-tonight{background:rgba(20,39,44,.92);border:1px solid var(--line);border-radius:var(--r);padding:22px 22px 14px}
.hp-tonight__head{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;margin-bottom:14px}
.hp-tonight__head .label{margin:0 0 4px}
.hp-tonight__title{font-size:1.5rem;margin:0 0 2px}
.hp-tonight__lit{margin:0;color:var(--gold);font-size:.95rem}
.hp-tonight__advice{font-size:.98rem;color:var(--text)}
.hp-tonight > .label{margin:0 0 2px}
.hp-tonight__picks{list-style:none;margin:0;padding:0}
.hp-tonight__picks a{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:48px;padding:8px 0;border-top:1px solid var(--line);text-decoration:none;font-weight:500;line-height:1.35}
.hp-tonight__picks b{flex:none;color:var(--gold);font-weight:500}
.hp-tonight__picks a:hover span{color:var(--gold)}
.hp-moon{display:block;width:84px;height:84px}
.hp-moon__dark{fill:#1a2c31}
.hp-moon__lit{fill:var(--text)}
.hp-moon__rim{fill:none;stroke:var(--line-2);stroke-width:1}
.hp-moon{filter:drop-shadow(0 0 10px rgba(236,230,214,.18))}

/* ---------- 2 · where-you-stand: stations on the winding path ---------- */
.hp-stand{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(32px,6vw,96px);align-items:start}
.hp-stand__intro{position:sticky;top:calc(var(--hd-h) + 32px)}
.hp-stand__intro p:not(.label){color:var(--muted);max-width:44ch}
.hp-stand__path{position:relative}
.hp-path{position:absolute;inset:0;width:100%;height:100%}
.hp-path--narrow{display:none}
.hp-stations{position:relative;list-style:none;margin:0;padding:0;display:grid;gap:44px}
.hp-station{position:relative;display:grid;grid-template-columns:76px 1fr;gap:20px;align-items:start;width:min(100%,62%)}
.hp-station:nth-child(even){margin-left:auto;grid-template-columns:1fr 76px}
.hp-station:nth-child(even) .hp-station__code{order:2}
.hp-station__code{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:var(--bg);border:1px solid var(--gold);box-shadow:0 0 0 6px var(--bg);font:600 1.9rem/1 var(--font-head);color:var(--gold)}
.hp-station__body{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:18px 20px 8px}
.hp-station__body h3{margin-bottom:.35em}
.hp-station__body > p:not(.label){color:var(--muted);font-size:.98rem}
.hp-station__body .label{margin:0 0 6px}
.hp-station__meta{color:var(--text)!important;font-size:.9rem!important;margin:0 0 4px}

/* ---------- 3 · season-wheel ---------- */
.hp-seasons{overflow-x:clip}
.hp-seasons__head{max-width:60ch;margin-bottom:clamp(32px,5vw,56px)}
.hp-seasons__head p:not(.label){color:var(--muted)}
.hp-seasons__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,2.4vw,36px)}
.hp-season{position:relative;border-top:1px solid var(--line-2);padding-top:28px;display:flex;flex-direction:column}
.hp-season.is-now{border-top:3px solid var(--gold);padding-top:26px}
.hp-season__eye{width:min(200px,calc(100% - 24px));margin:12px auto 28px}
.hp-season .label{margin:0 0 4px}
.hp-now{color:var(--gold);font-weight:500}
.hp-season h3{font-size:clamp(1.5rem,2.2vw,1.9rem);margin-bottom:.2em}
.hp-season__coord{font-size:.8rem;color:var(--muted);letter-spacing:.04em}
.hp-season__facts{padding-left:1.1em;font-size:.97rem}
.hp-season__facts li{margin-bottom:.5em}
.hp-season__facts li::marker{color:var(--coral);content:"✦  "}
.hp-season__meteors{font-size:.95rem;padding:10px 0;border-block:1px solid var(--line);margin-top:auto}
.hp-season__meteors .label{display:block;margin-bottom:2px}
.hp-season .link-arrow{line-height:1.3;padding-block:6px}

/* ---------- 4 · eyepiece-view ---------- */
.hp-view{display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(32px,6vw,88px);align-items:center}
.hp-view__pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(28px,4vw,56px);align-items:center}
.hp-view__fig{margin:0;text-align:center}
.hp-view__fig--eye .hp-view__eye{width:80%;margin-inline:auto}
.hp-view__eye{margin:11px auto 0}
.hp-view__fig--eye img{filter:grayscale(1) brightness(.55) contrast(.9) blur(1.2px);transform:scale(.82)}
.hp-view__fig--eye .eyepiece img{background:#05090a}
.hp-view__fig--eye .eyepiece{background:radial-gradient(circle,#0b1214,#040708 70%);border-radius:50%}
.hp-view__fig figcaption{margin-top:24px;font-size:.8rem;letter-spacing:.08em;color:var(--teal);line-height:1.5}
.hp-view__text p:not(.label){color:var(--muted)}
.hp-view__links{list-style:none;padding:0;margin:24px 0 0}
.hp-view__links li{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 0;border-top:1px solid var(--line)}
.hp-view__links a{font-weight:500}
.hp-view__links b{flex:none;color:var(--gold);font-weight:500}

/* ---------- 5 · kit-ladder ---------- */
.hp-kit__head{max-width:60ch}
.hp-kit__frame{margin-top:24px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:8px clamp(8px,2vw,24px) 16px}
.hp-kit__table{width:100%;border-collapse:collapse;font-size:.95rem}
.hp-kit__table caption{caption-side:top;text-align:left;padding:14px 4px 16px;color:var(--muted);font-size:.95rem}
.hp-kit__table th,.hp-kit__table td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:middle}
.hp-kit__table thead th{font:500 .78rem/1.3 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--teal);text-align:center;vertical-align:bottom}
.hp-kit__table thead th:first-child{text-align:left}
.hp-kit__table tbody th[scope="row"]{text-align:left;font-weight:500;min-width:16em}
.hp-kit__table tbody th a{text-decoration-color:var(--line-2)}
.hp-kit__table tbody th a:hover{text-decoration-color:var(--gold)}
.hp-kit__table td{text-align:center}
.hp-kit__shelf th{padding-top:22px;text-align:left;font:600 1.1rem/1.2 var(--font-head);color:var(--text);border-bottom:1px solid var(--line-2)}
.hp-kit__shelf .mono{font:500 .78rem var(--font-mono);letter-spacing:.08em;color:var(--teal);margin-right:10px}
.hp-kit__table .hp-kit__price{text-align:right;white-space:nowrap}
.hp-kit__table td.hp-kit__price{color:var(--gold);font-weight:500}
.kit-star{display:inline-block;vertical-align:middle;fill:var(--gold)}
.hp-kit__table td.is-none::before{content:"";display:inline-block;width:6px;height:1px;background:var(--line-2);vertical-align:middle}
.hp-kit__more{margin:20px 0 0}

@media (max-width:880px){
  .hp-kit__frame{padding:4px 14px 12px}
  .hp-kit__table,.hp-kit__table tbody,.hp-kit__table tr,.hp-kit__table th,.hp-kit__table td,.hp-kit__table caption{display:block}
  .hp-kit__table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .hp-kit__table caption{padding:12px 0}
  .hp-kit__table tr:not(.hp-kit__shelf){display:flex;flex-wrap:wrap;gap:8px;padding:14px 0 16px;border-bottom:1px solid var(--line)}
  .hp-kit__table tr:not(.hp-kit__shelf) > *{border:0;padding:0}
  .hp-kit__table tbody th[scope="row"]{flex-basis:100%;min-width:0;margin-bottom:4px}
  .hp-kit__table td.is-none{display:none}
  .hp-kit__table td.is-need{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:3px 10px;border:1px solid var(--line-2);border-radius:2px;font:500 .8rem/1.3 var(--font-mono);color:var(--text)}
  .hp-kit__table td.is-need::after{content:attr(data-label)}
  .hp-kit__table td.is-need .kit-star{width:14px;height:14px}
  .hp-kit__table td.hp-kit__price{margin-left:auto;align-self:center;font-size:1rem}
  .hp-kit__shelf th{padding:20px 0 10px;border-bottom:1px solid var(--line-2)}
}

/* ---------- 6 · night-numbers ---------- */
.hp-numbers__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:32px 24px}
.hp-numbers__list li{border-left:1px solid rgba(236,230,214,.22);padding-left:18px}
.hp-numbers__list b{display:block;font:600 clamp(3rem,6vw,5.25rem)/1 var(--font-head);color:var(--gold);font-variant-numeric:tabular-nums lining-nums;margin-bottom:10px}
.hp-numbers__list span{display:block;font-size:.82rem;line-height:1.45;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-teal);max-width:18ch}

/* ---------- 7 · limits ---------- */
.hp-limits{display:grid;grid-template-columns:.7fr 1.3fr;gap:clamp(32px,6vw,96px);align-items:start}
.hp-limits__intro{position:sticky;top:calc(var(--hd-h) + 32px)}
.hp-limits__intro p:not(.label){color:var(--muted)}
.hp-limits__list{list-style:none;margin:0;padding:0;counter-reset:lim}
.hp-limits__list li{counter-increment:lim;display:grid;grid-template-columns:64px 1fr;column-gap:20px;padding:22px 0;border-top:1px solid var(--line)}
.hp-limits__list li:last-child{border-bottom:1px solid var(--line)}
.hp-limits__list li::before{content:counter(lim,decimal-leading-zero);grid-row:span 2;font:500 1.05rem/1.6 var(--font-mono);color:var(--gold)}
.hp-limits__list h3{font-size:1.2rem;margin:0 0 .3em}
.hp-limits__list p{margin:0;color:var(--muted)}

/* ---------- 8 · dark-sky-mosaic ---------- */
.hp-mosaic{padding:6px}
.hp-mosaic__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,clamp(220px,24vw,340px));gap:6px}
.hp-mosaic__item:first-child{grid-row:span 2}
.hp-mosaic__item a{position:relative;display:block;height:100%;overflow:hidden;text-decoration:none;background:var(--bg-2)}
.hp-mosaic__item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s ease}
.hp-mosaic__item a:hover img{transform:scale(1.04)}
.hp-mosaic__cap{position:absolute;left:0;bottom:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;max-width:calc(100% - 12px);padding:10px 14px;background:var(--panel);color:var(--text);font-weight:500;line-height:1.3;border-top-right-radius:var(--r)}
.hp-mosaic__cap .mono{font-size:.78rem;letter-spacing:.08em;color:var(--teal)}
.hp-mosaic__item a:hover .hp-mosaic__cap,.hp-mosaic__item a:focus-visible .hp-mosaic__cap{color:var(--gold)}
.hp-mosaic__item a:focus-visible{outline-offset:-3px}

/* ---------- 9 · clear-skies-faq ---------- */
.hp-faq{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(32px,6vw,96px);align-items:start}
.hp-faq__intro{position:sticky;top:calc(var(--hd-h) + 32px)}
.hp-faq__intro p:not(.label){color:var(--muted)}
.hp-faq__list details{border-top:1px solid var(--line)}
.hp-faq__list details:last-child{border-bottom:1px solid var(--line)}
.hp-faq__list summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:56px;padding:12px 0;cursor:pointer;list-style:none;font:600 1.12rem/1.35 var(--font-head)}
.hp-faq__list summary::-webkit-details-marker{display:none}
.hp-faq__list summary::after{content:"+";flex:none;font:400 1.5rem/1 var(--font-mono);color:var(--gold);transition:transform .2s}
.hp-faq__list details[open] summary::after{transform:rotate(45deg)}
.hp-faq__list summary:hover{color:var(--gold)}
.hp-faq__list details p{color:var(--muted);max-width:64ch;padding-bottom:10px}

/* ---------- 10 · first-light-cta ---------- */
.hp-cta{isolation:isolate;overflow:hidden;padding-block:clamp(88px,13vw,170px)}
.hp-cta__img{position:absolute;inset:0;z-index:-2;width:100%;height:100%!important;object-fit:cover;object-position:center 15%}
.hp-cta::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(10,20,23,.8)}
.hp-cta .stars{z-index:0}
.hp-cta__inner{position:relative;z-index:2}
.hp-cta__inner h2{max-width:16ch;font-size:clamp(2rem,4.6vw,3.6rem)}
.hp-cta__inner p:not(.label){max-width:48ch;font-size:1.12rem;margin-bottom:28px}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .hp-numbers__list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:960px){
  /* photo becomes a top plate; the copy starts on its darkened lower edge */
  .hp-hero{min-height:0}
  .hp-hero::before{display:none}
  .hp-hero__media{bottom:auto;height:min(64vh,520px)}
  .hp-hero__media img{width:100%;margin-left:0;object-position:68% 100%}
  .hp-hero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,var(--bg) 0%,rgba(10,20,23,.9) 14%,rgba(10,20,23,.35) 40%,rgba(10,20,23,0) 62%)}
  .hp-hero .stars{bottom:auto;height:min(30vh,240px)}
  .hp-hero__inner{grid-template-columns:1fr;padding-top:calc(min(64vh,520px) - 56px)}
  .hp-tonight{grid-column:auto;max-width:34rem}
  .hp-view{grid-template-columns:1fr}
}
@media (max-width:900px){
  .hp-seasons__list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:20px;padding-bottom:18px;margin-right:calc(-1 * var(--pad));padding-right:var(--pad);scrollbar-color:var(--line-2) transparent}
  .hp-season{flex:0 0 min(300px,80vw);scroll-snap-align:start}
  .hp-seasons__list:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
}
@media (max-width:820px){
  .hp-stand,.hp-limits,.hp-faq{grid-template-columns:1fr}
  .hp-stand__intro,.hp-limits__intro,.hp-faq__intro{position:static}
  .hp-path--wide{display:none}
  .hp-path--narrow{display:block;width:40px;left:18px}
  .hp-station,.hp-station:nth-child(even){width:100%;margin-left:0;grid-template-columns:76px 1fr;gap:16px}
  .hp-station:nth-child(even) .hp-station__code{order:0}
}
@media (max-width:760px){
  .hp-mosaic__grid{grid-template-columns:1fr 1fr;grid-template-rows:none}
  .hp-mosaic__item{aspect-ratio:4/3}
  .hp-mosaic__item:first-child{grid-row:auto;grid-column:span 2;aspect-ratio:16/10}
}
@media (max-width:560px){
  .hp-numbers__list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-station,.hp-station:nth-child(even){grid-template-columns:56px 1fr;gap:12px}
  .hp-station__code{width:56px;height:56px;font-size:1.45rem}
  .hp-path--narrow{left:8px}
  .hp-station__body{padding:16px 16px 6px}
  .hp-view__pair{gap:22px}
  .hp-view__fig figcaption{font-size:.78rem;letter-spacing:.05em}
  .hp-limits__list li{grid-template-columns:44px 1fr;column-gap:12px}
  .hp-tonight{padding:18px 16px 10px}
  .hp-tonight__head{gap:14px}
  .hp-moon{width:68px;height:68px}
}
@media (max-width:420px){
  .hp-mosaic__grid{grid-template-columns:1fr}
  .hp-mosaic__item:first-child{grid-column:auto}
  .hp-hero__cta .btn{flex:1 1 100%}
}

@media (prefers-reduced-motion:reduce){
  .hp-mosaic__item img{transition:none}
  .hp-hero__media img{will-change:auto}
}

/* square eyepiece frames whatever the photo's own shape (portrait photos would stretch the circle) */
.hp-season__eye img,.hp-view__eye img{position:absolute;inset:0}
