/* Fraunces by Undercase Type, SIL Open Font License. Latin, weight 600. */

@font-face {
	font-family: Fraunces;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/fraunces-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Fraunces Fallback";
	src: local("Palatino Linotype"), local("Palatino"), local("Georgia");
	size-adjust: 105%;
	ascent-override: 92%;
	descent-override: 22%;
	line-gap-override: 0%;
}

:root {
	--paper: #e6e2d8;
	--paper-2: #f3f0e8;
	--ink: #1c2430;
	--ink-soft: #3e4a59;
	--rule: #c8c2b4;
	--signal: #8e2e26;
	--signal-d: #6e241e;
	--serif: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
	--display: Fraunces, "Fraunces Fallback", Palatino, Georgia, serif;
	--wrap: 72rem;
	--header: 4.25rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.0625rem;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
.brand__name,
.start-list__label {
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
	overflow-wrap: break-word;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

a {
	color: inherit;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--signal);
}

:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

::selection {
	background: #e7c8c4;
	color: var(--ink);
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: 0;
	transform: translateY(-120%);
	background: var(--ink);
	color: var(--paper);
	padding: 0.6rem 0.9rem;
	z-index: 100;
}

.skip-link:focus {
	transform: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wrap {
	width: min(var(--wrap), calc(100% - 2.5rem));
	margin-inline: auto;
}

.site-header__sticky {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--paper);
}

.admin-bar .site-header__sticky {
	top: 32px;
}

.site-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--header);
}

.brand {
	text-decoration: none;
	color: var(--ink);
}

.brand__name {
	font-size: 1.65rem;
}

.mast-rule {
	height: 3px;
	background: var(--signal);
}

.site-header__tagline {
	margin: 0.85rem 0 0;
	max-width: 40rem;
	color: var(--ink-soft);
	font-size: 1rem;
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.icon-btn:hover {
	color: var(--signal);
}

.primary-nav {
	display: none;
}

.primary-nav.is-open {
	display: block;
	position: absolute;
	z-index: 40;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--paper-2);
	border-bottom: 3px solid var(--signal);
	padding: 0.35rem 1.25rem 0.85rem;
}

.menu,
.footer-menu,
.topic-index,
.start-list,
.find-list,
.tag-list,
.index,
.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu a,
.footer-menu a {
	display: flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
}

.search-panel {
	padding: 1rem 0 1.15rem;
	background: var(--paper-2);
}

.search-panel[hidden] {
	display: none;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.search-form__field {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--rule);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}

.btn {
	min-height: 44px;
	padding: 0.55rem 1rem;
	border: 0;
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-size: 1rem;
	cursor: pointer;
}

.btn:hover {
	background: var(--signal);
	color: var(--paper);
}

.site-main {
	padding: 1.75rem 0 3.5rem;
}

.hero {
	padding-top: 0.5rem;
}

.hero__title,
.hero__intro,
.start-list,
.find-list {
	max-width: 40rem;
}

.hero__title {
	margin-bottom: 0.85rem;
	max-width: 12em;
	font-size: clamp(2.1rem, 6vw, 3.4rem);
	text-wrap: balance;
}

.hero__intro {
	font-size: 1.15rem;
	line-height: 1.55;
	max-width: 38rem;
}

.hero__intro p:last-child {
	margin-bottom: 0;
}

.band,
.feed,
.archive {
	margin-top: 2.5rem;
}

.section-title {
	margin-bottom: 0.85rem;
	font-size: 1.45rem;
}

.start-list li + li,
.find-list li + li {
	border-top: 1px solid var(--rule);
}

.start-list a {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.85rem 0;
	min-height: 44px;
	text-decoration: none;
}

.start-list__label {
	font-size: 1.35rem;
	color: var(--ink);
}

.start-list__topic {
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.find-list a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--signal);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.topic-index {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 1.5rem;
}

.topic-index a {
	display: flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
	border-bottom: 1px solid var(--rule);
}

.index {
	max-width: 42rem;
}

.index-item {
	padding: 1.15rem 0;
	border-top: 1px solid var(--rule);
}

.index-item--defer {
	content-visibility: auto;
	contain-intrinsic-size: auto 8.5rem;
}

.index-item__kicker {
	margin: 0 0 0.3rem;
	font-size: 0.95rem;
}

.index-item__kicker a {
	color: var(--signal);
	text-decoration: none;
}

.index-item__title {
	margin: 0 0 0.4rem;
	font-size: 1.45rem;
}

.index-item__title a {
	color: var(--ink);
	text-decoration: none;
}

.index-item__title a:hover {
	color: var(--signal);
}

.index-item__excerpt {
	margin: 0 0 0.45rem;
	color: var(--ink-soft);
}

.index-item__date {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.archive__title,
.entry-title {
	margin-bottom: 0.75rem;
	font-size: clamp(1.9rem, 5vw, 2.8rem);
	text-wrap: balance;
}

.archive__head,
.archive__desc {
	max-width: 42rem;
}

.archive__desc {
	margin-top: 1rem;
}

.child-topics {
	max-width: 60rem;
	margin-top: 1.75rem;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 1.5rem;
	max-width: 42rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.4rem;
	text-decoration: none;
}

.pagination .current {
	color: var(--signal);
	box-shadow: inset 0 -2px 0 var(--signal);
}

.site-footer {
	background: var(--ink);
	color: var(--paper);
	padding: 2.5rem 0 1.25rem;
}

.site-footer a {
	color: var(--paper);
	text-decoration: none;
}

.site-footer a:hover {
	color: #f0c7c2;
}

.site-footer__grid {
	display: grid;
	gap: 1.75rem;
}

.site-footer__brand {
	margin: 0 0 0.5rem;
	font-family: var(--display);
	font-size: 1.25rem;
	line-height: 1.25;
}

.site-footer__note,
.site-footer__address {
	margin: 0;
	color: #d9d3c8;
	font-style: normal;
}

.site-footer__address {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-top: 0.75rem;
}

.site-footer__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	color: var(--paper);
}

.site-footer__bottom {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(232, 226, 216, 0.25);
	color: #d9d3c8;
}

@media (min-width: 700px) {
	.topic-index {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
		align-items: start;
	}
}

@media (min-width: 860px) {
	.primary-nav,
	.primary-nav.is-open {
		display: block;
		position: static;
		padding: 0;
		border: 0;
		background: transparent;
	}

	.nav-toggle {
		display: none;
	}

	.menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 0.25rem 1.25rem;
	}

	.brand {
		margin-right: auto;
	}

	.site-header__bar {
		justify-content: flex-start;
	}
}

@media (min-width: 1100px) {
	.topic-index {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header__sticky {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
