/* Blog, archive, search, page, and single-post presentation */

.faradoran-main--content,
.adonis-main--content {
	padding-block: var(--faradoran-theme-section-space);
	background-color: var(--faradoran-theme-color-ivory);
}

.faradoran-page-header__meta,
.adonis-page-header__meta {
	margin: var(--faradoran-theme-space-3) 0 0;
	color: var(--faradoran-theme-color-text-muted);
	font-size: var(--faradoran-theme-font-size-sm);
}

/* Post grid */
.faradoran-post-grid,
.adonis-post-grid {
	display: grid;
	gap: var(--faradoran-theme-space-8);
}

@media (min-width: 48rem) {
.faradoran-post-grid,
.adonis-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
.faradoran-post-grid,
.adonis-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.faradoran-post-grid--editorial,
.adonis-post-grid--editorial {
	gap: var(--faradoran-theme-space-6);
}

@media (min-width: 48rem) {
.faradoran-post-grid--editorial,
.adonis-post-grid--editorial {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Post cards */
.faradoran-post-card,
.adonis-post-card {
	display: flex;
	flex-direction: column;
	gap: var(--faradoran-theme-space-4);
	margin: 0;
}

.faradoran-post-card__media-link,
.adonis-post-card__media-link {
	display: block;
	border-radius: var(--faradoran-theme-radius-md);
	overflow: hidden;
}

.faradoran-post-card__media-link:focus-visible,
.adonis-post-card__media-link:focus-visible {
	outline: var(--faradoran-theme-focus-ring);
	outline-offset: var(--faradoran-theme-focus-offset);
}

.faradoran-post-card__image,
.adonis-post-card__image {
	inline-size: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.faradoran-post-card__body,
.adonis-post-card__body {
	display: grid;
	gap: var(--faradoran-theme-space-3);
}

.faradoran-post-card__category,
.adonis-post-card__category {
	margin: 0;
	font-size: var(--faradoran-theme-font-size-sm);
}

.faradoran-post-card__category a,
.adonis-post-card__category a {
	color: var(--faradoran-theme-color-text-muted);
	text-decoration: none;
}

.faradoran-post-card__category a:hover,
.faradoran-post-card__category a:focus-visible,
.adonis-post-card__category a:hover,
.adonis-post-card__category a:focus-visible {
	color: var(--faradoran-theme-color-green);
}

.faradoran-post-card__title,
.adonis-post-card__title {
	margin: 0;
	font-size: var(--faradoran-theme-font-size-h3);
	line-height: var(--faradoran-theme-line-height-heading);
}

.faradoran-post-card__title a,
.adonis-post-card__title a {
	color: inherit;
	text-decoration: none;
}

.faradoran-post-card__title a:hover,
.faradoran-post-card__title a:focus-visible,
.adonis-post-card__title a:hover,
.adonis-post-card__title a:focus-visible {
	color: var(--faradoran-theme-color-green);
}

.faradoran-post-card__meta,
.adonis-post-card__meta {
	margin: 0;
	color: var(--faradoran-theme-color-text-muted);
	font-size: var(--faradoran-theme-font-size-sm);
}

.faradoran-post-card__excerpt,
.adonis-post-card__excerpt {
	color: var(--faradoran-theme-color-text-muted);
	font-size: var(--faradoran-theme-font-size-sm);
	line-height: var(--faradoran-theme-line-height-base);
}

.faradoran-post-card__excerpt p,
.adonis-post-card__excerpt p {
	margin: 0;
}

/* Search result cards */
.faradoran-search-card,
.adonis-search-card {
	padding: var(--faradoran-theme-space-5);
	border: var(--faradoran-theme-border-width) solid var(--faradoran-theme-color-border);
	border-radius: var(--faradoran-theme-radius-md);
	background-color: var(--faradoran-theme-color-ivory);
}

.faradoran-search-card__type,
.adonis-search-card__type {
	margin: 0 0 var(--faradoran-theme-space-2);
	color: var(--faradoran-theme-color-green);
	font-size: var(--faradoran-theme-font-size-xs);
	font-weight: var(--faradoran-theme-font-weight-semibold);
	letter-spacing: var(--faradoran-theme-letter-spacing-wide);
	text-transform: uppercase;
}

.faradoran-search-card__title,
.adonis-search-card__title {
	margin: 0 0 var(--faradoran-theme-space-3);
	font-size: var(--faradoran-theme-font-size-h3);
}

.faradoran-search-card__title a,
.adonis-search-card__title a {
	color: inherit;
	text-decoration: none;
}

.faradoran-search-card__title a:hover,
.faradoran-search-card__title a:focus-visible,
.adonis-search-card__title a:hover,
.adonis-search-card__title a:focus-visible {
	color: var(--faradoran-theme-color-green);
}

.faradoran-search-card__excerpt,
.adonis-search-card__excerpt {
	color: var(--faradoran-theme-color-text-muted);
	font-size: var(--faradoran-theme-font-size-sm);
}

.faradoran-search-card__excerpt p,
.adonis-search-card__excerpt p {
	margin: 0;
}

/* Empty states */
.faradoran-empty-state,
.adonis-empty-state {
	max-inline-size: 42rem;
	margin-inline: auto;
	padding: var(--faradoran-theme-space-10) var(--faradoran-theme-space-6);
	border: var(--faradoran-theme-border-width) solid var(--faradoran-theme-color-border);
	border-radius: var(--faradoran-theme-radius-md);
	background-color: var(--faradoran-theme-color-ivory);
	text-align: center;
}

.faradoran-empty-state__header,
.adonis-empty-state__header {
	margin: 0;
}

.faradoran-empty-state__title,
.adonis-empty-state__title {
	margin: 0 0 var(--faradoran-theme-space-3);
	color: var(--faradoran-theme-color-green);
	font-size: var(--faradoran-theme-font-size-h2);
}

.faradoran-empty-state__title::after,
.adonis-empty-state__title::after {
	content: "";
	display: block;
	inline-size: 2.5rem;
	block-size: 2px;
	margin-block: var(--faradoran-theme-space-3) 0;
	margin-inline: auto;
	background: linear-gradient(90deg, var(--faradoran-theme-color-gold), transparent);
}

.faradoran-empty-state__text,
.adonis-empty-state__text {
	margin: 0 auto var(--faradoran-theme-space-6);
	max-inline-size: 32rem;
	color: var(--faradoran-theme-color-text-muted);
}

.faradoran-empty-state__search,
.adonis-empty-state__search {
	margin-block-end: var(--faradoran-theme-space-6);
}

.faradoran-empty-state__actions,
.adonis-empty-state__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--faradoran-theme-space-3);
}

/* Search form */
.faradoran-search-form,
.adonis-search-form {
	max-inline-size: 36rem;
	margin-inline: auto;
	text-align: start;
}

.faradoran-search-form__label,
.adonis-search-form__label {
	margin-block-end: var(--faradoran-theme-space-3);
	font-weight: var(--faradoran-theme-font-weight-medium);
}

.faradoran-search-form__fields,
.adonis-search-form__fields {
	display: grid;
	gap: var(--faradoran-theme-space-3);
}

@media (min-width: 30rem) {
	.faradoran-search-form__fields,
	.adonis-search-form__fields {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: stretch;
	}
}

.faradoran-search-form__submit,
.adonis-search-form__submit {
	inline-size: 100%;
}

@media (min-width: 30rem) {
	.faradoran-search-form__submit,
	.adonis-search-form__submit {
		inline-size: auto;
	}
}

/* Pagination */
.faradoran-pagination, .adonis-pagination,
.navigation.posts-pagination,
.navigation.pagination {
	margin-block-start: var(--faradoran-theme-space-10);
}

.faradoran-pagination .nav-links,
.adonis-pagination .nav-links,
.navigation.posts-pagination .nav-links,
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--faradoran-theme-space-2);
}

.faradoran-pagination .page-numbers,
.adonis-pagination .page-numbers,
.navigation.posts-pagination .page-numbers,
.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 2.75rem;
	min-block-size: 2.75rem;
	padding-inline: var(--faradoran-theme-space-3);
	border: var(--faradoran-theme-border-width) solid var(--faradoran-theme-color-border);
	border-radius: var(--faradoran-theme-radius-sm);
	color: var(--faradoran-theme-color-text);
	text-decoration: none;
}

.faradoran-pagination .page-numbers.current,
.adonis-pagination .page-numbers.current,
.navigation.posts-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
	border-color: var(--faradoran-theme-color-green);
	background-color: var(--faradoran-theme-color-green);
	color: var(--faradoran-theme-color-white);
}

.faradoran-pagination .page-numbers:hover,
.faradoran-pagination .page-numbers:focus-visible,
.adonis-pagination .page-numbers:hover,
.adonis-pagination .page-numbers:focus-visible,
.navigation.posts-pagination .page-numbers:hover,
.navigation.posts-pagination .page-numbers:focus-visible,
.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers:focus-visible {
	border-color: var(--faradoran-theme-color-green);
	color: var(--faradoran-theme-color-green);
}

.faradoran-pagination .page-numbers.current:hover,
.faradoran-pagination .page-numbers.current:focus-visible,
.adonis-pagination .page-numbers.current:hover,
.adonis-pagination .page-numbers.current:focus-visible,
.navigation.posts-pagination .page-numbers.current:hover,
.navigation.posts-pagination .page-numbers.current:focus-visible,
.navigation.pagination .page-numbers.current:hover,
.navigation.pagination .page-numbers.current:focus-visible {
	color: var(--faradoran-theme-color-white);
}

/* Single post and page entries */
.faradoran-entry--single .faradoran-entry__title,
.adonis-entry--single .adonis-entry__title,
.faradoran-entry--page .faradoran-entry__title,
.adonis-entry--page .adonis-entry__title {
	margin-block-end: var(--faradoran-theme-space-4);
}

.faradoran-entry__meta,
.adonis-entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--faradoran-theme-space-3) var(--faradoran-theme-space-5);
	color: var(--faradoran-theme-color-text-muted);
	font-size: var(--faradoran-theme-font-size-sm);
}

.faradoran-entry__categories,
.adonis-entry__categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--faradoran-theme-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.faradoran-entry__categories a,
.adonis-entry__categories a {
	color: var(--faradoran-theme-color-text-muted);
	text-decoration: none;
}

.faradoran-entry__categories a:hover,
.faradoran-entry__categories a:focus-visible,
.adonis-entry__categories a:hover,
.adonis-entry__categories a:focus-visible {
	color: var(--faradoran-theme-color-green);
}

.faradoran-entry__featured-image,
.adonis-entry__featured-image {
	margin: 0 0 var(--faradoran-theme-space-8);
}

.faradoran-entry__image,
.adonis-entry__image {
	inline-size: 100%;
	border-radius: var(--faradoran-theme-radius-md);
}

.faradoran-post-nav,
.adonis-post-nav {
	display: grid;
	gap: var(--faradoran-theme-space-4);
	margin-block-start: var(--faradoran-theme-space-10);
	padding-block-start: var(--faradoran-theme-space-6);
	border-block-start: var(--faradoran-theme-border-width) solid var(--faradoran-theme-color-border);
}

@media (min-width: 48rem) {
.faradoran-post-nav,
.adonis-post-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.faradoran-post-nav__item,
.adonis-post-nav__item {
	display: grid;
	gap: var(--faradoran-theme-space-2);
}

.faradoran-post-nav__item--next,
.adonis-post-nav__item--next {
	text-align: end;
}

.faradoran-post-nav__label,
.adonis-post-nav__label {
	color: var(--faradoran-theme-color-text-muted);
	font-size: var(--faradoran-theme-font-size-sm);
}

.faradoran-post-nav__item a,
.adonis-post-nav__item a {
	color: var(--faradoran-theme-color-text);
	font-weight: var(--faradoran-theme-font-weight-medium);
	text-decoration: none;
}

.faradoran-post-nav__item a:hover,
.faradoran-post-nav__item a:focus-visible,
.adonis-post-nav__item a:hover,
.adonis-post-nav__item a:focus-visible {
	color: var(--faradoran-theme-color-green);
}

/* Editorial typography */
.faradoran-prose,
.adonis-prose {
	max-inline-size: 42rem;
	line-height: var(--faradoran-theme-line-height-base);
}

.faradoran-entry--page .faradoran-prose,
.adonis-entry--page .adonis-prose,
.faradoran-entry--single .faradoran-prose,
.adonis-entry--single .adonis-prose {
	max-inline-size: none;
}

.faradoran-prose > :first-child,
.adonis-prose > :first-child {
	margin-block-start: 0;
}

.faradoran-prose > :last-child,
.adonis-prose > :last-child {
	margin-block-end: 0;
}

.faradoran-prose h2,
.adonis-prose h2,
.faradoran-prose h3,
.adonis-prose h3,
.faradoran-prose h4,
.adonis-prose h4,
.faradoran-prose h5,
.adonis-prose h5,
.faradoran-prose h6,
.adonis-prose h6 {
	margin-block: var(--faradoran-theme-space-8) var(--faradoran-theme-space-4);
}

.faradoran-prose h2,
.adonis-prose h2 {
	font-size: var(--faradoran-theme-font-size-h2);
}

.faradoran-prose h3,
.adonis-prose h3 {
	font-size: var(--faradoran-theme-font-size-h3);
}

.faradoran-prose h4,
.adonis-prose h4 {
	font-size: var(--faradoran-theme-font-size-h4);
}

.faradoran-prose a,
.adonis-prose a {
	text-decoration-thickness: 1px;
}

.faradoran-prose blockquote,
.adonis-prose blockquote {
	margin: var(--faradoran-theme-space-6) 0;
	padding: var(--faradoran-theme-space-4) var(--faradoran-theme-space-5);
	border-inline-start: 3px solid var(--faradoran-theme-color-gold);
	background-color: var(--faradoran-theme-color-ivory);
	color: var(--faradoran-theme-color-text-muted);
}

.faradoran-prose pre,
.adonis-prose pre,
.faradoran-prose code,
.adonis-prose code {
	font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
	font-size: 0.92em;
}

.faradoran-prose pre,
.adonis-prose pre {
	overflow-x: auto;
	padding: var(--faradoran-theme-space-4);
	border-radius: var(--faradoran-theme-radius-sm);
	background-color: var(--faradoran-theme-color-surface);
}

.faradoran-prose :not(pre) > code,
.adonis-prose :not(pre) > code {
	padding: 0.1em 0.35em;
	border-radius: 0.25rem;
	background-color: var(--faradoran-theme-color-surface);
}

.faradoran-prose table,
.adonis-prose table {
	inline-size: 100%;
	margin-block: var(--faradoran-theme-space-6);
	border-collapse: collapse;
	font-size: var(--faradoran-theme-font-size-sm);
}

.faradoran-prose th,
.adonis-prose th,
.faradoran-prose td,
.adonis-prose td {
	padding: var(--faradoran-theme-space-3) var(--faradoran-theme-space-4);
	border: var(--faradoran-theme-border-width) solid var(--faradoran-theme-color-border);
	text-align: start;
	vertical-align: top;
}

.faradoran-prose th,
.adonis-prose th {
	background-color: var(--faradoran-theme-color-ivory);
	font-weight: var(--faradoran-theme-font-weight-semibold);
}

.faradoran-prose figure,
.adonis-prose figure {
	margin: var(--faradoran-theme-space-6) 0;
}

.faradoran-prose figcaption,
.adonis-prose figcaption {
	margin-block-start: var(--faradoran-theme-space-2);
	color: var(--faradoran-theme-color-text-muted);
	font-size: var(--faradoran-theme-font-size-sm);
	text-align: center;
}

.faradoran-prose img,
.adonis-prose img,
.faradoran-prose iframe,
.adonis-prose iframe,
.faradoran-prose video,
.adonis-prose video {
	max-inline-size: 100%;
	height: auto;
}

.faradoran-prose .wp-block-image img,
.faradoran-prose .wp-block-embed iframe,
.adonis-prose .wp-block-image img,
.adonis-prose .wp-block-embed iframe,
.adonis-prose .wp-block-embed iframe {
	border-radius: var(--faradoran-theme-radius-sm);
}

.faradoran-prose hr,
.adonis-prose hr {
	margin-block: var(--faradoran-theme-space-8);
	border: 0;
	border-block-start: var(--faradoran-theme-border-width) solid var(--faradoran-theme-color-border);
}

.faradoran-page-links,
.adonis-page-links {
	margin-block-start: var(--faradoran-theme-space-8);
}

.faradoran-page-links__title,
.adonis-page-links__title {
	margin: 0 0 var(--faradoran-theme-space-3);
	font-size: var(--faradoran-theme-font-size-sm);
	font-weight: var(--faradoran-theme-font-weight-medium);
}

/* Comments */
.faradoran-comments,
.adonis-comments {
	margin-block-start: var(--faradoran-theme-space-10);
	padding-block-start: var(--faradoran-theme-space-8);
	border-block-start: var(--faradoran-theme-border-width) solid var(--faradoran-theme-color-border);
}

.faradoran-comments__title,
.adonis-comments__title {
	margin: 0 0 var(--faradoran-theme-space-6);
	font-size: var(--faradoran-theme-font-size-h3);
}

.faradoran-comments__list,
.adonis-comments__list {
	margin: 0 0 var(--faradoran-theme-space-6);
	padding: 0;
	list-style: none;
}

.faradoran-comments__list .comment,
.adonis-comments__list .comment {
	margin-block-end: var(--faradoran-theme-space-5);
	padding: var(--faradoran-theme-space-4);
	border: var(--faradoran-theme-border-width) solid var(--faradoran-theme-color-border);
	border-radius: var(--faradoran-theme-radius-sm);
	background-color: var(--faradoran-theme-color-ivory);
}

.faradoran-comments__list .children,
.adonis-comments__list .children {
	margin-block-start: var(--faradoran-theme-space-4);
	padding-inline-start: var(--faradoran-theme-space-4);
	border-inline-start: 2px solid var(--faradoran-theme-color-border);
	list-style: none;
}

/* Widget areas (when active) */
.widget {
	margin-block-end: var(--faradoran-theme-space-6);
}

.widget-title {
	margin: 0 0 var(--faradoran-theme-space-4);
	font-size: var(--faradoran-theme-font-size-h4);
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li + li {
	margin-block-start: var(--faradoran-theme-space-2);
}

.widget a {
	color: var(--faradoran-theme-color-text);
	text-decoration: none;
}

.widget a:hover,
.widget a:focus-visible {
	color: var(--faradoran-theme-color-green);
}

@media (max-width: 24.99rem) {
.faradoran-empty-state,
.adonis-empty-state {
		padding-inline: var(--faradoran-theme-space-4);
	}

.faradoran-post-nav__item--next,
.adonis-post-nav__item--next {
		text-align: start;
	}
}

.faradoran-page-faq, .adonis-page-faq {
	margin-block-start: var(--faradoran-theme-space-6);
}
