/* ==========================================================================
   Yakaduru Blog
   Tokens match the 2026 Yakaduru designs in Figma (Home, Safari, Blog 2026 refresh).
   Everything is scoped to .yk so it cannot affect the rest of the site.
   ========================================================================== */

:root {
	--yk-light: #f3eadb;
	--yk-primary: #5e3c33;
	--yk-secondary: #a16e45;
	--yk-accent: #3e532f;
	--yk-tint: rgba(161, 110, 69, 0.09);
	--yk-line: rgba(94, 60, 51, 0.2);
	--yk-ink-soft: rgba(94, 60, 51, 0.85);
	--yk-serif: "Alegreya", Georgia, serif;
	--yk-sans: "Lato", "Helvetica Neue", Arial, sans-serif;
	--yk-wrap: 1280px;
	--yk-gutter: clamp(20px, 5.5vw, 80px);
	--yk-section: clamp(64px, 8vw, 100px);
}

.yk {
	background: var(--yk-light);
	color: var(--yk-primary);
	font-family: var(--yk-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.yk *,
.yk *::before,
.yk *::after { box-sizing: border-box; }
.yk a { color: inherit; }
.yk img { max-width: 100%; height: auto; display: block; }

.yk-wrap {
	width: 100%;
	max-width: calc(var(--yk-wrap) + 2 * var(--yk-gutter));
	margin: 0 auto;
	padding: 0 var(--yk-gutter);
}
.yk-blocks { padding: var(--yk-section) 0 0; background: transparent; }
.yk-blocks:last-child { padding-bottom: var(--yk-section); }
.yk-section { padding: var(--yk-section) 0; }

/* Type ------------------------------------------------------------------ */
.yk-h1,
.yk-h2 {
	font-family: var(--yk-serif);
	font-weight: 400;
	text-transform: uppercase;
	color: var(--yk-primary);
	line-height: 1.08;
	margin: 0 0 8px;
}
.yk-h1 { font-size: clamp(40px, 6vw, 64px); }
.yk-h2 { font-size: clamp(34px, 5vw, 56px); }
.yk-h3 { font-family: var(--yk-serif); font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
.yk-lede {
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.5;
	color: var(--yk-secondary);
	margin: 0;
	max-width: 640px;
}
.yk-eyebrow,
.yk-meta,
.yk-chip {
	font-family: var(--yk-sans);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.yk-eyebrow { color: var(--yk-secondary); margin: 0 0 12px; }

/* Buttons ---------------------------------------------------------------- */
.yk .yk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	background: var(--yk-primary);
	color: var(--yk-light);
	border: 1px solid var(--yk-primary);
	font-family: var(--yk-serif);
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.yk .yk-btn:hover { background: transparent; color: var(--yk-primary); }
.yk .yk-btn--light { background: var(--yk-light); color: var(--yk-primary); border-color: var(--yk-light); }
.yk .yk-btn--light:hover { background: transparent; color: var(--yk-light); }
.yk .yk-btn.is-loading { opacity: 0.6; pointer-events: none; }
.yk-more-wrap { display: flex; justify-content: center; margin-top: 56px; }

/* Chips + search --------------------------------------------------------- */
.yk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; }
.yk .yk-chip {
	display: inline-flex;
	align-items: center;
	padding: 11px 18px;
	border: 1px solid var(--yk-primary);
	background: transparent;
	color: var(--yk-primary);
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
	transition: background-color 0.15s, color 0.15s;
}
.yk .yk-chip:hover,
.yk .yk-chip.is-active { background: var(--yk-primary); color: var(--yk-light); }
.yk .yk-chip--sm { padding: 7px 12px; font-size: 12px; border-color: var(--yk-line); }

.yk-search {
	display: flex;
	align-items: center;
	width: 320px;
	max-width: 100%;
	height: 52px;
	border: 1px solid var(--yk-line);
	background: rgba(255, 255, 255, 0.35);
}
.yk-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	background: transparent;
	padding: 0 16px;
	font: 16px var(--yk-sans);
	color: var(--yk-primary);
	border-radius: 0;
}
.yk-search input::placeholder { color: var(--yk-secondary); opacity: 1; }
.yk-search button {
	width: 52px;
	height: 100%;
	border: 0;
	background: transparent;
	color: var(--yk-primary);
	cursor: pointer;
	padding: 0;
	display: grid;
	place-items: center;
}
.yk-search:focus-within { border-color: var(--yk-primary); }

.yk-latest__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}

/* Cards ------------------------------------------------------------------ */
.yk-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 32px;
}
.yk-card { margin: 0; }
.yk-card__media { display: block; overflow: hidden; background: var(--yk-tint); }
.yk-card__media img,
.yk-card__placeholder {
	width: 100%;
	height: auto;
	aspect-ratio: 27 / 20;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.yk-card:hover .yk-card__media img { transform: scale(1.03); }
.yk-card__body { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.yk-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	color: var(--yk-secondary);
	font-size: 12.5px;
}
.yk-card__title {
	font-family: var(--yk-serif);
	font-weight: 400;
	font-size: 26px;
	line-height: 1.25;
	margin: 0;
	text-transform: none;
	color: var(--yk-primary);
}
.yk-card__title a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	color: var(--yk-primary);
}
.yk-card__title a:hover { color: var(--yk-secondary); }
.yk-card__excerpt { margin: 0; color: var(--yk-ink-soft); line-height: 1.5; }

/* Horizontal card = featured story */
.yk-card--horizontal {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--yk-tint);
}
.yk-card--horizontal .yk-card__media img { aspect-ratio: auto; height: 100%; min-height: 440px; }
.yk-card--horizontal .yk-card__body { justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 56px); }
.yk-card--horizontal .yk-card__title { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; }
.yk-card--horizontal .yk-card__excerpt { font-size: 18px; }
.yk-meta__label { color: var(--yk-secondary); }
.yk-byline { margin: 0; font-size: 16px; color: var(--yk-primary); display: flex; flex-wrap: wrap; gap: 10px; }

/* Single post ------------------------------------------------------------ */
.yk-hero--post {
	position: relative;
	display: flex;
	align-items: center; /* text sits in the optical centre of the photo */
	justify-content: center;
	min-height: clamp(420px, 58vh, 600px);
	padding: clamp(56px, 7vw, 96px) var(--yk-gutter);
	background-color: #634125;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%), var(--yk-bg, none);
	background-size: cover;
	background-position: center;
	color: var(--yk-light);
	text-align: center;
}
.yk-hero__inner { max-width: 1100px; width: 100%; margin: 0 auto; text-align: center; }
.yk-crumbs {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 20px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.yk-crumbs a { color: var(--yk-light); text-decoration: none; }
.yk-crumbs a:hover { text-decoration: underline; }
.yk-hero__title {
	font-family: var(--yk-serif);
	font-weight: 400;
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1.15;
	text-transform: none; /* long post titles read better in sentence case; set to uppercase to match Figma exactly */
	color: var(--yk-light);
	margin: 0 0 20px;
}
.yk-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; font-size: 17px; }
.yk-hero__title { text-wrap: balance; }
.yk-grid { transition: opacity 0.2s; }

.yk-progress {
	position: sticky;
	top: 0;
	z-index: 20;
	height: 4px;
	background: rgba(94, 60, 51, 0.12);
}
.yk-progress span {
	display: block;
	height: 100%;
	background: var(--yk-secondary);
	transform: scaleX(0);
	transform-origin: left;
}
.admin-bar .yk-progress { top: 32px; }

.yk-article {
	display: grid;
	grid-template-columns: minmax(0, 800px) 360px;
	justify-content: space-between;
	gap: 64px;
	padding-top: 80px;
	padding-bottom: 40px;
}
.yk-sticky { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .yk-sticky { top: 72px; }

/* Article text */
.yk-prose { font-size: 18px; line-height: 1.7; color: var(--yk-ink-soft); }
.yk-prose > * { margin-top: 0; margin-bottom: 24px; }
.yk-prose > p:first-child { font-size: 21px; line-height: 1.6; color: var(--yk-primary); }
.yk-prose h2,
.yk-prose h3,
.yk-prose h4 {
	font-family: var(--yk-serif);
	font-weight: 500;
	color: var(--yk-primary);
	line-height: 1.2;
	text-transform: none;
	scroll-margin-top: 90px;
}
.yk-prose h2 { font-size: clamp(28px, 2.6vw, 36px); margin-top: 48px; margin-bottom: 16px; }
.yk-prose h3 { font-size: 26px; margin-top: 36px; margin-bottom: 12px; }
.yk-prose h2 strong,
.yk-prose h3 strong,
.yk-prose h4 strong { font-weight: inherit; }
.yk-prose a { color: var(--yk-primary); text-decoration: underline; text-underline-offset: 3px; }
.yk-prose a:hover { color: var(--yk-secondary); }
.yk-prose strong { color: var(--yk-primary); }
.yk-prose ul,
.yk-prose ol { padding-left: 1.3em; }
.yk-prose li { margin-bottom: 8px; }
.yk-prose img,
.yk-prose .wp-block-image img { width: 100%; height: auto; }
.yk-prose figure { margin-left: 0; margin-right: 0; }
.yk-prose figcaption,
.yk-prose .wp-caption-text {
	font-size: 14px;
	font-style: italic;
	color: var(--yk-secondary);
	margin-top: 10px;
}
.yk-prose .alignleft,
.yk-prose .alignright { max-width: 50%; }
.yk-prose .alignleft { float: left; margin: 6px 28px 16px 0; }
.yk-prose .alignright { float: right; margin: 6px 0 16px 28px; }
.yk-prose::after { content: ""; display: table; clear: both; }
.yk-prose blockquote {
	margin: 40px 0;
	padding: 8px 0 8px 28px;
	border-left: 4px solid var(--yk-secondary);
	font-family: var(--yk-serif);
	font-style: italic;
	font-size: clamp(24px, 2.2vw, 30px);
	line-height: 1.35;
	color: var(--yk-primary);
}
.yk-prose blockquote p { margin: 0; }
.yk-prose blockquote cite { display: block; margin-top: 12px; font: 14px var(--yk-sans); color: var(--yk-secondary); }

/* Experience card inside the post */
.yk-cta {
	display: grid;
	grid-template-columns: 320px 1fr;
	background: var(--yk-primary);
	color: var(--yk-light);
	margin: 40px 0;
	clear: both;
}
.yk-cta--no-image { grid-template-columns: 1fr; }
.yk-cta__img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.yk-cta__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.yk-prose .yk-cta p { margin: 0; color: var(--yk-light); }
.yk-cta__eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.yk-cta__title { font-family: var(--yk-serif); font-weight: 500; font-size: 32px; line-height: 1.2; }
.yk-cta__text { font-size: 16px; line-height: 1.5; opacity: 0.85; }
.yk-prose .yk-cta__link {
	align-self: flex-start;
	color: var(--yk-light);
	font-family: var(--yk-serif);
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	text-underline-offset: 4px;
}
.yk-prose .yk-cta__link:hover { color: #fff; }

.yk-article__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--yk-line);
}
.yk-tags,
.yk-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yk-share__label { font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }

/* Sidebar */
.yk-toc { background: var(--yk-tint); padding: 28px; }
.yk-toc__title { margin: 0 0 14px; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yk-secondary); }
.yk-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.yk-toc a { font-family: var(--yk-serif); font-size: 19px; line-height: 1.3; text-decoration: none; color: var(--yk-primary); }
.yk-toc a:hover,
.yk-toc a.is-active { color: var(--yk-secondary); text-decoration: underline; text-underline-offset: 4px; }

.yk-booking {
	min-height: 440px;
	display: flex;
	align-items: flex-end;
	background-color: var(--yk-primary);
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 20%, rgba(0, 0, 0, 0.9) 100%), var(--yk-bg, none);
	background-size: cover;
	background-position: center;
	color: var(--yk-light);
}
.yk-booking__body { padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.yk-booking__title { font-family: var(--yk-serif); font-weight: 700; font-size: 30px; line-height: 1.2; margin: 0; }
.yk-booking__text { margin: 0 0 8px; font-size: 15px; line-height: 1.5; opacity: 0.9; }
.yk-booking__note { margin: 0; font-size: 14px; opacity: 0.8; }

.yk-more { padding-top: 60px; }
.yk-more .yk-h2 { margin-bottom: 48px; }

/* Archive ----------------------------------------------------------------- */
.yk-archive .yk-blocks { padding-bottom: var(--yk-section); }
.yk-pagination { margin-top: 64px; }
.yk-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.yk-pagination .page-numbers {
	min-width: 48px;
	height: 48px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--yk-line);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
}
.yk-pagination .page-numbers.current,
.yk-pagination a.page-numbers:hover { background: var(--yk-primary); border-color: var(--yk-primary); color: var(--yk-light); }
.yk-empty { padding: 48px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.yk-empty p { margin: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Elementor shortcode widget: let our blocks go full width, and only pad below the last block */
.elementor-widget-shortcode .yk-blocks { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.elementor-widget-shortcode .yk-latest { padding-bottom: var(--yk-section); }
.elementor-widget-shortcode .yk-featured + .yk-latest,
.elementor-widget-shortcode:has(.yk-featured) + .elementor-widget-shortcode .yk-latest { padding-top: 80px; }
.elementor-widget-shortcode .yk-featured { padding-top: 80px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
	.yk-article { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.yk-article__main { max-width: 760px; }
	.yk-sticky { position: static; display: grid; grid-template-columns: minmax(0, 420px); }
	.yk-toc { display: none; } /* only useful beside the text on wide screens */
}
@media (max-width: 960px) {
	.yk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yk-card--horizontal { grid-template-columns: 1fr; }
	.yk-card--horizontal .yk-card__media img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 782px) {
	.admin-bar .yk-progress { top: 46px; }
}
@media (max-width: 680px) {
	.yk-grid { grid-template-columns: 1fr; gap: 44px; }
	.yk-search { width: 100%; }
	.yk-sticky { grid-template-columns: 1fr; }
	.yk-card--horizontal .yk-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.yk-booking { min-height: 380px; }
	.yk-cta { grid-template-columns: 1fr; }
	.yk-cta__img { min-height: 0; aspect-ratio: 16 / 9; }
	.yk-cta__body { padding: 28px; }
	.yk-prose { font-size: 17px; }
	.yk-prose > p:first-child { font-size: 19px; }
	.yk-prose .alignleft,
	.yk-prose .alignright { float: none; max-width: 100%; margin: 0 0 24px; }
	.yk-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--yk-gutter)); padding-right: var(--yk-gutter); scrollbar-width: none; }
	.yk-chips::-webkit-scrollbar { display: none; }
	.yk .yk-chip { white-space: nowrap; }
	.yk-hero__meta { font-size: 15px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.yk-card__media img { transition: none; }
	.yk-card:hover .yk-card__media img { transform: none; }
}

/* Posts built with Elementor --------------------------------------------------
   The live posts are Elementor text/heading/image widgets, and much of the text
   was pasted from Word with inline fonts (Times New Roman 12pt). These rules make
   every post use the blog typography regardless of how it was written. */
.yk-prose .elementor-section .elementor-container,
.yk-prose .e-con,
.yk-prose .e-con-inner { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.yk-prose .elementor-column > .elementor-element-populated,
.yk-prose .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0 !important; }
.yk-prose .elementor-widget:not(:last-child) { margin-bottom: 24px; }
.yk-prose .elementor-widget-text-editor,
.yk-prose .elementor-widget-text-editor .elementor-widget-container {
	font-family: var(--yk-sans) !important;
	font-size: 18px !important;
	line-height: 1.7 !important;
	color: var(--yk-ink-soft) !important;
	font-weight: 400 !important;
}
.yk-prose [style*="font-family"],
.yk-prose [style*="font-size"],
.yk-prose [style*="line-height"],
.yk-prose font {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
}
.yk-prose .elementor-widget-text-editor p,
.yk-prose .elementor-widget-text-editor li { margin-top: 0; margin-bottom: 16px; }
.yk-prose .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.yk-prose .elementor-widget-text-editor strong,
.yk-prose .elementor-widget-text-editor b { color: var(--yk-primary); font-weight: 700; }
.yk-prose .elementor-widget-heading .elementor-heading-title {
	font-family: var(--yk-serif) !important;
	font-weight: 500 !important;
	font-size: clamp(28px, 2.6vw, 36px) !important;
	line-height: 1.2 !important;
	color: var(--yk-primary) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-align: left !important;
	margin: 24px 0 0 !important;
	scroll-margin-top: 90px;
}
.yk-prose h3.elementor-heading-title { font-size: 26px !important; }
.yk-prose .elementor-widget-image img {
	width: auto !important;
	max-width: 100% !important;
	max-height: 620px; /* keeps portrait photos from turning into a full-screen strip */
	height: auto !important;
	border-radius: 0 !important;
}
.yk-prose .elementor-widget-image { text-align: left !important; }
.yk-prose .elementor-widget-button,
.yk-prose .elementor-widget-spacer { display: none; } /* old per-post buttons/spacers; the theme adds its own CTA */

.yk-prose .elementor-widget-text-editor,
.yk-prose .elementor-widget-text-editor *,
.yk-prose [style*="text-align"] { text-align: left !important; } /* justified Word text leaves big gaps between words */
