/*
Theme Name: Arabic Fantasy
Theme URI: https://arabicfantasy.com/
Description: Editorial child theme for the German-language Arabic Fantasy magazine.
Author: Arabic Fantasy
Template: neve
Version: 1.0.0
Text Domain: arabic-fantasy
*/

:root {
	--af-cream: #f8f3e9;
	--af-paper: #fffdf8;
	--af-navy: #102d36;
	--af-green: #1f564b;
	--af-green-soft: #dce8e1;
	--af-gold: #b9863f;
	--af-gold-soft: #ead8b8;
	--af-ink: #243234;
	--af-muted: #687577;
	--af-border: rgba(16, 45, 54, 0.14);
	--af-shadow: 0 18px 50px rgba(16, 45, 54, 0.1);
	--af-radius: 22px;
}

body {
	background: var(--af-cream);
	color: var(--af-ink);
}

body,
button,
input,
select,
textarea {
	font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
.site-title,
.af-display {
	color: var(--af-navy);
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: -0.025em;
}

a {
	color: var(--af-green);
}

.site-header {
	border-bottom: 1px solid var(--af-border);
	box-shadow: 0 4px 24px rgba(16, 45, 54, 0.04);
}

.af-home {
	overflow: hidden;
}

.af-shell {
	margin: 0 auto;
	max-width: 1240px;
	padding-inline: 24px;
}

.af-hero {
	background:
		linear-gradient(135deg, rgba(16, 45, 54, 0.96), rgba(31, 86, 75, 0.92)),
		radial-gradient(circle at 20% 20%, rgba(185, 134, 63, 0.4), transparent 34%);
	color: #fff;
	isolation: isolate;
	padding: clamp(72px, 10vw, 144px) 0;
	position: relative;
}

.af-hero::before,
.af-hero::after {
	border: 1px solid rgba(234, 216, 184, 0.25);
	content: "";
	height: 280px;
	position: absolute;
	transform: rotate(45deg);
	width: 280px;
	z-index: -1;
}

.af-hero::before {
	left: -110px;
	top: -150px;
}

.af-hero::after {
	bottom: -180px;
	right: -90px;
}

.af-hero__inner {
	max-width: 840px;
}

.af-kicker {
	color: var(--af-gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.af-hero .af-kicker {
	color: var(--af-gold-soft);
}

.af-hero h1 {
	color: #fff;
	font-size: clamp(3.2rem, 8vw, 6.9rem);
	line-height: 0.96;
	margin: 0 0 26px;
	max-width: 800px;
}

.af-hero__lead {
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	line-height: 1.75;
	margin: 0;
	max-width: 760px;
}

.af-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.af-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 999px;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 50px;
	padding: 12px 24px;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.af-button:hover,
.af-button:focus-visible {
	transform: translateY(-2px);
}

.af-button--gold {
	background: var(--af-gold);
	color: #fff;
}

.af-button--ghost {
	border-color: rgba(255, 255, 255, 0.38);
	color: #fff;
}

.af-button--dark {
	background: var(--af-navy);
	color: #fff;
}

.af-section {
	padding: clamp(64px, 8vw, 112px) 0;
}

.af-section--paper {
	background: var(--af-paper);
}

.af-section--tint {
	background: var(--af-green-soft);
}

.af-section__head {
	align-items: end;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	margin-bottom: 34px;
}

.af-section__head h2 {
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.02;
	margin: 0;
}

.af-section__intro {
	color: var(--af-muted);
	line-height: 1.7;
	margin: 10px 0 0;
	max-width: 680px;
}

.af-text-link {
	font-weight: 800;
	white-space: nowrap;
}

.af-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.af-card {
	background: var(--af-paper);
	border: 1px solid var(--af-border);
	border-radius: var(--af-radius);
	box-shadow: var(--af-shadow);
	grid-column: span 4;
	overflow: hidden;
}

.af-card--wide {
	grid-column: span 6;
}

.af-card__media {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--af-green), var(--af-navy));
	display: block;
	overflow: hidden;
}

.af-card__media img {
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
	width: 100%;
}

.af-card:hover .af-card__media img {
	transform: scale(1.035);
}

.af-card__body {
	padding: 24px;
}

.af-card__meta {
	color: var(--af-gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.af-card h3 {
	font-size: clamp(1.35rem, 2.3vw, 1.85rem);
	line-height: 1.14;
	margin: 10px 0 12px;
}

.af-card h3 a {
	color: var(--af-navy);
	text-decoration: none;
}

.af-card p {
	color: var(--af-muted);
	line-height: 1.65;
	margin: 0;
}

.af-empty {
	background: rgba(255, 255, 255, 0.68);
	border: 1px dashed rgba(16, 45, 54, 0.25);
	border-radius: var(--af-radius);
	grid-column: 1 / -1;
	padding: 34px;
}

.af-empty h3 {
	margin-top: 0;
}

.af-cluster-nav {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.af-cluster-nav a {
	background: var(--af-navy);
	border-radius: 18px;
	color: #fff;
	min-height: 160px;
	padding: 26px;
	position: relative;
	text-decoration: none;
}

.af-cluster-nav a::after {
	color: var(--af-gold-soft);
	content: "→";
	font-size: 1.4rem;
	position: absolute;
	right: 24px;
	top: 22px;
}

.af-cluster-nav strong {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	margin-top: 56px;
}

.af-newsletter {
	align-items: center;
	background: var(--af-navy);
	border-radius: 30px;
	color: #fff;
	display: grid;
	gap: 40px;
	grid-template-columns: 1.3fr 0.7fr;
	padding: clamp(34px, 6vw, 72px);
}

.af-newsletter h2 {
	color: #fff;
	font-size: clamp(2.3rem, 5vw, 4rem);
	margin: 0 0 14px;
}

.af-newsletter p {
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.7;
	margin: 0;
}

.af-about {
	align-items: center;
	display: grid;
	gap: 50px;
	grid-template-columns: 0.9fr 1.1fr;
}

.af-about__mark {
	align-items: center;
	aspect-ratio: 1;
	background: var(--af-green);
	border-radius: 50%;
	color: var(--af-gold-soft);
	display: flex;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(4rem, 10vw, 8rem);
	justify-content: center;
	margin: auto;
	max-width: 380px;
	position: relative;
}

.af-about__mark::after {
	border: 1px solid var(--af-gold-soft);
	border-radius: 50%;
	content: "";
	inset: 18px;
	position: absolute;
}

.af-about h2 {
	font-size: clamp(2.4rem, 5vw, 4.4rem);
	margin: 0 0 20px;
}

.af-about p {
	color: var(--af-muted);
	font-size: 1.08rem;
	line-height: 1.85;
}

.single-post .nv-content-wrap,
.page .nv-content-wrap {
	font-size: 1.05rem;
	line-height: 1.85;
}

.single-post .entry-title,
.page .entry-title {
	color: var(--af-navy);
}

@media (max-width: 960px) {
	.af-card,
	.af-card--wide {
		grid-column: span 6;
	}

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

	.af-newsletter,
	.af-about {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.af-shell {
		padding-inline: 18px;
	}

	.af-section__head {
		align-items: start;
		flex-direction: column;
		gap: 14px;
	}

	.af-card,
	.af-card--wide {
		grid-column: 1 / -1;
	}

	.af-cluster-nav {
		grid-template-columns: 1fr;
	}

	.af-cluster-nav a {
		min-height: 126px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
