/* The Thinking Lens — Weekend Reflections
   Text-led chronological archive, visually aligned with the Series system. */

:root {
    --ttl-wr-ink: var(--color-darkgrey);
    --ttl-wr-muted: #6f7376;
    --ttl-wr-line: #dedede;
    --ttl-wr-max: 980px;
    --ttl-wr-reading: 760px;
}

.ttl-wr-page {
    color: var(--ttl-wr-ink);
}

.ttl-wr-page a {
    color: inherit;
}

.ttl-wr-inner {
    width: 100%;
    max-width: var(--ttl-wr-max);
    margin: 0 auto;
    padding: 8rem max(4vmin, 20px) 10rem;
}

.ttl-wr-intro,
.ttl-wr-list,
.ttl-wr-pagination {
    max-width: var(--ttl-wr-reading);
}

.ttl-wr-intro {
    margin-bottom: 5rem;
}

.ttl-wr-eyebrow {
    margin: 0;
    color: var(--ttl-wr-muted);
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.ttl-wr-title {
    margin: 1.4rem 0 0;
    max-width: 900px;
    font-family: var(--gh-font-heading, var(--font-sans));
    font-size: clamp(4.2rem, 5.8vw, 7rem);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.ttl-wr-lede {
    margin: 2.4rem 0 0;
    max-width: var(--ttl-wr-reading);
    color: var(--ttl-wr-muted);
    font-size: 1.8rem;
    line-height: 1.75;
}

.ttl-wr-list-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.8rem;
}

.ttl-wr-count {
    margin: 0;
    color: var(--ttl-wr-muted);
    font-family: var(--font-sans);
    font-size: 1.25rem;
    line-height: 1.4;
}

.ttl-wr-card {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 2.2rem;
    padding: 3.4rem 0;
    border-top: 1px solid var(--ttl-wr-line);
}

.ttl-wr-number {
    padding-top: .35rem;
    color: var(--ttl-wr-muted);
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Fail safely if a title does not match the expected Weekend Reflections pattern. */
.ttl-wr-number:empty {
    display: none;
}

.ttl-wr-number:empty + .ttl-wr-card-body {
    grid-column: 1 / -1;
}

.ttl-wr-card-title {
    margin: 0;
    font-family: var(--gh-font-heading, var(--font-sans));
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -.018em;
}

.ttl-wr-card-link {
    text-decoration: none;
}

.ttl-wr-card-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.ttl-wr-card-excerpt {
    margin: 1.3rem 0 0;
    color: var(--ttl-wr-muted);
    font-size: 1.6rem;
    line-height: 1.72;
}

.ttl-wr-orientation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: 1.6rem;
    color: var(--ttl-wr-muted);
    font-family: var(--font-sans);
    font-size: 1.25rem;
    line-height: 1.5;
}

.ttl-wr-orientation > * + *::before {
    content: "·";
    display: inline-block;
    margin: 0 .75rem;
    color: var(--ttl-wr-muted);
    font-weight: 400;
}

.ttl-wr-lens {
    font-weight: 700;
    text-decoration: none;
}

.ttl-wr-lens:hover {
    text-decoration: underline;
    text-underline-offset: .28em;
}

/* Future pagination: hidden automatically while the archive is one page. */
.ttl-wr-pagination {
    padding-top: 3.2rem;
    border-top: 1px solid var(--ttl-wr-line);
}

.ttl-wr-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0;
    color: var(--ttl-wr-muted);
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 700;
}

.ttl-wr-pagination .page-number {
    display: none;
}

.ttl-wr-pagination .older-posts,
.ttl-wr-pagination .newer-posts {
    position: static;
    color: var(--ttl-wr-ink);
    text-decoration: none;
}

.ttl-wr-pagination .older-posts:hover,
.ttl-wr-pagination .newer-posts:hover {
    text-decoration: underline;
    text-underline-offset: .3em;
}

@media (max-width: 760px) {
    .ttl-wr-inner {
        padding-top: 5.5rem;
        padding-bottom: 7rem;
    }

    .ttl-wr-list-header {
        align-items: flex-start;
        flex-direction: column;
        gap: .6rem;
    }

    .ttl-wr-card {
        grid-template-columns: 1fr;
        gap: .8rem;
        padding: 2.8rem 0;
    }

    .ttl-wr-number {
        padding-top: 0;
    }

    .ttl-wr-card-title {
        font-size: 2.35rem;
    }
}

@media (prefers-color-scheme: dark) {
    html.auto-color .ttl-wr-page {
        --ttl-wr-ink: #f4f4f4;
        --ttl-wr-muted: #b1b1b1;
        --ttl-wr-line: #3f4144;
    }
}

html.dark-mode .ttl-wr-page {
    --ttl-wr-ink: #f4f4f4;
    --ttl-wr-muted: #b1b1b1;
    --ttl-wr-line: #3f4144;
}
