/* Use em units: the legacy theme sets the root font size to 10px. */
html:has(.tag-index-page, .archive-cat-list) { scroll-behavior: smooth; }
.index-page {
	padding: 32px 36px;
	color: var(--article-text, #37413c);
	font-size: 16px;
	line-height: 1.75;
}
.index-page__header h1 {
	margin: 0 0 24px;
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -.025em;
	color: #25392d;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.index-page__intro {
	margin: 0 0 1.75em;
	color: var(--article-muted, #68746d);
}
.index-page__content:empty { display: none; }
.index-page__content { margin-bottom: 1.75em; overflow-wrap: anywhere; }
.index-page__content img { max-width: 100%; height: auto; }
.index-page__empty { padding: 1.5em 0; color: var(--article-muted, #68746d); }
.index-page a { color: var(--article-green, #34754a); transition: color 180ms cubic-bezier(.22, 1, .36, 1), background-color 180ms cubic-bezier(.22, 1, .36, 1); }
.index-page a:hover { color: #285c39; }
.index-page a:focus-visible,
.index-page button:focus-visible,
.index-page select:focus-visible,
.index-page summary:focus-visible {
	outline: 2px solid var(--article-green, #34754a);
	outline-offset: 4px;
}
.archive-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .75em;
	margin-bottom: 1.5em;
}
.article-archive [hidden] { display: none; }
.archive-controls label { margin: 0; font-weight: 400; }
.archive-controls select,
.archive-controls button {
	min-height: 44px;
	max-width: 100%;
	padding: .5em .75em;
	border: 1px solid #d9dfdb;
	border-radius: 6px;
	background: #fff;
	color: var(--article-text, #37413c);
	font: inherit;
}
.archive-controls button { margin-left: auto; cursor: pointer; transition: background-color 180ms cubic-bezier(.22, 1, .36, 1); }
.archive-controls button:hover { background: #f0f6f1; }
.archive-month { border-top: 1px solid var(--article-rule, #e9eeea); }
.archive-month:last-child { border-bottom: 1px solid var(--article-rule, #e9eeea); }
.archive-month summary { padding: 1.25em 0; cursor: pointer; }
.archive-month summary::marker { color: var(--article-green, #34754a); }
.archive-month summary h2 { display: inline; margin: 0 .75em 0 .25em; font-size: 1.25em; font-weight: 600; letter-spacing: 0; color: #25392d; }
.index-page__count { color: var(--article-muted, #68746d); font-size: .875em; white-space: nowrap; }
.archive-posts { margin: 0 0 1.25em; padding: 0; list-style: none; }
.archive-posts li {
	display: grid;
	grid-template-columns: 2.75em minmax(0, 1fr) auto;
	gap: .75em;
	align-items: baseline;
	padding: .625em 0;
}
.archive-posts time,
.archive-posts__comments { color: var(--article-muted, #68746d); font-size: .8125em; font-variant-numeric: tabular-nums; }
.archive-posts a { color: var(--article-text, #37413c); overflow-wrap: anywhere; }
.archive-posts a:hover { color: var(--article-green, #34754a); }
.tag-index-nav { display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 2em; }
.tag-index-nav a,
.tag-index-nav span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75em;
	min-height: 2.75em;
	border-radius: 6px;
	background: #e7ede8;
	font-weight: 700;
	border: 0;
}
.tag-index-nav a:hover { color: #fff; background: var(--article-green, #34754a); text-decoration: none; }
.tag-index-nav span { background: #f4f5f4; color: #929893; }
.tag-index-group {
	display: grid;
	grid-template-columns: 2.75em minmax(0, 1fr) auto;
	gap: 1.5em;
	align-items: start;
	padding: 1.75em 0;
	border-top: 1px solid var(--article-rule, #e9eeea);
	scroll-margin-top: 2em;
}
.tag-index-group h2 { margin: .2em 0 0; font-size: 1.5em; color: var(--article-green, #34754a); }
.tag-index-list { display: flex; flex-wrap: wrap; gap: .75em 1.5em; margin: 0; padding: 0; list-style: none; }
.tag-index-list li { min-width: 0; max-width: 100%; }
.tag-index-list a { display: inline-block; padding: .25em 0; color: var(--article-text, #37413c); overflow-wrap: anywhere; }
.tag-index-list a:hover { color: var(--article-green, #34754a); }
.tag-index-list__count { margin-left: .4em; color: var(--article-muted, #68746d); font-size: .75em; font-variant-numeric: tabular-nums; }
.tag-index-back { font-size: .8125em; white-space: nowrap; padding: .3em 0; }
@media (max-width: 767px) {
	.index-page { padding: 24px 20px; }
	.index-page__header h1 { font-size: 26px; }
}
@media (max-width: 359px) {
	.index-page { padding: 24px 16px; }
}
@media (max-width: 600px) {
	.archive-controls button { margin-left: 0; }
	.archive-posts li { grid-template-columns: 2.5em minmax(0, 1fr); gap: .25em .625em; }
	.archive-posts__comments { grid-column: 2; }
	.tag-index-group { grid-template-columns: 2em minmax(0, 1fr); gap: 1em; }
	.tag-index-back { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
	html:has(.tag-index-page, .archive-cat-list) { scroll-behavior: auto; }
	.index-page a,
	.archive-controls button { transition: none; }
}
