/* ─────────────────────────────────────────────────────────────────────────
   Blog Index — "The Journal" front page
   ─────────────────────────────────────────────────────────────────────────
   Pairs with blog-post.css. Same cream paper + EB Garamond + peach accent;
   different layout: a centered masthead at the top, then a table-of-contents
   list of essays. Each entry is laid out like a magazine TOC row — folio
   number on the left, headline + dek + meta on the right, with a generous
   hairline rule between rows.

   The .essay-page wrapper (paper background + scrolling grain) comes from
   blog-post.css; this file only adds the index-specific composition.
   ───────────────────────────────────────────────────────────────────────── */

/* Top folio strip — reuses the same .essay__nav pattern as the post page.
   The masthead sits below, centered. */
.journal {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--essay-step-5) var(--essay-step-3) var(--essay-step-6);
}

@media (max-width: 980px) {
    .journal {
        padding: var(--essay-step-4) var(--essay-step-3) var(--essay-step-5);
    }
}

.journal__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--essay-step-6);
    padding-bottom: var(--essay-step-2);
    border-bottom: 1px solid var(--essay-rule-soft);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--essay-ink-muted);
}
.journal__nav-back {
    text-decoration: none;
    color: var(--essay-ink-muted);
    transition: color 200ms ease, transform 200ms ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.journal__nav-back:hover {
    color: var(--essay-accent);
    transform: translateX(-2px);
}
.journal__nav-back::before {
    content: "←";
    font-size: 0.875rem;
}
.journal__nav-folio {
    font-variant-numeric: tabular-nums;
}

/* ─── Masthead ───────────────────────────────────────────────────────── */

.journal__masthead {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--essay-step-6);
    animation: essay-fade 800ms ease-out both;
}

.journal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--essay-accent);
    margin: 0 0 var(--essay-step-3);
}
.journal__eyebrow::before,
.journal__eyebrow::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--essay-accent);
    opacity: 0.6;
}

.journal__title {
    font-family: "EB Garamond", "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--essay-ink);
    margin: 0 0 var(--essay-step-3);
    text-wrap: balance;
}
.journal__title em {
    font-style: italic;
    color: var(--essay-accent);
}

.journal__dek {
    font-family: "EB Garamond", "Times New Roman", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--essay-ink-soft);
    margin: 0 auto;
    max-width: 40em;
    text-wrap: balance;
}

@media (max-width: 980px) {
    .journal__dek {
        font-size: 1.125rem;
    }
}

/* ─── Section heading above the post list ────────────────────────────── */

.journal__section-head {
    display: flex;
    align-items: baseline;
    gap: var(--essay-step-3);
    margin: 0 0 var(--essay-step-4);
    padding-top: var(--essay-step-3);
    border-top: 1px solid var(--essay-rule-soft);
}
.journal__section-label {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--essay-ink-muted);
    margin: 0;
}
.journal__section-rule {
    flex: 1;
    height: 1px;
    background: var(--essay-rule-soft);
}
.journal__section-count {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--essay-ink-muted);
    margin: 0;
    font-variant-numeric: tabular-nums;
}

/* ─── Post list ──────────────────────────────────────────────────────── */

.journal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: journal-entry;
    animation: essay-fade 800ms ease-out 150ms both;
}

.journal__entry {
    counter-increment: journal-entry;
    border-top: 1px solid var(--essay-rule-soft);
    transition: border-color 250ms ease;
}
.journal__entry:last-child {
    border-bottom: 1px solid var(--essay-rule-soft);
}
.journal__entry:hover {
    border-top-color: var(--essay-accent);
}
.journal__entry:last-child:hover {
    border-bottom-color: var(--essay-accent);
}
.journal__entry:hover + .journal__entry {
    border-top-color: var(--essay-accent);
}

.journal__link {
    display: grid;
    grid-template-columns: 110px 1fr 32px;
    gap: var(--essay-step-3);
    align-items: start;
    padding: var(--essay-step-4) 0;
    text-decoration: none;
    color: inherit;
    transition: color 200ms ease;
}

@media (max-width: 720px) {
    .journal__link {
        grid-template-columns: 60px 1fr;
        gap: var(--essay-step-2);
        padding: var(--essay-step-3) 0;
    }
}

/* Folio — Roman numerals or "№" notation. Sits left, italic peach,
   tabular for column-aligned numerals. The same magazine-margin
   convention as Roman section markers on the post page. */
.journal__folio {
    font-family: "EB Garamond", "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--essay-accent);
    margin: 0;
    padding-top: 0.375rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
@media (max-width: 720px) {
    .journal__folio {
        font-size: 1.125rem;
    }
}

.journal__entry-body {
    min-width: 0;
}

.journal__entry-title {
    font-family: "EB Garamond", "Times New Roman", serif;
    font-weight: 400;
    font-size: 1.875rem;
    line-height: 1.2;
    letter-spacing: -0.012em;
    color: var(--essay-ink);
    margin: 0 0 0.75rem;
    text-wrap: balance;
    transition: color 200ms ease;
}
@media (max-width: 720px) {
    .journal__entry-title {
        font-size: 1.375rem;
    }
}
.journal__link:hover .journal__entry-title {
    color: var(--essay-accent);
}

.journal__entry-dek {
    font-family: "EB Garamond", "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--essay-ink-soft);
    margin: 0 0 var(--essay-step-2);
    max-width: 38em;
}
@media (max-width: 720px) {
    .journal__entry-dek {
        font-size: 1rem;
    }
}

.journal__entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.875rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--essay-ink-muted);
    margin: 0;
}
.journal__entry-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--essay-ink-muted);
    opacity: 0.5;
}
.journal__entry-meta-author {
    color: var(--essay-ink);
    font-weight: 600;
}
.journal__entry-meta-keyword {
    color: var(--essay-accent);
    font-weight: 600;
}

.journal__arrow {
    align-self: center;
    font-family: "EB Garamond", serif;
    font-size: 1.5rem;
    color: var(--essay-ink-muted);
    transition: color 200ms ease, transform 250ms ease;
    line-height: 1;
}
.journal__link:hover .journal__arrow {
    color: var(--essay-accent);
    transform: translateX(6px);
}
@media (max-width: 720px) {
    .journal__arrow {
        display: none;
    }
}

/* ─── Empty state ────────────────────────────────────────────────────── */

.journal__empty {
    text-align: center;
    padding: var(--essay-step-6) 0;
    border-top: 1px solid var(--essay-rule-soft);
    border-bottom: 1px solid var(--essay-rule-soft);
}
.journal__empty-ornament {
    color: var(--essay-accent);
    font-family: "EB Garamond", serif;
    font-size: 1.5rem;
    letter-spacing: 1.5em;
    padding-left: 1.5em;
    opacity: 0.7;
    margin-bottom: var(--essay-step-3);
}
.journal__empty-title {
    font-family: "EB Garamond", "Times New Roman", serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--essay-ink);
    margin: 0 0 0.5rem;
}
.journal__empty-text {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    color: var(--essay-ink-muted);
    margin: 0;
}

/* ─── Sign-off CTA at the foot of the journal ────────────────────────── */

.journal__signoff {
    margin-top: var(--essay-step-6);
    padding-top: var(--essay-step-4);
    text-align: center;
}
.journal__signoff-eyebrow {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--essay-accent);
    margin: 0 0 var(--essay-step-1);
}
.journal__signoff-title {
    font-family: "EB Garamond", "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.625rem;
    line-height: 1.3;
    color: var(--essay-ink);
    margin: 0 auto var(--essay-step-3);
    max-width: 22em;
    text-wrap: balance;
}
.journal__signoff-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.75rem;
    background: var(--essay-ink);
    color: #fff;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 200ms ease, color 200ms ease, gap 200ms ease;
}
.journal__signoff-button:hover {
    background: var(--essay-accent);
    color: var(--essay-ink);
    gap: 0.875rem;
}
.journal__signoff-button::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
}
