/* ═══════════════════════════════════════════════════════════════
   FOTOCAL — blog styles (listing + article)
   Loaded after site.css (+ pages.css on the listing). Uses the same
   tokens as the homepage and /features/: cream surfaces, pink→orange
   accent, Fraunces headings, Instrument Sans body.

   Sections:
     .bl-hero        listing hero
     .bl-feature     featured (latest) post, wide split card
     .bl-filters     category chips (client-side filtering, main.js)
     .bl-grid        post card grid
     .art-*          article page: header, body, takeaways, CTA, nav
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────── LISTING ───────────────────────── */
.bl-hero { position: relative; padding: 3rem 0 1.4rem; text-align: center; overflow: hidden; }
.bl-hero::before {
  content: ""; position: absolute; top: -230px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 470px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,122,61,.16), transparent 66%); filter: blur(42px);
}
.bl-hero .container-narrow { position: relative; }
.bl-hero .section-sub { margin-inline: auto; margin-bottom: 0; }

/* ── Featured post ── */
.bl-feature { margin-top: 2.6rem; }
.bl-feat-card {
  display: grid; gap: 0; overflow: hidden;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--r-xl); box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.bl-feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--border); }
.bl-feat-media { position: relative; overflow: hidden; background: var(--cream-2); }
.bl-feat-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.8,.3,1);
}
.bl-feat-card:hover .bl-feat-media img { transform: scale(1.04); }
.bl-feat-body { padding: 1.8rem 1.6rem 1.9rem; display: flex; flex-direction: column; justify-content: center; }
.bl-feat-flag {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--grad); border-radius: 999px; padding: .34rem .8rem;
  margin-bottom: .9rem; box-shadow: var(--shadow-cta);
}
.bl-feat-body h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.18; letter-spacing: -.015em;
  margin-bottom: .6rem;
}
.bl-feat-body h2 a { transition: color .2s ease; }
.bl-feat-body h2 a:hover { color: var(--pink); }
.bl-feat-body > p { color: var(--muted); font-size: .98rem; margin-bottom: 1.1rem; }
@media (min-width: 860px) {
  .bl-feat-card { grid-template-columns: 1.08fr 1fr; }
  .bl-feat-media { min-height: 320px; }
  .bl-feat-body { padding: 2.4rem 2.4rem 2.4rem 2.2rem; }
}

/* ── Category filter chips ── */
.bl-filters {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin: 2.8rem 0 .4rem;
}
.bl-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: inherit; font-size: .86rem; font-weight: 650; color: var(--ink-soft);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 999px; padding: .55rem 1rem; cursor: pointer;
  box-shadow: 0 4px 14px -10px rgba(27,35,64,.35);
  transition: transform .22s ease, border-color .22s ease, color .22s ease, background .22s ease;
}
.bl-chip:hover { transform: translateY(-2px); border-color: var(--border-pink); color: var(--pink); }
.bl-chip[aria-pressed="true"] {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-cta);
}
.bl-chip span.n {
  font-size: .72rem; font-weight: 800; opacity: .75;
  background: rgba(27,35,64,.07); border-radius: 999px; padding: .1rem .42rem;
}
.bl-chip[aria-pressed="true"] span.n { background: rgba(255,255,255,.22); opacity: .95; }
.bl-count { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* ── Post grid ── */
.bl-grid { display: grid; gap: 1.4rem; margin-top: 1.8rem; }
@media (min-width: 640px)  { .bl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bl-grid { grid-template-columns: repeat(3, 1fr); } }

.bl-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .32s cubic-bezier(.2,.8,.3,1), box-shadow .32s ease, border-color .32s ease;
}
.bl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--border); }
.bl-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.bl-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-2); flex: none; }
.bl-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.2,.8,.3,1);
}
.bl-card:hover .bl-card-media img { transform: scale(1.05); }
.bl-card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.bl-tag {
  align-self: flex-start; font-size: .64rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--pink);
  background: var(--grad-wash); border: 1px solid var(--border-pink);
  border-radius: 999px; padding: .26rem .6rem; margin-bottom: .65rem;
}
.bl-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.09rem;
  line-height: 1.28; letter-spacing: -.008em; margin-bottom: .5rem;
  transition: color .2s ease;
}
.bl-card:hover h3 { color: var(--pink); }
.bl-card p { font-size: .89rem; color: var(--muted); flex: 1; margin-bottom: .95rem; }
.bl-meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--muted); font-weight: 500;
}
.bl-meta .dot { opacity: .5; }
.bl-empty { text-align: center; color: var(--muted); padding: 3rem 0; font-size: .95rem; }

/* ───────────────────────── ARTICLE ───────────────────────── */
.art-wrap { padding: 2.2rem 0 1rem; }
.art-head { width: min(760px, 90%); margin-inline: auto; }
.art-crumbs {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted); margin-bottom: 1.3rem;
}
.art-crumbs a { transition: color .2s ease; }
.art-crumbs a:hover { color: var(--pink); }
.art-crumbs .sep { opacity: .45; }
.art-tag {
  display: inline-block; font-size: .66rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--pink);
  background: var(--grad-wash); border: 1px solid var(--border-pink);
  border-radius: 999px; padding: .3rem .7rem; margin-bottom: 1rem;
}
.art-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.95rem, 4.6vw, 3rem); line-height: 1.12; letter-spacing: -.022em;
  color: var(--ink); margin-bottom: .85rem;
}
.art-lead { font-size: clamp(1.04rem, 2vw, 1.2rem); line-height: 1.62; color: var(--ink-soft); margin-bottom: 1.3rem; }
.art-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem;
  font-size: .86rem; color: var(--muted);
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-soft);
}
.art-meta .dot { opacity: .5; }

/* header illustration */
.art-cover {
  width: min(1060px, 92%); margin: 2rem auto 0;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--border-soft);
  background: var(--cream-2);
}
.art-cover img { width: 100%; height: auto; display: block; }

/* body copy */
.art-body { width: min(720px, 90%); margin: 2.4rem auto 0; font-size: 1.06rem; line-height: 1.78; color: var(--ink-soft); }
.art-body > h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.24; letter-spacing: -.012em;
  color: var(--ink); margin: 2.6rem 0 .85rem;
}
.art-body > h3 { font-weight: 700; font-size: 1.14rem; color: var(--ink); margin: 1.9rem 0 .55rem; }
.art-body p { margin-bottom: 1.15rem; }
.art-body ul, .art-body ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.art-body li { margin-bottom: .55rem; }
.art-body ul { list-style: none; padding-left: 0; }
.art-body ul > li {
  position: relative; padding-left: 1.6rem;
}
.art-body ul > li::before {
  content: ""; position: absolute; left: .15rem; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--grad);
}
.art-body ol { padding-left: 1.5rem; }
.art-body ol > li::marker { color: var(--pink); font-weight: 700; }
.art-body strong { color: var(--ink); font-weight: 700; }
.art-body a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.art-body blockquote {
  margin: 1.6rem 0; padding: 1rem 1.3rem;
  border-left: 3px solid var(--pink); background: var(--cream-2);
  border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-soft); font-style: italic;
}
.art-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.art-body th, .art-body td { padding: .7rem .8rem; border-bottom: 1px solid var(--border-soft); text-align: left; }
.art-body th { font-weight: 700; color: var(--ink); background: var(--cream-2); }

/* key takeaways */
.art-body .key-takeaways, .key-takeaways {
  margin: 2.4rem 0 1.5rem; padding: 1.5rem 1.6rem;
  background: linear-gradient(150deg, var(--cream-2), var(--cream-3));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.key-takeaways h2 {
  font-family: var(--font-display); font-size: 1.2rem !important; font-weight: 600;
  color: var(--ink); margin: 0 0 .8rem !important;
}
.key-takeaways ul { margin: 0; padding-left: 0; list-style: none; }
.key-takeaways li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; font-size: .96rem; }
.key-takeaways li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 15px; height: 15px; border-radius: 50%; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* in-article app CTA */
.art-cta {
  width: min(760px, 90%); margin: 2.8rem auto 0; text-align: center;
  padding: 2.2rem 1.6rem; border-radius: var(--r-xl);
  background:
    radial-gradient(100% 130% at 50% -20%, rgba(233,30,99,.10), transparent 62%),
    var(--cream-2);
  border: 1px solid var(--border);
}
.art-cta h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.2; color: var(--ink); margin-bottom: .6rem;
}
.art-cta p { color: var(--muted); font-size: .96rem; max-width: 48ch; margin: 0 auto 1.3rem; }
.art-cta-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }

/* prev / next */
.art-nav {
  width: min(1060px, 92%); margin: 3rem auto 0;
  display: grid; gap: 1rem;
}
@media (min-width: 760px) { .art-nav { grid-template-columns: 1fr 1fr; } }
.art-nav-item {
  display: flex; flex-direction: column; gap: .3rem;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.art-nav-item:hover { transform: translateY(-3px); border-color: var(--border-pink); box-shadow: var(--shadow-card); }
.art-nav-item small { font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--pink); }
.art-nav-item strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.art-nav-next { text-align: right; }
@media (max-width: 759px) { .art-nav-next { text-align: left; } }

/* related posts */
.art-related { padding: 3.5rem 0 1rem; }
.art-related .bl-grid { margin-top: 1.6rem; }

/* ═══════════════════════════════════════════════
   TOUCH ERGONOMICS
   Measured at 390px with a coarse pointer. The category chips came in
   at 42px and the breadcrumb links at 22px — the latter sit inside a
   single flex row, so they get vertical padding rather than a
   min-height, which would otherwise stretch the whole row.
   ═══════════════════════════════════════════════ */
@media (pointer: coarse) {
  .bl-chip { min-height: 44px; }                        /* was 42 */
  .art-crumbs { align-items: center; }
  .art-crumbs a {
    display: inline-flex; align-items: center;
    min-height: 44px; padding-inline: .15rem;           /* was 22 tall */
  }
}

/* Press feedback for the category filter, which is a button and had
   only a hover state — invisible on touch. */
.bl-chip:active { transform: scale(.96); background: var(--cream-2); }
.art-crumbs a:active { color: var(--pink); }
