/*
Theme Name: DaySiftly
Theme URI: https://daysiftly.com/
Author: DaySiftly
Author URI: https://daysiftly.com/
Description: A fast, accessible editorial theme for DaySiftly. Built around clear typography, crawlable category sections, responsive images, and a no-JavaScript mobile menu.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Copyright: 2026 DaySiftly
Text Domain: daysiftly
Tags: news, blog, three-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */

:root {
	--ink: #171412;
	--ink-soft: #3c3530;
	--muted: #5d554d;
	--paper: #f6f1e8;
	--surface: #fffdf9;
	--line: #ddd2c3;
	--accent: #c62f24;
	--accent-dark: #8f1d15;
	--accent-warm: #e05a24;
	--footer: #15110f;
	--footer-text: #e9e0d3;
	--footer-muted: #c8baaa;
	--max-width: 1200px;
	--content-width: 760px;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-head: Georgia, "Times New Roman", serif;
	--radius: 3px;
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--ink);
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	overflow-wrap: anywhere;
}

p {
	margin: 0 0 1.25rem;
}

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

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

img,
svg,
video,
canvas {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

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

button,
summary {
	cursor: pointer;
}

ul,
ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

li {
	margin-bottom: 0.35rem;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2rem 0;
}

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

/* -------------------------------------------------------------------------
   3. Accessibility
   ------------------------------------------------------------------------- */

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

.screen-reader-text:focus {
	display: block;
	width: auto;
	height: auto;
	margin: 0;
	padding: 1rem 1.25rem;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	background: #fff;
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	clip: auto !important;
	clip-path: none;
	outline: 3px solid var(--accent);
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100001;
	padding: 0.85rem 1.1rem;
	background: var(--ink);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
	color: #fff;
	outline: 3px solid var(--accent-warm);
	outline-offset: 2px;
}

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

.main-navigation a:focus-visible,
.site-footer a:focus-visible {
	outline-color: #ffd166;
}

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */

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

.site-content {
	padding-bottom: 1px;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 3rem;
	align-items: start;
	padding-block: 2.5rem 4rem;
}

.content-layout--full {
	grid-template-columns: minmax(0, 1fr);
	max-width: 960px;
}

.site-main {
	min-width: 0;
}

/* -------------------------------------------------------------------------
   5. Header
   ------------------------------------------------------------------------- */

.site-header {
	background: var(--surface);
	border-top: 4px solid var(--accent);
}

.header-top {
	background: var(--ink);
	color: #f4ece1;
	font-size: 0.76rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

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

.header-date {
	margin: 0;
}

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

.top-menu li {
	margin: 0;
}

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

.top-menu a:hover {
	color: #ffb37a;
}

.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 1.25rem;
}

.site-branding {
	min-width: 0;
}

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

.custom-logo {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 56px;
}

.site-title {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(1.9rem, 3vw, 2.7rem);
	line-height: 1;
	letter-spacing: -0.03em;
}

.site-title a {
	color: var(--ink);
	text-decoration: none;
}

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

.site-description {
	margin: 0.35rem 0 0;
	color: var(--muted);
	font-size: 0.85rem;
}

.header-search {
	flex: 0 1 380px;
	min-width: 240px;
}

/* -------------------------------------------------------------------------
   6. Search form
   ------------------------------------------------------------------------- */

.search-form {
	display: flex;
	width: 100%;
	border: 1px solid var(--line);
	background: #fff;
}

.search-field {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	padding: 0.68rem 0.8rem;
	background: transparent;
	color: var(--ink);
	font-size: 0.9rem;
}

.search-field:focus {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.search-submit {
	flex: 0 0 auto;
	border: 0;
	padding: 0.68rem 1rem;
	background: var(--accent);
	color: #fff;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

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

.page-header .search-form {
	max-width: 480px;
	margin-top: 1rem;
}

/* -------------------------------------------------------------------------
   7. Primary navigation
   ------------------------------------------------------------------------- */

.header-nav {
	background: var(--ink);
	border-bottom: 3px solid var(--accent);
}

.header-nav__inner {
	min-height: 52px;
}

.menu-drawer {
	display: none;
}

.menu-drawer > summary {
	list-style: none;
}

.menu-drawer > summary::-webkit-details-marker {
	display: none;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.9rem 0;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.menu-toggle__icon {
	position: relative;
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: currentColor;
}

.menu-toggle__icon::before {
	top: -6px;
}

.menu-toggle__icon::after {
	top: 6px;
}

.main-navigation {
	width: 100%;
}

.main-navigation--desktop {
	display: block;
}

.main-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation .menu li {
	margin: 0;
}

.main-navigation .menu > li {
	position: relative;
}

.main-navigation .menu > li > a {
	display: block;
	padding: 1rem 1.1rem;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current-menu-ancestor > a,
.main-navigation .menu > li.current_page_parent > a {
	background: var(--accent);
	color: #fff;
}

.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 230px;
	margin: 0;
	padding: 0.4rem 0;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.main-navigation .menu > li:hover > .sub-menu,
.main-navigation .menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation .sub-menu a {
	display: block;
	padding: 0.55rem 1rem;
	color: var(--ink);
	font-size: 0.88rem;
	text-decoration: none;
}

.main-navigation .sub-menu a:hover {
	background: var(--paper);
	color: var(--accent);
}

/* -------------------------------------------------------------------------
   8. Front page
   ------------------------------------------------------------------------- */

.front-page {
	padding-bottom: 2rem;
}

.front-page__inner {
	display: flex;
	flex-direction: column;
	gap: 2.75rem;
	padding-block: 2rem 1rem;
}

.front-intro {
	padding-top: 2rem;
}

.front-intro .entry-content {
	max-width: var(--content-width);
	margin-inline: auto;
}

.hero-post {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	background: var(--surface);
	border: 1px solid var(--line);
}

.hero-post--text {
	grid-template-columns: minmax(0, 1fr);
}

.hero-post__media {
	display: block;
	overflow: hidden;
	background: var(--line);
}

.hero-post__image {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.hero-post__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 3vw, 2.75rem);
}

.hero-post__title {
	margin: 0.55rem 0 1rem;
	font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.hero-post__title a {
	color: var(--ink);
	text-decoration: none;
}

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

.hero-post__excerpt {
	margin: 0 0 1.35rem;
	color: var(--muted);
	font-size: 1.03rem;
}

.entry-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.entry-category {
	display: inline-block;
	color: var(--accent);
	font-size: 0.71rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.entry-category:hover {
	color: var(--accent-dark);
	text-decoration: underline;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	color: var(--muted);
	font-size: 0.8rem;
}

.entry-meta a {
	color: inherit;
}

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

.news-section {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--ink);
}

.section-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.section-title::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 1.05em;
	background: var(--accent);
}

.section-link {
	color: var(--accent);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.section-link:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   9. Post grid and cards
   ------------------------------------------------------------------------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.post-grid--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	transition: border-color 0.2s ease;
}

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

.post-card__media {
	display: block;
	overflow: hidden;
	background: var(--paper);
}

.post-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card__image {
	transform: scale(1.02);
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.1rem 1.25rem;
}

.post-card__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.25;
}

.post-card__title a {
	color: var(--ink);
	text-decoration: none;
}

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

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.8rem;
	color: var(--muted);
	font-size: 0.78rem;
}

.post-card__excerpt {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

/* -------------------------------------------------------------------------
   10. Archives, pages, and articles
   ------------------------------------------------------------------------- */

.breadcrumbs {
	margin-bottom: 1.25rem;
	color: var(--muted);
	font-size: 0.8rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li {
	margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.4rem;
	color: var(--line);
}

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

.breadcrumbs a:hover {
	color: var(--accent);
	text-decoration: underline;
}

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

.page-header {
	margin-bottom: 1.5rem;
}

.page-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.2rem);
}

.archive-description {
	max-width: 70ch;
	margin-top: 0.75rem;
	color: var(--muted);
}

.entry {
	padding: clamp(1.25rem, 3vw, 2.75rem);
	background: var(--surface);
	border: 1px solid var(--line);
}

.entry-header {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.entry-title {
	margin: 0;
	font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

.entry-updated {
	margin: 0;
	color: var(--muted);
	font-size: 0.8rem;
}

.entry-deck {
	margin: 0.25rem 0 0;
	color: var(--muted);
	font-size: 1.15rem;
	line-height: 1.5;
}

.entry-media {
	margin: 0 0 1.75rem;
}

.entry-featured-image {
	display: block;
	width: 100%;
	height: auto;
}

.entry-media figcaption {
	margin-top: 0.5rem;
	color: var(--muted);
	font-size: 0.8rem;
}

.entry-content {
	max-width: var(--content-width);
	font-size: 1.05rem;
	overflow-wrap: break-word;
}

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

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

.entry-content h2 {
	margin: 2.5rem 0 1rem;
	font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.entry-content h3 {
	margin: 2rem 0 0.75rem;
	font-size: 1.4rem;
}

.entry-content h4 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.2rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content dl {
	margin: 0 0 1.25rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5rem;
}

.entry-content li {
	margin-bottom: 0.4rem;
}

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

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

.entry-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	background: var(--paper);
	border-left: 4px solid var(--accent);
	font-family: var(--font-head);
	font-size: 1.2rem;
}

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

.entry-content figure {
	margin: 1.5rem 0;
}

.entry-content figcaption {
	margin-top: 0.5rem;
	color: var(--muted);
	font-size: 0.8rem;
	text-align: center;
}

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

.entry-content table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--line);
	text-align: left;
}

.entry-content th {
	background: var(--paper);
}

.entry-content pre {
	margin: 1.5rem 0;
	padding: 1rem;
	overflow-x: auto;
	background: #1b1b1b;
	color: #f4f4f4;
	font-size: 0.85rem;
}

.entry-content code {
	padding: 0.1rem 0.3rem;
	background: var(--paper);
	font-size: 0.9em;
}

.entry-content pre code {
	padding: 0;
	background: transparent;
}

.entry-content iframe {
	max-width: 100%;
	border: 0;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content .wp-caption-text {
	margin-top: 0.5rem;
	color: var(--muted);
	font-size: 0.8rem;
	text-align: center;
}

.entry-content .alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.entry-content .alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.entry-content .wp-block-image {
	margin: 1.5rem 0;
}

.entry-content .wp-block-quote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	background: var(--paper);
	border-left: 4px solid var(--accent);
}

.entry-content .wp-block-button__link {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	background: var(--accent-dark);
	color: #fff;
}

.entry-content .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.5rem;
}

.entry-content .gallery-item {
	margin: 0;
}

.entry-content .alignwide {
	max-width: 1000px;
}

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

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
}

.entry-tags__label {
	color: var(--muted);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.entry-tags a {
	padding: 0.25rem 0.5rem;
	background: var(--paper);
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

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

.edit-link {
	font-size: 0.8rem;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 1.5rem 0;
}

.page-links__label {
	color: var(--muted);
	font-size: 0.85rem;
}

.page-links a,
.page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

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

/* -------------------------------------------------------------------------
   11. Related posts and post navigation
   ------------------------------------------------------------------------- */

.related-posts {
	margin-block: 3rem;
}

.related-posts .section-header {
	margin-bottom: 1rem;
}

.post-navigation {
	margin-block: 2.5rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

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

.nav-subtitle {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--muted);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nav-title {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.1rem;
}

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

.post-navigation a:hover .nav-title {
	color: var(--accent);
}

/* -------------------------------------------------------------------------
   12. Sidebar and widgets
   ------------------------------------------------------------------------- */

.widget-area {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.widget {
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--line);
}

.widget-title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--accent);
	font-size: 1.15rem;
}

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

.widget li {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.9rem;
}

.widget li:last-child {
	border-bottom: 0;
}

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

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

.widget select {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem;
	border: 1px solid var(--line);
	background: #fff;
}

/* -------------------------------------------------------------------------
   13. Comments
   ------------------------------------------------------------------------- */

.comments-area {
	margin-block: 3rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--surface);
	border: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

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

.comment-list .children {
	margin: 0;
	padding-left: 1.5rem;
	list-style: none;
}

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

.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	color: var(--muted);
	font-size: 0.8rem;
}

.comment-content {
	font-size: 0.95rem;
}

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

.reply {
	font-size: 0.8rem;
}

.comment-respond {
	margin-top: 2rem;
}

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

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.85rem;
	font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--line);
	background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--accent);
	outline: 2px solid var(--accent);
	outline-offset: 0;
}

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

.comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-weight: 400;
}

/* -------------------------------------------------------------------------
   14. Forms and contact page
   ------------------------------------------------------------------------- */

.button,
.button:visited,
.button--primary {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	border: 0;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

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

.daysiftly-contact-form {
	max-width: 640px;
}

.form-note {
	color: var(--muted);
	font-size: 0.85rem;
}

.form-field {
	margin: 0 0 1.1rem;
}

.form-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 700;
}

.form-field input,
.form-field textarea {
	width: 100%;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--line);
	background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
	border-color: var(--accent);
	outline: 2px solid var(--accent);
	outline-offset: 0;
}

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

.form-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.65rem;
	align-items: start;
}

.form-consent input[type="checkbox"] {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.3rem;
}

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

.form-notice {
	margin-bottom: 1.25rem;
	padding: 0.9rem 1rem;
	border-left: 4px solid;
}

.form-notice--success {
	background: #eef7ee;
	border-color: #2e7d32;
}

.form-notice--error {
	background: #fdecec;
	border-color: var(--accent);
}

/* -------------------------------------------------------------------------
   15. Pagination
   ------------------------------------------------------------------------- */

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

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

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
}

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

.page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* -------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------- */

.site-footer {
	background: var(--footer);
	color: var(--footer-text);
}

.footer-widgets {
	padding-block: 3rem 2rem;
}

.footer-widgets__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.footer-column .widget {
	padding: 0;
	background: transparent;
	border: 0;
}

.footer-column .widget-title {
	margin-bottom: 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--accent-warm);
	color: #fff;
}

.footer-column a {
	color: var(--footer-text);
}

.footer-column a:hover {
	color: #ffb37a;
}

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

.footer-list li {
	padding: 0.35rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-list li:last-child {
	border-bottom: 0;
}

.footer-brand p {
	color: var(--footer-muted);
}

.footer-column .search-form {
	border-color: rgba(255, 255, 255, 0.2);
	background: #fff;
}

.footer-bottom {
	padding-block: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	font-size: 0.8rem;
}

.copyright {
	margin: 0;
	color: var(--footer-muted);
}

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

.footer-menu li {
	margin: 0;
}

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

.footer-menu a:hover {
	color: #ffb37a;
}

.legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.6rem;
}

.legal-links a {
	color: var(--footer-text);
	text-decoration: none;
}

.legal-links a:hover {
	color: #ffb37a;
	text-decoration: underline;
}

.legal-links .sep {
	color: #7d7166;
}

/* -------------------------------------------------------------------------
   17. Search, 404, and empty states
   ------------------------------------------------------------------------- */

.search-query {
	color: var(--accent);
}

.error-404 {
	padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--surface);
	border: 1px solid var(--line);
}

.error-code {
	margin: 0 0 0.5rem;
	color: var(--muted);
	font-family: var(--font-head);
	font-size: clamp(5rem, 14vw, 10rem);
	line-height: 0.8;
}

.error-actions {
	margin: 1.5rem 0;
}

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

.error-categories li {
	margin: 0;
}

.error-categories a {
	display: inline-block;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.error-categories a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.no-results,
.not-found {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--surface);
	border: 1px solid var(--line);
}

.no-results .page-title,
.not-found .page-title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}

/* -------------------------------------------------------------------------
   18. Ad slots
   ------------------------------------------------------------------------- */

.ad-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	margin-block: 1.5rem;
}

.ad-slot--header {
	max-width: 970px;
}

.ad-slot--article {
	min-height: 250px;
	margin-block: 2rem;
}

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

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

/* -------------------------------------------------------------------------
   19. Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.content-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 2rem;
	}

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

	.hero-post {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-post__image {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 900px) {
	.header-main {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.header-search {
		flex-basis: auto;
		width: 100%;
		min-width: 0;
	}

	.menu-toggle {
		display: flex;
	}

	.menu-toggle__icon {
		display: block;
	}

	.main-navigation--desktop {
		display: none;
	}

	.menu-drawer {
		display: block;
	}

	.main-navigation .menu {
		display: none;
	}

	.menu-drawer[open] .main-navigation .menu {
		display: block;
	}

	.main-navigation .menu > li {
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}

	.main-navigation .menu > li > a {
		padding: 0.85rem 0;
	}

	.main-navigation .sub-menu {
		position: static;
		min-width: 0;
		margin: 0;
		padding: 0 0 0.5rem 1rem;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.main-navigation .sub-menu a {
		padding: 0.4rem 0;
		color: #f4ece1;
	}

	.main-navigation .sub-menu a:hover {
		background: transparent;
		color: #ffb37a;
	}

	.content-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

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

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

	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

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

@media (max-width: 700px) {
	.container {
		width: min(100% - 1.5rem, var(--max-width));
	}

	.header-top__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
		padding-block: 0.5rem;
	}

	.top-menu {
		gap: 0.75rem;
	}

	.custom-logo {
		max-height: 44px;
	}

	.front-page__inner {
		gap: 2rem;
	}

	.post-grid,
	.post-grid--four,
	.post-grid--three {
		grid-template-columns: minmax(0, 1fr);
	}

	.widget-area {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-widgets__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-bottom__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.entry {
		padding: 1.25rem;
	}

	.hero-post__body {
		padding: 1.25rem;
	}

	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 1rem 0;
	}

	.entry-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}

/* -------------------------------------------------------------------------
   20. Reduced motion and print
   ------------------------------------------------------------------------- */

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

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

@media print {
	body {
		background: #fff;
		color: #000;
	}

	.site-header,
	.site-footer,
	.widget-area,
	.post-navigation,
	.related-posts,
	.comments-area,
	.ad-slot,
	.search-form,
	.breadcrumbs {
		display: none !important;
	}

	.content-layout {
		display: block;
	}

	.entry {
		padding: 0;
		border: 0;
	}

	a {
		color: #000;
		text-decoration: underline;
	}
}
