/* Blog listing + articles — new-design language (tokens from css/home.css). */
.blog-page .page > section:first-child { min-height: 0; }
.blog-page .page { overflow: visible; overflow-x: clip; }

.b-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.b-eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); }
.b-eyebrow--light { color: var(--sage); }
.b-kicker { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.b-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.b-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.b-crumbs a { color: var(--muted); }
.b-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.b-section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.b-section-head h2 { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.b-btn:hover { transform: translateY(-2px); }
.b-btn--accent { background: var(--accent); color: var(--ink); }
.b-btn--accent:hover { color: var(--ink); box-shadow: 0 14px 28px -14px rgba(244, 166, 42, .95); }
.b-btn--ghost { border: 1px solid var(--mint); color: var(--mint); }
.b-btn--ghost:hover { color: #fff; }

/* Listing */
.blog-hero { display: flex; flex-direction: column; gap: 20px; padding: clamp(48px, 6vw, 88px) var(--gutter) 40px;
  background-color: var(--paper); background-image: linear-gradient(#ECE8DD 1px, transparent 1px), linear-gradient(90deg, #ECE8DD 1px, transparent 1px); background-size: 48px 48px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { max-width: 820px; font-family: var(--display); font-size: clamp(38px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.blog-hero p { max-width: 680px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.blog-list { display: flex; flex-direction: column; gap: 28px; padding: 56px var(--gutter) var(--sy); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.post-card:hover { color: var(--ink); transform: translateY(-4px); border-color: #CFC8B8; box-shadow: 0 28px 56px -36px rgba(15, 43, 36, .45); }
.post-card__img { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: var(--deep); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 28px; }
.post-card__meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-card__title { font-family: var(--display); font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.post-card__excerpt { font-size: 15.5px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 600; }
.post-card--feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.post-card--feature .post-card__img { aspect-ratio: auto; min-height: 340px; }
.post-card--feature .post-card__body { justify-content: center; padding: 40px; gap: 16px; }
.post-card--feature .post-card__title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.post-card--feature .post-card__excerpt { -webkit-line-clamp: 4; font-size: 16.5px; }

/* Article */
.post { padding: clamp(40px, 5vw, 72px) var(--gutter) 0; }
.post-hero { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.post-hero h1 { font-family: var(--display); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--muted); }
.post-cover { max-width: 1080px; margin: 36px auto 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.post-cover img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.prose { max-width: 720px; margin: 48px auto 0; font-size: 18px; line-height: 1.8; color: #2A3833; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-family: var(--display); font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.prose h3 { margin-top: 1.6em; font-family: var(--display); font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); font-size: 19px; line-height: 1.65; color: var(--ink); }
.prose img { border-radius: 14px; }
.prose strong, .prose b { color: var(--ink); }
.post-video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: 18px; overflow: hidden; background: #000; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-share { max-width: 720px; margin: 48px auto 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 15px; }
.post-share span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-share a { font-weight: 600; color: var(--ink); }
.post-related { padding: var(--sy) var(--gutter); }
.post-grid--mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card--mini { padding: 26px; gap: 12px; }
.post-card--mini .post-card__title { font-size: 19px; }

/* Demo band */
.blog-cta { margin-top: var(--sy); display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: clamp(48px, 6vw, 80px) var(--gutter); background: var(--deep); color: var(--mint); }
.blog-cta > div:first-child { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.blog-cta h2 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.blog-cta p { font-size: 17px; line-height: 1.6; color: var(--sage); }
.blog-cta__actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.blog-index .blog-cta { margin-top: 0; }

@media (max-width: 1023px) {
  .post-card--feature { grid-template-columns: 1fr; }
  .post-card--feature .post-card__img { min-height: 0; aspect-ratio: 16 / 8; }
  .post-grid--mini { grid-template-columns: 1fr; }
  .blog-cta { flex-direction: column; align-items: stretch; }
}
@media (max-width: 767px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card__body, .post-card--feature .post-card__body { padding: 22px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .blog-hero p { font-size: 17px; }
}
.page .post-cover { margin: 36px auto 0; }

/* Legal pages: contents list beside the text */
.legal .post-hero, .legal-layout { max-width: 1080px; }
.legal .post-hero { margin: 0 auto; }
.legal-layout { margin: 48px auto 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-layout .prose { margin: 0; max-width: 720px; }
.legal-toc { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: #8A5000; text-decoration: underline; }
.legal-toc__contact { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.prose h2 { scroll-margin-top: 110px; }
@media (max-width: 1023px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal-toc { position: static; }
}

/* Previous / next article */
.post-nav { max-width: 1080px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-nav__link { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.post-nav__link:hover { color: var(--ink); transform: translateY(-3px); border-color: #CFC8B8; box-shadow: 0 24px 48px -32px rgba(15, 43, 36, .45); }
.post-nav__next { flex-direction: row-reverse; text-align: right; }
.post-nav__img { flex: 0 0 150px; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; background: var(--deep); }
.post-nav__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-nav__link:hover .post-nav__img img { transform: scale(1.07); }
.post-nav__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-nav__dir { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono, 'IBM Plex Mono', monospace); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-nav__next .post-nav__dir { justify-content: flex-end; }
.post-nav__dir svg { transition: transform .25s ease; }
.post-nav__prev:hover .post-nav__dir svg { transform: translateX(-4px); }
.post-nav__next:hover .post-nav__dir svg { transform: translateX(4px); }
.post-nav__title { font-family: var(--display); font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
/* All other posts, as picture cards, before the demo band */
.bl__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bl__grid--4 .bl-card__title { font-size: 18px; }
.post-related + .blog-cta { margin-top: 0; }
@media (max-width: 1279px) { .bl__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bl__grid--4 .bl-card { flex-direction: column; } .bl__grid--4 .bl-card__img { flex: none; aspect-ratio: 2 / 1; } }
@media (max-width: 767px) {
  .post-nav { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .post-nav__img { flex-basis: 108px; }
  .post-nav__title { font-size: 16px; }
  .bl__grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* Thank-you page */
.ty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: clamp(56px, 8vw, 104px) var(--gutter) var(--sy);
  background-color: var(--paper); background-image: linear-gradient(#ECE8DD 1px, transparent 1px), linear-gradient(90deg, #ECE8DD 1px, transparent 1px); background-size: 48px 48px; }
.ty__badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--accent); box-shadow: 0 0 0 10px rgba(244, 166, 42, .16); animation: ty-pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.ty__tick { stroke-dasharray: 24; stroke-dashoffset: 24; animation: ty-draw .5s ease .45s forwards; }
@keyframes ty-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }
.ty__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ty__eyebrow > span { width: 20px; height: 2px; background: var(--accent); }
.ty h1 { max-width: 760px; font-family: var(--display); font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.ty__lead { max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.ty__steps { list-style: none; margin: 24px 0 8px; padding: 0; width: 100%; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.ty-step { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.ty-step__n { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: #8A5000; }
.ty-step h2 { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.ty-step p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.ty__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }
.ty__link { font-weight: 600; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.ty__call { font-size: 15px; color: var(--muted); }
.ty__call a { color: var(--ink); font-weight: 600; }
@media (max-width: 767px) { .ty__steps { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ty__badge, .ty__tick { animation: none; stroke-dashoffset: 0; } }
/* 404 */
.nf__code { font-family: var(--display); font-size: clamp(96px, 16vw, 180px); line-height: .9; font-weight: 800; letter-spacing: -.05em; color: var(--deep); -webkit-text-stroke: 0; background: linear-gradient(180deg, var(--deep) 55%, var(--accent) 55%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nf__links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nf-link { height: 100%; color: var(--ink); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.nf-link:hover { color: var(--ink); transform: translateY(-4px); border-color: #CFC8B8; box-shadow: 0 24px 48px -32px rgba(15, 43, 36, .45); }
.nf-link__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; font-size: 15px; }
@media (max-width: 1023px) { .nf__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .nf__links { grid-template-columns: minmax(0, 1fr); } }
