/*
 * List components
 *
 * All list-shaped content across the three page templates: the homepage's
 * tended list, start-here list, and subjects list; the collection page's
 * article list. Shared visual rhythm: date + title + one-line teaser rows
 * with subtle separators.
 */

/* Recently tended list (homepage) */
.tended-list {
    list-style: none;
}

.tended-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.tended-item:last-child {
    border-bottom: none;
}

.tended-date {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-ink-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.tended-date .marker {
    color: var(--color-primary);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.4rem;
    font-weight: 600;
}

.tended-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.tended-title a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.tended-title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.tended-teaser {
    font-size: 1rem;
    color: var(--color-ink-muted);
    line-height: 1.5;
    max-width: 620px;
}

/* Start here list (homepage) */
.starthere-list {
    list-style: none;
    counter-reset: starthere;
}

.starthere-item {
    padding: var(--space-sm) 0;
    counter-increment: starthere;
    display: flex;
    gap: var(--space-md);
    align-items: baseline;
    border-bottom: 1px solid var(--color-border);
}

.starthere-item:last-child {
    border-bottom: none;
}

.starthere-item::before {
    content: counter(starthere);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--color-ink-muted);
    min-width: 1.2rem;
    flex-shrink: 0;
    padding-top: 0.2rem;
}

.starthere-body {
    flex: 1;
}

.starthere-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.starthere-title a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.starthere-title a:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

.starthere-teaser {
    font-size: 0.95rem;
    color: var(--color-ink-muted);
    display: block;
    margin-top: 0.2rem;
    line-height: 1.5;
}

/* Subjects list (homepage) */
.subjects-list {
    list-style: none;
}

.subjects-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--color-border);
}

.subjects-list li:last-child {
    border-bottom: none;
}

.subjects-list a {
    font-family: var(--font-serif);
    font-size: 1.22rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
}

.subjects-list a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.subjects-list .count {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--color-ink-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.subjects-list a:hover .count {
    color: var(--color-ink-muted);
}

/* Collection page list (topic pages and tag pages) */
.collection-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-md);
}

.collection-orientation {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--color-ink-muted);
    max-width: 620px;
}

.collection-list {
    list-style: none;
    counter-reset: none;
}

.collection-row {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.collection-row:last-child {
    border-bottom: none;
}

.collection-date {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-ink-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.collection-row-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.collection-row-title a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.collection-row-title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.collection-row-teaser {
    font-size: 1rem;
    color: var(--color-ink-muted);
    line-height: 1.5;
    max-width: 620px;
}

/* Narrow-screen list typography */
@media (max-width: 720px) {
    .subjects-list a {
        font-size: 1.1rem;
    }

    .collection-title {
        font-size: 1.9rem;
    }

    .collection-orientation {
        font-size: 1.05rem;
    }
}
