/* Editorial compositions layered after each page's original local styles. */
.blog-index main > .container { max-width: 1160px; }
.blog-index .page-header { padding-bottom: 40px; margin-bottom: 38px; border-bottom: 1px solid var(--rule); }
.blog-index .page-title { max-width: 700px; }
.blog-index .post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 0; }
.post-item {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; padding: 32px; border: 1px solid var(--rule); border-radius: 20px;
  background: var(--surface); text-decoration: none; color: var(--ink); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.post-item::after { content: '\2197'; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 50%; margin-top: 24px; font-size: 19px; line-height: 1; color: var(--accent); }
.post-item:last-child { border-bottom: 1px solid var(--rule); }
.post-item:hover { transform: translateY(-3px); border-color: #b2c2b0; box-shadow: 0 10px 30px rgba(24,45,38,.06); }
.post-item h2 { font-family: var(--font-display); font-size: 29px; font-weight: 400; letter-spacing: -.025em; line-height: 1.22; margin-bottom: 16px; text-wrap: balance; }
.post-date { color: var(--ink-muted); font-size: 13px; letter-spacing: .13em; font-weight: 600; text-transform: uppercase; margin-bottom: 22px; }
.post-excerpt { flex: 1; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.post-item:first-child { grid-column: 1 / -1; background: var(--accent); color: var(--bg); padding: 44px; padding-right: 30%; }
.post-item:first-child h2 { font-size: clamp(30px, 3.3vw, 40px); max-width: 730px; }
.post-item:first-child .post-date { color: var(--accent-soft); }
.post-item:first-child .post-excerpt { color: #d0ded0; max-width: 640px; }
.post-item:first-child::after { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.post-item:first-child::before {
  content: ''; position: absolute; width: 200px; height: 210px; right: 36px; top: 50%; margin-top: -105px;
  background-color: transparent;
  background-image: linear-gradient(to right, rgba(224,239,172,.19) 1px, transparent 1px), linear-gradient(to bottom, rgba(224,239,172,.19) 1px, transparent 1px);
  background-size: 40px 42px; border: 1px solid rgba(224,239,172,.22); border-radius: 18px;
  transform: rotate(-9deg); pointer-events: none;
  box-shadow: inset 0 42px rgba(224,239,172,.14), 14px 15px 0 rgba(224,239,172,.05);
}
.post-item:first-child:hover h2 { color: var(--accent-soft); }
.empty-state { grid-column: 1 / -1; padding: 64px 20px; border: 1px solid var(--rule); border-radius: 20px; background: var(--surface); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 16px; font-weight: 500; text-decoration: none; margin-bottom: 32px; }
.back-link:hover { color: var(--ink); }
.post-title { font-family: var(--font-display); font-size: clamp(36px, 4.8vw, 54px); line-height: 1.13; font-weight: 400; letter-spacing: -.04em; margin-bottom: 24px; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--ink-muted); font-size: 16px; margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.cta-box { margin: 38px 0; padding: 28px 30px; background: var(--surface-2); border: 1px solid #cdd8c8; border-radius: 16px; }
.cta-box p { margin-bottom: 14px; }
.cta-box p:last-child { margin-bottom: 0; }
.tool-card { margin: 28px 0; padding: 28px 30px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); }
.tool-card .tool-tagline { font-size: 17px; color: var(--ink-muted); }
.legal-page .page-header { border-bottom: 1px solid var(--rule); padding-bottom: 30px; }
.legal-page .page-sub { font-size: 16px; color: var(--ink-muted); }
.legal-page .prose > p:first-child { background: var(--surface-2); border: 1px solid var(--rule); padding: 26px 28px; border-radius: 16px; }
.contact-page main > .container { max-width: 1080px; display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 68px; align-items: start; }
.contact-page .page-header { grid-column: 1; margin-top: 12px; }
.contact-page .page-header .page-sub { font-size: 18px; line-height: 1.85; }
.contact-page main > .container > .card { grid-column: 2; grid-row: 1 / span 2; padding: 32px; }
.contact-page main > .container > div:last-child:not(.card) { grid-column: 1; text-align: left !important; align-self: end; padding-top: 24px; border-top: 1px solid var(--rule); margin-top: 0 !important; font-size: 16px !important; }
.contact-page form > .btn { width: 100%; justify-content: space-between; }
.thanks-page main { display: flex; align-items: center; min-height: 540px; padding-top: 60px; padding-bottom: 80px; }
.thanks-page main > .container { padding-top: 0 !important; }
.thanks-page main > .container > div:first-child { width: 76px !important; height: 76px !important; border: 1px solid #c8da9b; margin-bottom: 28px !important; }
.thanks-page main > .container > div:first-child svg { stroke: var(--accent); }
.thanks-page .page-sub { max-width: 400px; }
body.not-found-page { display: grid; place-items: center; padding: 24px; text-align: center; background: var(--bg); color: var(--ink); }
.not-found-page .wrap { max-width: 620px; padding: 64px 42px; border: 1px solid var(--rule); border-radius: 28px; background: var(--surface); box-shadow: 0 12px 50px rgba(24,45,38,.035); }
.not-found-page .mark { width: 64px; height: 64px; background: var(--accent); border-radius: 19px; margin: 0 auto 32px; }
.not-found-page .mark svg { color: var(--accent-soft); }
.not-found-page h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 400; letter-spacing: -.04em; line-height: 1.08; margin-bottom: 22px; }
.not-found-page h1 em { color: var(--accent); }
.not-found-page p { color: var(--ink-soft); font-size: 18px; line-height: 1.8; margin-bottom: 30px; }
@media (max-width: 900px) {
  .contact-page main > .container { column-gap: 36px; grid-template-columns: .8fr 1.2fr; }
  .post-item:first-child { padding-right: 34%; }
  .post-item:first-child::before { right: 28px; width: 140px; height: 168px; margin-top: -84px; background-size: 35px 42px; }
}
@media (max-width: 700px) {
  .blog-index .post-list { grid-template-columns: 1fr; gap: 18px; }
  .blog-index .page-header { padding-bottom: 26px; margin-bottom: 26px; }
  .post-item, .post-item:first-child { grid-column: auto; padding: 28px; }
  .post-item:first-child::before { display: none; }
  .post-item h2 { font-size: 27px; }
  .post-item:first-child h2 { font-size: 32px; }
  .post-date { margin-bottom: 18px; }
  .contact-page main > .container { display: block; max-width: 620px; }
  .contact-page .page-header { margin-top: 0; }
  .contact-page main > .container > .card { padding: 24px; }
  .contact-page main > .container > div:last-child:not(.card) { margin-top: 24px !important; padding-top: 20px; }
  .post-title { font-size: 36px; }
  .cta-box, .tool-card { padding: 24px; }
  .legal-page .prose > p:first-child { padding: 22px; }
  .thanks-page main { min-height: 470px; }
  .not-found-page .wrap { padding: 48px 24px; }
}
