/*
Theme Name: Northline Passage
Description: A mobile-first classic WordPress travel journal theme with dynamic menus, categories, fallback imagery, and a premium expedition-inspired layout.
Author: Mira Vale Studio
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: rct-theme
*/

:root {
	--rct-ink: #05070a;
	--rct-muted: #5e6673;
	--rct-blue: #1688f2;
	--rct-blue-dark: #043357;
	--rct-ice: #eef5ff;
	--rct-lime: #dfff6b;
	--rct-cloud: #ffffff;
	--rct-line: rgba(5, 7, 10, 0.12);
	--rct-glass: rgba(255, 255, 255, 0.14);
	--rct-shadow: 0 24px 70px rgba(5, 20, 40, 0.16);
	--rct-radius: 8px;
	--rct-max: 1184px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--rct-ink);
	background: var(--rct-cloud);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

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

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

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

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

.rct-site {
	min-height: 100vh;
	overflow-x: hidden;
}

.rct-header {
	z-index: 30;
	width: 100%;
	padding: 18px 16px;
}

.rct-site--home .rct-header {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--rct-cloud);
}

.rct-site--inner .rct-header {
	position: sticky;
	top: 0;
	color: var(--rct-ink);
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid rgba(5, 7, 10, 0.08);
	backdrop-filter: blur(18px);
}

.rct-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: var(--rct-max);
	margin: 0 auto;
}

.rct-brand {
	position: relative;
	z-index: 36;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 1.72rem;
	font-weight: 700;
	line-height: 1;
}

.rct-brand__text {
	display: inline-block;
	overflow-wrap: anywhere;
}

.rct-brand__logo {
	width: auto;
	max-width: 210px;
	max-height: 58px;
	object-fit: contain;
}

.rct-nav {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	left: 0;
	display: none;
	padding: 12px;
	color: var(--rct-ink);
	background: var(--rct-cloud);
	border: 1px solid rgba(5, 7, 10, 0.1);
	border-radius: 20px;
	box-shadow: var(--rct-shadow);
}

.rct-header--nav-open .rct-nav,
.rct-nav[data-rct-open="true"] {
	display: block;
}

.rct-nav__list,
.rct-nav__submenu {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.rct-nav__submenu {
	padding: 6px 0 4px 14px;
}

.rct-nav__item {
	position: relative;
}

.rct-nav__link {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 12px;
	font-size: 0.98rem;
	font-weight: 600;
	border-radius: 999px;
	transition: background 180ms ease, color 180ms ease;
}

.rct-nav__link:hover,
.rct-nav__link:focus {
	color: var(--rct-blue);
	background: rgba(22, 136, 242, 0.08);
	outline: none;
}

.rct-header__cta {
	display: none;
}

.rct-nav-toggle {
	position: relative;
	z-index: 36;
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	color: inherit;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.56);
	border-radius: 999px;
	box-shadow: 0 14px 32px rgba(2, 18, 38, 0.2);
}

.rct-site--inner .rct-nav-toggle {
	background: var(--rct-ice);
	border-color: rgba(5, 7, 10, 0.1);
	box-shadow: none;
}

.rct-nav-toggle__line {
	display: block;
	width: 18px;
	height: 2px;
	margin: 2px 0;
	background: currentColor;
	border-radius: 999px;
	transition: transform 180ms ease, opacity 180ms ease;
}

.rct-header--nav-open .rct-nav-toggle__line:nth-child(2) {
	transform: translateY(6px) rotate(45deg);
}

.rct-header--nav-open .rct-nav-toggle__line:nth-child(3) {
	opacity: 0;
}

.rct-header--nav-open .rct-nav-toggle__line:nth-child(4) {
	transform: translateY(-6px) rotate(-45deg);
}

.rct-main {
	background: var(--rct-cloud);
}

.rct-hero {
	position: relative;
	min-height: 860px;
	color: var(--rct-cloud);
	background-image: var(--rct-hero-image);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
}

.rct-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(1, 15, 32, 0.16) 0%, rgba(1, 12, 25, 0.26) 48%, rgba(0, 0, 0, 0.82) 100%),
		radial-gradient(circle at 78% 14%, rgba(126, 233, 255, 0.38), transparent 32%);
}

.rct-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	max-width: var(--rct-max);
	min-height: 860px;
	padding: 126px 16px 52px;
	margin: 0 auto;
}

.rct-hero__wordmark {
	align-self: start;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 4.6rem;
	font-weight: 800;
	line-height: 0.86;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.rct-hero__content {
	align-self: end;
	max-width: 720px;
}

.rct-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 8px 18px;
	margin: 0 0 22px;
	color: var(--rct-ink);
	font-size: 0.98rem;
	font-weight: 650;
	background: var(--rct-cloud);
	border: 1px solid rgba(5, 7, 10, 0.18);
	border-radius: 999px;
}

.rct-pill--glass {
	color: var(--rct-cloud);
	background: var(--rct-glass);
	border-color: rgba(255, 255, 255, 0.32);
	backdrop-filter: blur(14px);
}

.rct-pill__line {
	width: 18px;
	height: 1px;
	background: currentColor;
	opacity: 0.82;
}

.rct-hero__title {
	max-width: 820px;
	margin: 0;
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1.04;
	overflow-wrap: anywhere;
}

.rct-hero__text {
	max-width: 620px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 1.05rem;
}

.rct-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 10px 10px 10px 24px;
	margin-top: 26px;
	font-weight: 700;
	border: 1px solid transparent;
	border-radius: 999px;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.rct-button:hover,
.rct-button:focus {
	transform: translateY(-1px);
	outline: none;
}

.rct-button--blue {
	color: var(--rct-cloud);
	background: var(--rct-blue);
	box-shadow: 0 18px 36px rgba(22, 136, 242, 0.32);
}

.rct-button--outline {
	color: var(--rct-ink);
	background: var(--rct-cloud);
	border-color: rgba(5, 7, 10, 0.2);
}

.rct-arrow {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	color: var(--rct-blue);
	background: var(--rct-cloud);
	border-radius: 999px;
}

.rct-button--outline .rct-arrow {
	color: var(--rct-cloud);
	background: var(--rct-blue);
}

.rct-header__cta .rct-arrow {
	width: 42px;
	height: 42px;
}

.rct-hero-card {
	align-self: end;
	width: min(100%, 360px);
	padding: 10px;
	margin: 0 0 0 auto;
	color: var(--rct-ink);
	background: var(--rct-cloud);
	border-radius: var(--rct-radius);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.rct-hero-card__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--rct-radius);
}

.rct-hero-card__body {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 4px 2px;
}

.rct-hero-card__play {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	color: var(--rct-cloud);
	background: var(--rct-blue);
	border-radius: 999px;
}

.rct-hero-card__title {
	margin: 0;
	font-weight: 700;
}

.rct-intro,
.rct-posts,
.rct-archive {
	max-width: var(--rct-max);
	padding: 86px 16px 0;
	margin: 0 auto;
}

.rct-section-head {
	max-width: 860px;
}

.rct-section-head--center {
	margin: 0 auto;
	text-align: center;
}

.rct-section-head--split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	max-width: none;
	align-items: end;
}

.rct-section-head__title {
	margin: 0;
	font-size: 2.72rem;
	font-weight: 650;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.rct-section-head__text {
	max-width: 720px;
	margin: 18px auto 0;
	color: var(--rct-muted);
	font-size: 1.05rem;
}

.rct-mosaic {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	margin-top: 56px;
}

.rct-mosaic__panel {
	min-height: 260px;
	overflow: hidden;
	background: var(--rct-ice);
	border-radius: var(--rct-radius);
}

.rct-mosaic__panel--stat {
	padding: 24px;
}

.rct-mosaic__panel--lime {
	background: linear-gradient(135deg, var(--rct-ice), rgba(223, 255, 107, 0.42));
}

.rct-mosaic__panel--image {
	min-height: 420px;
}

.rct-mosaic__number {
	margin: 0;
	font-size: 2.42rem;
	font-weight: 650;
	line-height: 1;
}

.rct-mosaic__number span {
	color: var(--rct-blue);
}

.rct-mosaic__label {
	margin: 12px 0 26px;
	color: #303844;
	font-size: 1.08rem;
}

.rct-mosaic__small-image,
.rct-mosaic__large-image {
	width: 100%;
	object-fit: cover;
	border-radius: var(--rct-radius);
}

.rct-mosaic__small-image {
	aspect-ratio: 16 / 9;
}

.rct-mosaic__large-image {
	height: 100%;
	min-height: 420px;
}

.rct-post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin-top: 36px;
}

.rct-post-card {
	position: relative;
	overflow: hidden;
	background: var(--rct-cloud);
	border: 1px solid rgba(5, 7, 10, 0.12);
	border-radius: var(--rct-radius);
	box-shadow: 0 16px 40px rgba(5, 20, 40, 0.08);
}

.rct-post-card__media {
	position: relative;
	overflow: hidden;
	background: var(--rct-blue-dark);
}

.rct-post-card__image-link {
	display: block;
}

.rct-post-card__image {
	width: 100%;
	aspect-ratio: 16 / 12;
	object-fit: cover;
	transform: scale(1.01);
	transition: transform 240ms ease;
}

.rct-post-card:hover .rct-post-card__image {
	transform: scale(1.045);
}

.rct-post-card__media::after {
	position: absolute;
	inset: 0;
	pointer-events: none;
	content: "";
	background: linear-gradient(180deg, rgba(2, 12, 24, 0.12), rgba(2, 12, 24, 0.42));
}

.rct-post-card__chips,
.rct-single__chips,
.rct-footer__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rct-post-card__chips {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	right: 14px;
}

.rct-chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 13px;
	color: var(--rct-cloud);
	font-size: 0.88rem;
	font-weight: 700;
	background: rgba(5, 7, 10, 0.36);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	backdrop-filter: blur(12px);
}

.rct-chip:hover,
.rct-chip:focus {
	background: var(--rct-blue);
	outline: none;
}

.rct-chip--muted {
	color: var(--rct-ink);
	background: var(--rct-lime);
	border-color: rgba(5, 7, 10, 0.1);
}

.rct-chip--light {
	color: var(--rct-ink);
	background: rgba(255, 255, 255, 0.82);
	border-color: rgba(255, 255, 255, 0.3);
}

.rct-post-card__body {
	padding: 24px;
}

.rct-post-card__date,
.rct-single__date {
	display: block;
	margin: 0 0 10px;
	color: var(--rct-muted);
	font-size: 0.92rem;
	font-weight: 650;
}

.rct-post-card__title {
	margin: 0;
	font-size: 1.46rem;
	line-height: 1.2;
}

.rct-post-card__title-link:hover,
.rct-post-card__title-link:focus {
	color: var(--rct-blue);
	outline: none;
}

.rct-post-card__excerpt {
	margin: 14px 0 0;
	color: var(--rct-muted);
}

.rct-main--archive,
.rct-main--single {
	padding-bottom: 82px;
}

.rct-main--archive .rct-archive {
	padding-top: 72px;
}

.rct-single {
	width: min(80vw, 1040px);
	padding-top: 76px;
	margin: 0 auto;
}

.rct-single__header {
	width: min(80vw, 980px);
	margin: 0 auto 42px;
}

.rct-single__chips .rct-chip {
	color: var(--rct-ink);
	background: var(--rct-ice);
	border-color: rgba(5, 7, 10, 0.12);
}

.rct-single__title {
	max-width: 960px;
	margin: 0;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.rct-single__content {
	width: min(80vw, 900px);
	margin: 0 auto;
	color: #1c2530;
	font-size: 1.08rem;
}

.rct-single__content > * {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.rct-single__content h2,
.rct-single__content h3,
.rct-single__content h4 {
	color: var(--rct-ink);
	line-height: 1.18;
}

.rct-single__content a {
	color: var(--rct-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.rct-single__content img {
	border-radius: var(--rct-radius);
}

.rct-single__content blockquote {
	padding: 22px 24px;
	margin-right: 0;
	margin-left: 0;
	background: var(--rct-ice);
	border-left: 4px solid var(--rct-blue);
	border-radius: var(--rct-radius);
}

.rct-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
}

.rct-single__nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	width: min(80vw, 900px);
	padding-top: 44px;
	margin: 0 auto;
}

.rct-single__nav-link {
	display: block;
	min-height: 84px;
	padding: 18px;
	background: var(--rct-ice);
	border: 1px solid rgba(5, 7, 10, 0.1);
	border-radius: var(--rct-radius);
}

.rct-single__nav-link:hover,
.rct-single__nav-link:focus {
	border-color: rgba(22, 136, 242, 0.42);
	outline: none;
}

.rct-single__nav-label {
	display: block;
	color: var(--rct-muted);
	font-size: 0.86rem;
	font-weight: 700;
	text-transform: uppercase;
}

.rct-single__nav-title {
	display: block;
	margin-top: 4px;
	font-weight: 700;
}

.rct-footer {
	margin-top: 96px;
	color: var(--rct-cloud);
	background: #05070a;
}

.rct-footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	max-width: var(--rct-max);
	padding: 54px 16px;
	margin: 0 auto;
}

.rct-footer__title {
	display: inline-flex;
	margin-bottom: 12px;
	font-size: 1.55rem;
	font-weight: 750;
	line-height: 1;
}

.rct-footer__text,
.rct-footer__copyright {
	max-width: 460px;
	margin: 0;
	color: rgba(255, 255, 255, 0.68);
}

.rct-footer__label {
	margin: 0 0 12px;
	font-weight: 750;
}

.rct-footer__meta {
	align-self: end;
}

@media (min-width: 700px) {
	.rct-header {
		padding-right: 28px;
		padding-left: 28px;
	}

	.rct-hero__inner {
		padding-right: 28px;
		padding-left: 28px;
	}

	.rct-hero__wordmark {
		font-size: 7.8rem;
	}

	.rct-hero__title {
		font-size: 4.62rem;
	}

	.rct-section-head__title {
		font-size: 3.45rem;
	}

	.rct-mosaic {
		grid-template-columns: 1fr 1.1fr 1fr;
	}

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

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

	.rct-single__nav-item--next {
		text-align: right;
	}

	.rct-footer__inner {
		grid-template-columns: 1.2fr 1fr;
	}
}

@media (min-width: 980px) {
	.rct-header {
		padding-top: 22px;
		padding-bottom: 22px;
	}

	.rct-brand {
		font-size: 2rem;
	}

	.rct-nav {
		position: static;
		display: block;
		flex: 1 1 auto;
		max-width: 640px;
		padding: 0 16px;
		color: inherit;
		background: rgba(255, 255, 255, 0.08);
		border-color: rgba(255, 255, 255, 0.2);
		border-radius: 999px;
		box-shadow: none;
		backdrop-filter: blur(16px);
	}

	.rct-site--inner .rct-nav {
		background: var(--rct-ice);
		border-color: rgba(5, 7, 10, 0.08);
	}

	.rct-nav__list {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 8px;
	}

	.rct-nav__submenu {
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		display: none;
		min-width: 210px;
		padding: 10px;
		color: var(--rct-ink);
		background: var(--rct-cloud);
		border: 1px solid rgba(5, 7, 10, 0.1);
		border-radius: var(--rct-radius);
		box-shadow: var(--rct-shadow);
	}

	.rct-nav__item--has-children:hover > .rct-nav__submenu,
	.rct-nav__item--has-children:focus-within > .rct-nav__submenu {
		display: flex;
	}

	.rct-nav__link {
		min-height: 48px;
		padding-right: 14px;
		padding-left: 14px;
		font-size: 0.96rem;
	}

	.rct-site--home .rct-nav__link:hover,
	.rct-site--home .rct-nav__link:focus {
		color: var(--rct-cloud);
		background: rgba(255, 255, 255, 0.12);
	}

	.rct-header__cta {
		display: inline-flex;
		align-items: center;
		gap: 12px;
		min-height: 54px;
		padding: 8px 8px 8px 22px;
		font-weight: 700;
		background: rgba(255, 255, 255, 0.1);
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 999px;
		backdrop-filter: blur(16px);
	}

	.rct-site--inner .rct-header__cta {
		background: var(--rct-ink);
		border-color: var(--rct-ink);
		color: var(--rct-cloud);
	}

	.rct-nav-toggle {
		display: none;
	}

	.rct-hero {
		min-height: 900px;
	}

	.rct-hero__inner {
		grid-template-columns: minmax(0, 1fr) 360px;
		min-height: 900px;
	}

	.rct-hero__wordmark {
		grid-column: 1 / -1;
		font-size: 11.9rem;
	}

	.rct-hero__content {
		grid-column: 1;
	}

	.rct-hero-card {
		grid-column: 2;
	}

	.rct-section-head--split {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.rct-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rct-post-card:first-child {
		grid-column: span 2;
	}

	.rct-post-card:first-child .rct-post-card__image {
		aspect-ratio: 16 / 8.4;
	}

	.rct-footer__inner {
		grid-template-columns: 1.2fr 1fr 0.8fr;
	}
}

@media (max-width: 420px) {
	.rct-header {
		padding-right: 14px;
		padding-left: 14px;
	}

	.rct-brand {
		max-width: 240px;
		font-size: 1.58rem;
	}

	.rct-hero {
		min-height: 820px;
	}

	.rct-hero__inner {
		min-height: 820px;
	}

	.rct-hero__wordmark {
		font-size: 4rem;
	}

	.rct-hero__title {
		font-size: 2.76rem;
	}

	.rct-section-head__title {
		font-size: 2.18rem;
	}

	.rct-single__title {
		font-size: 2.14rem;
	}

	.rct-post-card__body {
		padding: 20px;
	}
}
