:root {
	--color-accent: #3b8ced;
	--color-accent-dark: #2a6fc0;
	--color-dark: #333333;
	--color-text: #555555;
	--color-muted: #777777;
	--color-border: #e5e5e5;
	--color-bg: #ffffff;
	--color-bg-soft: #f5f5f5;
	--color-placeholder: #d9d9d9;
	--font: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--container: 1120px;
	--radius: 4px;
	--radius-media: 20px;
	--shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	--header-offset: 0px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.2rem;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-media);
	box-shadow: var(--shadow);
}

.post-card img,
.site-logo,
.custom-logo,
.topic-icon-img,
.avatar {
	border-radius: 0;
	box-shadow: none;
}

a {
	color: var(--color-accent);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	color: var(--color-accent-dark);
}

h1,
h2,
h3,
h4 {
	color: var(--color-dark);
	line-height: 1.25;
	font-weight: 700;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

.container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: #fff;
	color: var(--color-dark);
	box-shadow: var(--shadow);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 1px 0 var(--color-border);
}

.social-links {
	list-style: none;
	display: flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
}

.social-icon::before {
	content: "";
	display: block;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.social-icon--facebook::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 9h3V6h-3c-1.7 0-3 1.3-3 3v2H8v3h3v7h3v-7h3l1-3h-4V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 9h3V6h-3c-1.7 0-3 1.3-3 3v2H8v3h3v7h3v-7h3l1-3h-4V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
}

.social-icon--x::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l7.1 9.4L4.6 20H7l5.1-5.9L16.8 20H20l-7.3-9.7L19.3 4H16.8l-4.7 5.4L8 4H4z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l7.1 9.4L4.6 20H7l5.1-5.9L16.8 20H20l-7.3-9.7L19.3 4H16.8l-4.7 5.4L8 4H4z'/%3E%3C/svg%3E");
}

.social-icon--email::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18v12H3V6zm9 6L4.5 7.5h15L12 12z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18v12H3V6zm9 6L4.5 7.5h15L12 12z'/%3E%3C/svg%3E");
}

.masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}

.site-logo,
.custom-logo {
	max-height: 48px;
	width: auto;
}

.site-logo-link,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.primary-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
}

.primary-menu > li {
	position: relative;
}

.primary-menu a {
	display: block;
	padding: 0.65rem 0.85rem;
	color: var(--color-dark);
	font-weight: 600;
	font-size: 0.95rem;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	color: var(--color-accent);
}

.primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow);
	z-index: 20;
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.nav-toggle,
.search-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0.5rem;
	cursor: pointer;
	color: var(--color-dark);
}

.nav-toggle {
	display: none;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -7px;
}

.nav-toggle__bars::after {
	top: 7px;
}

.search-toggle__icon {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	position: relative;
}

.search-toggle__icon::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 2px;
	background: currentColor;
	right: -6px;
	bottom: -2px;
	transform: rotate(45deg);
}

.header-search {
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
	background: var(--color-bg-soft);
}

.header-search[hidden] {
	display: none !important;
}

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

.search-field {
	flex: 1;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font: inherit;
}

.search-submit,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.4rem;
	border-radius: 999px;
	border: 0;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button--dark,
.search-submit {
	background: var(--color-dark);
	color: #fff;
}

.button--dark:hover,
.search-submit:hover {
	background: #111;
	color: #fff;
}

.button--accent {
	background: var(--color-accent);
	color: #fff;
}

.button--accent:hover {
	background: var(--color-accent-dark);
	color: #fff;
}

/* Hero */
.hero {
	background: var(--color-bg-soft);
	padding: 3.5rem 0 4rem;
}

.hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 2.5rem;
	align-items: center;
}

.hero__title {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	margin-bottom: 0.35em;
	letter-spacing: -0.02em;
}

.hero__lead {
	font-size: 1.2rem;
	color: var(--color-muted);
	margin-bottom: 1rem;
}

.hero__text {
	max-width: 36rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.hero__media-placeholder,
.hero__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: linear-gradient(145deg, #e8e8e8, #f7f7f7);
	border: 1px solid var(--color-border);
}

.hero__media-placeholder {
	border-radius: var(--radius-media);
}

/* Sections */
.section-header {
	text-align: center;
	margin-bottom: 2.25rem;
}

.section-header h2 {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin-bottom: 0.35em;
}

.section-header p {
	color: var(--color-muted);
	margin: 0;
}

.topics-section,
.recent-section,
.sermons-section {
	padding: 4rem 0;
}

.recent-section {
	background: var(--color-bg-soft);
}

.topics-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem 1.5rem;
}

.topic-card a {
	display: block;
	text-align: center;
	color: inherit;
	padding: 0.5rem;
	transition: transform 0.25s ease;
}

.topic-card a:hover {
	transform: translateY(-4px);
	color: inherit;
}

.topic-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	height: 5.5rem;
	padding: 1.15rem;
	color: var(--color-accent);
	margin-bottom: 1rem;
	background: var(--color-bg-soft);
	border-radius: var(--radius-media);
	transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.topic-card a:hover .topic-card__icon {
	background: #ececec;
	box-shadow: var(--shadow);
}

.topic-card__icon svg,
.topic-card__icon .topic-icon-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.topic-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.35em;
}

.topic-card__blurb {
	color: var(--color-muted);
	font-size: 0.98rem;
	margin: 0;
}

/* Uniform post cards */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-media);
	overflow: hidden;
	min-height: 100%;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.post-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--color-placeholder);
	overflow: hidden;
}

.post-card__image,
.post-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.1rem 1.25rem;
	background: var(--card-placeholder-color, var(--color-accent-dark));
}

.post-card__placeholder-title {
	margin: 0;
	max-width: 100%;
	color: #fff;
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.15rem 1.2rem 1.35rem;
}

.post-card__meta {
	margin: 0 0 0.55rem;
	font-size: 0.85rem;
	color: var(--color-muted);
	line-height: 1.35;
}

.post-card__categories {
	display: inline;
}

.post-card__category {
	font-weight: 600;
	color: var(--color-accent);
}

.post-card__title {
	font-size: 1.2rem;
	margin: 0 0 0.55rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5em;
}

.post-card__title a {
	color: var(--color-dark);
}

.post-card__title a:hover {
	color: var(--color-accent);
}

.post-card__excerpt {
	flex: 1;
	color: var(--color-text);
	font-size: 0.98rem;
}

.post-card__excerpt p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 4.8em;
}

.post-card__more {
	margin: 1rem 0 0;
	font-size: 0.92rem;
	font-weight: 600;
}

.section-cta {
	text-align: center;
	margin: 2rem 0 0;
}

.empty-note {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--color-muted);
}

/* Archives */
.archive-wrap {
	padding: 3rem 0 4rem;
}

.archive-header {
	margin-bottom: 2rem;
}

.archive-title-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.archive-title-row--icon .archive-title {
	margin: 0;
}

.archive-title__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	color: var(--color-accent);
}

.archive-title__icon svg,
.archive-title__icon .topic-icon-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.archive-title {
	font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.archive-description {
	color: var(--color-muted);
	max-width: 40rem;
}

.series-list-wrap {
	margin: 1.25rem 0 0;
}

.series-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.series-list-wrap.is-collapsed .series-list > li:nth-child(n + 9) {
	display: none;
}

.series-list a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-dark);
	font-size: 0.9rem;
	font-weight: 600;
}

.series-list a:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.series-list__count {
	color: var(--color-muted);
	font-weight: 500;
}

.series-list__toggle {
	appearance: none;
	margin: 0.75rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-accent);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.series-list__toggle:hover,
.series-list__toggle:focus-visible {
	color: var(--color-accent-dark);
}

.navigation.pagination {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	min-width: 2.25rem;
	height: 2.25rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-dark);
	padding: 0 0.6rem;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}

/* Single */
.single-post__header,
.single-page__header {
	padding: 3rem 0 1.25rem;
}

.single-post__title,
.single-page__title {
	font-size: clamp(2rem, 4vw, 3rem);
	max-width: 46rem;
}

.single-post__cats,
.single-post__meta {
	color: var(--color-muted);
	font-size: 0.95rem;
}

.single-post__featured {
	margin: 0 auto 2rem;
}

.single-post__featured img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.archive-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}

.archive-layout:has(.post-sidebar) {
	grid-template-columns: minmax(0, 1fr) 240px;
}

.archive-layout:has(.post-sidebar) .post-grid {
	grid-template-columns: repeat(2, 1fr);
}

.post-sidebar {
	font-size: 0.95rem;
	padding-top: 0.15rem;
	position: sticky;
	top: 1.25rem;
	max-height: calc(100vh - 2.5rem);
	overflow: auto;
}

.post-sidebar__section + .post-sidebar__section {
	margin-top: 1.75rem;
}

.post-sidebar__title {
	margin: 0 0 0.65rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.post-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.post-sidebar__list a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	color: var(--color-dark);
	font-weight: 600;
}

.post-sidebar__list a:hover,
.post-sidebar__list a:focus-visible {
	color: var(--color-accent);
}

.post-sidebar__count {
	color: var(--color-muted);
	font-weight: 500;
	font-size: 0.85em;
}

.entry-content {
	padding-bottom: 2.5rem;
}

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

.entry-content figure,
.entry-content .wp-block-embed,
.entry-content .wp-block-audio,
.entry-content .wp-block-file {
	margin: 1.75rem 0;
}

.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper {
	border-radius: var(--radius-media);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.entry-content .wp-block-embed__wrapper iframe,
.entry-content iframe,
.entry-content video {
	max-width: 100%;
	border-radius: var(--radius-media);
}

.entry-content .wp-block-file {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-bg-soft);
}

.single-post__footer {
	padding-bottom: 2rem;
	border-top: 1px solid var(--color-border);
	padding-top: 1.5rem;
}

.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	max-width: min(100%, 48%);
}

.post-navigation .nav-next {
	margin-left: auto;
	text-align: right;
}

/* Comments */
.comments-area {
	padding: 2rem 0 4rem;
	max-width: 720px;
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.comment-list .comment {
	padding: 1rem 0;
	border-bottom: 1px solid var(--color-border);
}

.comment-form .logged-in-as {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.comment-form .logged-in-as p {
	margin: 0;
}

.comment-form .logged-in-as__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.comment-form .required-field-message {
	font-size: 0.9rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font: inherit;
}

.comment-form .form-submit input {
	background: var(--color-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.75rem 1.4rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Footer */
.site-footer {
	background: #1f1f1f;
	color: #d0d0d0;
	padding-top: 3rem;
}

.site-footer a {
	color: #fff;
}

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

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1.2fr;
	gap: 2rem;
	padding-bottom: 2.5rem;
}

.footer-tagline {
	color: #a8a8a8;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.footer-subscribe__title {
	color: #fff;
	font-size: 1.35rem;
	margin: 0 0 0.5rem;
}

.footer-subscribe__text {
	margin: 0 0 1rem;
	color: #a8a8a8;
	max-width: 18rem;
}

body.is-subscribe-open {
	overflow: hidden;
}

.subscribe-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.subscribe-modal[hidden] {
	display: none;
}

.subscribe-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.62);
}

.subscribe-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(26rem, 100%);
	padding: 1.75rem 1.5rem 1.5rem;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	animation: subscribe-modal-in 0.28s ease;
}

.subscribe-modal__close {
	position: absolute;
	top: 0.55rem;
	right: 0.65rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #555;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.subscribe-modal__close:hover {
	background: var(--color-bg-soft);
	color: #111;
}

.subscribe-modal__title {
	margin: 0 1.5rem 0.35rem 0;
	font-size: 1.5rem;
}

.subscribe-modal__lead {
	margin: 0 0 1.15rem;
	color: var(--color-muted);
}

.subscribe-form__field {
	margin-bottom: 0.75rem;
}

.subscribe-form__field label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.subscribe-form__field .required {
	color: var(--color-accent);
}

.subscribe-form__field input {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font: inherit;
	background: #fff;
}

.subscribe-form__honeypot {
	position: absolute;
	left: -5000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.subscribe-form__status {
	min-height: 1.25rem;
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
}

.subscribe-form__status.is-error {
	color: #b42318;
}

.subscribe-form__status.is-success {
	color: #027a48;
}

.subscribe-form__submit {
	width: 100%;
}

@keyframes subscribe-modal-in {
	from {
		opacity: 0;
		transform: translateY(0.6rem);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.site-info {
	border-top: 1px solid #333;
	padding: 1rem 0;
	font-size: 0.9rem;
	color: #888;
}

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

	.button,
	.topic-card a,
	.post-card,
	.subscribe-modal__dialog {
		transition: none;
		animation: none;
	}
}

/* Responsive */
@media (max-width: 960px) {
	.hero__inner,
	.footer-grid,
	.topics-grid,
	.post-grid {
		grid-template-columns: 1fr 1fr;
	}

	.hero__media {
		order: -1;
	}
}

@media (max-width: 760px) {
	.nav-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.primary-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		border-top: 1px solid var(--color-border);
		flex-direction: column;
		align-items: stretch;
		padding: 0.75rem 1rem 1.25rem;
		box-shadow: var(--shadow);
	}

	.site-header.is-nav-open .primary-nav {
		display: flex;
	}

	.masthead {
		position: relative;
	}

	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.primary-menu .sub-menu {
		position: static;
		display: none;
		box-shadow: none;
		border: 0;
		padding-left: 0.75rem;
	}

	.primary-menu .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.hero__inner,
	.footer-grid,
	.topics-grid,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-previous,
	.post-navigation .nav-next {
		max-width: 100%;
	}

	.archive-layout,
	.archive-layout:has(.post-sidebar) {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.post-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.hero {
		padding: 2.5rem 0 3rem;
	}
}
