/*
Theme Name: Inner Echo
Theme URI: https://innerecho.cloud/
Author: OpenAI Codex
Author URI: https://openai.com/
Description: A literary-journal child theme for Inner Echo.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.3.0
Template: twentytwentyfive
Text Domain: inner-echo
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
	font-family: "Lyon Arabic Text";
	src:
		local("Lyon Arabic Text Regular"),
		local("LyonArabicText-Regular"),
		url("assets/fonts/lyon-arabic-text-regular.otf") format("opentype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Lyon Arabic Text";
	src:
		local("Lyon Arabic Text Semibold"),
		local("LyonArabicText-Semibold"),
		url("assets/fonts/lyon-arabic-text-semibold.otf") format("opentype");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: "Lyon Arabic Text";
	src:
		local("Lyon Arabic Text Bold"),
		local("LyonArabicText-Bold"),
		url("assets/fonts/lyon-arabic-text-bold.otf") format("opentype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: "Lyon Arabic Text";
	src:
		local("Lyon Arabic Text Black"),
		local("LyonArabicText-Black"),
		url("assets/fonts/lyon-arabic-text-black.otf") format("opentype");
	font-style: normal;
	font-weight: 900;
	font-display: swap;
}

body {
	background:
		radial-gradient(circle at top, rgba(231, 176, 141, 0.14), transparent 34rem),
		var(--wp--preset--color--paper);
}

.wp-site-blocks {
	min-height: 100vh;
}

.ie-shell {
	position: relative;
}

.ie-header-shell {
	border-bottom: 1px solid var(--wp--preset--color--mist);
}

.ie-header-shell::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -1px;
	width: min(8rem, 20vw);
	height: 2px;
	background: var(--wp--preset--color--orange);
	transform: translateX(-50%);
}

.ie-language-switcher ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ie-language-switcher a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: 999px;
	color: var(--wp--preset--color--sand);
	font-family: var(--wp--preset--font-family--editorial-sans);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.ie-language-switcher .is-current a,
.ie-language-switcher a:hover,
.ie-language-switcher a:focus-visible {
	border-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--orange);
}

.ie-footer-shell {
	margin-top: var(--wp--preset--spacing--70);
}

.ie-footer-shell a {
	color: var(--wp--preset--color--paper);
}

.ie-footer-shell a:hover,
.ie-footer-shell a:focus-visible {
	color: var(--wp--preset--color--orange-soft);
}

.ie-kicker,
.ie-meta {
	font-family: var(--wp--preset--font-family--editorial-sans);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.12em;
	line-height: 1.6;
	text-transform: uppercase;
}

.ie-kicker {
	color: var(--wp--preset--color--orange);
}

.ie-meta {
	color: var(--wp--preset--color--sand);
}

.ie-rule {
	opacity: 1;
}

.ie-home-hero,
.ie-post-index-hero,
.ie-search-hero,
.ie-empty-hero {
	padding-top: clamp(3rem, 8vw, 6rem);
	padding-bottom: clamp(2rem, 6vw, 4rem);
}

.ie-home-hero .wp-block-post-title,
.ie-post-index-hero h1,
.ie-search-hero h1,
.ie-empty-hero h1 {
	max-width: 12ch;
}

.ie-home-hero .wp-block-post-content > * {
	max-width: 40rem;
}

.ie-home-hero .wp-block-post-content p,
.ie-single-layout .wp-block-post-content p,
.ie-page-layout .wp-block-post-content p {
	font-size: clamp(1.1rem, 1rem + 0.3vw, 1.3rem);
}

.ie-post-loop .wp-block-post-template,
.ie-archive-loop .wp-block-post-template {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.4rem);
}

.ie-post-loop .wp-block-post,
.ie-archive-loop .wp-block-post {
	padding: clamp(1.35rem, 2vw, 1.8rem);
	background: rgba(251, 247, 241, 0.88);
	border: 1px solid var(--wp--preset--color--mist);
	box-shadow: 0 18px 48px rgba(23, 20, 18, 0.05);
}

.ie-post-loop .wp-block-post-title,
.ie-archive-loop .wp-block-post-title {
	margin-top: 0.35rem;
	margin-bottom: 0.5rem;
}

.ie-post-loop .wp-block-post-title a,
.ie-archive-loop .wp-block-post-title a,
.ie-single-layout .wp-block-post-title a {
	text-decoration: none;
}

.ie-post-loop .wp-block-post-title a:hover,
.ie-post-loop .wp-block-post-title a:focus-visible,
.ie-archive-loop .wp-block-post-title a:hover,
.ie-archive-loop .wp-block-post-title a:focus-visible,
.ie-single-layout .wp-block-post-title a:hover,
.ie-single-layout .wp-block-post-title a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--orange);
}

.ie-post-loop .wp-block-post-excerpt,
.ie-archive-loop .wp-block-post-excerpt {
	color: var(--wp--preset--color--charcoal);
}

.ie-post-loop .wp-block-post-terms,
.ie-archive-loop .wp-block-post-terms,
.ie-single-layout .wp-block-post-terms {
	font-family: var(--wp--preset--font-family--editorial-sans);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sand);
}

.ie-post-loop .wp-block-post-terms a,
.ie-archive-loop .wp-block-post-terms a,
.ie-single-layout .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.ie-post-loop .wp-block-post-terms a:hover,
.ie-post-loop .wp-block-post-terms a:focus-visible,
.ie-archive-loop .wp-block-post-terms a:hover,
.ie-archive-loop .wp-block-post-terms a:focus-visible,
.ie-single-layout .wp-block-post-terms a:hover,
.ie-single-layout .wp-block-post-terms a:focus-visible {
	color: var(--wp--preset--color--orange);
}

.ie-section-heading {
	max-width: 18ch;
}

.ie-single-layout,
.ie-page-layout {
	padding-top: clamp(3rem, 7vw, 5rem);
}

.ie-single-layout .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.ie-single-layout .wp-block-post-title,
.ie-page-layout .wp-block-post-title {
	max-width: 14ch;
}

.ie-single-layout .wp-block-post-content,
.ie-page-layout .wp-block-post-content {
	max-width: 42rem;
}

.ie-single-layout .wp-block-post-content > :where(h2, h3, h4),
.ie-page-layout .wp-block-post-content > :where(h2, h3, h4) {
	margin-top: clamp(2.8rem, 5vw, 4rem);
}

.ie-single-layout .wp-block-post-content > blockquote,
.ie-page-layout .wp-block-post-content > blockquote {
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--wp--preset--color--orange);
	color: var(--wp--preset--color--charcoal);
	font-style: italic;
}

.ie-single-layout .wp-block-post-navigation-link,
.ie-single-layout .wp-block-post-navigation-link a {
	font-family: var(--wp--preset--font-family--editorial-sans);
}

.ie-search-form .wp-block-search__inside-wrapper,
.wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--paper-elevated);
	border: 1px solid var(--wp--preset--color--mist);
	padding: 0.35rem;
}

.wp-block-search__input {
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
}

.wp-block-search__button {
	border-radius: 999px;
}

html[lang^="ar"] body {
	direction: rtl;
}

html[lang^="ar"] .ie-kicker,
html[lang^="ar"] .ie-meta,
html[lang^="ar"] .wp-block-navigation,
html[lang^="ar"] .wp-block-site-title,
html[lang^="ar"] .ie-language-switcher a {
	letter-spacing: 0;
}

html[lang^="ar"] .ie-language-switcher ul {
	justify-content: flex-start;
}

html[lang^="ar"] .ie-single-layout .wp-block-post-content > blockquote,
html[lang^="ar"] .ie-page-layout .wp-block-post-content > blockquote {
	padding-right: 1.5rem;
	padding-left: 0;
	border-right: 3px solid var(--wp--preset--color--orange);
	border-left: 0;
}

:where(.wp-site-blocks *:focus-visible) {
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: 4px;
}

.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-page-list__item.current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--orange);
}

.wp-block-separator {
	border-color: var(--wp--preset--color--mist);
}

.wp-block-code,
pre {
	background: var(--wp--preset--color--paper-elevated);
	border: 1px solid var(--wp--preset--color--mist);
	color: var(--wp--preset--color--charcoal);
}

::selection {
	background: rgba(231, 176, 141, 0.45);
	color: var(--wp--preset--color--ink);
}

@media (max-width: 781px) {
	.ie-home-hero .wp-block-post-title,
	.ie-post-index-hero h1,
	.ie-search-hero h1,
	.ie-empty-hero h1,
	.ie-single-layout .wp-block-post-title,
	.ie-page-layout .wp-block-post-title {
		max-width: none;
	}
}
