/*
Theme Name: Inez Travels
Theme URI: https://ineztravels.com/
Author: Inez Travels
Description: A custom editorial travel theme for Inez Travels.
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: inez-travels
*/

@font-face {
	font-family: "Playfair Display";
	src: url("assets/fonts/playfair-display.woff2") format("woff2");
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
}

@font-face {
	font-family: "Playfair Display";
	src: url("assets/fonts/playfair-display-italic.woff2") format("woff2");
	font-style: italic;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: Manrope;
	src: url("assets/fonts/manrope.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
}

@font-face {
	font-family: "DM Mono";
	src: url("assets/fonts/dm-mono-300.woff2") format("woff2");
	font-style: normal;
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: "DM Mono";
	src: url("assets/fonts/dm-mono-400.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "DM Mono";
	src: url("assets/fonts/dm-mono-500.woff2") format("woff2");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

:root {
	--ink: #20211e;
	--ivory: #f4f0e8;
	--paper: #fcfaf6;
	--clay: #b7583b;
	--muted: #616158;
	--line: rgba(32, 33, 30, 0.18);
	--pad: clamp(20px, 5vw, 80px);
	--serif: "Playfair Display", Georgia, serif;
	--sans: Manrope, Arial, sans-serif;
	--mono: "DM Mono", monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.7;
}

body.menu-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

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

button,
input,
textarea,
select {
	font: inherit;
}

.wrap {
	padding-inline: var(--pad);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--paper);
	color: var(--ink);
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

.eyebrow {
	font: 500 11px/1.3 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 1px;
	margin-right: 12px;
	background: currentColor;
	vertical-align: middle;
}

.section-title {
	margin: 16px 0 0;
	font: 500 clamp(42px, 6vw, 86px) / 0.97 var(--serif);
	letter-spacing: -0.045em;
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 44px;
}

.text-link {
	display: inline-block;
	width: fit-content;
	padding-bottom: 5px;
	border-bottom: 1px solid;
	font: 500 11px var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.fade {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fade.visible {
	opacity: 1;
	transform: none;
}

.site-header {
	position: relative;
	z-index: 20;
	display: flex;
	height: 96px;
	align-items: center;
	justify-content: space-between;
	padding-inline: var(--pad);
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
	background: var(--ink);
	color: #fff;
}

.home .site-header,
.single-post .site-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	background: transparent;
}

.brand {
	display: inline-flex;
	flex-direction: column;
	font: 600 25px var(--serif);
	letter-spacing: 0.01em;
}

.brand-tagline {
	font: 400 8px var(--mono);
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.brand-logo {
	width: auto;
	max-width: 220px;
	height: 54px;
	object-fit: contain;
}

.nav {
	font-size: 12px;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 45px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav a {
	position: relative;
}

.nav a::after {
	content: "";
	position: absolute;
	right: 100%;
	bottom: -6px;
	left: 0;
	height: 1px;
	background: #fff;
	transition: right 0.25s;
}

.nav a:hover::after,
.nav .current-menu-item a::after {
	right: 0;
}

.menu-btn {
	position: relative;
	z-index: 1;
	display: none;
	padding: 8px;
	border: 0;
	background: none;
	color: inherit;
	font: 500 11px var(--mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero {
	position: relative;
	display: flex;
	height: min(920px, 100svh);
	min-height: 680px;
	align-items: flex-end;
	overflow: hidden;
	background: var(--ink);
	color: #fff;
}

.hero-media,
.story-hero-media,
.archive-hero-media {
	position: absolute;
	inset: 0;
}

.hero-media::after,
.story-hero-media::after,
.archive-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(32, 33, 30, 0.72), rgba(32, 33, 30, 0.12) 66%), linear-gradient(0deg, rgba(32, 33, 30, 0.62), transparent 45%);
}

.hero-media img,
.story-hero-media img,
.archive-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.76) sepia(0.06);
}

.hero-media img {
	transform: scale(1.03);
	animation: herozoom 12s ease-out forwards;
}

@keyframes herozoom {
	to { transform: scale(1); }
}

.hero-content {
	position: relative;
	z-index: 2;
	width: min(930px, 100%);
	padding: 0 var(--pad) clamp(60px, 9vh, 110px);
}

.hero h1 {
	margin: 22px 0 30px;
	font: 500 clamp(64px, 10.7vw, 154px) / 0.82 var(--serif);
	letter-spacing: -0.065em;
}

.hero h1 em {
	font-weight: 500;
}

.hero-meta {
	display: flex;
	align-items: center;
	gap: 25px;
	font: 400 10px var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hero-meta .circle {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	font-size: 17px;
}

.hero-index {
	position: absolute;
	right: var(--pad);
	bottom: 72px;
	font: 300 10px var(--mono);
	letter-spacing: 0.17em;
	writing-mode: vertical-rl;
}

.scroll-mark {
	position: absolute;
	top: 50%;
	right: var(--pad);
	height: 120px;
	border-left: 1px solid rgba(255, 255, 255, 0.55);
}

.journey-intro {
	display: grid;
	grid-template-columns: 0.75fr 1.25fr;
	align-items: start;
	gap: 10vw;
	padding-block: clamp(90px, 13vw, 190px);
}

.journey-stamp {
	display: grid;
	width: 140px;
	height: 140px;
	place-items: center;
	border: 1px solid var(--ink);
	border-radius: 50%;
	font: 400 9px/1.6 var(--mono);
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-8deg);
}

.journey-copy h2 {
	margin: 0 0 28px;
	font: 500 clamp(38px, 5.2vw, 74px) / 1.06 var(--serif);
	letter-spacing: -0.04em;
}

.journey-copy h2 em {
	color: var(--clay);
}

.journey-copy > p {
	max-width: 590px;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.75;
}

.stats {
	display: flex;
	gap: 50px;
	margin-top: 45px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.stat strong {
	display: block;
	font: 500 31px var(--serif);
}

.stat span {
	font: 400 9px var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.destinations {
	overflow: hidden;
	padding-block: clamp(90px, 11vw, 160px);
	background: var(--ink);
	color: var(--ivory);
}

.destinations .section-head {
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.destination-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.destination,
.theme-card {
	position: relative;
	display: block;
	overflow: hidden;
	background: #333;
}

.destination {
	height: 540px;
}

.destination::after,
.theme-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(12, 12, 11, 0.75), transparent 55%);
}

.destination img,
.theme-card img,
.story-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.destination:hover img,
.theme-card:hover img,
.story-card:hover img {
	transform: scale(1.035);
}

.destination-content,
.theme-content {
	position: absolute;
	z-index: 2;
	right: 24px;
	bottom: 24px;
	left: 24px;
}

.destination h3 {
	margin: 3px 0;
	font: 500 clamp(27px, 3vw, 42px) var(--serif);
}

.destination .number {
	font: 300 9px var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.destination:nth-child(even) {
	margin-top: 60px;
}

.themes {
	padding-block: clamp(90px, 12vw, 175px);
}

.themes-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(18px, 3vw, 42px);
}

.theme-card {
	height: clamp(430px, 49vw, 670px);
	color: #fff;
}

.theme-card:nth-child(2) {
	margin-top: 75px;
}

.theme-content h3 {
	margin: 4px 0;
	font: 500 clamp(31px, 4vw, 55px) var(--serif);
}

.theme-content span {
	font: 400 9px var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.stories {
	padding-block: clamp(90px, 10vw, 150px);
	background: var(--paper);
}

.story-grid {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: clamp(25px, 4vw, 64px);
}

.story-card > a {
	display: block;
}

.stories .story-card:nth-child(2) {
	margin-top: 120px;
}

.story-image {
	height: clamp(360px, 51vw, 680px);
	overflow: hidden;
	background: #ddd8cf;
}

.stories .story-card:nth-child(2) .story-image {
	height: clamp(320px, 39vw, 520px);
}

.card-meta {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 21px;
	color: var(--clay);
	font: 400 9px var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.story-card h3 {
	margin: 12px 0;
	font: 500 clamp(28px, 3.3vw, 48px) / 1.06 var(--serif);
	letter-spacing: -0.035em;
}

.story-card p {
	max-width: 520px;
	color: var(--muted);
}

.stories .story-card:nth-child(3) {
	grid-column: 1 / -1;
	margin-top: 35px;
}

.stories .story-card:nth-child(3) > a {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	align-items: center;
	gap: clamp(25px, 5vw, 80px);
}

.stories .story-card:nth-child(3) .story-image {
	grid-column: 2;
	height: 460px;
}

.stories .story-card:nth-child(3) .card-copy {
	grid-row: 1;
	grid-column: 1;
}

.about {
	display: grid;
	min-height: 760px;
	grid-template-columns: 1fr 1fr;
	background: var(--paper);
}

.about-image {
	min-height: 620px;
}

.about-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(60px, 9vw, 135px);
}

.about-copy h2 {
	margin: 18px 0 28px;
	font: 500 clamp(47px, 6vw, 80px) / 0.98 var(--serif);
	letter-spacing: -0.05em;
}

.about-copy .text-link {
	margin-top: 18px;
}

.signature {
	margin: 30px 0 0;
	color: var(--clay);
	font: 500 italic 37px var(--serif);
}

.site-footer {
	padding: 70px var(--pad) 30px;
	background: var(--ink);
	color: var(--ivory);
}

.footer-top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 50px;
	padding-bottom: 70px;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	width: fit-content;
	font: 500 clamp(44px, 6vw, 75px) var(--serif);
}

.footer-brand .brand-tagline {
	color: var(--clay);
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 12px;
}

.footer-col ul,
.footer-col li {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col strong {
	margin-bottom: 9px;
	color: #aaa;
	font: 500 9px var(--mono);
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 25px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	color: #aaa;
	font: 300 8px var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.archive-layout,
.page-layout,
.message-layout {
	min-height: 65vh;
}

.archive-header,
.page-header {
	max-width: 1000px;
	padding-block: clamp(90px, 12vw, 170px) clamp(60px, 8vw, 110px);
}

.archive-header h1,
.page-header h1,
.message-layout h1,
.archive-hero h1 {
	margin: 0;
	font: 500 clamp(54px, 9vw, 128px) / 0.92 var(--serif);
	letter-spacing: -0.055em;
}

.archive-header p,
.page-header p,
.archive-description {
	max-width: 680px;
	font-size: clamp(17px, 1.5vw, 21px);
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(30px, 4vw, 70px) clamp(20px, 3vw, 45px);
	padding-bottom: clamp(90px, 12vw, 170px);
}

.term-index {
	padding-bottom: clamp(90px, 12vw, 170px);
}

.term-index-grid {
	padding-bottom: 40px;
}

.term-index .destination-list {
	padding: clamp(24px, 4vw, 60px);
	background: var(--ink);
	color: var(--ivory);
}

.archive-grid .story-image {
	height: clamp(330px, 38vw, 580px);
}

.archive-grid .story-card h3 {
	font-size: clamp(27px, 3vw, 42px);
}

.archive-hero,
.story-hero {
	position: relative;
	display: flex;
	min-height: 720px;
	align-items: flex-end;
	background: var(--ink);
	color: var(--ivory);
}

.archive-hero:not(.has-image) {
	min-height: 460px;
}

.archive-hero-copy,
.story-hero-copy {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-block: 170px 80px;
}

.archive-hero-copy h1 {
	max-width: 1100px;
}

.archive-body {
	padding-top: clamp(70px, 9vw, 130px);
}

.story-hero-copy h1 {
	max-width: 1100px;
	margin: 20px 0 30px;
	font: 500 clamp(58px, 10vw, 140px) / 0.88 var(--serif);
	letter-spacing: -0.06em;
}

.story-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 30px;
	font: 400 10px var(--mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.entry-content {
	max-width: 860px;
	padding-block: clamp(70px, 10vw, 150px);
	font-size: clamp(17px, 1.35vw, 20px);
}

.page-layout .entry-content {
	padding-inline: 0;
}

.entry-content > * {
	margin-block: 0 1.5em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
	font-family: var(--serif);
	line-height: 1.05;
}

.entry-content h2 {
	font-size: clamp(38px, 5vw, 68px);
}

.entry-content h3 {
	font-size: clamp(29px, 3.5vw, 45px);
}

.entry-content blockquote {
	margin-inline: 0;
	padding-left: clamp(25px, 4vw, 55px);
	border-left: 1px solid var(--clay);
	font: 500 italic clamp(30px, 4vw, 55px) / 1.1 var(--serif);
}

.page-featured {
	max-height: 780px;
	overflow: hidden;
}

.page-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.message-layout,
.empty-state {
	padding-block: clamp(100px, 15vw, 220px);
}

.message-layout > div,
.empty-state > div {
	max-width: 650px;
	margin: 30px 0;
	font-size: 18px;
}

.navigation.pagination {
	padding-bottom: 100px;
}

.nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.page-numbers {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	font: 400 10px var(--mono);
}

.page-numbers.current {
	background: var(--ink);
	color: var(--ivory);
}

@media (max-width: 900px) {
	.nav {
		position: fixed;
		z-index: -1;
		inset: 0;
		background: var(--ink);
		font: 500 28px var(--serif);
		transform: translateY(-100%);
		transition: transform 0.4s;
	}

	.nav.open {
		transform: none;
	}

	.nav-list {
		flex-direction: column;
		justify-content: center;
		height: 100%;
		gap: 25px;
	}

	.menu-btn {
		display: block;
	}

	.journey-intro,
	.about {
		grid-template-columns: 1fr;
	}

	.journey-stamp {
		margin-bottom: 25px;
	}

	.destination-list {
		grid-template-columns: repeat(2, 1fr);
	}

	.destination:nth-child(even) {
		margin-top: 30px;
	}

	.about-image {
		height: 70vw;
	}

	.about-copy {
		min-height: 580px;
	}

	.footer-top {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

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

@media (max-width: 620px) {
	.site-header {
		height: 78px;
	}

	.hero {
		min-height: 650px;
	}

	.hero h1 {
		font-size: 18vw;
	}

	.hero-index,
	.scroll-mark {
		display: none;
	}

	.hero-meta {
		flex-wrap: wrap;
	}

	.journey-intro {
		padding-block: 85px;
	}

	.stats {
		flex-wrap: wrap;
		gap: 25px;
	}

	.story-grid,
	.stories .story-card:nth-child(3) > a {
		display: block;
	}

	.stories .story-card,
	.stories .story-card:nth-child(2),
	.stories .story-card:nth-child(3) {
		margin: 0 0 70px;
	}

	.stories .story-card:nth-child(3) .story-image {
		height: 390px;
	}

	.destination-list,
	.themes-row {
		display: flex;
		overflow-x: auto;
		margin-right: calc(var(--pad) * -1);
		padding-right: var(--pad);
		scroll-snap-type: x mandatory;
	}

	.destination {
		flex: 0 0 78vw;
		height: 500px;
		margin-top: 0 !important;
		scroll-snap-align: start;
	}

	.theme-card,
	.theme-card:nth-child(2) {
		flex: 0 0 82vw;
		height: 570px;
		margin: 0;
		scroll-snap-align: start;
	}

	.about-image {
		height: 100vw;
	}

	.footer-top,
	.archive-grid {
		grid-template-columns: 1fr;
	}

	.footer-brand {
		grid-column: auto;
	}

	.footer-bottom {
		display: block;
		line-height: 2;
	}

	.section-head {
		align-items: start;
		flex-direction: column;
	}

	.section-title {
		font-size: 50px;
	}

	.story-hero,
	.archive-hero {
		min-height: 620px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.hero-media img {
		animation: none;
	}

	.fade {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
