/* ============================================================
   Voronkin Studio — news listing & article styles
   ============================================================ */

/* ── Shared meta labels ── */
.news-cat {
    display: inline-block;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-s);
    padding: 2px 8px;
    border-radius: 999px;
}

.news-read {
    font-size: 0.78rem;
    color: var(--faint);
}

/* ════════════════════════════════════════════════════
   NEWS LISTING PAGE
════════════════════════════════════════════════════ */

.news-page {
    padding-top: clamp(96px, 12vw, 160px);
    padding-bottom: clamp(64px, 8vw, 120px);
}

/* ── Hero ── */
.news-hero {
    padding: 0 var(--ph) clamp(48px, 6vw, 80px);
    max-width: var(--w);
    margin: 0 auto;
}

.news-hero .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.news-hero h1 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    line-height: 1.08;
    letter-spacing: 0;
    color: var(--text);
    margin-bottom: clamp(14px, 2vw, 22px);
}

.news-hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.news-hero-sub {
    font-size: clamp(0.96rem, 1.4vw, 1.1rem);
    color: var(--muted);
    max-width: 52ch;
}

/* ── Grid ── */
.news-grid-section {
    padding: 0 var(--ph);
    max-width: var(--w);
    margin: 0 auto;
}

.news-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2vw, 28px);
}

/* Featured card spans full width */
.news-card--featured {
    grid-column: 1 / -1;
}

/* ── Card image ── */
.news-card-img {
    margin: 0 0 20px;
    border-radius: 3px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card-inner:hover .news-card-img img {
    transform: scale(1.03);
}

.news-card-inner {
    display: block;
    padding: clamp(24px, 3vw, 40px);
    background: var(--panel);
    border: 1px solid var(--line-s);
    border-radius: 4px;
    height: 100%;
    transition: border-color 0.22s ease;
    overflow: hidden;
}

.news-card-inner:hover {
    border-color: rgba(165, 80, 36, 0.32);
}

.news-card--featured .news-card-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.news-card--featured .news-card-img {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 7;
    margin-bottom: 24px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.news-card--featured .news-card-meta {
    grid-column: 1 / -1;
}

.news-card-meta time {
    font-size: 0.8rem;
    color: var(--faint);
}

.news-card-title {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.32;
    color: var(--text);
    margin-bottom: 12px;
}

.news-card--featured .news-card-title {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    grid-column: 1;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.68;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card--featured .news-card-excerpt {
    -webkit-line-clamp: 4;
    font-size: 0.96rem;
    grid-column: 1;
}

.news-card-cta {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--gold);
    align-self: end;
}

.news-card--featured .news-card-cta {
    grid-column: 1;
}

.news-empty {
    color: var(--muted);
    padding: 40px 0;
    text-align: center;
}

/* ── Pagination ── */
.news-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(40px, 5vw, 72px) var(--ph) 0;
    max-width: var(--w);
    margin: 0 auto;
    flex-wrap: wrap;
}

.pager-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.84rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    transition: border-color 0.18s, color 0.18s;
}

.pager-btn:not(.pager-disabled):hover {
    border-color: var(--gold);
    color: var(--text);
}

.pager-disabled {
    opacity: 0.28;
    cursor: default;
    pointer-events: none;
}

.pager-pages {
    display: flex;
    gap: 6px;
}

.pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.84rem;
    color: var(--muted);
    border: 1px solid transparent;
    transition: border-color 0.18s, color 0.18s;
}

.pager-num:hover {
    border-color: var(--line);
    color: var(--text);
}

.pager-num--active {
    border-color: var(--gold);
    color: var(--gold);
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════
   SINGLE ARTICLE PAGE
════════════════════════════════════════════════════ */

.article-page {
    padding-top: clamp(96px, 12vw, 160px);
    padding-bottom: clamp(64px, 8vw, 120px);
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 var(--ph) clamp(32px, 4vw, 56px);
    max-width: var(--w);
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--faint);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--text); }

/* ── Article ── */
.article {
    padding: 0 var(--ph);
    max-width: 960px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: clamp(32px, 4vw, 56px);
    padding-bottom: clamp(28px, 3.5vw, 48px);
    border-bottom: 1px solid var(--line-s);
    max-width: 72ch;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-meta time {
    font-size: 0.82rem;
    color: var(--faint);
}

.article-header h1 {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    color: var(--muted);
    line-height: 1.72;
}

/* ── Article hero image — full article width ── */
.article-hero-img {
    margin-top: clamp(24px, 3vw, 40px);
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
}

.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Body ── */
.article-body {
    font-size: 1rem;
    line-height: 1.82;
    color: rgba(241, 232, 220, 0.85);
    max-width: 72ch;
}

.article-body p {
    margin-bottom: 1.4em;
}

.article-body h2 {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text);
    margin: 2em 0 0.7em;
}

.article-body h3 {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin: 1.6em 0 0.5em;
}

.article-body a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body code {
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 0.88em;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line-s);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--copper-hi);
}

.article-body ul, .article-body ol {
    padding-left: 1.4em;
    margin-bottom: 1.4em;
}

.article-body li { margin-bottom: 0.4em; }

.article-body blockquote {
    border-left: 2px solid var(--gold);
    padding-left: 20px;
    margin: 1.6em 0;
    color: var(--muted);
    font-style: italic;
}

/* ── Footer ── */
.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: clamp(40px, 5vw, 72px);
    padding-top: clamp(28px, 3.5vw, 40px);
    border-top: 1px solid var(--line-s);
}

.back-link {
    font-size: 0.88rem;
    color: var(--muted);
    transition: color 0.15s;
}

.back-link:hover { color: var(--text); }

/* ── Article nav ── */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2vw, 28px);
    padding: clamp(40px, 5vw, 64px) var(--ph) 0;
    max-width: 800px;
    margin: 0 auto;
}

.article-nav-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(18px, 2.5vw, 28px);
    border: 1px solid var(--line-s);
    border-radius: 4px;
    background: var(--panel);
    transition: border-color 0.22s;
}

.article-nav-card:hover { border-color: rgba(165,80,36,0.32); }

.article-nav-older { text-align: right; }

.article-nav-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.article-nav-title {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.36;
}

/* ── Nav current ── */
.nlinks a.is-current {
    color: var(--gold);
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card--featured { grid-column: 1; }
    .news-card--featured .news-card-inner { display: block; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav-older { text-align: left; }
}
