/* ==========================================================================
   Roaming Aurora — main stylesheet
   1. Tokens (day / night)      7. Homepage sections
   2. Base and typography       8. Single post and pages
   3. Layout helpers            9. Post content (blocks, old posts)
   4. Buttons, pills, forms    10. Comments, pagination, widgets
   5. Header, drawer, search   11. Footer, to-top, lightbox
   6. Cards and grids          12. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--ra-font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
	--ra-font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
	--ra-font-hand: "Caveat", "Comic Sans MS", cursive;

	--ra-night: #0b1622;
	--ra-night-2: #102438;
	--ra-pine: #0f3b36;
	--ra-aurora: #2fd39a;
	--ra-teal: #26b7b0;
	--ra-violet: #6b4fd8;
	--ra-dawn: #e0709b;
	--ra-snow: #f7f6f1;

	--ra-bg: #f7f6f1;
	--ra-surface: #ffffff;
	--ra-mist: #eaf1ef;
	--ra-text: #15242b;
	--ra-muted: #56676d;
	--ra-line: rgba(21, 36, 43, 0.12);
	--ra-primary: #0d7a71;
	--ra-primary-ink: #ffffff;
	--ra-pill-bg: rgba(13, 122, 113, 0.1);
	--ra-shadow: 0 1px 2px rgba(11, 22, 34, 0.05), 0 10px 30px -12px rgba(11, 22, 34, 0.18);
	--ra-shadow-lg: 0 2px 6px rgba(11, 22, 34, 0.06), 0 30px 60px -24px rgba(11, 22, 34, 0.35);
	--ra-header-bg: rgba(247, 246, 241, 0.86);
	--ra-gradient: linear-gradient(100deg, var(--ra-aurora), var(--ra-teal) 40%, var(--ra-violet) 75%, var(--ra-dawn));

	--ra-radius: 18px;
	--ra-radius-sm: 10px;
	--ra-container: 1220px;
	--ra-measure: 720px;
	--ra-gutter: clamp(16px, 4vw, 32px);
	--ra-section: clamp(56px, 8vw, 110px);
	--ra-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ra-admin: var(--wp-admin--admin-bar--height, 0px);
	--header-h: 64px;

	color-scheme: light;
}

:root[data-scheme="dark"] {
	--ra-bg: #0b1622;
	--ra-surface: #112233;
	--ra-mist: #0e1d2c;
	--ra-text: #e4edef;
	--ra-muted: #9fb2b8;
	--ra-line: rgba(228, 237, 239, 0.13);
	--ra-primary: #4fe0b0;
	--ra-primary-ink: #04201a;
	--ra-violet: #a68bff;
	--ra-pill-bg: rgba(79, 224, 176, 0.12);
	--ra-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
	--ra-shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.35), 0 30px 60px -24px rgba(0, 0, 0, 0.75);
	--ra-header-bg: rgba(11, 22, 34, 0.84);
	color-scheme: dark;
}

@media (min-width: 900px) {
	:root { --header-h: 156px; }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--ra-admin) + 90px);
}

body {
	margin: 0;
	background: var(--ra-bg);
	color: var(--ra-text);
	font-family: var(--ra-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	transition: background-color 0.5s var(--ra-ease), color 0.5s var(--ra-ease);
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

a {
	color: var(--ra-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s;
}
a:hover { color: var(--ra-violet); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ra-font-head);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--ra-text);
	text-wrap: balance;
}

p { margin: 0 0 1em; }

:focus-visible {
	outline: 2px solid var(--ra-primary);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection { background: rgba(47, 211, 154, 0.3); }

.hand { font-family: var(--ra-font-hand); font-weight: 700; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 1000;
	top: 8px;
	left: 8px;
	padding: 12px 18px;
	background: var(--ra-surface);
	color: var(--ra-text);
	border-radius: 10px;
	box-shadow: var(--ra-shadow);
}

.site-main { display: block; padding-top: var(--header-h); outline: none; }
.has-hero .site-main { padding-top: 0; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--ra-container);
	margin-inline: auto;
	padding-inline: var(--ra-gutter);
}
.container--narrow { max-width: calc(var(--ra-measure) + 2 * var(--ra-gutter)); }
.container--wide { max-width: 1280px; }

.section { padding-block: var(--ra-section); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--first { padding-top: clamp(32px, 4vw, 56px); }
.section--mist { background: var(--ra-mist); }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 6px 24px;
	margin-bottom: clamp(24px, 3.5vw, 44px);
}
.section-head__kicker {
	flex-basis: 100%;
	margin: 0;
	color: var(--ra-primary);
	font-size: 1.45rem;
	line-height: 1;
}
.section-head__title {
	margin: 0;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
	flex: 1 1 auto;
}
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.link-arrow .ra-icon { width: 18px; height: 18px; transition: transform 0.3s var(--ra-ease); }
.link-arrow:hover .ra-icon { transform: translateX(4px); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 4. Buttons, pills, forms ------------------------------------------------- */
.btn,
.wp-block-button__link,
button[type="submit"]:not(.search-form__btn),
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ra-primary);
	color: var(--ra-primary-ink);
	font: 600 1rem/1.2 var(--ra-font-head);
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--ra-ease), box-shadow 0.25s, background-color 0.25s, color 0.25s;
}
.btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:not(.search-form__btn):hover,
input[type="submit"]:hover {
	color: var(--ra-primary-ink);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--ra-primary) 70%, transparent);
}
.btn .ra-icon { width: 18px; height: 18px; }

.btn--glow {
	position: relative;
	background: #fff;
	color: var(--ra-night);
	isolation: isolate;
}
.btn--glow::before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	background: var(--ra-gradient);
	z-index: -1;
	filter: blur(10px);
	opacity: 0.75;
	transition: opacity 0.3s, filter 0.3s;
}
.btn--glow:hover { color: var(--ra-night); box-shadow: none; }
.btn--glow:hover::before { opacity: 1; filter: blur(16px); }
.btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(6px);
}
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--light { background: #fff; color: var(--ra-night); }
.btn--light:hover { color: var(--ra-night); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5); }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn .ra-icon { width: 22px; height: 22px; }

.pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ra-pill-bg);
	color: var(--ra-primary);
	font: 600 0.75rem/1.4 var(--ra-font-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.pill:hover { background: var(--ra-primary); color: var(--ra-primary-ink); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1.5px solid var(--ra-line);
	border-radius: 12px;
	background: var(--ra-surface);
	color: var(--ra-text);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--ra-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--ra-primary) 18%, transparent);
}
textarea { min-height: 140px; resize: vertical; }
label { font-weight: 600; font-size: 0.95rem; }

.search-form { position: relative; display: flex; }
.search-form__input { padding-right: 56px; border-radius: 999px; }
.search-form__btn {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--ra-primary);
	color: var(--ra-primary-ink);
	cursor: pointer;
}
.search-form__btn .ra-icon { width: 20px; height: 20px; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: var(--ra-admin);
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--ra-header-bg);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--ra-line);
	color: var(--ra-text);
	transition: transform 0.45s var(--ra-ease), background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.site-header.is-hidden { transform: translateY(-105%); }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.45); }

/* Transparent header over the hero */
.has-hero .site-header:not(.is-scrolled) {
	background: transparent;
	border-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	color: #fff;
}
.has-hero .site-header:not(.is-scrolled) .site-title a,
.has-hero .site-header:not(.is-scrolled) .primary-menu > li > a,
.has-hero .site-header:not(.is-scrolled) .topbar a { color: #fff; }
.has-hero .site-header:not(.is-scrolled) .topbar { border-color: rgba(255, 255, 255, 0.14); }
.has-hero .site-header:not(.is-scrolled) .custom-logo { filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35)); }

.topbar { display: none; border-bottom: 1px solid var(--ra-line); font-size: 0.85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.topbar__tagline { margin: 0; opacity: 0.75; font-style: italic; }
.topbar .menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar .menu a { color: inherit; text-decoration: none; opacity: 0.8; }
.topbar .menu a:hover { opacity: 1; }

.header-main {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 64px;
	gap: 8px;
}
.header-main__right { display: flex; justify-content: flex-end; gap: 2px; }

.site-brand { text-align: center; line-height: 1; }
.site-title { margin: 0; font: 700 clamp(1.05rem, 4.8vw, 1.35rem)/1 var(--ra-font-head); letter-spacing: -0.01em; white-space: nowrap; }
.site-title a { color: var(--ra-text); text-decoration: none; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 46px; width: auto; transition: max-height 0.4s var(--ra-ease); }

.primary-nav { display: none; }

@media (min-width: 900px) {
	.topbar { display: block; transition: margin 0.4s var(--ra-ease), opacity 0.3s; }
	.site-header.is-scrolled .topbar { margin-top: -39px; opacity: 0; pointer-events: none; }
	.menu-toggle { display: none; }
	.header-main { min-height: 72px; }
	.site-title { font-size: 1.75rem; }
	.custom-logo { max-height: 64px; }
	.site-header.is-scrolled .custom-logo { max-height: 48px; }
	.primary-nav { display: block; }
}

.primary-menu {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	list-style: none;
	margin: 0;
	padding: 0 0 10px;
}
.primary-menu > li { position: relative; }
.primary-menu > li > a {
	position: relative;
	display: block;
	padding: 8px 14px;
	color: var(--ra-text);
	font: 500 0.98rem/1.2 var(--ra-font-head);
	letter-spacing: 0.02em;
	text-decoration: none;
}
.primary-menu > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--ra-gradient);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--ra-ease);
}
.primary-menu > li > a:hover::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.primary-menu .menu-item-has-children > a { padding-right: 26px; }
.primary-menu .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 10px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
}
.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 220px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: var(--ra-surface);
	border: 1px solid var(--ra-line);
	border-radius: 14px;
	box-shadow: var(--ra-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 0.25s, transform 0.25s var(--ra-ease), visibility 0.25s;
	z-index: 10;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-menu .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 9px;
	color: var(--ra-text);
	text-decoration: none;
	font-size: 0.95rem;
}
.primary-menu .sub-menu a:hover { background: var(--ra-mist); color: var(--ra-primary); }

/* Day / night toggle */
.scheme-toggle { position: relative; overflow: hidden; }
.scheme-toggle > span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 0.6s var(--ra-ease), opacity 0.4s; }
.scheme-toggle__sun { transform: translateY(120%) rotate(-90deg); opacity: 0; color: #ffc65c; }
.scheme-toggle__moon { transform: none; opacity: 1; }
[data-scheme="dark"] .scheme-toggle__sun { transform: none; opacity: 1; }
[data-scheme="dark"] .scheme-toggle__moon { transform: translateY(-120%) rotate(90deg); opacity: 0; }

/* Scheme switch sweep */
.scheme-sweep {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	background: radial-gradient(circle at var(--sx, 90%) var(--sy, 5%), rgba(47, 211, 154, 0.35), rgba(107, 79, 216, 0.25) 30%, transparent 60%);
	animation: ra-sweep 0.9s var(--ra-ease) forwards;
}
@keyframes ra-sweep { from { opacity: 0; transform: scale(0.6); } 40% { opacity: 1; } to { opacity: 0; transform: scale(1.4); } }

/* Drawer (phone menu) */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 12, 20, 0.55);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.35s;
}
.drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(88vw, 380px);
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: calc(var(--ra-admin) + 16px) 22px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--ra-bg);
	color: var(--ra-text);
	box-shadow: var(--ra-shadow-lg);
	transform: translateX(-102%);
	transition: transform 0.45s var(--ra-ease);
}
.drawer__panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--ra-gradient);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font: 700 1.2rem/1 var(--ra-font-head); }
.drawer-menu { list-style: none; margin: 0; padding: 0; }
.drawer-menu li { border-bottom: 1px solid var(--ra-line); position: relative; }
.drawer-menu a {
	display: block;
	padding: 14px 44px 14px 2px;
	color: var(--ra-text);
	font: 500 1.12rem/1.3 var(--ra-font-head);
	text-decoration: none;
}
.drawer-menu .sub-menu { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; display: none; }
.drawer-menu .sub-menu.is-open { display: block; }
.drawer-menu .sub-menu li { border: 0; }
.drawer-menu .sub-menu a { padding: 8px 2px; font-size: 1rem; color: var(--ra-muted); }
.drawer-menu--small a { font-size: 0.95rem; color: var(--ra-muted); padding-block: 10px; }
.submenu-toggle {
	position: absolute;
	right: 0;
	top: 4px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.submenu-toggle .ra-icon { width: 20px; height: 20px; transition: transform 0.3s; }
.submenu-toggle[aria-expanded="true"] .ra-icon { transform: rotate(180deg); }
.drawer.is-open .drawer-menu > li { animation: ra-rise 0.55s var(--ra-ease) both; animation-delay: calc(120ms + var(--i, 0) * 55ms); }

/* Search overlay */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: grid;
	place-items: start center;
	padding: calc(var(--ra-admin) + 18vh) var(--ra-gutter) 0;
	background: rgba(8, 17, 27, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 0.3s;
}
.search-overlay[hidden] { display: none; }
.search-overlay.is-open { opacity: 1; }
.search-overlay__inner { position: relative; width: min(720px, 100%); text-align: center; transform: translateY(20px); transition: transform 0.45s var(--ra-ease); }
.search-overlay.is-open .search-overlay__inner { transform: none; }
.search-overlay__label { color: var(--ra-aurora); font-size: 2rem; margin-bottom: 14px; }
.search-overlay .search-form__input { min-height: 64px; font-size: 1.2rem; padding-left: 26px; background: rgba(255, 255, 255, 0.96); color: #15242b; border: 0; }
.search-overlay .search-form__btn { width: 54px; height: 54px; right: 5px; }
.search-overlay__close { position: absolute; top: -64px; right: 0; color: #fff; }

/* 6. Cards ----------------------------------------------------------------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ra-surface);
	border-radius: var(--ra-radius);
	box-shadow: var(--ra-shadow);
	overflow: hidden;
	transition: transform 0.45s var(--ra-ease), box-shadow 0.45s var(--ra-ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--ra-shadow-lg); }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ra-mist); }
.card__media .post-image { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ra-ease); }
.card:hover .card__media .post-image { transform: scale(1.07); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.card__title { margin: 0; font-size: 1.28rem; line-height: 1.25; }
.card__title a {
	color: var(--ra-text);
	text-decoration: none;
	background: var(--ra-gradient) no-repeat 0 100% / 0 2px;
	transition: background-size 0.5s var(--ra-ease);
	padding-bottom: 2px;
}
.card:hover .card__title a { background-size: 100% 2px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .pill { position: relative; z-index: 2; }
.card__excerpt { margin: 0; color: var(--ra-muted); font-size: 0.98rem; }
.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; color: var(--ra-muted); font-size: 0.86rem; }
.dot { opacity: 0.6; margin-inline: 2px; }

.post-image--placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: radial-gradient(120% 90% at 20% 0%, rgba(47, 211, 154, 0.55), transparent 60%), radial-gradient(90% 80% at 90% 10%, rgba(107, 79, 216, 0.55), transparent 60%), var(--ra-night);
	color: rgba(255, 255, 255, 0.75);
}
.post-image--placeholder .ra-icon { width: 48px; height: 48px; }

.card--large .card__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.card--large .card__media { aspect-ratio: 16 / 11; }

.featured-grid { display: grid; gap: clamp(20px, 2.6vw, 30px); }
@media (min-width: 640px) and (max-width: 899px) {
	.featured-grid { grid-template-columns: 1fr 1fr; }
	.featured-grid .card--large { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
	.featured-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
	.featured-grid .card--large { grid-row: 1 / 3; }
	.card--row { flex-direction: row; }
	.card--row .card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 100%; }
	.card--row .card__body { padding: 22px; }
	.card--row .card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* 7. Homepage ------------------------------------------------------------- */

/* Hero */
.hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: max(560px, min(100svh, 940px));
	padding: calc(var(--header-h) + var(--ra-admin) + 40px) 0 clamp(150px, 22vw, 260px);
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background:
		radial-gradient(120% 80% at 50% 120%, #17375a 0%, transparent 60%),
		linear-gradient(180deg, #050b14 0%, #0a1a2b 45%, #10304a 100%);
}
.hero__sky { position: absolute; inset: 0; z-index: -1; }
.hero__canvas { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); max-width: none; opacity: 0.95; filter: blur(5px); }
.hero__stars {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,.8) 50%, transparent 51%),
		radial-gradient(1.4px 1.4px at 44% 12%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 63% 30%, rgba(255,255,255,.7) 50%, transparent 51%),
		radial-gradient(1.3px 1.3px at 78% 16%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 88% 44%, rgba(255,255,255,.8) 50%, transparent 51%),
		radial-gradient(1px 1px at 6% 52%, rgba(255,255,255,.6) 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 54% 56%, rgba(255,255,255,.6) 50%, transparent 51%),
		radial-gradient(1px 1px at 36% 26%, rgba(255,255,255,.9) 50%, transparent 51%),
		radial-gradient(1px 1px at 94% 8%, #fff 50%, transparent 51%);
	background-size: 520px 420px;
	opacity: 0.8;
	animation: ra-twinkle 6s ease-in-out infinite alternate;
}
.hero__glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(47, 211, 154, 0.18), transparent 60%);
	transition: background 0.2s;
}
/* CSS aurora (used when the canvas cannot run) */
.hero__sky::before,
.hero__sky::after {
	content: "";
	position: absolute;
	inset: -20% -10% 30%;
	background:
		radial-gradient(40% 50% at 30% 60%, rgba(47, 211, 154, 0.45), transparent 70%),
		radial-gradient(35% 45% at 65% 45%, rgba(38, 183, 176, 0.35), transparent 70%),
		radial-gradient(30% 40% at 80% 30%, rgba(107, 79, 216, 0.4), transparent 70%);
	filter: blur(30px);
	animation: ra-drift 18s ease-in-out infinite alternate;
	z-index: -1;
}
.hero__sky::after { animation-duration: 26s; animation-direction: alternate-reverse; opacity: 0.6; }
.hero.has-canvas .hero__sky::before,
.hero.has-canvas .hero__sky::after { opacity: 0.25; }

.hero__content { position: relative; text-align: center; max-width: 980px; }
.hero__kicker { margin: 0 0 10px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); color: var(--ra-aurora); text-shadow: 0 0 24px rgba(47, 211, 154, 0.5); }
.hero__title {
	margin: 0 auto 22px;
	max-width: 15ch;
	color: #fff;
	font-size: clamp(2.35rem, 1.2rem + 5vw, 5.2rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.025em;
	text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}
.hero__text { max-width: 56ch; margin: 0 auto 32px; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(150px, 26vw, 340px); pointer-events: none; }
.mtn { position: absolute; left: -2%; width: 104%; max-width: none; bottom: 0; will-change: transform; }
.mtn-1 { height: 100%; fill: #1b3d5c; opacity: 0.7; }
.mtn-2 { height: 88%; fill: #12304a; }
.mtn-2 .snow { fill: rgba(230, 245, 255, 0.55); }
.mtn-3 { height: 62%; fill: #0c2236; }
.mtn-4 { height: 40%; fill: var(--ra-bg); transition: fill 0.5s; }

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: clamp(24px, 5vw, 46px);
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 14px;
	z-index: 2;
}
.hero__scroll-line { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: ra-scroll-cue 1.8s var(--ra-ease) infinite; }
[data-scheme="dark"] .hero__scroll { border-color: rgba(255, 255, 255, 0.35); }

/* Marquee */
.marquee {
	position: relative;
	overflow: hidden;
	padding-block: 18px;
	border-block: 1px solid var(--ra-line);
	background: var(--ra-surface);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: ra-marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__word { padding-inline: 22px; font: 500 clamp(1.15rem, 1rem + 0.8vw, 1.6rem)/1 var(--ra-font-head); white-space: nowrap; }
.marquee__star { color: var(--ra-primary); font-size: 0.9rem; }

/* Press logos */
.press { text-align: center; }
.press__title { color: var(--ra-muted); font-size: 1.4rem; margin-bottom: 14px; }
.press__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 48px; list-style: none; margin: 0; padding: 0; }
.press__logos img { max-height: 38px; width: auto; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s, opacity 0.3s; }
.press__logos img:hover { filter: none; opacity: 1; }
[data-scheme="dark"] .press__logos img { filter: grayscale(1) invert(1); }

/* Category chips */
.chips-section { text-align: center; }
.chips-section__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 10px 20px;
	border-radius: 999px;
	background: var(--ra-surface);
	border: 1px solid var(--ra-line);
	color: var(--ra-text);
	font: 500 1rem/1 var(--ra-font-head);
	text-decoration: none;
	transition: transform 0.3s var(--ra-ease), box-shadow 0.3s, border-color 0.3s;
}
.chip:hover { color: var(--ra-text); transform: translateY(-3px); border-color: transparent; box-shadow: 0 0 0 2px var(--ra-aurora), 0 14px 30px -12px rgba(47, 211, 154, 0.6); }
.chip__count { display: grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 6px; border-radius: 999px; background: var(--ra-pill-bg); color: var(--ra-primary); font-size: 0.78rem; font-weight: 600; }

/* Promo cards */
.promo {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(300px, 34vw, 420px);
	border-radius: calc(var(--ra-radius) + 6px);
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background: linear-gradient(130deg, #0f3b36, #13506a 45%, #3e2f7a);
	background-size: 200% 200%;
	animation: ra-gradient-shift 14s ease-in-out infinite alternate;
	box-shadow: var(--ra-shadow);
}
.promo--2 { background-image: linear-gradient(130deg, #2b2161, #6b4fd8 40%, #1b8f86); }
.promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ra-ease); }
.promo:hover .promo__img { transform: scale(1.06); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 12, 20, 0) 20%, rgba(5, 12, 20, 0.78)); }
.promo__body { padding: clamp(24px, 3.5vw, 40px); max-width: 520px; }
.promo__title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin-bottom: 10px; }
.promo__text { color: rgba(255, 255, 255, 0.85); margin-bottom: 20px; }

/* Destinations */
.dest-grid { display: grid; gap: clamp(16px, 2.2vw, 26px); grid-template-columns: 1fr; }
@media (min-width: 520px) { .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .dest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dest-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: var(--ra-radius);
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	transform-style: preserve-3d;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.5s var(--ra-ease), box-shadow 0.5s;
	box-shadow: var(--ra-shadow);
}
@media (max-width: 519px) { .dest-tile { aspect-ratio: 16 / 11; } }
.dest-tile:hover { color: #fff; box-shadow: var(--ra-shadow-lg); }
.dest-tile__media, .dest-tile__media .post-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest-tile__media .post-image { transition: transform 1.2s var(--ra-ease); }
.dest-tile:hover .dest-tile__media .post-image { transform: scale(1.08); }
.dest-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 12, 20, 0.82)); }
.dest-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(47, 211, 154, 0.3), transparent 50%);
	opacity: 0;
	transition: opacity 0.4s;
}
.dest-tile:hover::before { opacity: 1; }
.dest-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; transform: translateZ(30px); }
.dest-tile__name { font: 600 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--ra-font-head); }
.dest-tile__count { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; opacity: 0.85; }
.dest-tile__count .ra-icon { width: 16px; height: 16px; transition: transform 0.3s var(--ra-ease); }
.dest-tile:hover .dest-tile__count .ra-icon { transform: translateX(5px); }

/* About */
.about__inner { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 860px) { .about__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); } }
.about__media { position: relative; max-width: min(440px, 78vw); margin-inline: auto; width: 100%; }
@media (max-width: 859px) { .about__media { max-width: min(340px, 78vw); } }
.about__img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--ra-radius) var(--ra-radius); }
.about__img--placeholder { display: grid; place-items: center; background: var(--ra-night); color: var(--ra-aurora); }
.about__img--placeholder .ra-icon { width: 64px; height: 64px; }
.about__ring {
	position: absolute;
	inset: -14px;
	border-radius: 214px 214px calc(var(--ra-radius) + 12px) calc(var(--ra-radius) + 12px);
	background: conic-gradient(from var(--ring, 0deg), var(--ra-aurora), var(--ra-teal), var(--ra-violet), var(--ra-dawn), var(--ra-aurora));
	filter: blur(18px);
	opacity: 0.55;
	animation: ra-ring 12s linear infinite;
}
@property --ring { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ra-ring { to { --ring: 360deg; } }
.about__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.about__text { color: var(--ra-muted); font-size: 1.1rem; margin-bottom: 24px; }

/* Newsletter band */
.news-band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(64px, 9vw, 120px); background: var(--ra-night); color: #fff; text-align: center; }
.news-band__sky { position: absolute; inset: -30%; z-index: -1; background: radial-gradient(30% 40% at 25% 40%, rgba(47, 211, 154, 0.45), transparent 70%), radial-gradient(30% 40% at 75% 55%, rgba(107, 79, 216, 0.45), transparent 70%), radial-gradient(25% 30% at 55% 20%, rgba(38, 183, 176, 0.35), transparent 70%); filter: blur(30px); animation: ra-drift 16s ease-in-out infinite alternate; }
.news-band__inner { max-width: 680px; }
.news-band__icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--ra-aurora); }
.news-band__title { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); }
.news-band__text { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; margin-bottom: 26px; }
.news-band .rac-news__row input[type="email"] { background: rgba(255, 255, 255, 0.95); border: 0; color: #15242b; }
.news-band .rac-news__note { color: rgba(255, 255, 255, 0.65); }

/* 8. Single post and pages ------------------------------------------------ */
.post-hero, .page-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(40px, 6vw, 84px) 0 clamp(28px, 4vw, 44px);
	text-align: center;
	overflow: hidden;
}
.post-hero__sky {
	position: absolute;
	inset: -10% -12%;
	z-index: -1;
	background:
		radial-gradient(50% 70% at 20% 0%, rgba(47, 211, 154, 0.18), transparent 70%),
		radial-gradient(45% 60% at 85% 10%, rgba(107, 79, 216, 0.16), transparent 70%);
	animation: ra-drift 22s ease-in-out infinite alternate;
}
.post-hero__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.post-hero__title, .page-hero__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 22px; }
.page-hero__lead { max-width: 60ch; margin-inline: auto; color: var(--ra-muted); font-size: 1.15rem; }
.page-hero__search { max-width: 520px; margin: 18px auto 0; }
.page-hero--archive { padding-bottom: 8px; }

.post-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; color: var(--ra-muted); font-size: 0.95rem; margin-bottom: 18px; }
.post-meta__author { display: inline-flex; align-items: center; gap: 10px; }
.post-meta__author a { color: var(--ra-text); font-weight: 600; text-decoration: none; }
.post-meta__avatar { border-radius: 50%; width: 36px; height: 36px; }
.post-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.post-meta__item .ra-icon { width: 17px; height: 17px; }
.post-meta__updated { font-style: italic; }

.post-cover { margin: 0 auto clamp(32px, 5vw, 60px); }
.post-cover__img { width: 100%; max-height: 78vh; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--ra-radius) + 4px); box-shadow: var(--ra-shadow-lg); }
.post-cover figcaption { margin-top: 10px; text-align: center; color: var(--ra-muted); font-size: 0.88rem; }

.post-layout { display: grid; gap: clamp(40px, 5vw, 64px); max-width: 1220px; }
.post-main { min-width: 0; max-width: var(--ra-measure); width: 100%; margin-inline: auto; }
@media (min-width: 1080px) {
	.has-sidebar .post-layout { grid-template-columns: minmax(0, 1fr) 320px; }
	.has-sidebar .post-main { margin-inline: 0 auto; }
}
.post-sidebar__inner { display: grid; gap: 28px; }
@media (min-width: 1080px) {
	.post-sidebar__inner { position: sticky; top: calc(var(--ra-admin) + 96px); }
}

.post-footer { margin-top: 48px; display: grid; gap: 32px; }
.post-footer__label { font-size: 1.5rem; color: var(--ra-primary); margin-bottom: 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-list a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ra-line); color: var(--ra-muted); text-decoration: none; font-size: 0.9rem; }
.tag-list a:hover { border-color: var(--ra-primary); color: var(--ra-primary); }

.post-nav { margin-block: clamp(40px, 6vw, 72px); }
.post-nav .nav-links { display: grid; gap: 16px; }
@media (min-width: 640px) { .post-nav .nav-links { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border-radius: var(--ra-radius); border: 1px solid var(--ra-line); text-decoration: none; color: var(--ra-text); transition: border-color 0.3s, transform 0.3s var(--ra-ease); }
.post-nav a:hover { border-color: var(--ra-primary); transform: translateY(-3px); }
.post-nav .nav-next a { text-align: right; align-items: flex-end; }
.post-nav__label { display: inline-flex; align-items: center; gap: 6px; color: var(--ra-primary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.post-nav__label .ra-icon { width: 16px; height: 16px; }
.post-nav__title { font: 600 1.1rem/1.3 var(--ra-font-head); }

.not-found { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(60px, 10vw, 140px) 20px; }
.not-found__code { font: 700 clamp(5rem, 3rem + 10vw, 11rem)/1 var(--ra-font-head); margin: 0; background: var(--ra-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found .search-form { max-width: 520px; margin: 24px auto 0; }

.empty-state { text-align: center; padding: 40px 0; max-width: 520px; margin-inline: auto; }
.empty-state__icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--ra-primary); }

/* 9. Post content --------------------------------------------------------- */
.entry-content {
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.78;
	overflow-wrap: break-word;
}
.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem); margin-top: 2em; }
.entry-content h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); margin-top: 1.8em; }
.entry-content h4 { font-size: 1.2rem; margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ra-primary) 45%, transparent); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content img { border-radius: var(--ra-radius-sm); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 10px; color: var(--ra-muted); font-size: 0.9rem; text-align: center; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--ra-primary); }
.entry-content hr { border: 0; height: 1px; background: var(--ra-line); margin-block: 2.5em; }
.entry-content blockquote, .entry-content .wp-block-quote {
	position: relative;
	margin-inline: 0;
	padding: 6px 0 6px 26px;
	border-left: 3px solid transparent;
	border-image: var(--ra-gradient) 1;
	font-family: var(--ra-font-head);
	font-size: 1.25em;
	line-height: 1.5;
}
.entry-content blockquote cite { display: block; margin-top: 8px; font: 500 0.9rem var(--ra-font-body); color: var(--ra-muted); }
.entry-content .wp-block-pullquote { border-block: 2px solid var(--ra-line); padding: 32px 0; text-align: center; }
.entry-content pre { padding: 18px; border-radius: 12px; background: var(--ra-mist); overflow-x: auto; font-size: 0.9rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--ra-line); text-align: left; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content iframe { max-width: 100%; }

.entry-content .alignwide { max-width: min(1100px, 100vw - 2 * var(--ra-gutter)); }
.entry-content .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
@media (max-width: 599px) { .entry-content .alignleft, .entry-content .alignright { float: none; margin-inline: 0; max-width: 100%; } }

/* Full width blocks break out only when there is no sidebar */
body:not(.has-sidebar) .entry-content .alignfull,
.entry-content--page .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}
.has-sidebar .entry-content .alignfull { width: 100%; margin-inline: 0; border-radius: var(--ra-radius); overflow: hidden; }
.entry-content .wp-block-cover { border-radius: var(--ra-radius); overflow: hidden; }
.entry-content .wp-block-cover.alignfull { border-radius: 0; }
.has-sidebar .entry-content .wp-block-cover.alignfull { border-radius: var(--ra-radius); }
.entry-content--full > * { max-width: none; }

.entry-content .wp-block-gallery { gap: 10px; }
.entry-content .wp-block-image img, .entry-content .wp-block-gallery img { cursor: zoom-in; }

/* Checklist */
.entry-content .is-style-checklist { list-style: none; padding: 18px 20px; border-radius: var(--ra-radius); background: var(--ra-mist); }
.entry-content .is-style-checklist li { position: relative; padding: 8px 0 8px 40px; margin: 0; border-bottom: 1px dashed var(--ra-line); cursor: pointer; transition: color 0.3s, opacity 0.3s; user-select: none; }
.entry-content .is-style-checklist li:last-child { border-bottom: 0; }
.entry-content .is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 50%;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border: 2px solid var(--ra-primary);
	border-radius: 8px;
	background: var(--ra-surface);
	transition: background-color 0.3s, transform 0.3s var(--ra-ease);
}
.entry-content .is-style-checklist li::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	width: 7px;
	height: 13px;
	margin-top: -9px;
	border: solid var(--ra-primary-ink);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.35s var(--ra-ease);
}
.entry-content .is-style-checklist li.is-checked { color: var(--ra-muted); text-decoration: line-through; text-decoration-color: var(--ra-primary); }
.entry-content .is-style-checklist li.is-checked::before { background: var(--ra-primary); transform: scale(1.08); }
.entry-content .is-style-checklist li.is-checked::after { transform: rotate(45deg) scale(1); }

/* Note card */
.entry-content .is-style-note-card { padding: 22px 24px; border-radius: var(--ra-radius); background: var(--ra-mist); border-left: 4px solid var(--ra-primary); }
.entry-content .is-style-note-card > :last-child { margin-bottom: 0; }
.entry-content .is-style-note-card h4 { margin-top: 0; color: var(--ra-primary); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* Handwritten quote */
.entry-content .is-style-handwritten { border: 0; padding-left: 0; text-align: center; font-family: var(--ra-font-hand); font-size: 2em; line-height: 1.2; color: var(--ra-primary); }

/* Trek day headings + trail */
.entry-content .is-style-trek-day, .entry-content .trail-day { position: relative; }
.trek-day-meta { color: var(--ra-primary); font-size: 0.85em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.entry-content.has-trail { position: relative; }
.trail { display: none; }
@media (min-width: 760px) {
	.entry-content.has-trail { padding-left: 52px; }
	.trail { display: block; position: absolute; left: 14px; width: 4px; pointer-events: none; }
	.trail__line { position: absolute; inset: 0; border-radius: 4px; background-image: linear-gradient(var(--ra-line) 50%, transparent 50%); background-size: 4px 12px; }
	.trail__fill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(180deg, var(--ra-aurora), var(--ra-teal), var(--ra-violet)); transform-origin: top; transform: scaleY(var(--trail, 0)); box-shadow: 0 0 14px rgba(47, 211, 154, 0.55); }
	.entry-content .trail-day::before {
		content: "";
		position: absolute;
		left: -50px;
		top: 0.15em;
		width: 28px;
		height: 28px;
		border-radius: 50%;
		background: var(--ra-bg);
		border: 3px solid var(--ra-line);
		box-sizing: border-box;
		transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ra-ease);
	}
	.entry-content .trail-day.is-reached::before { border-color: var(--ra-aurora); background: var(--ra-aurora); box-shadow: 0 0 0 6px rgba(47, 211, 154, 0.18), 0 0 20px rgba(47, 211, 154, 0.7); transform: scale(1.05); }
}
@media (max-width: 759px) {
	.entry-content .trail-day { padding-top: 34px; }
	.entry-content .trail-day::before { content: attr(data-day); position: absolute; top: 0; left: 0; padding: 3px 12px; border-radius: 999px; background: var(--ra-gradient); color: #06201b; font: 700 0.72rem/1.4 var(--ra-font-head); letter-spacing: 0.08em; text-transform: uppercase; }
}

/* Old posts that were pasted with their own fonts/colours */
.tame-inline-styles .entry-content [style*="font-family"] { font-family: inherit !important; }
.tame-inline-styles .entry-content :is(h1, h2, h3, h4, h5, h6)[style] { font-family: var(--ra-font-head) !important; color: var(--ra-text) !important; border-color: var(--ra-line) !important; }
.tame-inline-styles .entry-content [style*="color"]:not(.has-text-color):not(.has-background):not(.wp-block-cover):not(.wp-block-cover *) { color: inherit !important; }
.tame-inline-styles .entry-content [style*="text-transform: uppercase"], .tame-inline-styles .entry-content [style*="text-transform:uppercase"] { color: var(--ra-primary) !important; }
.tame-inline-styles .entry-content :is(h1, h2, h3, h4, h5, h6)[style*="uppercase"] { color: var(--ra-text) !important; }
.tame-inline-styles .entry-content [style*="background-color"]:not(.has-background):not(.wp-block-cover):not(.wp-block-cover *) { background-color: var(--ra-mist) !important; border-color: var(--ra-line) !important; border-radius: var(--ra-radius) !important; }
.tame-inline-styles .entry-content [style*="border-left"] { border-left-color: var(--ra-primary) !important; }
.tame-inline-styles .entry-content p[style*="font-size: 15px"], .tame-inline-styles .entry-content p[style*="font-size:15px"],
.tame-inline-styles .entry-content p[style*="font-size: 16px"], .tame-inline-styles .entry-content p[style*="font-size:16px"],
.tame-inline-styles .entry-content p[style*="font-size: 17px"], .tame-inline-styles .entry-content p[style*="font-size:17px"] { font-size: inherit !important; line-height: inherit !important; }
.tame-inline-styles .entry-content [style*="font-style: italic"][style*="font-size: 12px"] { font-size: 0.88rem !important; color: var(--ra-muted) !important; }
.tame-inline-styles .entry-content img[style] { border-radius: var(--ra-radius-sm) !important; }

/* 10. Comments, pagination, widgets --------------------------------------- */
.comments { margin-block: 40px 80px; }
.comments__title, .comment-reply-title { font-size: 1.6rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(16px, 4vw, 48px); }
.comment-body { position: relative; padding: 20px 0 20px 64px; border-bottom: 1px solid var(--ra-line); }
.comment-author .avatar { position: absolute; left: 0; top: 22px; border-radius: 50%; }
.comment-author .fn { font: 600 1rem var(--ra-font-head); font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 0.82rem; margin-bottom: 8px; }
.comment-metadata a { color: var(--ra-muted); text-decoration: none; }
.comment-content p { margin-bottom: 0.6em; }
.reply a { font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.comment-respond { margin-top: 36px; padding: clamp(20px, 3vw, 32px); border-radius: var(--ra-radius); background: var(--ra-mist); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-notes, .logged-in-as { color: var(--ra-muted); font-size: 0.92rem; }
.bypostauthor > .comment-body .fn::after { content: " ✦ author"; color: var(--ra-primary); font-size: 0.8rem; }

.pagination { margin-top: clamp(40px, 5vw, 64px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding-inline: 10px;
	border-radius: 999px;
	border: 1px solid var(--ra-line);
	color: var(--ra-text);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.page-numbers .ra-icon { width: 18px; height: 18px; }
.page-numbers:hover { border-color: var(--ra-primary); color: var(--ra-primary); }
.page-numbers.current { background: var(--ra-primary); border-color: var(--ra-primary); color: var(--ra-primary-ink); }
.page-numbers.dots { border: 0; }

.widget { padding: 24px; border-radius: var(--ra-radius); background: var(--ra-surface); box-shadow: var(--ra-shadow); font-size: 0.98rem; }
.widget-title { font-size: 1.15rem; margin-bottom: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--ra-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget .search-form__input { min-height: 46px; }
.widget_media_image img { border-radius: var(--ra-radius-sm); }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 8vw, 96px) 28px; background: #08121c; color: rgba(255, 255, 255, 0.78); font-size: 0.97rem; }
.footer-aurora { position: absolute; left: -10%; right: -10%; top: -120px; height: 260px; z-index: -1; background: radial-gradient(40% 60% at 30% 100%, rgba(47, 211, 154, 0.35), transparent 70%), radial-gradient(35% 60% at 70% 100%, rgba(107, 79, 216, 0.35), transparent 70%); filter: blur(40px); animation: ra-drift 20s ease-in-out infinite alternate; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ra-gradient); opacity: 0.8; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--ra-aurora); }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; }
.site-footer .widget-title { color: #fff; }
.site-footer .widget li { border-color: rgba(255, 255, 255, 0.1); }
.footer-top { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.footer-widgets { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer-widgets { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.footer-brand__name { font: 700 1.7rem/1 var(--ra-font-head); color: #fff; }
.footer-brand__text { margin: 14px 0 20px; max-width: 36ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.88rem; }
.footer-nav .menu { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.copyright { margin: 0; color: rgba(255, 255, 255, 0.6); }
.copyright a { color: rgba(255, 255, 255, 0.8); }

.social-icons { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social-icons a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ra-ease); }
.social-icons a:hover { transform: translateY(-3px); background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; }
.social-icons .ra-icon { width: 20px; height: 20px; }
.social-icons--small a { width: 32px; height: 32px; }
.social-icons--small .ra-icon { width: 17px; height: 17px; }
.site-footer .social-icons a { background: rgba(255, 255, 255, 0.07); }
.site-footer .social-icons a:hover { background: var(--ra-aurora); color: #06201b; }

.to-top {
	position: fixed;
	right: clamp(14px, 3vw, 28px);
	bottom: clamp(14px, 3vw, 28px);
	z-index: 90;
	width: 48px;
	height: 48px;
	background: var(--ra-surface);
	color: var(--ra-text);
	box-shadow: var(--ra-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(0.9);
	transition: opacity 0.3s, transform 0.4s var(--ra-ease), visibility 0.3s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ra-primary); color: var(--ra-primary-ink); }

/* Reading progress */
.reading-progress { position: fixed; top: var(--ra-admin); left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--ra-gradient); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px rgba(47, 211, 154, 0.7); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(4, 9, 15, 0.94); opacity: 0; transition: opacity 0.3s; touch-action: pan-y; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 94vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; transform: scale(0.94); transition: transform 0.45s var(--ra-ease); }
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__img { max-width: 94vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox__caption { margin-top: 12px; color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; text-align: center; max-width: 70ch; }
.lightbox__btn { position: absolute; color: #fff; background: rgba(255, 255, 255, 0.1); }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { top: calc(var(--ra-admin) + 14px); right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: calc(var(--ra-admin) + 24px); left: 22px; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; } }

/* 12. Motion ----------------------------------------------------------------- */
@keyframes ra-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ra-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ra-word { from { opacity: 0; transform: translateY(0.6em) rotate(3deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ra-twinkle { from { opacity: 0.45; } to { opacity: 0.95; } }
@keyframes ra-drift { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
@keyframes ra-marquee { to { transform: translateX(-50%); } }
@keyframes ra-gradient-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes ra-spin { to { transform: rotate(360deg); } }
@keyframes ra-scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Scroll reveal (only when JS runs and motion is allowed) */
.js body:not(.motion-off) [data-reveal] {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.9s var(--ra-ease), transform 0.9s var(--ra-ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}
.js body.motion-gentle [data-reveal] { transform: none; }
.js body:not(.motion-off) [data-reveal].is-visible { opacity: 1; transform: none; }
.js body .card[data-reveal].is-visible:hover { transform: translateY(-6px); transition-delay: 0s; }
.js body .dest-tile[data-reveal].is-visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js body .dest-tile[data-reveal].is-visible.is-tilting { transition: transform 0.15s linear, opacity 0.9s, box-shadow 0.5s; }

/* Load-in for hero texts */
.js body:not(.motion-off) [data-hero-in] { animation: ra-rise 0.9s var(--ra-ease) both; animation-delay: calc(150ms + var(--i, 0) * 120ms); }
.js body:not(.motion-off) [data-split] .w { display: inline-block; animation: ra-word 0.9s var(--ra-ease) both; animation-delay: calc(250ms + var(--w, 0) * 70ms); }
.js body.motion-gentle [data-split] .w { animation-name: ra-fade; }

/* Photos in posts fade in */
.js body:not(.motion-off) .entry-content img.ra-fade { opacity: 0; transform: scale(0.985); transition: opacity 1s var(--ra-ease), transform 1.2s var(--ra-ease); }
.js body:not(.motion-off) .entry-content img.ra-fade.is-visible { opacity: 1; transform: none; }

/* Turn motion off */
body.motion-off *, body.motion-off *::before, body.motion-off *::after { animation: none !important; }
body.motion-gentle .hero__sky::before, body.motion-gentle .hero__sky::after { animation-duration: 40s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.js body [data-reveal], .js body .entry-content img.ra-fade { opacity: 1 !important; transform: none !important; }
	.marquee__track { animation: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
	@view-transition { navigation: auto; }
}

::view-transition-old(root) { animation: 0.25s ease both ra-vt-out; }
::view-transition-new(root) { animation: 0.35s ease both ra-vt-in; }
@keyframes ra-vt-out { to { opacity: 0; } }
@keyframes ra-vt-in { from { opacity: 0; } }

/* Print */
@media print {
	.site-header, .site-footer, .post-sidebar, .related, .comments, .to-top, .reading-progress, .rac-share, .post-nav { display: none !important; }
	.site-main { padding: 0; }
	.js body [data-reveal], .entry-content img.ra-fade { opacity: 1 !important; transform: none !important; }
}
