/*
Theme Name: Anna Ferreira
Theme URI: https://example.com/
Author: Anna Ferreira
Author URI: https://example.com/
Description: Light and clean WordPress theme for Anna Ferreira's academic reflections and student journal.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: annaferreira
*/

:root {
	--af-primary: #0f408f;
	--af-primary-dark: #082b66;
	--af-secondary: #f28c28;
	--af-secondary-soft: #fff3e5;
	--af-text: #334155;
	--af-muted: #64748b;
	--af-soft: #f7faff;
	--af-border: #dbe5f1;
	--af-white: #ffffff;
	--af-shadow: 0 24px 60px rgba(15, 64, 143, .12);
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--af-white);
	color: var(--af-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	overflow-x: hidden;
}

a {
	color: var(--af-primary);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

a:hover,
a:focus {
	color: var(--af-secondary);
}

.site-header {
	background: rgba(255, 255, 255, .92);
	border-bottom: 1px solid rgba(219, 229, 241, .72);
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(12px);
}

.site-brand {
	align-items: center;
	color: var(--af-primary);
	display: inline-flex;
	font-weight: 800;
	gap: .55rem;
	text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
	color: var(--af-primary-dark);
}

.site-brand__mark {
	align-items: center;
	background: var(--af-secondary-soft);
	border: 1px solid rgba(242, 140, 40, .28);
	border-radius: 8px;
	color: var(--af-secondary);
	display: inline-flex;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.site-nav .nav-link {
	color: var(--af-text);
	font-size: .96rem;
	font-weight: 700;
	padding-left: .8rem;
	padding-right: .8rem;
}

.site-nav .menu-item {
	list-style: none;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .current-menu-item > .nav-link {
	color: var(--af-primary);
}

.hero {
	align-items: center;
	background:
		linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	display: flex;
	min-height: calc(100vh - 72px);
	padding: clamp(4rem, 8vw, 7rem) 0;
	position: relative;
}

.hero__eyebrow {
	align-items: center;
	background: rgba(242, 140, 40, .1);
	border: 1px solid rgba(242, 140, 40, .25);
	border-radius: 999px;
	color: var(--af-secondary);
	display: inline-flex;
	font-size: .82rem;
	font-weight: 800;
	gap: .45rem;
	letter-spacing: .14em;
	margin-bottom: 1.75rem;
	padding: .72rem 1.05rem;
	text-transform: uppercase;
}

.hero__title {
	color: var(--af-primary);
	font-size: clamp(2.75rem, 5.8vw, 5.45rem);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.05;
	margin-bottom: 1.45rem;
	max-width: 780px;
}

.hero__intro {
	color: #475569;
	font-size: 1.12rem;
	line-height: 1.9;
	margin-bottom: 1rem;
	max-width: 710px;
}

.hero__launch {
	align-items: center;
	color: var(--af-primary);
	display: flex;
	font-size: 1.28rem;
	font-weight: 800;
	gap: .65rem;
	margin-top: 2rem;
}

.hero__launch i,
.hero__launch span {
	color: var(--af-secondary);
}

.hero__thanks {
	color: var(--af-muted);
	margin-top: 1.1rem;
}

.hero__photo-wrap {
	display: inline-block;
	position: relative;
}

.hero__photo-wrap::after {
	background: var(--af-secondary);
	border-radius: 8px;
	bottom: -18px;
	content: "";
	height: 70%;
	position: absolute;
	right: -18px;
	width: 70%;
	z-index: 0;
}

.hero__photo {
	aspect-ratio: 1 / 1;
	border: 10px solid var(--af-white);
	border-radius: 18px;
	box-shadow: var(--af-shadow);
	display: block;
	max-width: 460px;
	object-fit: cover;
	position: relative;
	width: 100%;
	z-index: 1;
}

.latest-posts {
	background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
	border-top: 1px solid rgba(219, 229, 241, .65);
	padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.latest-posts__header {
	align-items: end;
	display: flex;
	gap: 1.25rem;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.latest-posts__eyebrow {
	color: var(--af-secondary);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .14em;
	margin-bottom: .45rem;
	text-transform: uppercase;
}

.latest-posts__title {
	color: var(--af-primary);
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.08;
	margin: 0;
}

.latest-posts__link {
	align-items: center;
	border: 1px solid rgba(15, 64, 143, .18);
	border-radius: 999px;
	color: var(--af-primary);
	display: inline-flex;
	font-weight: 800;
	gap: .45rem;
	padding: .72rem 1rem;
	text-decoration: none;
	white-space: nowrap;
}

.latest-posts__link:hover,
.latest-posts__link:focus {
	background: var(--af-primary);
	border-color: var(--af-primary);
	color: var(--af-white);
}

.latest-posts__carousel {
	position: relative;
}

.latest-posts__slide {
	align-items: stretch;
}

.post-slide-card {
	background: var(--af-white);
	border: 1px solid rgba(219, 229, 241, .92);
	border-radius: 8px;
	box-shadow: 0 18px 45px rgba(15, 64, 143, .08);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.post-slide-card:hover,
.post-slide-card:focus-within {
	border-color: rgba(242, 140, 40, .55);
	box-shadow: 0 22px 54px rgba(15, 64, 143, .12);
	transform: translateY(-4px);
}

.post-slide-card__media {
	aspect-ratio: 16 / 9;
	background: var(--af-soft);
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.post-slide-card__image,
.post-slide-card__placeholder {
	display: flex;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	width: 100%;
}

.post-slide-card__image {
	transition: transform .35s ease;
}

.post-slide-card:hover .post-slide-card__image,
.post-slide-card:focus-within .post-slide-card__image {
	transform: scale(1.04);
}

.post-slide-card__placeholder {
	align-items: center;
	color: rgba(15, 64, 143, .28);
	font-size: 3rem;
	justify-content: center;
}

.post-slide-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.2rem;
}

.post-slide-card__category {
	align-self: flex-start;
	background: rgba(242, 140, 40, .12);
	border: 1px solid rgba(242, 140, 40, .24);
	border-radius: 999px;
	color: var(--af-secondary);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .08em;
	margin-bottom: .9rem;
	padding: .42rem .72rem;
	text-decoration: none;
	text-transform: uppercase;
}

.post-slide-card__category:hover,
.post-slide-card__category:focus {
	background: var(--af-secondary);
	color: var(--af-white);
}

.post-slide-card__title {
	color: var(--af-primary);
	font-size: 1.28rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: .7rem;
}

.post-slide-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-slide-card__title a:hover,
.post-slide-card__title a:focus {
	color: var(--af-secondary);
}

.post-slide-card__excerpt {
	color: var(--af-muted);
	flex: 1;
	line-height: 1.65;
	margin: 0;
}

.post-slide-card__read {
	align-items: center;
	color: var(--af-primary);
	display: inline-flex;
	font-weight: 800;
	gap: .42rem;
	margin-top: 1.1rem;
	text-decoration: none;
}

.post-slide-card__read:hover,
.post-slide-card__read:focus {
	color: var(--af-secondary);
}

.latest-posts__controls {
	display: flex;
	gap: .75rem;
	justify-content: flex-end;
	margin-top: 1.4rem;
}

.latest-posts__control {
	align-items: center;
	background: var(--af-white);
	border: 1px solid rgba(15, 64, 143, .16);
	border-radius: 50%;
	color: var(--af-primary);
	display: inline-flex;
	height: 44px;
	justify-content: center;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
	width: 44px;
}

.latest-posts__control:hover,
.latest-posts__control:focus {
	background: var(--af-primary);
	border-color: var(--af-primary);
	color: var(--af-white);
	transform: translateY(-2px);
}

.latest-posts__empty {
	align-items: center;
	background: var(--af-white);
	border: 1px dashed rgba(15, 64, 143, .22);
	border-radius: 8px;
	color: var(--af-muted);
	display: flex;
	gap: .75rem;
	padding: 1.35rem 1.5rem;
}

.latest-posts__empty i {
	color: var(--af-secondary);
	font-size: 1.45rem;
}

.latest-posts__empty p {
	margin: 0;
}

.site-main {
	background: var(--af-soft);
	min-height: 60vh;
	padding: clamp(3rem, 6vw, 5rem) 0;
}

.content-card {
	background: var(--af-white);
	border: 1px solid var(--af-border);
	border-radius: 8px;
	height: 100%;
	padding: 1.5rem;
	transition: border-color .2s ease, transform .2s ease;
}

.content-card:hover,
.content-card:focus-within {
	border-color: rgba(15, 64, 143, .35);
	transform: translateY(-3px);
}

.content-card__title {
	color: var(--af-primary);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.35;
	margin-bottom: .65rem;
}

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

.content-card__meta {
	color: var(--af-muted);
	font-size: .9rem;
	margin-bottom: .8rem;
}

.content-card__excerpt {
	color: var(--af-text);
	line-height: 1.7;
}

.page-title {
	color: var(--af-primary);
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 800;
	margin-bottom: 1.25rem;
}

.entry-content {
	background: var(--af-white);
	border: 1px solid var(--af-border);
	border-radius: 8px;
	line-height: 1.8;
	padding: clamp(1.4rem, 4vw, 2.5rem);
}

.entry-content::after {
	clear: both;
	content: "";
	display: table;
}

.single-post-header {
	margin-bottom: 1.5rem;
}

.post-back-link {
	align-items: center;
	border: 1px solid rgba(15, 64, 143, .18);
	border-radius: 999px;
	color: var(--af-primary);
	display: inline-flex;
	font-weight: 800;
	gap: .45rem;
	margin-bottom: 1.15rem;
	padding: .68rem .98rem;
	text-decoration: none;
}

.post-back-link:hover,
.post-back-link:focus {
	background: var(--af-primary);
	border-color: var(--af-primary);
	color: var(--af-white);
}

.single-featured-photo {
	float: right;
	margin: .35rem 0 1.2rem 2rem;
	max-width: 380px;
	position: relative;
	width: min(42%, 380px);
}

.single-featured-photo::after {
	background: var(--af-secondary);
	border-radius: 8px;
	bottom: -12px;
	content: "";
	height: 68%;
	position: absolute;
	right: -12px;
	width: 68%;
	z-index: 0;
}

.single-featured-photo__image {
	aspect-ratio: 4 / 3;
	border: 8px solid var(--af-white);
	border-radius: 18px;
	box-shadow: var(--af-shadow);
	display: block;
	height: auto;
	object-fit: cover;
	object-position: center center;
	position: relative;
	width: 100%;
	z-index: 1;
}

.site-footer {
	background: var(--af-primary-dark);
	color: rgba(255, 255, 255, .78);
	padding: 2rem 0;
}

.site-footer a {
	color: var(--af-white);
}

@media (max-width: 991.98px) {
	.hero {
		min-height: auto;
		text-align: center;
	}

	.hero__intro {
		margin-left: auto;
		margin-right: auto;
	}

	.hero__launch {
		justify-content: center;
	}

	.hero__photo-wrap::after {
		bottom: -12px;
		right: -12px;
	}

}

@media (max-width: 767.98px) {
	.latest-posts__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.latest-posts__controls {
		justify-content: flex-start;
	}

	.single-featured-photo {
		float: none;
		margin: 0 0 1.5rem;
		max-width: none;
		width: 100%;
	}
}

@media (max-width: 575.98px) {
	.site-header {
		position: static;
	}

	.hero {
		padding: 3rem 0 4rem;
	}

	.hero__title {
		font-size: clamp(2.35rem, 13vw, 3.25rem);
	}

	.hero__intro {
		font-size: 1rem;
		line-height: 1.75;
	}

	.latest-posts {
		padding: 3rem 0;
	}

	.post-slide-card__body {
		padding: 1rem;
	}
}
