/* Thoughts pages (built by Jekyll from _layouts/). Shared tokens live in site.css. */

.meta, .date, .posts time { font: 400 11px "JetBrains Mono", monospace; letter-spacing: .04em; color: var(--muted); }

.blog { flex: 1; width: 100%; max-width: 40rem; padding: clamp(3rem, 10vh, 6rem) 0 5rem; }

.page-title { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 2.5rem; }

/* ---------- list ---------- */
.posts { list-style: none; }
.posts a {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
    text-decoration: none;
}
.posts .t { font-size: 1.05rem; transition: transform .5s var(--ease); }
.posts a:hover .t, .posts a:focus-visible .t { transform: translateX(6px); }
.intro { color: var(--muted); line-height: 1.55; margin: -1.5rem 0 2.5rem; }
.empty { color: var(--muted); }
@media (max-width: 30rem) { .posts a { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- post ---------- */
.meta { display: flex; justify-content: space-between; margin-bottom: 3rem; }
.date { display: block; margin-bottom: .75rem; }

.prose { font: 400 1.15rem/1.7 "Newsreader", Georgia, serif; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 400; letter-spacing: -.01em; line-height: 1.3; margin-top: 2em; }
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.15rem; }
.prose a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose a:hover { text-decoration-color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .3em; }
.prose blockquote { border-left: 1px solid var(--fg); padding-left: 1.2em; color: var(--muted); font-style: italic; }
.prose .aside { font-size: .85em; color: var(--muted); }
.prose img { max-width: 100%; height: auto; display: block; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose code { font: .82em "JetBrains Mono", monospace; background: var(--line); padding: .1em .35em; border-radius: 3px; }
.prose pre { font-size: .85rem; line-height: 1.6; background: var(--line); padding: 1rem 1.2rem; border-radius: 4px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: inherit; }

/* reading progress: a hairline across the top, driven by scroll position (no JS).
   Browsers without scroll-driven animations just don't show it. */
.progress { position: fixed; inset: 0 0 auto; height: 1px; background: var(--fg); transform-origin: left; transform: scaleX(0); z-index: 10; }
@supports (animation-timeline: scroll()) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }
