@font-face {
	font-family: "Unbounded";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/unbounded-500-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Unbounded";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/unbounded-500-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: "Source Serif 4";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-serif-4-400-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-serif-4-400-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;
}

:root {
	--canvas: #f3f1ec;
	--ink: #1c1916;
	--red: #8e2f2b;
	--teal: #0f6b66;
	--gold: #a67c3d;
	--paper: #fffcf7;
	--line: #d9d3c7;
	--muted: #5e574f;
	--display: "Unbounded", "Segoe UI", sans-serif;
	--serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
}

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

html {
	scroll-behavior: smooth;
}

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

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

h1,
h2,
h3,
.brand__name,
.site-footer__name,
.author-box__name,
.post-nav__title {
	font-family: var(--display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

h1,
h2,
h3 {
	text-wrap: balance;
	overflow-wrap: break-word;
}

h1 {
	margin: 0 0 0.8rem;
	font-size: clamp(1.85rem, 3vw, 2.7rem);
}

h2 {
	margin: 0 0 0.8rem;
	font-size: clamp(1.55rem, 2.4vw, 2.05rem);
}

h3 {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
}

p {
	text-wrap: pretty;
}

a {
	color: var(--teal);
	text-underline-offset: 0.16em;
}

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

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

::selection {
	background: #ead7d4;
}

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

.narrow {
	width: min(42rem, calc(100% - 2.5rem));
}

.section {
	padding: 2.6rem 0;
}

.lede {
	font-size: 1.2rem;
	max-width: 40rem;
}

.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;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 5;
	background: var(--ink);
	color: var(--paper);
	padding: 0.5rem 0.8rem;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

.btn,
button.btn {
	display: inline-block;
	width: auto;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	text-decoration: none;
	padding: 0.7rem 1.05rem;
	font-family: var(--display);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0.3rem 0.3rem 0 var(--gold);
}

.btn:hover,
button.btn:hover {
	color: var(--paper);
	transform: translate(1px, 1px);
	box-shadow: 0.18rem 0.18rem 0 var(--gold);
}

.text-link {
	color: var(--teal);
}

input,
textarea,
button {
	font: inherit;
	color: inherit;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
	background: var(--paper);
	border: 1px solid var(--line);
	padding: 0.55rem 0.7rem;
	width: 100%;
}

textarea {
	min-height: 8rem;
}

.site-header {
	position: relative;
	border-bottom: 1px solid var(--line);
	background: var(--canvas);
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 4.25rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}

.brand:hover {
	color: inherit;
}

.brand__logo {
	width: 2rem;
	height: 2rem;
	object-fit: contain;
}

.brand__name {
	font-size: 1.05rem;
}

.primary-nav {
	margin-left: auto;
}

.menu {
	display: flex;
	gap: 1.2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu a {
	color: inherit;
	text-decoration: none;
}

.menu a:hover {
	text-decoration: underline;
	text-decoration-color: var(--teal);
}

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

.icon-btn {
	display: inline-flex;
	background: transparent;
	border: 0;
	color: inherit;
	padding: 0.4rem;
	cursor: pointer;
}

.icon {
	width: 1.35rem;
	height: 1.35rem;
	display: block;
}

.nav-toggle {
	display: none;
}

.search-panel {
	border-bottom: 1px solid var(--line);
	padding: 0.85rem 0 1rem;
	background: var(--paper);
}

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

.search-form {
	display: flex;
	gap: 0.6rem;
	align-items: center;
}

.search-form input {
	flex: 1;
}

.hero {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 2rem 2.5rem;
	align-items: end;
	padding: 2rem 0 3.2rem;
}

.hero__figure,
.community__figure,
.article__figure {
	position: relative;
	margin: 0;
}

.hero__figure img,
.community__figure img,
.article__photo {
	width: 100%;
	height: auto;
	display: block;
}

.hero__ornament {
	position: absolute;
	width: 7.5rem;
	height: auto;
	right: 0.75rem;
	bottom: 0.75rem;
	animation: bead-settle 0.7s ease both;
}

@keyframes bead-settle {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.tray {
	background-color: var(--paper);
	background-image: radial-gradient(circle, #e3dcd0 0.9px, transparent 1px);
	background-size: 18px 18px;
	padding: 3.2rem 0 2.2rem;
}

.tray__intro {
	max-width: 42rem;
}

.tray__groups {
	margin-top: 1.6rem;
}

.group {
	display: grid;
	grid-template-columns: minmax(9rem, 14rem) 1fr;
	gap: 0.35rem 1.5rem;
	padding: 1rem 0 1rem 0.9rem;
	border-left: 4px solid var(--bead, var(--red));
	border-bottom: 1px solid rgba(28, 25, 22, 0.12);
}

.group h3 {
	margin: 0;
}

.group h3 a {
	color: inherit;
	text-decoration: none;
}

.group h3 a:hover {
	text-decoration: underline;
}

.group ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.group a {
	color: var(--ink);
}

.group span {
	color: var(--muted);
}

.paths {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2.5rem;
	margin-top: 1.4rem;
}

.paths ul {
	margin: 0.3rem 0 0;
	padding-left: 1.15rem;
}

.quote {
	margin: 0;
	max-width: 40rem;
	padding: 0.2rem 0 0.2rem 1.2rem;
	border-left: 3px solid var(--gold);
}

.quote p {
	margin: 0;
	font-size: clamp(1.55rem, 2.8vw, 2.15rem);
	line-height: 1.3;
}

.quote footer {
	margin-top: 1rem;
	font-family: var(--display);
	font-size: 0.95rem;
	font-style: normal;
}

.quote footer span {
	display: block;
	margin-top: 0.15rem;
	color: var(--muted);
	font-family: var(--serif);
}

.index {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.index a {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 0.2rem 1.2rem;
	align-items: baseline;
	padding: 0.85rem 0;
	border-top: 1px solid var(--line);
	color: inherit;
	text-decoration: none;
}

.index li:last-child a {
	border-bottom: 1px solid var(--line);
}

.index time {
	color: var(--muted);
	font-size: 0.95rem;
}

.index a:hover span {
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-underline-offset: 0.18em;
}

.pagination,
.navigation.pagination {
	margin-top: 1.4rem;
}

.pagination .nav-links,
.nav-links,
.pagination ul,
ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.page-numbers {
	color: inherit;
	text-decoration: none;
}

.page-numbers.current {
	color: var(--red);
}

.join {
	background: var(--teal);
	color: var(--paper);
	padding: 3rem 0;
}

.join h2 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.4rem);
}

.join p {
	margin: 0.45rem 0 1rem;
}

.join .btn {
	background: var(--paper);
	color: var(--ink);
}

.join .btn:hover {
	color: var(--ink);
}

.join-note {
	max-width: 36rem;
	color: var(--muted);
}

.join .join-note {
	color: var(--paper);
}

.site-footer {
	border-top: 1px solid var(--line);
	padding: 2.2rem 0 1.5rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1.5rem;
}

.site-footer__name {
	margin: 0 0 0.35rem;
}

.site-footer p {
	margin: 0;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__links a {
	color: inherit;
}

.site-footer__copy {
	margin-top: 1.6rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.45rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	font-size: 0.95rem;
}

.crumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.45rem;
	color: var(--muted);
}

.crumbs a {
	color: var(--muted);
	text-decoration: none;
}

.crumbs a:hover {
	text-decoration: underline;
}

.crumbs [aria-current="page"] {
	color: var(--ink);
}

.article {
	display: grid;
	grid-template-columns: minmax(0, 42rem);
	justify-content: center;
	padding: 2rem 0 4rem;
}

.article:has(.toc) {
	grid-template-columns: minmax(0, 42rem) 15rem;
	column-gap: 2.5rem;
}

.article__head,
.article__content,
.article__after {
	grid-column: 1;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	list-style: none;
	margin: 0.7rem 0 0;
	padding: 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.lead {
	margin: 1.2rem 0 0;
	padding: 0.95rem 1.1rem 1.05rem;
	background: var(--paper);
	border-top: 3px solid var(--red);
}

.lead h2 {
	margin: 0 0 0.35rem;
	font-family: var(--serif);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
}

.lead p {
	margin: 0;
}

.toc {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: start;
	position: sticky;
	top: 1rem;
	font-size: 0.95rem;
}

.toc summary {
	cursor: pointer;
	font-family: var(--display);
	font-weight: 500;
}

.toc ol {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	border-left: 2px solid var(--line);
}

.toc a {
	display: block;
	padding: 0.28rem 0 0.28rem 0.75rem;
	color: var(--muted);
	text-decoration: none;
}

.toc a:hover {
	color: var(--ink);
}

.article__figure {
	margin: 1.3rem 0 1.2rem;
}

.prose {
	font-size: 1.125rem;
	line-height: 1.65;
}

.prose > *:first-child {
	margin-top: 0;
}

.prose h2 {
	display: flex;
	align-items: baseline;
	gap: 0.55rem;
	margin: 2.1rem 0 0.7rem;
	font-size: 1.4rem;
}

.prose h2::before {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--red);
	flex: none;
}

.prose h3 {
	margin: 1.4rem 0 0.45rem;
}

.prose ul,
.prose ol {
	padding-left: 1.2rem;
}

.prose li + li {
	margin-top: 0.3rem;
}

.prose img {
	height: auto;
}

.table-wrap {
	overflow-x: auto;
	margin: 1rem 0;
}

.faq {
	margin-top: 2rem;
}

.author-box {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}

.author-box__name {
	margin: 0 0 0.3rem;
}

.author-box p {
	margin: 0;
}

.related {
	margin-top: 2.2rem;
}

.related ul {
	margin: 0.4rem 0 0;
	padding-left: 1.15rem;
}

.navigation.post-navigation {
	margin-top: 2rem;
}

.post-navigation .nav-links {
	display: grid;
	gap: 1rem;
}

.post-nav__label {
	display: block;
	color: var(--muted);
	font-family: var(--serif);
	font-size: 0.9rem;
}

.post-navigation a {
	color: inherit;
	text-decoration: none;
}

.post-navigation a:hover .post-nav__title {
	text-decoration: underline;
	text-decoration-color: var(--red);
}

.comments {
	margin-top: 2.2rem;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	padding-left: 1.2rem;
}

.comment-body {
	border-top: 1px solid var(--line);
	padding: 0.8rem 0;
}

.comment-meta {
	font-size: 0.95rem;
	color: var(--muted);
}

.comment-meta a {
	color: inherit;
}

.avatar {
	display: inline-grid;
	place-items: center;
	width: var(--avatar-size, 40px);
	height: var(--avatar-size, 40px);
	border-radius: 50%;
	background: var(--teal);
	color: var(--paper);
	font-family: var(--display);
	font-size: 0.8rem;
	vertical-align: middle;
}

.comment-form p {
	margin: 0 0 0.7rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
}

.community__hero {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 2rem 2.5rem;
	align-items: end;
	padding: 2rem 0 1rem;
}

.offers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 1.1rem;
}

.offers section {
	padding: 0 1.25rem;
}

.offers section:first-child {
	padding-left: 0;
}

.offers section + section {
	border-left: 1px solid var(--line);
}

.steps,
.rules {
	max-width: 40rem;
	padding-left: 1.25rem;
}

.steps li,
.rules li {
	margin: 0.65rem 0;
}

.steps li::marker {
	font-family: var(--display);
	color: var(--red);
}

.empty {
	color: var(--muted);
}

@media (min-width: 700px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.article,
	.article:has(.toc) {
		grid-template-columns: 1fr;
	}

	.article__head,
	.article__content,
	.article__after,
	.toc {
		grid-column: 1;
		grid-row: auto;
		position: static;
	}
}

@media (max-width: 800px) {
	.nav-toggle {
		display: inline-flex;
	}

	.primary-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 2;
		margin: 0;
		padding: 0.4rem 1.25rem 1rem;
		background: var(--canvas);
		border-bottom: 1px solid var(--line);
	}

	.is-nav-open .primary-nav {
		display: block;
	}

	.menu {
		flex-direction: column;
		gap: 0.75rem;
	}

	.hero,
	.community__hero,
	.paths,
	.offers,
	.group,
	.site-footer__grid,
	.index a {
		grid-template-columns: 1fr;
	}

	.offers section,
	.offers section:first-child {
		padding: 0;
	}

	.offers section + section {
		border-left: 0;
		border-top: 1px solid var(--line);
		margin-top: 1rem;
		padding-top: 1rem;
	}

	.search-form {
		flex-direction: column;
		align-items: stretch;
	}
}

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

	.hero__ornament {
		animation: none;
	}

	.btn:hover,
	button.btn:hover {
		transform: none;
	}
}
