/*
Theme Name: Somethingodd
Theme URI: https://github.com/rasoulrahimii/somethingodd
Author: Rasoul Rahimi
Author URI: https://github.com/rasoulrahimii
Description: A lightweight, standards compliant classic WordPress theme scaffold with block editor support.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: somethingodd
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

:root {
	--so-color-text: #3a2418;
	--so-color-muted: #7a5c49;
	--so-color-accent: #af3709;
	--so-color-accent-dark: #6e2521;
	--so-color-deep: #550000;
	--so-color-bg: #ece1c9;
	--so-color-surface: #f6efdd;
	--so-color-border: #d9c9a8;
	--so-font-body: "Comfortaa", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--so-font-heading: "Comfortaa", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--so-content-width: 46rem;
	--so-wide-width: 72rem;
	--so-space: 1.5rem;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--so-font-heading);
	line-height: 1.25;
	margin: 0 0 0.5em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--so-color-accent);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	color: var(--so-color-accent-dark);
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

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

.skip-link {
	position: absolute;
	left: -9999rem;
	top: 0;
	z-index: 999;
	background: var(--so-color-bg);
	padding: 0.75rem 1rem;
}

.skip-link:focus {
	left: 0;
}

.site-container {
	width: 100%;
	max-width: var(--so-wide-width);
	margin: 0 auto;
	padding: 0 var(--so-space);
}

.site-header {
	border-bottom: 1px solid var(--so-color-border);
	padding: var(--so-space) 0;
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--so-space);
}

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

.site-branding__title {
	font-size: clamp(1.05rem, 4.6vw, 1.5rem);
	margin: 0;
}

.site-branding__title a {
	color: inherit;
	text-decoration: none;
}

.site-branding__description {
	color: var(--so-color-muted);
	font-size: 0.9rem;
	margin: 0.25rem 0 0;
}

.menu-toggle {
	display: none;
	flex-shrink: 0;
	background: none;
	border: 1px solid var(--so-color-border);
	border-radius: 6px;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 0.55rem 0.6rem;
	-webkit-tap-highlight-color: transparent;
}

.menu-toggle__bar {
	display: block;
	width: 1.35rem;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.menu-toggle__bar + .menu-toggle__bar {
	margin-top: 0.3rem;
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: inherit;
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	text-decoration: underline;
}

.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: calc(var(--so-space) * 2);
	padding: calc(var(--so-space) * 2) 0;
}

.has-sidebar .site-content {
	grid-template-columns: minmax(0, 1fr) 18rem;
}

.entry {
	margin: 0 0 calc(var(--so-space) * 2);
	padding: 0 0 var(--so-space);
	border-bottom: 1px solid var(--so-color-border);
}

.entry:last-child {
	border-bottom: 0;
}

.entry__title {
	font-size: 1.85rem;
}

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

.entry__meta {
	color: var(--so-color-muted);
	font-size: 0.875rem;
	margin-bottom: var(--so-space);
}

.entry__thumbnail {
	margin-bottom: var(--so-space);
}

.entry__content > * {
	max-width: var(--so-content-width);
}

.entry__content > .alignwide {
	max-width: var(--so-wide-width);
}

.entry__content > .alignfull {
	max-width: none;
}

.alignleft {
	float: left;
	margin: 0 var(--so-space) var(--so-space) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--so-space) var(--so-space);
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.widget {
	margin-bottom: calc(var(--so-space) * 1.5);
}

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

.widget li + li {
	margin-top: 0.4rem;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: var(--so-space);
}

.pagination .page-numbers {
	border: 1px solid var(--so-color-border);
	border-radius: 4px;
	padding: 0.35rem 0.7rem;
	text-decoration: none;
}

.pagination .current {
	background: var(--so-color-surface);
}

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

.comment-list .children {
	list-style: none;
	padding-left: var(--so-space);
}

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

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

.search-form input[type="search"] {
	flex: 1;
	border: 1px solid var(--so-color-border);
	border-radius: 4px;
	padding: 0.5rem 0.75rem;
	font: inherit;
}

.search-form button {
	background: var(--so-color-accent);
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	padding: 0.5rem 1rem;
}

.site-footer {
	border-top: 1px solid var(--so-color-border);
	color: var(--so-color-muted);
	font-size: 0.9rem;
	padding: var(--so-space) 0;
}

@media (max-width: 782px) {
	.has-sidebar .site-content {
		grid-template-columns: minmax(0, 1fr);
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation {
		flex-basis: 100%;
		display: none;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0.75rem;
	}
}
