/*
Theme Name: Hutber
Theme URI: https://warhammer.hutber.com/
Author: Hutber
Description: Custom masonry theme for warhammer.hutber.com
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hutber
*/

html, body {
	margin: 0;
	padding: 0;
	font-family: "Helvetica Neue", Arial, sans-serif;
	background: #111;
	color: #f0f0f0;
}

a {
	color: #e0b400;
	text-decoration: none;
}

a:hover {
	color: #f5d75b;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header {
	padding: 2rem 1.5rem;
	text-align: center;
	background: #1a1a1a;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.site-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	text-align: left;
}

.site-title {
	margin: 0;
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-description {
	margin: 0.5rem 0 0;
	font-size: 1.1rem;
	color: #c0c0c0;
}

.nav-toggle {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: #f0f0f0;
	padding: 0.5rem;
	display: inline-flex;
	flex-direction: column;
	gap: 0.35rem;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
	border-color: #e0b400;
	outline: none;
}

.nav-toggle-bar {
	width: 1.75rem;
	height: 0.15rem;
	background: currentColor;
	border-radius: 999px;
	display: block;
}

.primary-navigation {
	width: 100%;
}

.js .primary-navigation.is-open {
	display: block;
}

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

.menu > li > a {
	display: inline-block;
	padding: 0.5rem 0;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

@media (min-width: 900px) {
	.site-header {
		text-align: left;
	}

	.nav-toggle {
		display: none;
	}

	.primary-navigation {
		width: auto;
		display: flex !important;
	}

	.menu {
		flex-direction: row;
		gap: 1.5rem;
	}

	.menu > li > a {
		padding: 0.25rem 0;
		position: relative;
	}

	.menu > li > a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -0.35rem;
		height: 2px;
		background: currentColor;
		transform: scaleX(0);
		transform-origin: center;
		transition: transform 0.2s ease;
	}

	.menu > li > a:hover::after,
	.menu > li > a:focus-visible::after,
	.current-menu-item > a::after {
		transform: scaleX(1);
	}
}

@media (max-width: 899px) {
	.js .primary-navigation {
		display: none;
	}

	.js .primary-navigation.is-open {
		display: block;
	}

	.menu {
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		padding-top: 1rem;
	}
}

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

.site-content {
	flex: 1;
	padding: 2rem clamp(1rem, 4vw, 4rem);
}

.masonry-grid {
	column-gap: 1.5rem;
	column-count: 1;
}

@media (min-width: 600px) {
	.masonry-grid {
		column-count: 2;
	}
}

@media (min-width: 960px) {
	.masonry-grid {
		column-count: 3;
	}
}

@media (min-width: 1400px) {
	.masonry-grid {
		column-count: 4;
	}
}

.masonry-item {
	break-inside: avoid;
	margin-bottom: 1.5rem;
	background: #1a1a1a;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
	display: block;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.masonry-item[data-href] {
	cursor: pointer;
}

.masonry-item[data-href]:hover,
.masonry-item[data-href]:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.post-thumbnail {
	display: block;
}

.post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

.post-content {
	padding: 1.25rem;
}

.post-title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
}

.post-meta {
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	color: #9a9a9a;
}

.post-excerpt {
	font-size: 1rem;
	line-height: 1.6;
	color: #d0d0d0;
}
.post-footer {
	margin-top: 1rem;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	color: #b0b0b0;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.post-meta-comments,
.post-meta-views {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.post-meta-views {
	color: #d8c46a;
}

.post-meta-categories {
	margin-left: auto;
	text-align: right;
}

.masonry-item--popular .post-content {
	padding: 1.5rem;
}

.popular-list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.popular-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1rem;
}

.popular-list a {
	font-weight: 600;
	flex: 1;
}

.popular-count {
	font-size: 0.85rem;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(224, 180, 0, 0.15);
	color: #f5d75b;
}

.single-post {
	width: 100%;
	padding: clamp(2rem, 5vw, 5rem) 0;
}

.single-post-header {
	margin: 0 0 2.5rem;
	padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.single-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	font-size: 0.95rem;
	color: #9a9a9a;
}

.meta-separator {
	opacity: 0.4;
}

.single-post-title {
	margin: 0.75rem 0 0;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
}


.single-post-highlights {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	font-size: 0.95rem;
	color: #c9c9c9;
}

.single-post-highlights .meta-separator {
	margin: 0 0.35rem;
}

.highlight-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.single-post-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #e6e6e6;
	padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.single-post-content > * + * {
	margin-top: 1.25rem;
}

.single-post-content a {
	color: #f5d75b;
	text-decoration: underline;
}

.single-post-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	border-left: 4px solid #e0b400;
	background: rgba(255, 255, 255, 0.05);
}

.single-post-content img,
.single-post-content figure {
	max-width: min(100%, 1144px);
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.single-post-content figure img {
	width: 100%;
	height: auto;
}

.single-post-content figure figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #b0b0b0;
	text-align: center;
}

.single-post-footer {
	margin: 3rem 0 0;
	padding: 0 clamp(1.5rem, 5vw, 4rem);
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.post-navigation {
	display: block;
}

.post-navigation .nav-links {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.post-navigation .nav-links > * {
	display: flex;
}

.post-navigation .nav-links a {
	display: flex;
	flex-direction: column;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	color: #f0f0f0;
	transition: background 0.2s ease;
	gap: 0.35rem;
	width: 100%;
}

.post-navigation .nav-links a:hover,
.post-navigation .nav-links a:focus-visible {
	background: rgba(255, 255, 255, 0.1);
}

.nav-label {
	display: block;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #c9c9c9;
	margin-bottom: 0.35rem;
}

.nav-title {
	display: block;
	font-size: 1.1rem;
	font-weight: 600;
}

.single-post-comments {
	background: rgba(255, 255, 255, 0.03);
	padding: 1.5rem;
	border-radius: 12px;
}

.comments-area {
	display: grid;
	gap: 2rem;
}

.comments-header {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.comments-title {
	margin: 0;
	font-size: 1.7rem;
}

.comments-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.9rem;
	color: #c9c9c9;
	margin-top: 0.5rem;
}

.comments-pagination a {
	display: inline-flex;
	align-items: center;
	color: #f5d75b;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: rgba(224, 180, 0, 0.12);
	white-space: nowrap;
}

.comments-pagination a:first-child:last-child {
	margin-left: auto;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
}

.comment {
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 14px;
	padding: 1.5rem;
}

.comment-body {
	display: grid;
	gap: 1rem;
}

.comment-meta {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.comment-avatar {
	border-radius: 50%;
	width: 64px;
	height: 64px;
}

.comment-meta-text {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.comment-author {
	font-weight: 600;
	font-size: 1rem;
}

.comment-time {
	font-size: 0.85rem;
	color: #9a9a9a;
}

.comment-status {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #f5d75b;
}

.comment-edit a {
	font-size: 0.8rem;
	color: #f5d75b;
}


.comment-content {
	font-size: 1.08rem;
	line-height: 1.7;
}

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

.comment-footer {
	display: flex;
	justify-content: flex-end;
}

.comment-reply-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(224, 180, 0, 0.1);
	color: #f5d75b;
	font-size: 0.85rem;
}

.no-comments {
	font-size: 0.95rem;
	color: #c0c0c0;
}

.comment-respond {
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 14px;
	padding: 1.75rem;
	display: grid;
	gap: 1.25rem;
}

.comment-respond h3 {
	margin: 0;
	font-size: 1.5rem;
}

.comment-form label {
	display: block;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.25);
	color: #f0f0f0;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: #e0b400;
}

.form-submit {
	display: flex;
	justify-content: flex-end;
}

.button.button-primary {
	background: linear-gradient(135deg, #e0b400, #f5d75b);
	color: #111;
	border: none;
	padding: 0.65rem 1.5rem;
	border-radius: 999px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.button.button-primary:hover,
.button.button-primary:focus {
	filter: brightness(0.95);
}

.children {
	list-style: none;
	padding-left: 1.5rem;
	display: grid;
	gap: 1rem;
}

.front-controls {
	padding: 0 clamp(1.5rem, 5vw, 4rem);
	margin: 0 auto 1.5rem;
	max-width: 1100px;
}

.front-controls__form {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75rem;
}

.front-controls__select {
	appearance: none;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	padding: 0.45rem 1.4rem 0.45rem 0.9rem;
	color: #f0f0f0;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.front-controls__select:focus {
	outline: none;
	border-color: #e0b400;
}

.front-controls__submit {
	background: transparent;
	border: 1px solid rgba(224, 180, 0, 0.5);
	border-radius: 999px;
	color: #f5d75b;
	padding: 0.45rem 1.2rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.front-controls__submit:hover,
.front-controls__submit:focus-visible {
	border-color: #f5d75b;
	color: #fff2b8;
}

@media (min-width: 700px) {
	.comment {
		padding: 2rem;
	}

	.children {
		padding-left: 2.5rem;
	}
}

.single-post-tags h2 {
	margin: 0 0 0.75rem;
	font-size: 1.4rem;
}

.single-post-tags ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-post-tags li a {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #f5d75b;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.single-post-comments .comment-reply-title,
.single-post-comments .comments-title {
	font-size: 1.4rem;
	margin-top: 0;
}

.page-links {
	margin-top: 2rem;
	display: flex;
	gap: 0.75rem;
	align-items: center;
	flex-wrap: wrap;
}

.page-links > * {
	padding: 0.4rem 0.75rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 700px) {
	.post-navigation .nav-links {
		flex-direction: row;
		justify-content: space-between;
		align-items: stretch;
	}

	.post-navigation .nav-links > * {
		flex: 1 1 calc(50% - 0.75rem);
	}

	.post-navigation .nav-links .nav-next {
		justify-content: flex-end;
	}

	.post-navigation .nav-links .nav-next a {
		text-align: right;
	}

	.insight-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.site-footer {
	padding: 1.25rem;
	text-align: center;
	background: #0d0d0d;
	font-size: 0.9rem;
	color: #777;
}

.pagination {
	margin: 2rem 0 0;
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.pagination a,
.pagination span {
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: #1f1f1f;
	color: #f0f0f0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pagination .current {
	background: #e0b400;
	color: #111;
}
