/* ==========================================================
   THOUGHTS
   =========================================================== */

.feed-page {
	max-width: 64rem;
	padding-top: 2.5rem;
}

.feed-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 16rem;
	gap: 3rem;
	align-items: start;
}

.feed-main {
	min-width: 0;
}

/* --- THE NOTE --- */
.note-dateline {
	padding-bottom: 0.4rem;
	margin-bottom: 0.9rem;
	border-bottom: 1px solid var(--border-color);
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-variant: small-caps;
	letter-spacing: 0.1em;
	color: var(--text-muted);
}
.note-number {
	color: var(--accent);
	font-variant-numeric: lining-nums;
}
.note-title {
	font-size: 1.5rem;
	line-height: 1.25;
	margin: 0 0 1.1rem;
	color: var(--text-heading);
	font-family: var(--font-display);
}
.note-body {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--text-primary);
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}
.note-body p {
	margin-bottom: 1.1em;
}
.note-body > p:first-of-type::first-letter {
	font-family: var(--font-heading);
	font-size: 1.45em;
	line-height: 1;
	color: var(--accent);
}
.note-body a {
	color: var(--accent);
	text-underline-offset: 3px;
}
.note-body blockquote {
	margin: 1.5em 0 1.5em 1.25em;
	padding: 0.6em 0 0.6em 1.25em;
	border-left: 2px solid rgba(var(--accent-rgb), 0.5);
	font-style: italic;
	color: var(--text-accent);
}

.feed-img-frame {
	display: table;
	max-width: 100%;
	margin: 1rem auto;
	padding: 4px;
	border: 1px solid var(--border-color);
	border-radius: 2px;
	background: rgba(var(--bg-primary-rgb), 0.4);
}
.feed-img-frame img {
	display: block;
	max-width: 100%;
	max-height: 24rem;
	width: auto;
	height: auto;
	filter: saturate(0.85) contrast(0.97);
	transition: filter 0.3s ease;
}
@media (hover: hover) {
	.feed-img-frame:hover img {
		filter: none;
	}
}
.note-pager {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 3px double var(--border-color);
}
.note-pager a {
	display: flex;
	flex-direction: column;
	max-width: 48%;
	text-decoration: none;
	font-family: var(--font-heading);
	font-size: 0.9rem;
	color: var(--text-heading);
}
@media (hover: hover) {
	.note-pager a:hover {
		color: var(--accent);
		text-shadow: none;
	}
}
.note-older {
	margin-left: auto;
	text-align: right;
}
.note-pager-label {
	font-family: var(--font-nav);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}

/* --- THE ARCHIVE --- */
.feed-index {
	position: sticky;
	top: calc(var(--nav-h) + 1rem);
	max-height: calc(100vh - var(--nav-h) - 2rem);
	overflow-y: auto;
	border-left: 1px solid var(--border-color);
	padding-left: 1.25rem;
}
.feed-index-title-block {
	margin-bottom: 1.25rem;
}
.feed-index-page-title {
	font-size: 1.5rem;
	color: var(--text-heading);
}
.feed-index-subtitle {
	margin-top: 0.3rem;
	font-style: italic;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.archive-year {
	border-top: 1px solid var(--border-color);
}
.archive-year summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.55rem 0;
	cursor: pointer;
	list-style: none;
}
.archive-year summary::-webkit-details-marker {
	display: none;
}
.archive-year-label {
	font-family: var(--font-heading);
	font-size: 1rem;
	letter-spacing: 0.08em;
	color: var(--text-heading);
}
.archive-year-label::before {
	content: "\25B8";
	display: inline-block;
	margin-right: 0.45em;
	font-size: 0.75em;
	color: var(--accent);
	transition: transform 0.2s ease;
}
.archive-year[open] .archive-year-label::before {
	transform: rotate(90deg);
}
.archive-count {
	font-size: 0.8rem;
	font-variant: small-caps;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}
.archive-list {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}
.archive-list a {
	display: flex;
	gap: 0.6rem;
	align-items: baseline;
	padding: 0.3rem 0 0.3rem 0.5rem;
	border-left: 2px solid transparent;
	text-decoration: none;
	text-shadow: none;
}
.archive-date {
	flex: 0 0 3.2rem;
	font-size: 0.8rem;
	font-variant: small-caps;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}
.archive-title {
	font-family: var(--font-display);
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--text-primary);
}
@media (hover: hover) {
	.archive-list a:hover .archive-title {
		color: var(--accent);
	}
}
.archive-list .is-current a {
	border-left-color: var(--accent);
}
.archive-list .is-current .archive-title {
	color: var(--accent);
}

.feed-empty {
	padding: 2rem 0;
	font-style: italic;
	color: var(--text-muted);
}

@media (max-width: 900px) {
	.feed-columns {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.feed-index {
		position: static;
		max-height: none;
		overflow: visible;
		border-left: none;
		border-top: 3px double var(--border-color);
		padding: 1rem 0 0;
	}
	.feed-page.is-landing .feed-index {
		order: -1;
		border-top: none;
		border-bottom: 3px double var(--border-color);
		padding: 0 0 1rem;
	}
}

@media (max-width: 600px) {
	.feed-page {
		padding-top: 1.5rem;
	}
	.note-body {
		font-size: 1.05rem;
	}
	.feed-img-frame img {
		max-height: 16rem;
	}
}
