/* ── Notebook list ───────────────────────────────────────────────────────── */
.notebook-list__title-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.notebook-rss {
    font-size: 1rem;
    color: var(--my-gray-1);
    text-decoration: none;
    flex-shrink: 0;
    transition: color var(--motion-fast) ease;
}
.notebook-rss:hover { color: var(--bs-body-color); }

.notebook-list__title {
    font-family: var(--my-font-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 200;
    color: var(--bs-body-color);
    margin-bottom: 0.25rem;
}

.notebook-list__desc {
    font-family: var(--my-font-subtitle-alt);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--my-gray-1);
    margin-bottom: 0;
}

.notebook-list__posts {
    margin: 0;
    padding: 0;
}

.notebook-list__entry {
    display: grid;
    grid-template-columns: 7rem 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--my-border-color);
    text-decoration: none;
    color: inherit;
}

.notebook-entry__date {
    grid-row: 1;
    grid-column: 1;
    font-family: var(--my-font-date);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--my-gray-1);
    padding-top: 0.2rem;
    white-space: nowrap;
}

.notebook-entry__title {
    grid-row: 1;
    grid-column: 2;
    font-family: var(--my-font-title);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--bs-body-color);
    line-height: 1.3;
    transition: color var(--motion-fast) ease;
}

.notebook-list__entry:hover .notebook-entry__title {
    color: var(--my-gray-2);
}

.notebook-entry__desc {
    grid-row: 2;
    grid-column: 2;
    font-family: var(--my-font-article-alt);
    font-size: 0.85rem;
    color: var(--my-gray-1);
    margin: 0.3rem 0 0;
    line-height: 1.5;
}

.notebook-empty {
    font-family: var(--my-font-title);
    font-style: italic;
    color: var(--my-gray-1);
}

@media (max-width: 576px) {
    .notebook-list__entry {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .notebook-entry__date {
        grid-column: 1;
        margin-bottom: 0.25rem;
    }

    .notebook-entry__title {
        grid-column: 1;
        grid-row: 2;
    }

    .notebook-entry__desc {
        grid-column: 1;
        grid-row: 3;
    }
}

/* ── Notebook single post ────────────────────────────────────────────────── */
.notebook-post {
    min-height: 60vh;
}

.notebook-post__date {
    display: block;
    font-family: var(--my-font-date);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--my-gray-1);
    margin-bottom: 0.5rem;
}

.notebook-post__title-row {
    position: relative;
}

/* Back-to-notebook caret — hangs in the left gutter (absolute, right:100%) so
   the title stays flush with the date and body rather than being indented.
   Transparent; darkens and nudges left on hover as a back affordance. */
.notebook-post__back {
    position: absolute;
    right: 100%;
    margin-right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--my-gray-1);
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
    transition: color var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.notebook-post__back:hover,
.notebook-post__back:focus-visible {
    color: var(--my-black);
    transform: translateY(-50%) translateX(-3px);
}

/* Below md the article goes full-width with only a 24px (px-4) gutter — not
   enough room for the caret box plus a margin, so drop the gap (the glyph's
   own side-bearing still separates it from the title) to avoid clipping. */
@media (max-width: 767.98px) {
    .notebook-post__back { margin-right: 0; }
}

.notebook-post__title {
    font-family: var(--my-font-title);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 300;
    color: var(--bs-body-color);
    margin-bottom: 0;
}

.notebook-post__body {
    font-family: var(--my-font-article-alt);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--bs-body-color);
}

.notebook-post__body p {
    margin-bottom: 1.25rem;
}
