/* =========================================================
   La Clé Maison blog
   Loaded after styles.css on blog pages only. Uses the site's tokens
   and adds the editorial pieces a post is built from.
   ops/blog-design-guide.md says when to reach for which.
   ========================================================= */

.eyebrow a{color:inherit;text-decoration:none}
.eyebrow a:hover{color:var(--bottle)}

/* ---------- listing ---------- */

.blog-hero{padding:clamp(2.5rem,6vw,5rem) 0 clamp(2rem,4vw,3.25rem)}
.blog-hero .display{max-width:15ch;margin-bottom:0;text-wrap:balance}
.blog-list{display:grid;gap:clamp(2.5rem,5vw,4rem);padding-bottom:clamp(4rem,9vw,7rem)}
.blog-empty{color:rgba(16,22,20,.66);margin:0}

.blog-card__link{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:clamp(1.5rem,4vw,3.5rem);
  align-items:center;
  color:inherit;text-decoration:none;
}
.blog-card__photo{
  aspect-ratio:16 / 10;
  overflow:hidden;
  background:var(--mist);
  outline:1px solid rgba(176,141,87,.6);
  outline-offset:-12px;
}
.blog-card__photo img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.blog-card__link:hover .blog-card__photo img{transform:scale(1.03)}
.blog-card__meta{
  margin:0 0 .9rem;
  font-size:.6875rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(16,22,20,.66);
}
.blog-card__title{
  font-family:var(--display);font-optical-sizing:none;font-weight:500;
  font-size:clamp(1.6rem,1.1rem + 1.6vw,2.5rem);
  line-height:1.1;letter-spacing:-.01em;
  margin:0 0 1rem;
  text-wrap:balance;
  transition:color .2s var(--ease);
}
.blog-card__link:hover .blog-card__title{color:var(--bottle)}
.blog-card__excerpt{margin:0 0 1.4rem;color:rgba(16,22,20,.8);max-width:46ch}
.blog-card__more{
  font-size:.875rem;color:var(--bottle);
  border-bottom:1px solid var(--brass);padding-bottom:.15rem;
}
.blog-card__more::after{content:" \2192";color:var(--brass)}

/* Older posts sit smaller, under the newest one. "Newest" is whichever card
   comes first after the middleware has taken out anything not yet due, so
   it is decided here rather than baked into the HTML. */
.blog-list > .blog-card:not(:first-child) .blog-card__link{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
.blog-list > .blog-card:not(:first-child) .blog-card__title{font-size:clamp(1.35rem,1.1rem + .9vw,1.75rem)}

/* ---------- post: head ---------- */

.post-head{padding:clamp(2.25rem,5vw,4.5rem) 0 clamp(2rem,4vw,3rem)}
.post-head__inner{max-width:54rem}
.post-title{
  font-family:var(--display);font-optical-sizing:none;font-weight:500;
  font-size:clamp(2.1rem,1.2rem + 3.2vw,4rem);
  line-height:1.06;letter-spacing:-.015em;
  margin:0 0 1.5rem;
  text-wrap:balance;
}
.post-title em{display:block;margin-top:.2em;font-style:italic;font-weight:400;color:var(--bottle)}
.post-byline{
  display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .7rem;
  margin:0;font-size:.8125rem;color:rgba(16,22,20,.72);
}
.post-byline a{color:var(--bottle);text-decoration:none;border-bottom:1px solid var(--brass)}
.post-byline a:hover{color:var(--brass)}

/* The hero straddles the limestone head and the paper body. */
.post-hero-wrap{background:linear-gradient(to bottom,var(--limestone) 50%,var(--paper) 50%)}
.post-hero{
  margin:0;
  aspect-ratio:16 / 9;
  max-height:72vh;
  overflow:hidden;
  background:var(--mist);
  outline:1px solid rgba(176,141,87,.6);
  outline-offset:-16px;
}
.post-hero img{width:100%;height:100%;object-fit:cover}

/* ---------- post: body ---------- */

.post-body{background:var(--paper)}
.post{
  max-width:40rem;
  margin-inline:auto;
  padding:clamp(3rem,7vw,5.5rem) 0 clamp(3.5rem,8vw,6rem);
}
.post p{
  margin:0 0 1.35rem;
  font-size:clamp(1.0625rem,1rem + .3vw,1.1875rem);
  line-height:1.78;
  color:rgba(16,22,20,.88);
}
.post h2{
  font-family:var(--display);font-optical-sizing:none;font-weight:500;
  font-size:clamp(1.6rem,1.2rem + 1.4vw,2.2rem);
  line-height:1.15;letter-spacing:-.01em;
  margin:3.5rem 0 1.25rem;
  text-wrap:balance;
}
.post h2::before{
  content:"";display:block;
  width:2.5rem;height:1px;background:var(--brass);
  margin-bottom:1.25rem;
}

/* Opening lines: the first beat of the post, set large. */
.post .post-lede{
  font-family:var(--display);font-optical-sizing:none;
  font-size:clamp(1.55rem,1.15rem + 1.6vw,2.35rem);
  line-height:1.24;
  color:var(--ink);
  margin:0 0 2.25rem;
}
.post .post-lede em{display:block;margin-top:.35rem;color:var(--bottle)}

/* A sentence worth lifting out of the flow, in place. */
.post .post-quote{
  font-family:var(--display);font-optical-sizing:none;
  font-size:clamp(1.45rem,1.1rem + 1.4vw,2.1rem);
  line-height:1.26;
  color:var(--bottle);
  margin:2.25rem 0 2.5rem;
  padding-left:1.4rem;
  border-left:2px solid var(--brass);
}

/* The short answering line after a set-up sentence. */
.post .post-beat{
  font-family:var(--display);font-optical-sizing:none;font-style:italic;
  font-size:clamp(1.3rem,1.05rem + .9vw,1.65rem);
  line-height:1.35;
  color:var(--bottle);
  margin-top:-.35rem;
}

/* One word that carries the post. Use once, or it stops landing. */
.post .post-word{
  font-family:var(--display);font-optical-sizing:none;font-style:italic;
  font-size:clamp(4.5rem,2rem + 10vw,9rem);
  line-height:.9;letter-spacing:-.03em;
  color:var(--bottle);
  text-align:center;
  margin:2.5rem 0;
}

/* A run of short sentences, one per line. */
.post .post-rhythm{
  font-family:var(--display);font-optical-sizing:none;
  font-size:clamp(1.25rem,1.05rem + .8vw,1.55rem);
  line-height:1.5;
  color:var(--ink);
  margin:1.75rem 0 2rem;
  padding-left:1.4rem;
  border-left:1px solid var(--rule);
}
.post .post-rhythm span{display:block}

/* A list worth scanning, on a card. Keyholes for bullets. */
.post-checklist{
  margin:2rem 0 2.75rem;
  padding:clamp(1.5rem,3.5vw,2.25rem);
  background:var(--limestone);
  border-top:2px solid var(--bottle);
}
.post .post-checklist__lead{
  margin:0 0 1.1rem;
  font-size:.75rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(16,22,20,.7);
}
.post-checklist ul{list-style:none;margin:0;padding:0;display:grid;gap:.85rem}
.post-checklist li{
  position:relative;
  padding-left:1.6rem;
  font-size:1rem;line-height:1.55;
  color:rgba(16,22,20,.88);
}
.post-checklist li::before{
  content:"";
  position:absolute;left:0;top:.3em;
  width:.62rem;height:1rem;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='19 11 26 42'%3E%3Cpath fill='%23B08D57' d='M26.12 33.30A11 11 0 1 1 37.88 33.30L43 51L21 51Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Images inside a post. --wide breaks out past the text column. */
.post-figure{margin:2.75rem 0}
.post-figure img{
  display:block;width:100%;height:auto;
  outline:1px solid rgba(176,141,87,.55);
  outline-offset:-12px;
}
@media (min-width:1100px){
  .post-figure--wide{margin-inline:-7rem}
}

/* ---------- post: closing call to action ---------- */

.post-cta{text-align:center}
.post-cta__inner{max-width:40rem;margin-inline:auto}
.post-cta .display{margin-inline:auto;max-width:none;text-wrap:balance}
.post-cta p{
  margin:0 auto 2rem;
  max-width:38ch;
  font-size:clamp(1.0625rem,1rem + .35vw,1.25rem);
  line-height:1.65;
  color:rgba(233,234,229,.86);
}
.post-cta__actions{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:1rem 1.75rem;
}
.post-cta__alt{
  color:var(--limestone);
  font-size:.9375rem;
  text-decoration:none;
  border-bottom:1px solid var(--brass);
  padding-bottom:.15rem;
  transition:color .2s var(--ease);
}
.post-cta__alt:hover{color:var(--brass)}

@media (max-width:760px){
  .blog-card__link,
  .blog-list > .blog-card:not(:first-child) .blog-card__link{grid-template-columns:1fr}
}
