/* Blog, written pages (privacy, terms) and anything a plugin publishes as a normal post. */

/* ---- Reading column ---- */
.entry { padding-top:64px; padding-bottom:88px; }
.entry-inner { max-width:760px; margin:0 auto; }
.entry-head { margin-bottom:32px; }
.entry-head .crumb { margin-bottom:14px; }
.entry-head h1 { font-size:clamp(32px,4vw,48px); line-height:1.1; }
.entry-meta { color:var(--muted); font-size:14px; margin-top:14px; display:flex; gap:14px; flex-wrap:wrap; }
.entry-hero { margin:0 0 36px; }
.entry-hero img { width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border-radius:22px; display:block; }

.entry-content { font-size:18px; line-height:1.7; color:#34363a; }
.entry-content > * + * { margin-top:1.1em; }
.entry-content h2 { font-size:clamp(24px,2.6vw,30px); margin-top:1.8em; color:var(--ink); }
.entry-content h3 { font-size:21px; margin-top:1.6em; color:var(--ink); }
.entry-content h4 { font-family:'Sora',sans-serif; font-size:17px; margin-top:1.4em; color:var(--ink); }
.entry-content a { text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.entry-content strong { color:var(--ink); }
.entry-content ul, .entry-content ol { padding-left:1.3em; }
.entry-content li + li { margin-top:.4em; }
.entry-content blockquote { margin-left:0; margin-right:0; border-left:4px solid var(--lime); padding:4px 0 4px 22px; font-size:20px; color:var(--ink); }
.entry-content img { max-width:100%; height:auto; border-radius:16px; }
.entry-content figure { margin-left:0; margin-right:0; }
.entry-content figcaption { font-size:14px; color:var(--muted); margin-top:8px; }
.entry-content table { width:100%; border-collapse:collapse; font-size:16px; }
.entry-content th, .entry-content td { border-bottom:1px solid var(--line); padding:10px 8px; text-align:left; vertical-align:top; }
.entry-content th { font-family:'Sora',sans-serif; font-size:14px; }
.entry-content pre { background:var(--soft); border-radius:12px; padding:16px; overflow-x:auto; font-size:15px; }
.entry-content hr { border:0; border-top:1px solid var(--line); margin:2em 0; }
.entry-content .wp-block-button__link { background:var(--ink); color:#fff; border-radius:12px; padding:14px 22px; text-decoration:none; font-family:'Sora',sans-serif; font-weight:600; }
.entry-content .alignwide, .entry-content .alignfull { max-width:none; }

/* Written pages (privacy, terms, SMS policy) */
.entry.legal .entry-content { font-size:17px; }
.entry.legal .entry-content h2 { font-size:20px; margin-top:1.8em; }
.entry.legal .entry-content p.meta { color:var(--muted); font-size:14px; }

/* After a post: the pitch, short */
.post-cta { margin-top:56px; background:var(--ink); color:#fff; border-radius:22px; padding:32px; display:grid; grid-template-columns:1fr auto; gap:20px; align-items:center; }
.post-cta h2 { font-size:24px; color:#fff; }
.post-cta p { color:#c9c9cf; margin-top:8px; font-size:16px; }
.post-cta .cta { display:flex; gap:10px; flex-wrap:wrap; }
.post-cta .btn-secondary { background:transparent; color:#fff; border-color:#55555c; }
.post-cta .btn-secondary:hover { background:#2a2a2e; color:#fff; }
.post-cta .btn-lime { background:var(--lime); color:var(--ink); border-color:var(--lime); }
.post-nav { display:flex; justify-content:space-between; gap:16px; margin-top:40px; font-size:15px; }
.post-nav a { display:block; max-width:48%; }
.post-nav span { display:block; color:var(--muted); font-size:13px; }

/* ---- Blog index ---- */
.blog-head { padding-top:72px; padding-bottom:32px; }
.blog-head h1 { font-size:clamp(34px,4.4vw,54px); line-height:1.08; }
.blog-head h1 span { color:var(--deep); }
.blog-head p { font-size:20px; color:var(--muted); margin-top:16px; max-width:760px; }
.blog-filter { display:flex; gap:8px; flex-wrap:wrap; margin-top:24px; }
.blog-filter a { border:1.5px solid var(--line); background:#fff; color:var(--ink); border-radius:999px; padding:7px 14px; font-size:14px; font-weight:600; }
.blog-filter a:hover, .blog-filter a.on { border-color:var(--ink); }
.blog-filter a.on { background:var(--ink); color:#fff; }

.post-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; padding-bottom:40px; }
.post-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; color:var(--ink); transition:border-color .15s, transform .15s; }
.post-card:hover { border-color:var(--deep); transform:translateY(-2px); color:var(--ink); }
.post-card img { width:100%; aspect-ratio:3/2; object-fit:cover; display:block; height:auto; }
.post-card .pc-ph { aspect-ratio:3/2; background:linear-gradient(135deg, #e8f3f7, var(--soft)); display:flex; align-items:center; justify-content:center; color:var(--deep); }
.post-card .pc-body { padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.post-card .pc-cat { font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--deep); font-weight:600; }
.post-card b { font-family:'Sora',sans-serif; font-size:20px; line-height:1.25; letter-spacing:-0.01em; }
.post-card p { color:var(--muted); font-size:15px; flex:1; }
.post-card .pc-date { font-size:13px; color:var(--muted); }
.post-grid .post-card.lead { grid-column:1 / -1; flex-direction:row; }
.post-grid .post-card.lead > img, .post-grid .post-card.lead > .pc-ph { width:58%; flex-shrink:0; }
.post-grid .post-card.lead .pc-body { padding:36px; justify-content:center; }
.post-grid .post-card.lead b { font-size:clamp(24px,2.4vw,32px); }
.post-grid .post-card.lead p { flex:0; font-size:17px; }

.pager { display:flex; gap:8px; justify-content:center; padding:8px 0 88px; flex-wrap:wrap; }
.pager .page-numbers { min-width:44px; height:44px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); font-weight:600; }
.pager .page-numbers.current { background:var(--ink); color:#fff; border-color:var(--ink); }
.pager .page-numbers.dots { border:0; background:none; }

.empty-note { padding:24px 0 88px; color:var(--muted); font-size:18px; max-width:640px; }

/* ---- Not found ---- */
.not-found { padding-top:96px; padding-bottom:96px; max-width:760px; }
.not-found h1 { font-size:clamp(34px,4.4vw,54px); }
.not-found p { font-size:19px; color:var(--muted); margin-top:16px; }
.not-found .cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.search-form { display:flex; gap:10px; margin-top:24px; max-width:520px; }
.search-form input[type=search] { flex:1; height:52px; border:1.5px solid var(--line); border-radius:12px; padding:0 16px; font:inherit; background:#fff; }

@media (max-width: 960px) {
  .post-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns:1fr; }
  .post-grid .post-card.lead { flex-direction:column; }
  .post-grid .post-card.lead > img, .post-grid .post-card.lead > .pc-ph { width:100%; }
  .post-grid .post-card.lead .pc-body { padding:22px; }
  .post-cta { grid-template-columns:1fr; padding:24px; }
  .entry { padding-top:40px; }
  .post-nav { flex-direction:column; }
  .post-nav a { max-width:none; }
}

/* Current page in the menu */
.nav-links a[aria-current="page"] { color:var(--ink); }

/* Skip link: hidden until a keyboard user tabs to it */
.screen-reader-text { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
.skip-link:focus { position:fixed !important; top:12px; left:12px; width:auto; height:auto; clip:auto; z-index:100; background:#fff; color:var(--ink); padding:10px 16px; border-radius:10px; box-shadow:0 4px 20px rgba(0,0,0,.15); }
