/* Driftmark — mobile-first editorial exploration theme */

:root {
	--ink: #1a242e;
	--ink-soft: #3d4a57;
	--mist: #f3f5f7;
	--paper: #e8eef3;
	--slate: #4a5d6e;
	--slate-deep: #2c3a47;
	--amber: #c47a2c;
	--amber-deep: #9a5c1c;
	--line: rgba(26, 36, 46, 0.12);
	--white: #ffffff;
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Figtree", "Segoe UI", sans-serif;
	--space: clamp(1rem, 3vw, 2rem);
	--container: 1120px;
	--radius: 2px;
	--header-h: 64px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(74, 93, 110, 0.08), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(196, 122, 44, 0.06), transparent 55%),
		var(--mist);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--amber-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ink);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.75rem 1.25rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

.btn-primary {
	background: var(--amber);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--amber-deep);
	color: var(--white);
}

.btn-ghost {
	background: transparent;
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--white);
}

.btn-light {
	background: var(--white);
	color: var(--ink);
}

.btn-light:hover {
	background: var(--paper);
	color: var(--ink);
}

.btn-lg {
	padding: 0.9rem 1.45rem;
	font-size: 1rem;
}

.btn-block {
	width: 100%;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(243, 245, 247, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header--inner {
	border-bottom-color: var(--line);
	box-shadow: 0 8px 24px rgba(26, 36, 46, 0.04);
}

.site-header--front:not(.is-scrolled) {
	background: transparent;
	position: absolute;
	width: 100%;
}

.site-header--front:not(.is-scrolled) .site-title a,
.site-header--front:not(.is-scrolled) .primary-menu a {
	color: var(--white);
}

.site-header--front:not(.is-scrolled) .nav-toggle span {
	background: var(--white);
}

.header-inner {
	width: min(100% - 1.25rem, var(--container));
	margin-inline: auto;
	height: 100%;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.75rem;
}

.site-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-title a {
	color: var(--ink);
	text-decoration: none;
}

.custom-logo-link img {
	max-height: 40px;
	width: auto;
}

.nav-toggle {
	width: 42px;
	height: 42px;
	border: 0;
	background: transparent;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 8px;
	cursor: pointer;
	order: -1;
}

.nav-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--ink);
	transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.main-navigation {
	position: fixed;
	inset: var(--header-h) 0 auto 0;
	background: var(--mist);
	padding: 1rem 1.25rem 1.5rem;
	border-bottom: 1px solid var(--line);
	transform: translateY(-120%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.main-navigation.is-open {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.primary-menu {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.primary-menu a {
	display: block;
	padding: 0.65rem 0.2rem;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
}

.header-cta {
	justify-self: end;
	padding: 0.55rem 0.9rem;
	font-size: 0.85rem;
}

/* Hero — full bleed */
.hero-section {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	color: var(--white);
	overflow: hidden;
}

.hero-media {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(26, 36, 46, 0.25) 0%, rgba(26, 36, 46, 0.55) 45%, rgba(26, 36, 46, 0.82) 100%),
		var(--hero-image) center / cover no-repeat;
	transform: scale(1.04);
	animation: heroDrift 18s var(--ease) infinite alternate;
}

@keyframes heroDrift {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-copy {
	position: relative;
	z-index: 1;
	padding: calc(var(--header-h) + 3rem) 0 3.5rem;
	max-width: 38rem;
	margin-left: max(1rem, calc((100% - var(--container)) / 2));
	margin-right: 1rem;
	animation: heroRise 0.9s var(--ease) both;
}

@keyframes heroRise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

.brand-mark {
	margin: 0 0 0.85rem;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 8vw, 4.2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--white);
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.35rem, 4.2vw, 1.85rem);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	max-width: 18ch;
}

.hero-subtitle {
	margin: 0 0 1.5rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.02rem;
	max-width: 34ch;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Sections */
.section {
	padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
	margin-bottom: 1.75rem;
	max-width: 40rem;
}

.section-head h2 {
	font-size: clamp(1.65rem, 3.5vw, 2.25rem);
	margin-bottom: 0.4rem;
}

.section-head p {
	color: var(--ink-soft);
	margin: 0;
}

.row-head {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
}

.view-all,
.text-link,
.read-more {
	font-weight: 600;
	color: var(--amber-deep);
	text-decoration: none;
}

.view-all:hover,
.text-link:hover,
.read-more:hover {
	color: var(--ink);
}

.eyebrow {
	display: inline-block;
	margin-bottom: 0.65rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--amber);
}

.meta,
.tag {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--slate);
	margin-bottom: 0.45rem;
}

.tag {
	color: var(--amber-deep);
}

/* Place of the Day */
.place-section {
	background: var(--white);
}

.place-layout {
	display: grid;
	gap: 1.5rem;
}

.place-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.place-copy h2 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.place-lead {
	font-size: 1.08rem;
	color: var(--ink-soft);
}

.place-meta {
	color: var(--slate);
	font-size: 0.92rem;
}

/* Destinations — editorial media rows, not cards */
.dest-grid,
.stories-grid,
.blog-grid {
	display: grid;
	gap: 1.75rem;
}

.dest-media img,
.story-media img,
.blog-card-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.dest-media,
.story-media,
.blog-card-image {
	display: block;
	overflow: hidden;
	background: var(--paper);
}

.dest-item:hover .dest-media img,
.story-item:hover .story-media img,
.blog-card:hover .blog-card-image img {
	transform: scale(1.04);
}

.dest-body h3,
.story-body h3,
.blog-card-body h3,
.blog-card-body .entry-title {
	font-size: 1.25rem;
	margin-bottom: 0.35rem;
}

.dest-body h3 a,
.story-body h3 a,
.blog-card-body h3 a,
.blog-card-body .entry-title a {
	color: inherit;
	text-decoration: none;
}

.dest-body p,
.story-body p,
.blog-excerpt {
	color: var(--ink-soft);
	margin-bottom: 0.65rem;
	font-size: 0.98rem;
}

/* Stories */
.stories-section {
	background: linear-gradient(180deg, transparent, rgba(74, 93, 110, 0.06) 40%, transparent);
}

/* Regions */
.regions-section {
	background: var(--slate-deep);
	color: rgba(255, 255, 255, 0.88);
}

.regions-section h2,
.regions-section .list-title {
	color: var(--white);
}

.regions-section .section-head p {
	color: rgba(255, 255, 255, 0.7);
}

.regions-layout {
	display: grid;
	gap: 2.5rem;
}

.list-title {
	font-size: 1.15rem;
	margin-bottom: 1rem;
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.75rem;
}

.chip-list a {
	display: inline-block;
	padding: 0.45rem 0;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	font-weight: 500;
}

.chip-list a:hover {
	color: #f0c48a;
	border-bottom-color: #f0c48a;
}

.chip-list--muted a {
	opacity: 0.85;
	font-size: 0.95rem;
}

/* Newsletter */
.newsletter-section {
	background: var(--white);
}

.newsletter-inner {
	display: grid;
	gap: 1.25rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.newsletter-form {
	display: grid;
	gap: 0.75rem;
}

.newsletter-form input,
.contact-form input,
.contact-form textarea,
.search-form input {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font: inherit;
	background: var(--mist);
	color: var(--ink);
}

.newsletter-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.search-form input:focus {
	outline: 2px solid rgba(196, 122, 44, 0.35);
	border-color: var(--amber);
}

/* CTA */
.cta-banner {
	position: relative;
	background-size: cover;
	background-position: center;
	color: var(--white);
	min-height: 320px;
	display: flex;
	align-items: center;
}

.cta-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(26, 36, 46, 0.78), rgba(44, 58, 71, 0.55));
}

.cta-inner {
	position: relative;
	z-index: 1;
	max-width: 34rem;
}

.cta-inner h2 {
	color: var(--white);
	font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.cta-inner p {
	color: rgba(255, 255, 255, 0.85);
}

/* Contact */
.contact-section {
	background: var(--paper);
}

.contact-grid {
	display: grid;
	gap: 2rem;
}

.contact-details {
	display: grid;
	gap: 0.35rem;
	color: var(--ink-soft);
}

.contact-form {
	display: grid;
	gap: 0.75rem;
}

.form-feedback {
	min-height: 1.25em;
	margin: 0;
	font-size: 0.92rem;
}

.form-feedback.is-success {
	color: #2f6b4f;
}

.form-feedback.is-error {
	color: #9b2c2c;
}

.demo-note {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: var(--slate);
}

/* Inner pages */
.page-wrap {
	padding: calc(var(--header-h) + 2rem) 0 3.5rem;
}

.page-wrap.narrow {
	max-width: 760px;
}

.archive-header {
	margin-bottom: 2rem;
}

.page-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.entry-single .entry-header,
.entry-page .entry-header {
	margin-bottom: 1.25rem;
}

.entry-thumb {
	margin: 0 0 1.5rem;
}

.entry-thumb img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.search-form {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.comments-area {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

/* Footer */
.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
}

.footer-main {
	padding: 2.75rem 0 1.75rem;
}

.footer-grid {
	display: grid;
	gap: 1.75rem;
}

.footer-brand .site-title a {
	color: var(--white);
}

.footer-brand p {
	color: rgba(255, 255, 255, 0.65);
	max-width: 28ch;
}

.footer-menu {
	display: grid;
	gap: 0.45rem;
}

.footer-menu a,
.footer-contact-col a,
.social-links a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.footer-menu a:hover,
.footer-contact-col a:hover,
.social-links a:hover {
	color: #f0c48a;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 0.75rem;
}

.footer-links-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1rem 0;
}

.footer-links-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.15rem;
	align-items: center;
}

.footer-links-row a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.9rem;
	white-space: nowrap;
}

.footer-links-row a:hover {
	color: #f0c48a;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1rem 0 1.4rem;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
	margin: 0;
}

/* Motion */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-media { animation: none; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.btn:hover { transform: none; }
}

/* Tablet+ */
@media (min-width: 640px) {
	.dest-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.75rem 1.25rem;
	}

	.stories-grid,
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.newsletter-form {
		grid-template-columns: 1fr auto;
	}

	.search-form {
		grid-template-columns: 1fr auto;
	}

	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

@media (min-width: 900px) {
	.place-layout {
		grid-template-columns: 1.15fr 0.85fr;
		gap: 2.5rem;
		align-items: center;
	}

	.stories-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.blog-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.regions-layout {
		grid-template-columns: 1.2fr 0.8fr;
		gap: 3rem;
	}

	.contact-grid {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: start;
	}

	.row-head {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
	}
}

@media (min-width: 992px) {
	.nav-toggle {
		display: none;
	}

	.header-inner {
		grid-template-columns: auto 1fr auto;
		gap: 1.5rem;
	}

	.main-navigation {
		position: static;
		inset: auto;
		background: transparent;
		padding: 0;
		border: 0;
		transform: none;
		opacity: 1;
		pointer-events: auto;
		justify-self: center;
	}

	.primary-menu {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.15rem 1.15rem;
		justify-content: center;
	}

	.primary-menu a {
		padding: 0.35rem 0;
		font-size: 0.92rem;
	}

	.dest-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.hero-copy {
		padding-bottom: 4.5rem;
	}
}

@media (min-width: 1200px) {
	:root {
		--header-h: 72px;
	}
}

/* WP alignment helpers */
.alignwide {
	max-width: min(100%, 1120px);
}

.alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wp-block-image img {
	height: auto;
}
