/*
Theme Name: Amarna
Theme URI: https://amarnaworld.com
Author: Amarna
Description: A restrained research and publishing block theme for Amarna.
Version: 1.3.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: amarna
*/

:root {
	--amarna-paper: #eee9df;
	--amarna-ink: #18211d;
	--amarna-muted: #667068;
	--amarna-line: rgba(24, 33, 29, 0.22);
	--amarna-accent: #9b4b2d;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	background:
		linear-gradient(rgba(24, 33, 29, 0.025) 1px, transparent 1px),
		var(--amarna-paper);
	background-size: 100% 10rem;
	-webkit-font-smoothing: antialiased;
}

a {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
	color: var(--amarna-accent);
}

.amarna-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.amarna-shell > main {
	flex: 1;
}

.amarna-header {
	border-bottom: 1px solid var(--amarna-line);
}

.amarna-header .wp-block-site-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2rem;
	letter-spacing: 0.22em;
	line-height: 1;
	text-transform: uppercase;
}

.amarna-header .wp-block-site-title a {
	display: inline-flex;
	gap: 0.68rem;
	align-items: center;
	text-decoration: none;
}

.amarna-header .wp-block-site-title a::before {
	width: 1.65rem;
	height: 1.65rem;
	content: "";
	flex: 0 0 auto;
	background: url("assets/images/amarna-symbol.svg") center / contain no-repeat;
}

.amarna-nav {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.amarna-kicker,
.amarna-meta,
.amarna-label,
.amarna-footer {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1.45;
	text-transform: uppercase;
}

.amarna-kicker,
.amarna-meta {
	color: var(--amarna-muted);
}

.amarna-hero {
	padding-top: clamp(6rem, 12vw, 10rem);
	padding-bottom: clamp(6rem, 12vw, 10rem);
}

.amarna-hero-title {
	max-width: 9ch;
	letter-spacing: -0.065em;
	line-height: 0.87;
}

.amarna-hero-intro {
	max-width: 38rem;
	margin-top: 3.5rem !important;
	margin-left: clamp(0rem, 24vw, 22rem) !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	line-height: 1.45;
}

.amarna-rule {
	border-top: 1px solid var(--amarna-line);
}

.amarna-placeholder-image {
	min-height: clamp(18rem, 36vw, 34rem);
	border-top: 1px solid var(--amarna-line);
	border-bottom: 1px solid var(--amarna-line);
	background-color: #ddd7cc;
	background-image:
		url("assets/images/amarna-symbol.svg"),
		linear-gradient(
			135deg,
			transparent 49.92%,
			rgba(24, 33, 29, 0.16) 50%,
			transparent 50.08%
		);
	background-position: center, center;
	background-repeat: no-repeat;
	background-size: clamp(3rem, 6vw, 5rem), 100% 100%;
}

.amarna-section {
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.amarna-featured .wp-block-post-featured-image img,
.amarna-grid .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	filter: saturate(0.78) contrast(0.96);
}

.amarna-grid .wp-block-post-template {
	gap: clamp(2rem, 4vw, 4rem);
}

.amarna-card {
	border-top: 1px solid var(--amarna-line);
	padding-top: 1rem;
}

.amarna-card .wp-block-post-title {
	margin-top: 0.75rem;
}

.amarna-taxonomy a {
	color: var(--amarna-accent);
	text-decoration: none;
}

.amarna-article-header {
	padding-top: clamp(5rem, 10vw, 9rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.amarna-article-title {
	max-width: 16ch;
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.amarna-article-deck {
	max-width: 42rem;
	color: var(--amarna-muted);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	line-height: 1.5;
}

.amarna-article-body {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.08rem, 1.6vw, 1.25rem);
	line-height: 1.78;
}

.amarna-article-body > * {
	max-width: 44rem;
	margin-left: auto;
	margin-right: auto;
}

.amarna-article-body > .alignwide {
	max-width: var(--wp--style--global--wide-size);
}

.amarna-article-body > .alignfull {
	max-width: none;
}

.amarna-article-body h2,
.amarna-article-body h3 {
	margin-top: 2.6em;
}

.amarna-article-body blockquote {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
	padding-left: 1.5rem;
	border-left: 2px solid var(--amarna-accent);
	font-size: 1.25em;
	line-height: 1.5;
}

.amarna-article-body figcaption {
	color: var(--amarna-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
}

.amarna-service {
	border-top: 1px solid var(--amarna-line);
	padding-top: 1.25rem;
}

.amarna-footer {
	border-top: 1px solid var(--amarna-line);
}

.amarna-footer a {
	text-decoration: underline;
}

.wp-block-button__link {
	transition: background-color 160ms ease, color 160ms ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background: var(--amarna-accent);
	color: var(--amarna-paper);
}

@media (max-width: 781px) {
	.amarna-header > .wp-block-group {
		align-items: flex-start;
	}

	.amarna-hero-intro {
		margin-left: 0 !important;
	}

	.amarna-article-body {
		font-size: 1.05rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.amarna-hero > *,
	.amarna-article-header > * {
		animation: amarna-reveal 600ms both;
	}

	.amarna-hero > *:nth-child(2),
	.amarna-article-header > *:nth-child(2) {
		animation-delay: 80ms;
	}

	.amarna-hero > *:nth-child(3),
	.amarna-article-header > *:nth-child(3) {
		animation-delay: 160ms;
	}
}

@keyframes amarna-reveal {
	from {
		opacity: 0;
		transform: translateY(0.4rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
