/* adrienpavao.com — blog index and blog posts.
   Loaded after css/home.css, which provides the tokens, nav, cards and footer. */

/* ---------- page header (blog index) ---------- */
.page-head {
  background:
    radial-gradient(ellipse 70% 120% at 85% 0%, rgba(37, 71, 168, .5), transparent 60%),
    linear-gradient(180deg, var(--band-bg) 0%, var(--band-bg-2) 100%);
  color: var(--band-ink);
  position: relative;
  overflow: hidden;
}
.page-head::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; padding-block: clamp(44px, 6vw, 72px); }
.page-head h1 { font-size: clamp(40px, 5vw, 60px); margin: 0 0 10px; }
.page-head p { color: var(--band-soft); font-size: 18px; max-width: 60ch; margin: 0; }
.crumb { font: 500 13px "IBM Plex Mono", monospace; color: var(--band-accent); text-decoration: none; display: inline-block; margin-bottom: 14px; }
.crumb:hover { color: var(--band-ink); }

.menu a[aria-current="page"] { color: var(--band-ink); }

/* blog index grid */
.posts.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts.wide .thumb { height: 170px; background: #fff; }
.posts.wide .thumb img { object-fit: contain; }
.posts.wide h3 { font-size: 19px; }
@media (max-width: 1000px) { .posts.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .posts.wide { grid-template-columns: minmax(0, 1fr); } }

/* ---------- blog post ---------- */
.post { background: var(--surf); }
.post .wrap { max-width: 780px; padding-block: clamp(32px, 5vw, 56px) clamp(56px, 7vw, 88px); }
.post .crumb { color: var(--blue); }
.post .crumb:hover { color: var(--ink); }

.post hr.section-divider { display: none; }
.post .e-content { color: #1E293B; font-size: 19px; line-height: 1.75; }
.post .e-content p { margin: 0 0 22px; }
.post .e-content a { color: var(--blue); text-decoration: underline; text-decoration-color: #BFD0EA; text-underline-offset: 3px; }
.post .e-content a:hover { text-decoration-color: var(--blue); }
.post .e-content strong { font-weight: 600; color: var(--ink); }

.post .e-content h3.graf--title { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 26px; color: var(--ink); text-wrap: balance; }
.post .e-content h3 { font-size: 27px; line-height: 1.2; letter-spacing: -.015em; margin: 46px 0 14px; color: var(--ink); }
.post .e-content h4 { font-size: 21px; line-height: 1.3; margin: 34px 0 10px; color: var(--ink); }
.post .e-content h3 + h4 { margin-top: 10px; }

.post figure { margin: 30px 0; }
.post figure img, .post .e-content img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; }
.post figcaption { margin-top: 10px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--soft); }

.post .e-content ul, .post .e-content ol { margin: 0 0 22px; padding-left: 26px; }
.post .e-content li { margin-bottom: 8px; padding-left: 4px; }
.post .e-content li::marker { color: var(--steel); }

.post blockquote, .post .graf--blockquote { margin: 26px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--amber-hi); color: var(--soft); font-style: italic; }
.post .graf--pullquote { margin: 34px 0; text-align: center; font-size: 25px; line-height: 1.4; font-style: italic; color: var(--blue); }

.post code { font: 0.88em "IBM Plex Mono", monospace; background: var(--tint); border-radius: 5px; padding: 1px 6px; }
.post table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0 26px; }
.post th, .post td { padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.post th { color: var(--ink); border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.post .center { text-align: center; }
.post .main-logo { display: block; width: 205px; max-width: 45%; height: auto; margin: 0 auto; }

/* end of post: back links */
.post-end { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Philosoph-IA ---------- */
.series-title { margin: 0 0 14px; line-height: 0; }
.series-logo { display: block; width: min(460px, 100%); height: auto; }
.follow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.follow a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--band-rule); background: rgba(255, 255, 255, .06); color: var(--band-soft); font-size: 14px; font-weight: 500; text-decoration: none; }
.follow a:hover { background: rgba(255, 255, 255, .14); color: var(--band-ink); }
.eps-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 24px; }
.posts.eps .thumb { height: auto; aspect-ratio: 3 / 2; background: var(--navy); }
.posts.eps .thumb img { object-fit: cover; }
.post-end .follow { margin-top: 0; }
.post-end .follow a { border-color: var(--rule); background: var(--surf); color: var(--ink); }
.post-end .follow a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
