/*
Theme Name: Our Yerevan
Theme URI: https://ouryerevan.com/
Author: Dendrite Corp
Description: Custom WordPress theme for Our Yerevan.
Version: 0.2.1
Text Domain: ouryerevan
*/

:root {
	--oy-navy: #00224D;
	--oy-burgundy: #5D0E41;
	--oy-link: #A0153E;
	--oy-coral: #F04263;
	--oy-bg: #EFEFEF;
	--oy-border: #d9d9d9;
	--oy-muted: #8a8a8a;
	--oy-white: #fff;
	--oy-max: 900px;
	--oy-pad: 32px;
	--oy-sans: "Noto Sans Armenian", sans-serif;
	--oy-serif: "Noto Serif Armenian", Georgia, serif;
}

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

html, body {
	overflow-x: hidden;
	max-width: 100%;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

::selection {
	background: var(--oy-coral);
	color: var(--oy-white);
}

body {
	font-family: var(--oy-serif);
	font-size: 17px;
	line-height: 1.75;
	color: var(--oy-navy);
	background: var(--oy-bg);
}

a {
	color: var(--oy-link);
	text-decoration: none;
}

a:hover {
	color: var(--oy-coral);
}

.site-shell {
	max-width: var(--oy-max);
	margin: 0 auto;
	background: var(--oy-bg);
	color: var(--oy-navy);
}

/* ----- Header ----- */
.site-header {
	padding: 26px var(--oy-pad) 0;
	font-family: var(--oy-serif);
}

.header-brand {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.site-title-link,
.custom-logo-link {
	font-family: var(--oy-sans);
	font-size: 30px;
	font-weight: 800;
	color: var(--oy-navy) !important;
	line-height: 1.2;
}

.custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.site-tagline {
	font-family: var(--oy-sans);
	font-size: 13px;
	color: var(--oy-burgundy);
}

.header-banner {
	width: 100%;
	display: block;
	margin-top: 18px;
}

.desktop-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	font-family: var(--oy-sans);
	font-size: 13px;
	font-weight: 600;
	padding: 14px 0;
	border-bottom: 2px solid var(--oy-coral);
	list-style: none;
}

.desktop-nav .nav-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.desktop-nav a {
	color: var(--oy-navy) !important;
}

.desktop-nav a:hover {
	color: var(--oy-coral) !important;
}

/* ----- Main ----- */
.site-main {
	padding: 8px var(--oy-pad) 8px;
}

.page-section {
	padding: 24px var(--oy-pad) 50px;
}

/* ----- Feed (home) ----- */
.feed-article {
	padding: 28px 0;
	border-bottom: 1px solid var(--oy-border);
}

.feed-article h2 {
	font-family: var(--oy-sans);
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}

.feed-article h2 a {
	color: var(--oy-navy) !important;
}

.feed-article h2 a:hover {
	color: var(--oy-coral) !important;
}

.post-meta {
	font-family: var(--oy-sans);
	font-size: 13px;
	color: var(--oy-burgundy);
	margin-bottom: 14px;
}

.post-meta a {
	color: var(--oy-link);
}

.lang-badge {
	border: 1px solid var(--oy-link);
	color: var(--oy-link);
	padding: 1px 6px;
	font-size: 11px;
	font-weight: 700;
	margin-left: 4px;
	display: inline-block;
	vertical-align: middle;
}

.feed-thumb {
	width: 100%;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	display: block;
	margin-bottom: 14px;
}

.feed-excerpt {
	font-size: 17px;
	line-height: 1.75;
	margin: 0 0 10px;
}

.read-more {
	font-family: var(--oy-sans);
	font-size: 13px;
	font-weight: 600;
}

.feed-pagination {
	text-align: center;
	padding: 34px 0;
}

.feed-pagination .page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--oy-sans);
	font-size: 13px;
	font-weight: 700;
}

.feed-pagination .page-numbers li {
	margin: 0;
}

.feed-pagination .page-numbers a,
.feed-pagination .page-numbers span {
	display: inline-block;
	min-width: 2.25rem;
	padding: 10px 12px;
	text-align: center;
	border: 1px solid var(--oy-border);
	background: var(--oy-white);
	color: var(--oy-navy) !important;
	text-decoration: none;
}

.feed-pagination .page-numbers a:hover {
	border-color: var(--oy-coral);
	color: var(--oy-coral) !important;
}

.feed-pagination .page-numbers .current {
	background: var(--oy-link);
	border-color: var(--oy-link);
	color: var(--oy-white) !important;
}

.feed-pagination .page-numbers .dots {
	border: none;
	background: transparent;
	padding: 10px 4px;
}

.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	display: inline-block;
	font-family: var(--oy-sans);
	font-size: 13px;
	font-weight: 700;
	padding: 11px 26px;
	background: var(--oy-link);
	color: var(--oy-white) !important;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--oy-coral);
	color: var(--oy-white) !important;
}

/* About teaser */
.about-teaser {
	padding: 8px var(--oy-pad) 44px;
}

.about-teaser-inner {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 24px;
	align-items: center;
	padding-top: 28px;
	border-top: 1px solid var(--oy-border);
}

.about-teaser-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
}

.about-teaser h2 {
	font-family: var(--oy-sans);
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 8px;
}

.about-teaser p {
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 10px;
}

/* ----- List (archive / search) ----- */
.list-heading {
	font-family: var(--oy-sans);
	font-size: 24px;
	font-weight: 800;
	margin: 12px 0 20px;
}

.search-heading {
	font-family: var(--oy-sans);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 22px;
}

.list-stack {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.list-article {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 16px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--oy-border);
}

.list-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	background: var(--oy-border);
}

.list-article h3 {
	font-family: var(--oy-sans);
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.35;
}

.list-article h3 a {
	color: var(--oy-navy) !important;
}

.list-meta {
	font-family: var(--oy-sans);
	font-size: 12px;
	color: var(--oy-burgundy);
	margin-bottom: 6px;
}

.list-excerpt {
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* Search form */
.search-form-row {
	display: flex;
	gap: 0;
	max-width: 480px;
	margin: 14px 0 26px;
	font-family: var(--oy-sans);
}

.search-form-row input[type="search"],
.search-form-row input[type="text"] {
	flex: 1;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid var(--oy-border);
	border-right: none;
	background: var(--oy-white);
	font-family: var(--oy-sans);
	font-size: 14px;
	color: var(--oy-navy);
	border-radius: 0;
}

.search-form-row button,
.search-form-row input[type="submit"] {
	padding: 0 22px;
	border-radius: 0;
}

/* ----- Single ----- */
.single-article {
	padding: 24px var(--oy-pad) 10px;
}

.single-article .entry-title {
	font-family: var(--oy-sans);
	font-size: 32px;
	line-height: 1.25;
	margin: 14px 0 8px;
	font-weight: 800;
}

.single-article .post-meta {
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--oy-border);
}

.entry-content > p {
	font-size: 17px;
	line-height: 1.8;
	margin: 0 0 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--oy-sans);
	color: var(--oy-navy);
	margin: 28px 0 12px;
}

.entry-content figure {
	margin: 0 0 24px;
}

.entry-content figcaption,
.wp-element-caption {
	font-family: var(--oy-sans);
	font-size: 13px;
	color: var(--oy-burgundy);
	padding-top: 8px;
}

.entry-content blockquote {
	margin: 0 0 24px;
	padding: 2px 0 2px 20px;
	border-left: 3px solid var(--oy-coral);
}

.entry-content blockquote p {
	font-family: var(--oy-sans);
	font-size: 21px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--oy-navy);
	margin: 0 0 8px;
}

.entry-content blockquote cite {
	font-family: var(--oy-sans);
	font-style: normal;
	font-size: 13px;
	color: var(--oy-burgundy);
}

.entry-content .wp-block-gallery,
.entry-content .gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	margin-bottom: 8px;
}

.entry-content .wp-block-gallery img,
.entry-content .gallery img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 20px 0;
	border-top: 1px solid var(--oy-border);
}

.entry-tags a {
	font-family: var(--oy-sans);
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border: 1px solid var(--oy-link);
	color: var(--oy-link) !important;
}

.author-byline {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 20px 0;
	border-top: 1px solid var(--oy-border);
}

.author-byline-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--oy-navy);
	flex-shrink: 0;
	object-fit: cover;
}

.author-byline-name {
	font-family: var(--oy-sans);
	font-size: 14px;
	font-weight: 700;
}

.author-byline-role {
	font-size: 14px;
	color: var(--oy-burgundy);
}

/* ----- Comments ----- */
.comments-area {
	padding: 8px var(--oy-pad) 44px;
}

.comments-title {
	font-family: var(--oy-sans);
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 20px;
	padding-top: 20px;
	border-top: 1px solid var(--oy-border);
}

.comment-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 30px;
}

.comment-list .children {
	list-style: none;
	margin: 16px 0 0 54px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.comment-body {
	display: flex;
	gap: 14px;
}

.comment-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--oy-burgundy);
	overflow: hidden;
}

.comment-avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.comment-author {
	font-family: var(--oy-sans);
	font-size: 14px;
	font-weight: 700;
}

.comment-date {
	font-weight: 400;
	color: var(--oy-muted);
	font-size: 12px;
}

.comment-content p {
	font-size: 15px;
	line-height: 1.7;
	margin: 6px 0 0;
}

.comment-reply-title,
.comments-area h4 {
	font-family: var(--oy-sans);
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 560px;
	font-family: var(--oy-sans);
}

.comment-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--oy-border);
	background: var(--oy-white);
	font-family: inherit;
	font-size: 14px;
	color: var(--oy-navy);
	border-radius: 0;
}

.comment-form .form-submit {
	align-self: flex-start;
}

/* ----- About page ----- */
.page-title {
	font-family: var(--oy-sans);
	font-size: 30px;
	font-weight: 800;
	margin: 14px 0 20px;
}

.about-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 28px;
	align-items: start;
	margin-bottom: 24px;
}

.about-portrait {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
}

.about-layout .entry-content p,
.about-bio p {
	font-size: 17px;
	line-height: 1.8;
	margin: 0 0 16px;
}

.about-callout {
	background: var(--oy-white);
	border-left: 3px solid var(--oy-coral);
	padding: 18px 22px;
	font-family: var(--oy-sans);
	font-size: 14px;
	color: var(--oy-burgundy);
	line-height: 1.7;
}

/* ----- Contact ----- */
.contact-intro {
	font-size: 17px;
	line-height: 1.8;
	margin: 0 0 26px;
	max-width: 560px;
}

.contact-form {
	max-width: 560px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-family: var(--oy-sans);
}

.contact-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.contact-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--oy-border);
	background: var(--oy-white);
	font-family: inherit;
	font-size: 14px;
	color: var(--oy-navy);
	border-radius: 0;
	resize: vertical;
}

.contact-form .btn {
	align-self: flex-start;
}

.contact-email {
	margin-top: 32px;
	font-family: var(--oy-sans);
	font-size: 14px;
	color: var(--oy-burgundy);
}

.contact-notice {
	margin-bottom: 20px;
	padding: 12px 16px;
	background: var(--oy-white);
	border-left: 3px solid var(--oy-coral);
	font-family: var(--oy-sans);
	font-size: 14px;
	color: var(--oy-burgundy);
}

/* ----- Footer ----- */
.site-footer {
	padding: 24px var(--oy-pad) 40px;
	border-top: 1px solid var(--oy-border);
	text-align: center;
	font-family: var(--oy-serif);
}

.footer-copy {
	font-family: var(--oy-sans);
	font-size: 13px;
	color: var(--oy-burgundy);
}

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

.nav-links {
	display: flex;
	justify-content: center;
	gap: 16px;
	padding: 24px 0;
	font-family: var(--oy-sans);
	font-size: 13px;
	font-weight: 700;
}

/* ----- 404 ----- */
.not-found {
	padding: 48px var(--oy-pad);
	text-align: center;
}

.not-found h1 {
	font-family: var(--oy-sans);
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 12px;
}

/* ----- Responsive ----- */
@media (max-width: 560px) {
	:root {
		--oy-pad: 20px;
	}

	.site-title-link {
		font-size: 24px;
	}

	.desktop-nav .nav-menu {
		gap: 14px 18px;
	}

	.feed-article h2 {
		font-size: 22px;
	}

	.single-article .entry-title {
		font-size: 26px;
	}

	.about-teaser-inner,
	.about-layout,
	.list-article,
	.contact-form-row {
		grid-template-columns: 1fr;
	}

	.about-teaser-photo,
	.about-portrait {
		max-width: 160px;
		margin: 0 auto;
	}

	.list-thumb {
		max-width: 150px;
	}

	.entry-content .wp-block-gallery,
	.entry-content .gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
