/* The Paint Closet page styles. Does not change global production CSS. */

/* Keep hero type on the night side of the page */
.hero h1, .hero .lede, .hero .label, .hero .room{color:inherit}

/* ----- palette index ----- */
.palette-index{
  display:grid;gap:1.6rem 1.4rem;
  grid-template-columns:repeat(2,1fr);
}
@media (min-width:720px){.palette-index{grid-template-columns:repeat(4,1fr);gap:2rem 1.6rem}}
.palette-card{color:var(--espresso);display:block}
.palette-card .frame{
  aspect-ratio:2/3;margin-bottom:.7rem;overflow:hidden;background:#d9c39b;
  box-shadow:0 18px 40px -28px rgba(43,29,20,.55);
}
.palette-card img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.palette-card:hover img{transform:scale(1.03)}
.palette-card .mini{display:flex;height:10px;margin:.15rem 0 .55rem;border:1px solid rgba(138,100,32,.35)}
.palette-card .mini i{flex:1;display:block}
.palette-card .num{
  display:block;font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold-ink);margin-bottom:.25rem;font-weight:600;
}
.palette-card h3{font-size:1.2rem;margin:0;color:var(--espresso);line-height:1.2}
.palette-card:hover h3{color:#5a1a14}

/* ----- a single palette ----- */
.palette-block{scroll-margin-top:5.8rem;padding-top:clamp(3.2rem,7vw,5.5rem)}
.palette-block .palette-grid{
  display:grid;gap:2.2rem;align-items:start;
}
@media (min-width:900px){
  .palette-block .palette-grid{grid-template-columns:minmax(0,0.85fr) minmax(0,1.25fr);gap:3rem;align-items:start}
}
.palette-photo .frame{aspect-ratio:2/3;background:#d9c39b;box-shadow:0 22px 50px -30px rgba(43,29,20,.55)}
.palette-photo img{width:100%;height:100%;object-fit:cover}
.palette-photo .caption{margin-top:.7rem;color:#6b5442}

.swatch-list,
.swatch-row,
.chip-meta,
.brand-lines,
.brand-line,
.paint{min-width:0;max-width:100%}
.swatch-list{display:flex;flex-direction:column;gap:1.35rem}
.swatch-row{
  display:grid;gap:1rem;align-items:stretch;
  grid-template-columns:72px minmax(0,1fr);
  padding-bottom:1.35rem;
  border-bottom:1px solid rgba(138,100,32,.22);
}
.swatch-row:last-child{border-bottom:0;padding-bottom:0}
.chip{
  width:72px;height:72px;flex:none;
  border:1px solid rgba(43,29,20,.2);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.15), 0 4px 10px -6px rgba(43,29,20,.4);
}
.chip-meta .hex{
  font-family:var(--body);font-weight:600;letter-spacing:.12em;
  font-size:.78rem;color:var(--espresso);margin:0 0 .55rem;
}
.brand-lines{display:flex;flex-direction:column;gap:.45rem}
.brand-line{
  display:grid;grid-template-columns:1.15rem 7.2rem minmax(0,1fr);
  gap:.15rem .7rem;align-items:baseline;
  font-size:.95rem;line-height:1.35;
}
.brand-line .paint-chip{
  width:1.05rem;height:1.05rem;flex:none;
  border:1px solid rgba(43,29,20,.25);
  justify-self:start;align-self:center;
}
.brand-line .brand{color:#6b5442;font-size:.78rem;letter-spacing:.04em}
.brand-line .paint{color:var(--espresso);overflow-wrap:break-word}
.brand-line .paint a{color:var(--espresso);border-bottom:1px solid rgba(138,100,32,.45)}
.brand-line .paint a:hover{color:#5a1a14;border-color:#5a1a14}
.brand-line .code{color:#6b5442;font-size:.88rem}
.brand-line .de{grid-column:2 / -1;font-size:.78rem;color:#6b5442;margin-top:-.15rem;overflow-wrap:break-word}
.brand-line.is-weak .de{color:#7a4a1c}

/* Narrow screens (Instagram in-app ~390px, and 360–430): a tidy stacked card. */
@media (max-width:699px){
  .palette-block .palette-grid{min-width:0} /* do not set width:100% — this class is also .wrap */
  .palette-block .reveal{min-width:0;max-width:100%}
  .swatch-list{gap:1rem;width:100%}
  .swatch-row{
    display:grid;
    grid-template-columns:72px minmax(0,1fr);
    grid-template-areas:"chip hex" "lines lines";
    gap:.75rem 1rem;
    align-items:center;
    box-sizing:border-box;
    width:100%;
    margin:0;
    padding:1rem;
    border:1px solid rgba(138,100,32,.25);
    background:rgba(247,238,219,.55);
  }
  .swatch-row:last-child{border:1px solid rgba(138,100,32,.25);padding:1rem}
  .chip{grid-area:chip;width:72px;height:72px}
  .chip-meta{display:contents}
  .chip-meta .hex{grid-area:hex;margin:0;align-self:center}
  .brand-lines{grid-area:lines;width:100%}
  .brand-line{grid-template-columns:1.05rem minmax(0,1fr);gap:.15rem .55rem}
  .brand-line .brand{grid-column:2;grid-row:1}
  .brand-line .paint{grid-column:2}
  .brand-line .de{grid-column:2}
}

.note-box{
  margin-top:1.8rem;padding:1.1rem 1.2rem;
  border:1px solid rgba(138,100,32,.3);
  background:rgba(247,238,219,.7);
  font-size:.98rem;color:var(--espresso-2);
}
.note-box strong{color:var(--gold-ink);font-weight:600}

/* Mobile hero: keep the "twenty palettes" line out from under the music button */
@media (max-width:699px){
  .hero.hero-c .hero-foot{padding-bottom:4.6rem}
  .hero.hero-c .hero-foot .room{width:100%}
}
/* Leave room at the end of the page for the floating music button */
.site-footer{padding-bottom:5.5rem}

/* Hero uses the original photograph (no palette dots over the type). */
.hero.hero-c .hero-media img{object-position:62% 18%}
@media (max-width:699px){
  .hero.hero-c .hero-media img{object-position:62% 18%}
  .hero.hero-c .lede, .hero.hero-c h1{text-shadow:0 1px 16px rgba(20,12,8,.9)}
}
