/*
Theme Name: R34C8 Mini
Author: R34C8
Description: An ultra-lightweight, mobile-first WordPress theme for calm, content-first story publishing.
Version: 1.11.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: r34c8-mini
Tags: blog, news, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

:root {
	--color-bg: #fffaf7;
	--color-text: #201713;
	--color-muted: #6b5f58;
	--color-meta: #8a7d75;
	--color-divider: #f0e2d9;
	--color-soft: #fdf2ea;
	--color-panel: #ffffff;
	--color-control: #ffffff;
	--color-accent: #d93a2b;
	--color-accent-2: #ff9142;
	--color-ink: #201713;
	--gradient-ember: linear-gradient(135deg, var(--color-accent-2), var(--color-accent) 78%);
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--container: 1320px;
	--reading: 740px;
	--article-font-size: 20px;
	--radius: 14px;
	--ad-min-height-mobile: 120px;
	--ad-min-height-desktop: 180px;
	--gutter: clamp(20px, 4vw, 32px);
	--shadow-card: 0 1px 2px rgba(32, 23, 19, 0.04), 0 16px 32px -22px rgba(32, 23, 19, 0.45);
	--shadow-card-hover: 0 4px 10px rgba(32, 23, 19, 0.07), 0 22px 40px -20px rgba(32, 23, 19, 0.55);
}

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

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

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

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

button,
summary {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: var(--color-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

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

:focus-visible {
	outline: 3px solid #f7aa91;
	outline: 3px solid color-mix(in srgb, var(--color-accent) 45%, white);
	outline-offset: 3px;
}

::selection {
	background: #fde4dc;
	background: color-mix(in srgb, var(--color-accent) 22%, white);
}

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

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto !important;
	background: var(--color-bg);
	color: var(--color-text);
	font-weight: 700;
	white-space: normal;
}

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

/* Header */
.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--color-divider);
	background: var(--color-panel);
	box-shadow: 0 1px 0 rgba(32, 23, 19, 0.02), 0 10px 24px -20px rgba(32, 23, 19, 0.35);
}

.header-inner {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	min-height: 62px;
}

.site-branding {
	grid-column: 2;
	justify-self: center;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	line-height: 1;
}

.site-title {
	display: inline-flex;
	align-items: baseline;
	max-width: 100%;
	color: var(--color-text);
	font-family: var(--font-display);
	font-size: clamp(20px, 6vw, 26px);
	font-weight: 700;
	letter-spacing: -0.02em;
	overflow: hidden;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-title__suffix {
	font-size: 0.72em;
	font-weight: 400;
	letter-spacing: -0.035em;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	width: auto;
	max-width: min(220px, calc(100vw - 132px));
	height: 40px;
	object-fit: contain;
}

.mobile-control {
	position: static;
	margin: 0;
}

.mobile-control--menu {
	grid-column: 1;
	grid-row: 1;
}

.mobile-control--search {
	grid-column: 3;
	grid-row: 1;
}

.mobile-control > summary {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
	list-style: none;
}

.mobile-control > summary::-webkit-details-marker {
	display: none;
}

.mobile-control > summary:hover {
	background: var(--color-soft);
}

.mobile-control[open] > summary {
	background: var(--color-soft);
}

.icon {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.mobile-panel {
	position: absolute;
	top: calc(100% + 1px);
	left: 0;
	width: 100%;
	max-height: calc(100vh - 63px);
	padding: 18px var(--gutter) 22px;
	overflow: auto;
	border-bottom: 1px solid var(--color-divider);
	background: var(--color-panel);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.mobile-navigation ul,
.primary-navigation ul,
.footer-navigation ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.mobile-navigation a {
	display: block;
	padding: 11px 2px;
	border-bottom: 1px solid var(--color-divider);
	font-size: 17px;
	font-weight: 650;
	text-decoration: none;
}

.mobile-navigation li:last-child a {
	border-bottom: 0;
}

.primary-navigation,
.desktop-search {
	display: none;
}

/* Search */
.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.search-form__field-wrap {
	position: relative;
	display: flex;
	flex: 1 1 210px;
}

.search-form .search-field,
.search-form .category-filter,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--color-divider);
	border-radius: 999px;
	background: var(--color-soft);
	color: var(--color-text);
}

.comment-form textarea {
	border-radius: var(--radius);
}

.search-form .search-field {
	padding-right: 44px;
}

.search-submit {
	display: grid;
	width: 42px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
}

.search-submit:hover {
	background: var(--color-soft);
	color: var(--color-accent);
}

.search-form__field-wrap .search-submit {
	position: absolute;
	top: 1px;
	right: 1px;
	height: 42px;
}

.search-form .category-filter {
	flex: 1 1 100%;
}

/* Main story index */
.site-main {
	min-height: 55vh;
}

.content-layout {
	display: block;
	padding-block: 22px 40px;
}

.content-primary {
	min-width: 0;
}

.page-header {
	margin-bottom: 4px;
}

.page-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.archive-description {
	max-width: 65ch;
	margin: 10px 0 0;
	color: var(--color-muted);
}

.archive-description p {
	margin: 0;
}

.story-list {
	display: grid;
	gap: 14px;
	margin-top: 6px;
}

.story-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 20px;
	border: 0;
	border-radius: var(--radius);
	background: var(--color-panel);
	box-shadow: var(--shadow-card);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.story-row:hover,
.story-row:focus-within {
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-2px);
}

.trending-badge {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	gap: 6px;
	padding: 7px 16px 7px 12px;
	border-radius: 999px;
	background: var(--gradient-ember);
	box-shadow: 0 10px 22px -8px rgba(217, 58, 43, 0.65);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.trending-badge .icon {
	width: 14px;
	height: 14px;
}

.story-row--featured {
	grid-template-columns: 6fr 4fr !important;
	align-items: start;
	gap: 20px;
	padding: 22px;
}

.story-row--featured .story-content {
	grid-column: 2;
	grid-row: 1;
	align-self: start;
}

.story-row--featured .trending-badge {
	order: -1;
	margin-bottom: 8px;
}

.story-row--featured .story-title {
	font-size: clamp(18px, 2vw, 23px);
	line-height: 1.25;
}

.story-row--featured .story-excerpt {
	-webkit-line-clamp: 8;
	font-size: 14px;
}

.story-row--featured .story-thumbnail {
	grid-column: 1;
	grid-row: 1;
	order: initial;
	border-radius: calc(var(--radius) - 2px);
}

.story-row--featured .story-thumbnail img {
	width: 100%;
	height: clamp(220px, 26vw, 352px);
}

@media (max-width: 640px) {
	.story-row--featured {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.story-row--featured .story-content {
		grid-column: auto;
		grid-row: auto;
	}

	.story-row--featured .story-thumbnail {
		grid-column: auto;
		grid-row: auto;
		order: 2;
	}

	.story-row--featured .story-title {
		font-size: clamp(20px, 3.2vw, 26px);
	}

	.story-row--featured .story-excerpt {
		-webkit-line-clamp: 2;
		font-size: 14px;
	}

	.story-row--featured .story-thumbnail img {
		height: clamp(160px, 20vw, 220px);
	}
}

@media (max-width: 480px) {
	.story-row--featured .story-thumbnail img {
		height: 160px;
	}
}

.story-row.has-display-thumbnail {
	grid-template-columns: 92px minmax(0, 1fr);
}

.story-thumbnail {
	display: block;
	align-self: start;
	border-radius: 5px;
	overflow: hidden;
	background: var(--color-soft);
}

.story-thumbnail img {
	width: 92px;
	height: 68px;
	object-fit: cover;
}

.story-content {
	min-width: 0;
}

.story-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 8px;
	margin-bottom: 6px;
	color: var(--color-meta);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

.story-category {
	color: var(--color-accent);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.story-category:hover {
	text-decoration: underline;
}

.story-meta__dot {
	color: var(--color-meta);
}

.story-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.006em;
	line-height: 1.32;
}

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

.story-title a:hover {
	color: var(--color-accent);
}

.story-excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 8px 0 0;
	color: var(--color-muted);
	font-size: 14px;
	line-height: 1.45;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.story-excerpt p,
.entry-deck p {
	margin: 0;
}

.load-more-wrap {
	margin-top: 20px;
}

.load-more-button,
.button,
.comment-form input[type="submit"] {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: 1px solid var(--color-accent);
	border-radius: 999px;
	background: var(--color-panel);
	color: var(--color-accent);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.load-more-button {
	width: 100%;
	gap: 8px;
}

.load-more-button:hover,
.button:hover,
.comment-form input[type="submit"]:hover {
	background: var(--color-accent);
	color: #fff;
}

.load-more-button[aria-busy="true"] {
	cursor: wait;
	opacity: 0.68;
}

.load-more-button .icon {
	width: 17px;
	height: 17px;
}

.js .posts-navigation--fallback {
	display: none;
}

.no-js .load-more-wrap {
	display: none;
}

.posts-navigation {
	margin-top: 20px;
}

.posts-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.posts-navigation a {
	font-weight: 700;
}

/* Advertisements */
.ad-slot {
	display: grid;
	width: 100%;
	min-height: var(--ad-min-height-mobile);
	place-items: center;
	padding: 16px;
	border: 1px solid var(--color-divider);
	background: var(--color-soft);
	color: var(--color-meta);
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.ad-slot .widget {
	width: 100%;
	margin: 0;
}

.ad-slot__label {
	display: block;
	letter-spacing: 0.035em;
}

.ad-slot.has-ad-widget,
.ad-slot.has-ad-code {
	display: block;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	overflow: visible;
	text-align: initial;
	text-transform: none;
}

.ad-slot.has-ad-code iframe,
.ad-slot.has-ad-code img,
.ad-slot.has-ad-code video,
.ad-slot.has-ad-widget iframe,
.ad-slot.has-ad-widget img,
.ad-slot.has-ad-widget video {
	max-width: 100%;
}

.ad-slot--site-top,
.ad-slot--footer {
	border-right: 0;
	border-left: 0;
}

.ad-slot--home-top {
	margin-bottom: 18px;
}

.ad-slot--article-top {
	margin: 26px auto 38px;
}

.ad-slot--inline,
.ad-slot--article-end,
.ad-slot--article-before-content,
.ad-slot--page-before-content,
.ad-slot--page-after-content {
	margin: 38px 0;
}

.ad-slot--archive-top {
	margin-bottom: 18px;
}

.ad-slot--sidebar {
	margin-bottom: 22px;
}

/* Sidebar */
.site-sidebar {
	display: none;
}

.sidebar-section,
.site-sidebar .widget {
	padding: 20px;
	margin: 0 0 22px;
	border: 0;
	border-radius: var(--radius);
	background: var(--color-soft);
}

.site-sidebar .wp-block-search {
	display: block;
}

.site-sidebar .wp-block-search__label {
	display: block;
	margin-bottom: 10px;
	color: var(--color-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.site-sidebar .wp-block-search__inside-wrapper {
	display: flex;
	overflow: hidden;
	border: 1px solid var(--color-divider);
	border-radius: 999px;
	background: var(--color-panel);
}

.site-sidebar .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 14px;
	border: 0;
	background: transparent;
	color: var(--color-text);
	font: inherit;
	font-size: 13px;
}

.site-sidebar .wp-block-search__input:focus {
	outline: none;
}

.site-sidebar .wp-block-search__button {
	display: grid;
	width: 40px;
	flex: 0 0 auto;
	padding: 0;
	place-items: center;
	border: 0;
	background: var(--gradient-ember);
	color: #fff;
	cursor: pointer;
}

.site-sidebar .wp-block-search__button svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.site-sidebar .wp-block-search__button-outside .wp-block-search__inside-wrapper {
	background: transparent;
	border: 0;
}

.sidebar-title,
.site-sidebar .widget-title {
	margin: 0 0 14px;
	color: var(--color-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	line-height: 1.3;
	text-transform: uppercase;
}

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

.category-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 7px 0;
}

.category-list a {
	font-weight: 600;
	text-decoration: none;
}

.category-count {
	color: var(--color-meta);
	font-size: 13px;
}

.popular-list {
	display: grid;
	gap: 14px;
}

.popular-story {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 10px;
	padding: 16px;
	border-radius: calc(var(--radius) - 2px);
	background: var(--color-panel);
	box-shadow: var(--shadow-card);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.popular-story:hover,
.popular-story:focus-within {
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-2px);
}

.popular-story:not(.has-display-thumbnail) {
	grid-template-columns: minmax(0, 1fr);
}

.popular-story img {
	width: 56px;
	height: 45px;
	border-radius: 8px;
	object-fit: cover;
}

.popular-story .story-meta {
	margin-bottom: 6px;
	font-size: 10px;
}

.popular-story__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.popular-story__title a {
	text-decoration: none;
}

.widget ul {
	padding-left: 20px;
}

/* Single article and pages */
.article-shell {
	width: min(100% - (var(--gutter) * 2), var(--reading));
	margin-inline: auto;
	padding-bottom: 48px;
}

.single .article-shell {
	padding-top: clamp(38px, 6vw, 68px);
}

.single .article-shell > .ad-slot--article-top:first-child {
	margin-top: 0;
}

.single .site-main,
.page .site-main,
.error404 .site-main {
	min-height: 65vh;
}

.entry-header {
	margin-bottom: 28px;
}

.entry-category {
	display: inline-flex;
	padding: 5px 14px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: var(--color-soft);
	color: var(--color-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.075em;
	text-decoration: none;
	text-transform: uppercase;
}

.entry-category:hover {
	text-decoration: underline;
}

.entry-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(32px, 8.4vw, 52px);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.12;
	text-wrap: balance;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	color: var(--color-meta);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
}

.entry-title.screen-reader-text + .entry-meta {
	margin-top: 0;
}

.entry-title.screen-reader-text + .entry-deck {
	margin-top: 0;
}

.entry-meta__author {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.entry-meta__author img,
.entry-author-avatar {
	width: 36px;
	height: 36px;
	border: 2px solid var(--color-accent-2);
	border-radius: 50%;
	object-fit: cover;
}

.entry-meta__author-lines {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.entry-meta__author-name {
	color: var(--color-text);
	font-size: 14px;
	font-weight: 600;
}

.entry-meta__author-sub {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	color: var(--color-meta);
	font-size: 12px;
	font-weight: 500;
}

.entry-meta__dot {
	margin: 0 6px;
	opacity: 0.6;
}

.entry-meta a {
	color: var(--color-text);
	font-weight: 750;
	text-decoration: none;
}

.entry-meta a:hover {
	color: var(--color-accent);
}

.entry-meta__updated {
	color: var(--color-accent);
}

.entry-meta__views {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--color-soft);
	color: var(--color-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.entry-meta__views .icon {
	width: 13px;
	height: 13px;
}

.entry-header--author-only {
	margin-bottom: clamp(30px, 5vw, 46px);
}

.entry-header--author-only .entry-meta {
	margin-top: 0;
	font-size: 16px;
}

.entry-header--author-only .entry-meta__author img,
.entry-header--author-only .entry-author-avatar {
	width: 48px;
	height: 48px;
}

.entry-header--author-only .entry-meta__author-name {
	font-size: 17px;
}

.entry-deck {
	margin: 24px 0 0;
	color: var(--color-muted);
	font-size: clamp(18px, 4.7vw, 21px);
	line-height: 1.55;
}

.entry-featured-image {
	margin: 0 0 32px;
}

.entry-featured-image img {
	width: 100%;
	border-radius: var(--radius);
}

.entry-content {
	font-size: clamp(17px, 4.7vw, var(--article-font-size));
	line-height: 1.75;
}

.entry-content--gated > [hidden] {
	display: none !important;
}

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

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure,
.entry-content pre,
.entry-content table {
	margin-top: 0;
	margin-bottom: 1.42em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.7em 0 0.6em;
	letter-spacing: -0.024em;
	line-height: 1.2;
}

.entry-content h2 {
	font-size: 1.65em;
}

.entry-content h3 {
	font-size: 1.35em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li + li {
	margin-top: 0.45em;
}

.entry-content blockquote {
	padding-left: 1.1em;
	border-left: 3px solid var(--color-accent);
	color: var(--color-muted);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content a {
	color: var(--color-accent);
}

.entry-content code,
.entry-content pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.entry-content code {
	font-size: 0.88em;
}

.entry-content pre {
	max-width: 100%;
	padding: 18px;
	overflow-x: auto;
	background: var(--color-soft);
	font-size: 14px;
	line-height: 1.55;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.86em;
}

.entry-content th,
.entry-content td {
	padding: 10px;
	border: 1px solid var(--color-divider);
	text-align: left;
}

.entry-content figcaption {
	margin-top: 8px;
	color: var(--color-meta);
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.entry-content .alignwide {
	width: min(100vw - (var(--gutter) * 2), 980px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-read-more {
	margin-top: 28px;
}

.entry-read-more__button {
	display: flex;
	width: 100%;
	min-height: 62px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 13px 16px;
	border: 1px solid var(--color-divider);
	border-radius: calc(var(--radius) + 8px);
	background: var(--color-panel);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 15px 30px -22px rgba(15, 23, 42, 0.58);
	color: var(--color-text);
	cursor: pointer;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.entry-read-more__button:hover,
.entry-read-more__button:focus-visible {
	border-color: var(--color-accent);
	box-shadow:
		0 2px 5px rgba(15, 23, 42, 0.06),
		0 18px 34px -21px rgba(15, 23, 42, 0.62);
	transform: translateY(-2px);
}

.entry-read-more__amount,
.entry-read-more__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.entry-read-more__amount {
	min-height: 28px;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--color-soft);
	color: var(--color-accent);
	font-size: 11px;
	font-weight: 800;
}

.entry-read-more__arrow {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--color-accent);
	color: #ffffff;
	font-size: 15px;
}

.entry-read-more__button.is-complete {
	border-color: var(--color-divider);
	box-shadow: none;
	cursor: default;
	opacity: 0.78;
	transform: none;
}

.entry-read-more.is-active + .ad-slot--article-end {
	margin-top: 16px;
}

.page-links {
	margin: 28px 0;
	font-weight: 700;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 34px;
	font-size: 13px;
}

.post-tags a {
	padding: 4px 8px;
	border: 1px solid var(--color-divider);
	border-radius: 3px;
	color: var(--color-muted);
	text-decoration: none;
}

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

.author-profile {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding: 24px;
	margin-top: 38px;
	border-radius: calc(var(--radius) + 9px);
	background: var(--color-soft);
	box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.52);
}

.author-profile__avatar img {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
}

.author-profile__content > span {
	display: block;
	margin-bottom: 3px;
	color: var(--color-accent);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.author-profile h2 {
	margin: 0;
	font-size: 23px;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.author-profile h2 a,
.author-profile__link {
	color: inherit;
	text-decoration: none;
}

.author-profile h2 a:hover,
.author-profile__link:hover {
	color: var(--color-accent);
}

.author-profile p {
	margin: 9px 0 0;
	color: var(--color-muted);
	font-size: 14px;
	line-height: 1.55;
}

.author-profile__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 11px;
	font-size: 12px;
	font-weight: 750;
}

.single-entry .post-navigation {
	margin-top: 34px;
}

.single-entry .post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.single-entry .post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}

.single-entry .post-navigation a {
	display: flex;
	min-height: 112px;
	flex-direction: column;
	justify-content: center;
	padding: 17px 18px;
	border-radius: calc(var(--radius) + 7px);
	background: var(--color-panel);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 14px 28px -21px rgba(15, 23, 42, 0.5);
	color: inherit;
	text-decoration: none;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.single-entry .post-navigation a:hover,
.single-entry .post-navigation a:focus-visible {
	box-shadow:
		0 2px 5px rgba(15, 23, 42, 0.07),
		0 18px 34px -20px rgba(15, 23, 42, 0.58);
	transform: translateY(-2px);
}

.post-navigation__label {
	display: block;
	margin-bottom: 7px;
	color: var(--color-accent);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-navigation__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* Comments */
.comments-area {
	width: min(100% - (var(--gutter) * 2), var(--reading));
	padding: 38px 0 60px;
	margin-inline: auto;
	border-top: 1px solid var(--color-divider);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 22px;
	font-size: 24px;
	line-height: 1.25;
}

.comment-list {
	padding: 0;
	margin: 0 0 32px;
	list-style: none;
}

.comment-list .children {
	padding-left: 24px;
	list-style: none;
}

.comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--color-divider);
}

.comment-meta {
	font-size: 13px;
}

.comment-author .avatar {
	float: left;
	width: 38px;
	height: 38px;
	margin-right: 10px;
	border-radius: 50%;
}

.comment-content {
	clear: both;
	padding-top: 10px;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

/* Empty and error states */
.empty-state {
	max-width: 680px;
	padding: 42px 0;
}

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

.empty-state .search-form {
	margin-top: 24px;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--color-divider);
	background: var(--color-panel);
}

.footer-inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding-block: 22px;
	color: var(--color-muted);
	font-size: 13px;
	text-align: center;
}

.site-info {
	margin: 0;
}

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	justify-content: center;
}

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

.footer-navigation--quick {
	width: 100%;
}

.r34c8-hide-sidebar .content-layout.has-sidebar {
	display: block;
}

.r34c8-hide-sidebar .site-sidebar {
	display: none;
}

.r34c8-list-cards .story-list {
	display: grid;
	gap: 16px;
	margin-top: 18px;
}

.r34c8-list-cards .story-row,
.r34c8-list-cards .story-row.has-display-thumbnail {
	position: relative;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 0;
	border-radius: calc(var(--radius) + 7px);
	background: var(--color-panel);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 14px 28px -20px rgba(15, 23, 42, 0.48);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.r34c8-list-cards .story-row:hover,
.r34c8-list-cards .story-row:focus-within {
	box-shadow:
		0 2px 5px rgba(15, 23, 42, 0.06),
		0 18px 34px -20px rgba(15, 23, 42, 0.58);
	transform: translateY(-2px);
}

.r34c8-list-cards .story-thumbnail,
.r34c8-list-cards .story-content {
	align-self: center;
}

.r34c8-list-cards .story-thumbnail {
	border-radius: calc(var(--radius) + 2px);
	box-shadow: 0 5px 14px -10px rgba(15, 23, 42, 0.7);
}

@media (max-width: 639px) {
	.single-entry .post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.single-entry .post-navigation .nav-next {
		grid-column: 1;
		text-align: left;
	}

	.single-entry .post-navigation a {
		min-height: 94px;
	}
}

@media (max-width: 374px) {
	.author-profile {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 14px;
		padding: 18px;
	}

	.author-profile__avatar img {
		width: 58px;
		height: 58px;
	}

	.story-row.has-display-thumbnail {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 10px;
	}

	.story-thumbnail img {
		width: 84px;
		height: 64px;
	}

	.story-title {
		font-size: 15px;
	}

	.story-excerpt {
		display: none;
	}
}

@media (min-width: 640px) {
	.content-layout {
		padding-block: 30px 52px;
	}

	.story-row,
	.story-row.has-display-thumbnail {
		gap: 18px;
		padding: 22px;
	}

	.story-row.has-display-thumbnail {
		grid-template-columns: 108px minmax(0, 1fr);
	}

	.story-thumbnail img {
		width: 108px;
		height: 74px;
	}

	.story-meta {
		font-size: 12px;
	}

	.story-title {
		font-size: 18px;
	}

	.story-excerpt {
		font-size: 14px;
	}

	.footer-inner {
		flex-direction: row;
		flex-wrap: wrap;
		text-align: left;
	}
}

@media (min-width: 768px) {
	.ad-slot.is-placeholder {
		min-height: var(--ad-min-height-desktop);
	}

	.article-shell {
		padding-bottom: 64px;
	}

	.ad-slot--article-top {
		margin-top: 40px;
		margin-bottom: 54px;
	}

	.entry-header {
		margin-bottom: 38px;
	}

	.entry-deck {
		margin-top: 26px;
	}
}

@media (min-width: 1360px) {
	.header-inner {
		grid-template-columns: auto minmax(0, 1fr) 210px;
		gap: 30px;
		min-height: 72px;
		padding-block: 12px;
	}

	.site-header.header-no-search .header-inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.site-branding {
		grid-column: 1;
		justify-self: start;
		max-width: 240px;
	}

	.custom-logo {
		max-width: 240px;
		height: 48px;
	}

	.site-title {
		font-size: 26px;
	}

	.mobile-control {
		display: none;
	}

	.primary-navigation {
		display: block;
		min-width: 0;
	}

	.primary-navigation ul {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 8px;
	}

	.primary-navigation li {
		position: relative;
	}

	.primary-navigation a {
		display: flex;
		min-height: 40px;
		align-items: center;
		padding: 0 18px;
		border-radius: 999px;
		background: var(--color-soft);
		color: var(--color-text);
		font-size: 13px;
		font-weight: 700;
		text-decoration: none;
		white-space: nowrap;
		transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
	}

	.primary-navigation a:hover {
		background: color-mix(in srgb, var(--color-accent) 14%, var(--color-soft));
		color: var(--color-accent);
	}

	.primary-navigation .current-menu-item > a,
	.primary-navigation .current_page_item > a,
	.primary-navigation li:first-child > a {
		background: var(--gradient-ember);
		box-shadow: 0 8px 18px -8px rgba(217, 58, 43, 0.55);
		color: #fff;
	}

	.primary-navigation .current-menu-item > a:hover,
	.primary-navigation .current_page_item > a:hover,
	.primary-navigation li:first-child > a:hover {
		color: #fff;
	}

	.primary-navigation .sub-menu {
		position: absolute;
		top: 100%;
		left: -14px;
		display: none;
		width: 210px;
		padding: 8px;
		border: 1px solid var(--color-divider);
		background: var(--color-bg);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
	}

	.primary-navigation .sub-menu a {
		min-height: 38px;
		padding: 7px 9px;
		border: 0;
		white-space: normal;
	}

	.primary-navigation li:hover > .sub-menu,
	.primary-navigation li:focus-within > .sub-menu {
		display: block;
	}

	.desktop-search {
		display: block;
	}

	.desktop-search .search-form {
		flex-wrap: nowrap;
	}

	.desktop-search .search-field {
		min-height: 38px;
		font-size: 13px;
	}

	.desktop-search .search-form__field-wrap .search-submit {
		height: 36px;
	}

	.site-header.header-force-mobile .header-inner {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 0;
	}

	.site-header.header-force-mobile .site-branding {
		grid-column: 2;
		justify-self: center;
		max-width: 100%;
	}

	.site-header.header-force-mobile .site-title {
		font-size: 25px;
	}

	.site-header.header-force-mobile .mobile-control {
		display: block;
	}

	.site-header.header-force-mobile .primary-navigation,
	.site-header.header-force-mobile .desktop-search {
		display: none;
	}
}

@media (min-width: 1024px) {
	.content-layout.has-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: clamp(38px, 5vw, 72px);
	}

	.site-sidebar {
		display: block;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.site-sidebar,
	.ad-slot,
	.entry-read-more,
	.comments-area,
	.post-tags {
		display: none !important;
	}

	.entry-content--gated > [hidden] {
		display: revert !important;
	}

	.article-shell {
		width: 100%;
		max-width: none;
		padding-top: 0;
	}

	body,
	.entry-content {
		font-size: 12pt;
		line-height: 1.55;
	}
}
