/* One article-card component for the homepage, categories, archives and search. */
:root{--post-card-bg:#fcfdfb;--post-card-title:#19384a;--post-card-copy:#627781;--post-card-author:#345363;--post-card-line:#dce5e7;--post-card-date:#6c7f87;--post-card-badge:#edf3f6;--post-card-badge-ink:#315c79}
html[data-theme="dark"]{--post-card-bg:#142e39;--post-card-title:#e4f1f5;--post-card-copy:#afc4cd;--post-card-author:#d3e6ed;--post-card-line:#38505a;--post-card-date:#b1c8d2;--post-card-badge:#233f49;--post-card-badge-ink:#d0e6eb}
:is(.home .reading-section,.home .topic-section,main) .post-card{display:flex;flex-direction:column;min-width:0;isolation:isolate;overflow:hidden;border:1px solid var(--post-card-line);border-radius:15px;padding:0;background:var(--post-card-bg);color:var(--post-card-title);box-shadow:0 7px 23px #041a3017;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
:is(.home .reading-section,.home .topic-section,main) .post-card:hover{transform:translateY(-4px);border-color:#83b69f;box-shadow:0 15px 28px #041a3026}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-image{display:block;aspect-ratio:1.8;overflow:hidden;border-radius:0;background:var(--wash)}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-image img{width:100%;height:100%;object-fit:cover}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-content{display:flex;flex-direction:column;flex:1;min-width:0;padding:22px 23px 19px}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 10px;margin-bottom:16px;color:var(--post-card-date);font-size:.6875rem}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-meta>span{max-width:100%;padding:5px 9px;border:1px solid var(--post-card-line);border-radius:4px;background:var(--post-card-badge);color:var(--post-card-badge-ink);font-size:.625rem;letter-spacing:.08em;line-height:1.5;overflow-wrap:anywhere}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-meta>time{color:var(--post-card-date);font-size:.6875rem;white-space:nowrap}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-content h3{font-size:clamp(1.25rem,1.65vw,1.55rem);line-height:1.3;letter-spacing:-.025em;margin-bottom:12px;color:var(--post-card-title);overflow-wrap:anywhere;text-wrap:balance}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-content>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.9375rem;line-height:1.75;color:var(--post-card-copy);margin-bottom:22px}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-byline{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:15px;border-top:1px solid var(--post-card-line);color:var(--post-card-copy);font-size:.6875rem;line-height:1.6}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-byline>.card-author{min-width:0;max-width:72%;color:var(--post-card-author);font-weight:600}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-byline>span:last-child{flex-shrink:0;font-size:.6875rem;white-space:nowrap}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-author>a{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-width:0;line-height:1.4;color:inherit}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-author>a>span:last-child{min-width:0;overflow-wrap:anywhere}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-author-photo{display:inline-flex;flex:0 0 32px;width:32px;height:32px}
:is(.home .reading-section,.home .topic-section,main) .post-card .card-author-photo :is(.author-portrait,.author-initials){width:32px;height:32px;max-width:none;object-fit:cover;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px var(--post-card-line);font-size:.7rem}
@media(max-width:600px){:is(.home .reading-section,.home .topic-section,main) .post-card .card-content{padding:21px}:is(.home .reading-section,.home .topic-section,main) .post-card .card-content h3{font-size:1.45rem}}
@media(prefers-reduced-motion:reduce){:is(.home .reading-section,.home .topic-section,main) .post-card{transition:none}:is(.home .reading-section,.home .topic-section,main) .post-card:hover{transform:none}}

/* Pagination is independent from masthead navigation, including its link resets. */
.pagination{margin-top:40px;text-align:center}
.pagination .nav-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:44px;height:44px;margin:0;padding:0 14px;border:1px solid #37535e;border-radius:999px;background:#17313d;color:#dceef5;font-family:var(--serif);font-size:1rem;font-weight:500;line-height:1;text-decoration:none;white-space:nowrap;position:relative}
.pagination .nav-links a::after{content:none}
.pagination a.page-numbers:hover{background:#295143;border-color:#8bbda6;color:#eff9f3;transform:none;text-decoration:none}
.pagination .page-numbers.current{background:#abd8c1;border-color:#abd8c1;color:#163d2a;font-weight:600}
.pagination .page-numbers.dots{min-width:24px;padding-inline:4px;border-color:transparent;background:transparent;color:var(--muted)}
.pagination :is(.prev,.next){padding-inline:18px}
html[data-theme="light"] .pagination .page-numbers{background:#fff;border-color:#c7d9d0;color:#2d5649}
html[data-theme="light"] .pagination a.page-numbers:hover{background:#edf5ef;border-color:#6a9e83;color:#234b37}
html[data-theme="light"] .pagination .page-numbers.current{background:#2c654b;border-color:#2c654b;color:#fff}
html[data-theme="light"] .pagination .page-numbers.dots{background:transparent;border-color:transparent;color:#617b70}
@media(max-width:480px){.pagination{margin-top:30px}.pagination .nav-links{gap:7px}.pagination .page-numbers{padding-inline:12px;font-size:.9375rem}.pagination :is(.prev,.next){padding-inline:15px}}

/* Source-aware portrait sizing avoids stretching small archived avatars. */
.author-hero-photo{width:var(--profile-photo-width,330px);max-width:100%}
.author-hero-photo>.author-portrait{aspect-ratio:1;object-fit:cover;object-position:center 25%;filter:none}

/* Restored formal portrait: preserve photographic colors in both reading themes. */
.home .francisco-portrait>img.francisco-restored,.bio-hero figure img.francisco-restored{object-position:center 20%;filter:none}

/* The directory shares the homepage author component and reading palettes. */
.writers-directory-page .voices-title{font-family:var(--serif);font-size:clamp(2.2rem,4.1vw,3.4rem);font-weight:500;line-height:1.18;letter-spacing:-.035em;color:var(--ink);margin:0}
.writers-directory-page .voices-section{color:var(--ink)}
.writers-directory-page .breadcrumbs{padding-bottom:15px}
@media(max-width:700px){.writers-directory-page .voices-title{font-size:clamp(2rem,7vw,2.6rem)}}
