/* The landing page.
   Tokens, nav, footer and the type pairing come from monart.css; this only
   lays out the sections that show the product. Class names are prefixed so
   nothing here can collide with the artist page, which still uses the old
   .page-home rules. */

.page-landing{background:var(--bg)}
.page-landing main{display:block}

/* ---------- shared shapes ---------- */
.l-band{padding:5.5rem 4rem;max-width:1320px;margin:0 auto}
.l-band + .l-band{padding-top:0}
.l-head{max-width:46rem;margin-bottom:2.75rem}
.l-eyebrow{font-size:.62rem;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);display:block;margin-bottom:1rem}
.l-h2{font-family:'Cormorant Garamond',serif;font-weight:300;font-size:clamp(1.9rem,3.2vw,2.8rem);line-height:1.08;letter-spacing:-.01em;color:var(--text)}
.l-sub{font-size:.92rem;line-height:1.75;color:#5A5248;margin-top:.9rem;max-width:38rem}
.l-note{font-size:.72rem;letter-spacing:.04em;color:var(--muted);margin-top:.85rem}

.l-cta{display:inline-block;padding:.85rem 2.6rem;background:var(--gold);color:#FAF8F4;border:none;
  font-family:'Jost',sans-serif;font-size:.7rem;font-weight:500;letter-spacing:.18em;
  text-transform:uppercase;cursor:pointer;text-decoration:none;transition:opacity .2s}
.l-cta:hover{opacity:.85}
.l-cta-sm{padding:.6rem 1.5rem;font-size:.62rem;letter-spacing:.15em}

/* ---------- hero ---------- */
.l-hero{padding:8.5rem 4rem 4.5rem;max-width:1320px;margin:0 auto;
  display:grid;grid-template-columns:minmax(0,27rem) minmax(0,1fr);gap:3.5rem;align-items:center}
.l-hero-copy{max-width:27rem}
.l-h1{font-family:'Cormorant Garamond',serif;font-weight:300;
  font-size:clamp(2.2rem,3.6vw,3.4rem);line-height:1.04;letter-spacing:-.015em;
  color:var(--text);text-wrap:balance}
.l-h1 em{font-style:italic;color:#6A5A48}
.l-hero-sub{font-size:.95rem;line-height:1.8;color:#5A5248;margin-top:1.6rem}
.l-hero-actions{margin-top:2.25rem}
.l-hero-note{font-size:.72rem;letter-spacing:.06em;color:var(--muted);margin-top:1rem}

/* The hero shows a chain rather than a comparison: the room, what it became,
   and — the part that decides whether this product is for you — the pieces it
   found, with prices. */
.l-hero-show{display:flex;flex-direction:column;gap:0}
.l-found{border:1px solid var(--border);border-top:none;background:var(--surface);
  padding:1rem 1.25rem 1.15rem}
.l-found-label{font-size:.58rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--muted);display:block;margin-bottom:.65rem}
.l-found-list{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);
  gap:.4rem 2rem}
.l-found-list li{display:flex;justify-content:space-between;gap:1rem;
  font-size:.8rem;color:#5A5248;border-bottom:1px solid var(--border);padding-bottom:.35rem}
.l-found-list b{font-weight:400;color:var(--text);white-space:nowrap;
  font-variant-numeric:tabular-nums}

/* The same chain in words, for a reader who takes the pictures away. */
.l-chain{max-width:1320px;margin:0 auto;padding:0 4rem;
  display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;
  font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
.l-chain span + span::before{content:'→';margin-right:1.5rem;color:var(--gold)}
.l-chain span:last-child{color:var(--text)}

/* ---------- before / after ---------- */
.ba{position:relative;overflow:hidden;background:var(--surface);
  border:1px solid var(--border);line-height:0;user-select:none}
.ba img{display:block;width:100%;height:auto}
.ba-after{position:absolute;inset:0;width:100%;
  /* The slider moves this edge; the whole picture stays put underneath. */
  clip-path:inset(0 0 0 var(--split,50%))}
.ba-range{position:absolute;inset:0;width:100%;height:100%;margin:0;
  opacity:0;cursor:ew-resize;-webkit-appearance:none;appearance:none;background:none;z-index:3}
.ba-handle{position:absolute;top:0;bottom:0;left:var(--split,50%);width:2px;
  background:rgba(250,250,248,.92);box-shadow:0 0 0 1px rgba(0,0,0,.18);pointer-events:none;z-index:2}
.ba-handle::after{content:'';position:absolute;top:50%;left:50%;width:42px;height:42px;
  transform:translate(-50%,-50%);border-radius:50%;
  background:rgba(250,250,248,.94);box-shadow:0 1px 10px rgba(0,0,0,.22)}
.ba-tag{position:absolute;bottom:.85rem;z-index:2;
  font-size:.56rem;letter-spacing:.22em;text-transform:uppercase;
  padding:.32rem .7rem;background:rgba(26,24,20,.6);color:#FAF8F4;pointer-events:none}
.ba-tag-before{left:.85rem}
.ba-tag-after{right:.85rem}

/* ---------- example grid ---------- */
.l-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(20rem,1fr));gap:2rem}
.l-card{display:flex;flex-direction:column;gap:.85rem}
.l-card-foot{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}
.l-card-name{font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text)}
.l-card-style{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:.95rem;color:var(--muted)}

/* ---------- the buying brief ---------- */
.l-brief{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:3rem;align-items:start}
.l-brief img{width:100%;height:auto;display:block;border:1px solid var(--border)}
.l-items{display:flex;flex-direction:column}
.l-item{display:grid;grid-template-columns:1fr auto;gap:.3rem 1.5rem;
  padding:1.05rem 0;border-top:1px solid var(--border)}
.l-item:last-child{border-bottom:1px solid var(--border)}
.l-item-name{font-size:.86rem;color:var(--text)}
.l-item-price{font-size:.86rem;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
.l-item-spec{grid-column:1/-1;font-size:.72rem;letter-spacing:.03em;color:var(--muted);
  font-variant-numeric:tabular-nums}
.l-shops{margin-top:1.5rem;font-size:.74rem;color:#5A5248;line-height:1.7}
.l-shops strong{font-weight:500;color:var(--text)}

/* ---------- one object changed ---------- */
.l-swaps{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:2.5rem}
.l-swap-cap{font-size:.74rem;letter-spacing:.04em;color:var(--muted);margin-top:.85rem}
.l-swap-cap strong{color:var(--text);font-weight:500}

/* ---------- my home ---------- */
.l-home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:1.25rem}
.l-home-grid img{width:100%;height:auto;display:block;border:1px solid var(--border)}

/* ---------- closing ---------- */
.l-close{text-align:center;padding:6rem 2rem 7rem;border-top:1px solid var(--border);margin-top:5.5rem}
.l-close .l-h2{margin:0 auto}
.l-close .l-sub{margin:.9rem auto 2.25rem}

/* ---------- mobile ---------- */
@media (max-width:900px){
  /* The shared nav hides every link but the active one on a small screen.
     The section links can go; the one control that starts the product cannot,
     because the sticky bar is the only place it exists once the hero has
     scrolled away. */
  .page-landing .nav-links a.nav-link{display:none}
  .page-landing .nav-links a.l-cta{display:inline-block;white-space:nowrap;
    padding:.55rem 1rem;font-size:.56rem;letter-spacing:.1em}
  .page-landing .nav-links{gap:.6rem}

  /* Tightened so the before-and-after reaches the first screen: on a phone the
     picture IS the pitch, and a visitor who has to scroll to reach it has
     already been asked to take the copy on trust. */
  .l-hero{grid-template-columns:1fr;gap:1.6rem;padding:4.25rem 1.25rem 2rem}
  .l-chain{padding:0 1.25rem;font-size:.6rem;letter-spacing:.16em;gap:.5rem .9rem}
  .l-chain span + span::before{margin-right:.9rem}
  .l-found-list{grid-template-columns:1fr;gap:.35rem}
  .l-hero-sub{font-size:.88rem;line-height:1.7;margin-top:1.1rem}
  .l-hero-actions{margin-top:1.5rem}
  .l-band{padding:3.5rem 1.25rem}
  .l-brief{grid-template-columns:1fr;gap:1.75rem}
  .l-swaps{gap:2rem}
  .l-close{padding:4rem 1.25rem 5rem;margin-top:3.5rem}
  .l-head{margin-bottom:1.75rem}
  /* One card at a time, swiped, rather than a column of them to scroll past. */
  .l-grid{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;
    margin:0 -1.25rem;padding:0 1.25rem;scrollbar-width:none}
  .l-grid::-webkit-scrollbar{display:none}
  .l-grid .l-card{flex:0 0 82%;scroll-snap-align:start}
  .l-home-grid{grid-template-columns:1fr 1fr;gap:.75rem}
  .ba-handle::after{width:34px;height:34px}
}
@media (max-width:900px) and (min-width:601px){
  .l-hero{grid-template-columns:1fr;max-width:44rem}
}
