/* Blog additions for Casso Websites */
.blog-hero {
  padding-top: 86px;
  padding-bottom: 56px;
}
.blog-hero .lede { max-width: 780px; }
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: start;
}
.blog-index-list { display: grid; gap: 22px; }
.post-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--wash);
  padding: 20px;
}
.post-card:hover { box-shadow: 10px 10px 0 rgba(15,118,110,.22); }
.post-card img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}
.post-card .eyebrow { margin-bottom: 8px; }
.post-card h2,
.post-card h3 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); margin-bottom: 10px; }
.post-card p { color: var(--muted); margin-bottom: 18px; }
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blog-sidebar {
  position: sticky;
  top: 116px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(200,168,90,.25), rgba(255,255,255,0) 48%),
    #ffffff;
  box-shadow: 8px 8px 0 var(--gold);
  padding: 22px;
}
.blog-sidebar h2 { font-size: 1.6rem; }
.blog-sidebar p { color: var(--muted); }
.article-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 76px 20px 96px;
}
.article-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 38px;
  align-items: end;
  margin-bottom: 42px;
}
.article-header h1 { margin-bottom: 22px; }
.author-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--wash);
  padding: 14px;
}
.author-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  background: #fff;
}
.author-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.author-card a { color: var(--teal-dark); border-bottom: 2px solid var(--teal); font-weight: 800; }
.article-body {
  border-top: 2px solid var(--ink);
  padding-top: 34px;
}
.article-body > p,
.article-body > ul,
.article-body > ol {
  max-width: 790px;
  font-size: 1.08rem;
}
.article-body p { margin-bottom: 22px; }
.article-body a { color: var(--teal-dark); border-bottom: 2px solid var(--teal); font-weight: 750; }
.article-body h2 {
  max-width: 820px;
  margin-top: 54px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.1vw, 3.5rem);
}
.article-body ul {
  padding-left: 22px;
  margin-bottom: 28px;
}
.article-body li { margin-bottom: 14px; }
.callout-block,
.final-cta {
  max-width: 860px;
  border: 2px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(17,17,17,.055), rgba(17,17,17,.055) 1px, transparent 1px, transparent 36px),
    #fffaf0;
  box-shadow: 10px 10px 0 var(--gold);
  padding: clamp(22px, 4vw, 38px);
  margin: 34px 0 44px;
}
.callout-block p,
.final-cta p { margin: 0; color: var(--ink); font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 850; letter-spacing: -.025em; }
.final-cta { background: var(--ink); color: white; box-shadow: 10px 10px 0 var(--gold); }
.final-cta h2 { margin: 0 0 12px; color: white; }
.final-cta p { color: #ececec; font-weight: 650; font-size: 1.08rem; margin-bottom: 22px; }
.final-cta .btn { background: white; color: var(--ink); border-color: white; }
.article-image {
  max-width: 920px;
  margin: 32px 0 44px;
  border: 2px solid var(--ink);
  background: white;
  box-shadow: 12px 12px 0 var(--wash);
  padding: 12px;
}
.article-image img { width: 100%; object-fit: contain; background: #fff; }
.screenshot-figure {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
.article-image figcaption,
.carousel-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.sample-carousel {
  max-width: 940px;
  margin: 32px 0 46px;
}
.carousel-shell {
  border: 2px solid var(--ink);
  background: white;
  box-shadow: 12px 12px 0 var(--wash);
  padding: 12px;
}
.carousel-window { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.carousel-track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  margin: 0;
  background: #fff;
}
.carousel-slide img {
  width: 100%;
  height: min(58vw, 560px);
  object-fit: contain;
  background: #fff;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}
.carousel-button {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  min-width: 46px;
  height: 46px;
  font-weight: 900;
  cursor: pointer;
  border-radius: 0;
}
.carousel-button:hover { background: var(--ink); color: white; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; flex: 1; }
.carousel-dot {
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  background: white;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
}
.carousel-dot[aria-current="true"] { background: var(--teal); }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-nav a { color: var(--teal-dark); border-bottom: 2px solid var(--teal); font-weight: 800; }
.reveal { opacity: 0; transform: translateX(-26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.72,.2,1); }
.reveal.from-right { transform: translateX(26px); }
.reveal.from-bottom { transform: translateY(26px); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.from-right, .reveal.from-bottom { opacity: 1; transform: none; transition: none; }
  .carousel-track { transition: none; }
}
@media (max-width: 900px) {
  .blog-layout, .article-header { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .author-card { max-width: 320px; }
}
@media (max-width: 680px) {
  .post-card { grid-template-columns: 1fr; }
  .article-shell { padding-top: 54px; padding-bottom: 76px; }
  .carousel-slide img { height: min(80vw, 440px); }
  .article-nav { flex-direction: column; }
}
