/* ═══════════════════════════════════════════════════════════════════════════
   All Articles Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ──────────────────────────────────────────────────────────── */

.aa-page {
    padding: 5rem 0 9rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.aa-hero {
    padding-bottom: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.aa-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.aa-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.28rem 0.75rem;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.06);
    color: #555;
}

.aa-hero__title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #111;
    margin: 0 0 1.25rem;
}

.aa-hero__sub {
    font-size: 1rem;
    color: #888;
    max-width: 52ch;
    margin: 0 0 2.75rem;
    line-height: 1.7;
}

.aa-hero__stats {
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.aa-stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.1rem;
}

.aa-stat__num {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #111;
    margin: 0;
}

.aa-stat__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c0c0c0;
}

/* ── Featured Article ──────────────────────────────────────────────────────── */

.aa-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0;
    text-decoration: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.aa-featured.visible {
    opacity: 1;
    transform: translateY(0);
}

.aa-featured__img {
    overflow: hidden;
    background: #efefef;
    min-height: 340px;
}

.aa-featured__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.aa-featured:hover .aa-featured__img img {
    transform: scale(1.04);
}

.aa-featured__body {
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

.aa-featured__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.aa-featured__badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111;
    background: rgba(0, 0, 0, 0.07);
    padding: 0.22rem 0.6rem;
    border-radius: 100px;
}

.aa-featured__meta {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ccc;
    font-variant-numeric: tabular-nums;
}

.aa-featured__title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #111;
    margin: 0 0 1rem;
    transition: color 0.2s ease;
}

.aa-featured:hover .aa-featured__title {
    color: #444;
}

.aa-featured__excerpt {
    font-size: 0.88rem;
    line-height: 1.78;
    color: #888;
    margin: 0;
    flex: 1;
}

.aa-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    margin-top: 2rem;
    border-bottom: none;
    transition: gap 0.22s ease;
}

.aa-featured:hover .aa-featured__cta {
    gap: 0.7rem;
}

/* ── Article List ──────────────────────────────────────────────────────────── */

.aa-list {
    margin-top: 0;
}

.aa-list__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-top: 1.5px solid #111;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.aa-list__label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #111;
}

.aa-list__count {
    font-size: 0.62rem;
    font-weight: 600;
    color: #ccc;
}

/* ── List item ─────────────────────────────────────────────────────────────── */

.aa-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 1.5rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.aa-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.aa-item__img {
    width: 96px;
    height: 68px;
    border-radius: 7px;
    overflow: hidden;
    background: #efefef;
    flex-shrink: 0;
}

.aa-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.aa-item:hover .aa-item__img img {
    transform: scale(1.07);
}

.aa-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.aa-item__meta {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ccc;
    font-variant-numeric: tabular-nums;
}

.aa-item__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.016em;
    line-height: 1.3;
    color: #111;
    margin: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aa-item:hover .aa-item__title {
    color: #555;
}

.aa-item__excerpt {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #bbb;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aa-item__arrow {
    font-size: 1rem;
    color: #ddd;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.aa-item:hover .aa-item__arrow {
    color: #888;
    transform: translateX(3px);
}

/* ── Dark mode ─────────────────────────────────────────────────────────────── */

body.dark-mode .aa-hero { border-color: rgba(255, 255, 255, 0.06); }
body.dark-mode .aa-hero__title { color: #f0f0f0; }
body.dark-mode .aa-hero__sub   { color: #666; }
body.dark-mode .aa-stat__num   { color: #f0f0f0; }

body.dark-mode .aa-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
}

body.dark-mode .aa-featured { border-color: rgba(255, 255, 255, 0.07); }
body.dark-mode .aa-featured__img { background: #222; }
body.dark-mode .aa-featured__body { background: #161616; }
body.dark-mode .aa-featured__badge {
    background: rgba(255, 255, 255, 0.09);
    color: #ccc;
}
body.dark-mode .aa-featured__title { color: #f0f0f0; }
body.dark-mode .aa-featured:hover .aa-featured__title { color: #bbb; }
body.dark-mode .aa-featured__excerpt { color: #666; }
body.dark-mode .aa-featured__cta { color: #e0e0e0; }

body.dark-mode .aa-list__header { border-top-color: rgba(255, 255, 255, 0.5); border-bottom-color: rgba(255, 255, 255, 0.07); }
body.dark-mode .aa-list__label { color: #e0e0e0; }
body.dark-mode .aa-list__count { color: #444; }

body.dark-mode .aa-item { border-color: rgba(255, 255, 255, 0.06); }
body.dark-mode .aa-item__img { background: #222; }
body.dark-mode .aa-item__meta { color: #444; }
body.dark-mode .aa-item__title { color: #f0f0f0; }
body.dark-mode .aa-item:hover .aa-item__title { color: #bbb; }
body.dark-mode .aa-item__excerpt { color: #555; }
body.dark-mode .aa-item__arrow { color: #3a3a3a; }
body.dark-mode .aa-item:hover .aa-item__arrow { color: #777; }

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .aa-featured { grid-template-columns: 1fr; }
    .aa-featured__img { min-height: 240px; }
    .aa-featured__body { padding: 1.75rem 2rem; }
    .aa-featured__title { font-size: 1.35rem; }
    .aa-item { grid-template-columns: 80px 1fr auto; gap: 1.1rem; }
    .aa-item__img { width: 80px; height: 58px; }
    .aa-item__title { white-space: normal; }
}

@media (max-width: 480px) {
    .aa-page { padding: 3rem 0 5rem; }
    .aa-hero { margin-bottom: 2.5rem; padding-bottom: 3rem; }
    .aa-hero__stats { gap: 1.75rem; }
    .aa-stat__num { font-size: 1.6rem; }
    .aa-item { grid-template-columns: 72px 1fr; }
    .aa-item__arrow { display: none; }
    .aa-item__img { width: 72px; height: 52px; }
}
