/* ==========================================================================
   pages.css — layouts used by one page type
   --------------------------------------------------------------------------
   1. Home
   2. Trip page (itinerary, guides, timeline)
   3. Print page
   4. Blog story (article + "Written by" card + contents)
   5. Contact
   6. Enquiry blocks (trip, print, bespoke)
   7. Pagination
   ========================================================================== */

/* Keeps a column in view while its neighbour scrolls (desktop only). */
.sst-sticky {
	position: sticky;
	top: calc(var(--sst-header-h) + 24px);
}

@media (max-width: 900px) {
	.sst-sticky {
		position: static;
	}
}


/* 1. Home
   ========================================================================== */

/* Prints teaser: intro on the left, 2×2 prints on the right. */
.sst-home-prints__grid {
	display: grid;
	grid-template-columns: .8fr 1.4fr;
	align-items: center;
	gap: clamp(40px, 6vw, 90px);
}

.sst-home-prints__intro .sst-heading {
	margin-bottom: 32px;
}

@media (max-width: 900px) {
	.sst-home-prints__grid {
		grid-template-columns: 1fr;
	}
}

/* Stories carousel sits on dark: cards need light titles. */
.sst-home-stories .sst-post-card__title {
	color: var(--sst-white);
}


/* 2. Trip page
   ========================================================================== */

.sst-trip-plan {
	display: grid;
	grid-template-columns: .85fr 1.4fr;
	align-items: start;
	gap: clamp(40px, 6vw, 100px);
}

.sst-trip-plan__text {
	margin-top: 24px;
	color: var(--sst-muted);
	font-weight: 300;
}

@media (max-width: 900px) {
	.sst-trip-plan {
		grid-template-columns: 1fr;
	}
}

/* Guides card */
.sst-guides {
	margin-bottom: 48px;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--sst-radius);
	background: var(--sst-white);
	box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .25);
}

.sst-guides__title {
	margin-bottom: 24px;
	font-size: 1.6rem;
}

.sst-guide {
	display: flex;
	gap: 18px;
}

.sst-guide + .sst-guide {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--sst-line);
}

.sst-guide__photo {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.sst-guide__name {
	margin-bottom: 4px;
	font-weight: 600;
}

.sst-guide__bio {
	font-size: .9375rem;
	color: var(--sst-muted);
}

/* Day-by-day timeline. The gold progress line grows with scroll (motion.js). */
.sst-timeline {
	position: relative;
	padding-left: 44px;
}

.sst-timeline__line {
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 7px;
	width: 1px;
	background: var(--sst-line);
}

.sst-timeline__progress {
	position: absolute;
	inset: 0;
	background: var(--sst-gold);
	transform: scaleY(0);
	transform-origin: top center;
}

.sst-timeline__list {
	list-style: none;
}

.sst-timeline__item {
	position: relative;
	padding-bottom: clamp(32px, 4vw, 48px);
}

.sst-timeline__item:last-child {
	padding-bottom: 0;
}

.sst-timeline__dot {
	position: absolute;
	top: 8px;
	left: -44px;
	width: 15px;
	height: 15px;
	border: 1px solid var(--sst-gold);
	border-radius: 50%;
	background: var(--sst-paper);
}

.sst-timeline__dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--sst-gold);
}

.sst-timeline__date {
	margin-bottom: 10px;
	font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem);
}

.sst-timeline__text {
	color: var(--sst-muted);
	font-weight: 300;
}


/* 3. Print page
   ========================================================================== */

.sst-print-hero {
	padding-block: var(--sst-section);
	background: var(--sst-ink);
	color: var(--sst-white);
}

.sst-print-hero__grid {
	display: grid;
	grid-template-columns: .8fr 1.5fr;
	align-items: center;
	gap: clamp(36px, 6vw, 90px);
}

.sst-print-hero__title {
	margin-bottom: 20px;
	font-size: var(--sst-fs-h1);
}

.sst-print-hero .sst-meta {
	color: var(--sst-muted-light);
}

.sst-print-hero .sst-btn-row {
	margin-top: 36px;
}

.sst-print-hero__media {
	aspect-ratio: 3 / 2;
	cursor: zoom-in;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}

@media (max-width: 900px) {
	.sst-print-hero__grid {
		grid-template-columns: 1fr;
	}

	.sst-print-hero__media {
		order: -1;
	}
}

.sst-pullquote {
	margin: 0 0 36px;
	font-family: var(--sst-font-head);
	font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.6rem);
	line-height: 1.35;
	text-align: center;
}


/* 4. Blog story
   ========================================================================== */

/* Story on the left, sticky "Written by" + contents column on the right. */
.sst-article {
	display: grid;
	grid-template-columns: minmax(0, var(--sst-container-text)) 320px;
	justify-content: space-between;
	align-items: start;
	gap: clamp(40px, 6vw, 100px);
}

/* The column runs the full height of the story, so the card + contents
   inside it (.sst-sticky) have room to stay pinned while you read.
   On short screens where the pair is taller than the window, it scrolls
   on its own (thin scrollbar) so the last contents links stay reachable. */
.sst-article__aside {
	align-self: stretch;
}

.sst-article__aside .sst-sticky {
	max-height: calc(100vh - var(--sst-header-h) - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--sst-line) transparent;
}

@media (max-width: 1024px) {
	/* One column: the author card simply follows the story. */
	.sst-article {
		grid-template-columns: minmax(0, 1fr);
	}

	.sst-article__aside .sst-sticky {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.sst-article__aside .sst-toc {
		display: none; /* Short screens: the headings are enough to navigate. */
	}
}

/* "Written by" card (dark, like a printed journal's author box). */
.sst-author {
	padding: clamp(24px, 3vw, 32px);
	border-radius: var(--sst-radius);
	background: var(--sst-ink);
	color: var(--sst-white);
}

.sst-author__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.sst-author__photo {
	flex: none;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 50%;
	background: #000;
}

.sst-author__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Logo instead of a photo: show it whole, with breathing room. */
.sst-author__photo--logo img {
	object-fit: contain;
	padding: 10px;
}

.sst-author__name {
	margin: 0;
	font-family: var(--sst-font-head);
	font-size: 1.35rem;
	line-height: 1.2;
}

.sst-author__bio {
	margin-bottom: 18px;
	font-size: .9375rem;
	font-weight: 300;
	line-height: 1.65;
	color: var(--sst-muted-light);
}

/* "In this story" contents list under the author card. */
.sst-toc {
	margin-top: 36px;
}

.sst-toc__title {
	margin-bottom: 16px;
	font-size: var(--sst-fs-label);
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--sst-gold);
}

.sst-toc__list {
	list-style: none;
	border-left: 1px solid var(--sst-line);
}

.sst-toc__item a {
	display: block;
	margin-left: -1px;
	padding: 7px 0 7px 18px;
	border-left: 1px solid transparent;
	font-size: .875rem;
	line-height: 1.45;
	color: var(--sst-muted);
	transition: color var(--sst-fast) ease, border-color var(--sst-fast) ease;
}

.sst-toc__item--h3 a {
	padding-left: 32px;
	font-size: .8125rem;
}

/* The heading you're currently reading (motion.js marks it). */
.sst-toc__item a:hover,
.sst-toc__item a.is-active {
	border-color: var(--sst-gold);
	color: var(--sst-ink);
}


/* Text pages (page.php: Privacy Policy, Terms & Conditions)
   -------------------------------------------------------------------------- */

/* "On this page" sits first in the side column, so no gap above it. */
.sst-article--page .sst-toc {
	margin-top: 0;
}

/* "Questions?" card under the contents list. */
.sst-help-card {
	margin-top: 36px;
}

.sst-help-card__text {
	margin: 12px 0 18px;
	color: rgba(255, 255, 255, .78);
}

.sst-help-card__email {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	color: var(--sst-white);
	word-break: break-all;
}

.sst-help-card__email .sst-icon {
	flex: none;
	color: var(--sst-gold);
}

.sst-help-card__email:hover {
	color: var(--sst-gold);
}

/* "Last updated …" line at the top of the text: small gold label. */
.sst-prose--legal .sst-legal-updated {
	display: inline-block;
	margin-bottom: 1.6em;
	padding: 8px 16px;
	border: 1px solid rgba(198, 154, 91, .45);
	border-radius: 999px;
	font-size: var(--sst-fs-label);
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sst-gold);
}

/* Opening paragraph reads as an introduction. */
.sst-prose--legal .sst-legal-lead {
	font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
	line-height: 1.6;
	color: var(--sst-ink);
}

/* Each numbered section starts with a hairline rule, like chapters. */
.sst-prose--legal h2 {
	margin-top: 2.4em;
	padding-top: 1.1em;
	border-top: 1px solid var(--sst-line);
}

.sst-prose--legal h3 {
	margin-top: 1.6em;
	font-size: clamp(1.4rem, 1.25rem + .5vw, 1.65rem);
}

/* Bold labels inside lists ("Contract:", "Consent:") in the heading colour. */
.sst-prose--legal li strong {
	color: var(--sst-ink);
}

/* 5. Contact
   ========================================================================== */

.sst-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: calc(100vh - var(--sst-header-h));
}

.sst-contact__media {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(32px, 5vw, 72px);
	color: var(--sst-white);
}

.sst-contact__media > img {
	position: absolute;
	inset: -10% 0;
	z-index: -2;
	height: 120%;
}

.sst-contact__media .sst-hero__shade {
	z-index: -1;
}

.sst-contact__title {
	margin-bottom: 18px;
	font-size: var(--sst-fs-h1);
}

.sst-contact__text {
	max-width: 460px;
	color: rgba(255, 255, 255, .82);
	font-weight: 300;
}

.sst-contact__list {
	display: grid;
	gap: 12px;
	margin: 32px 0 28px;
	list-style: none;
}

.sst-contact__list a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 1.0625rem;
}

.sst-contact__list a:hover {
	color: var(--sst-gold);
}

.sst-contact__list .sst-icon {
	color: var(--sst-gold);
}

@media (min-width: 901px) {
	.sst-contact__media {
		position: sticky;
		top: var(--sst-header-h);
		height: calc(100vh - var(--sst-header-h));
	}
}

.sst-contact__form {
	padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px);
	align-self: center;
}

.sst-contact__form-title {
	margin-bottom: 32px;
	font-size: var(--sst-fs-h2);
}

@media (max-width: 900px) {
	.sst-contact {
		grid-template-columns: 1fr;
	}

	.sst-contact__media {
		min-height: 70vh;
	}
}


/* 6. Enquiry blocks
   ========================================================================== */

.sst-enquiry {
	display: grid;
	grid-template-columns: .9fr 1.3fr;
	align-items: start;
	gap: clamp(40px, 6vw, 100px);
}

.sst-enquiry__form {
	padding: clamp(28px, 4vw, 48px);
	border: 1px solid var(--sst-line-dark);
	border-radius: var(--sst-radius);
	background: rgba(255, 255, 255, .03);
}

@media (max-width: 900px) {
	.sst-enquiry {
		grid-template-columns: 1fr;
	}
}


/* 7. Pagination (archives)
   ========================================================================== */

.sst-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 64px;
}

.sst-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid var(--sst-line);
	border-radius: 999px;
	font-size: .875rem;
}

.sst-pagination .page-numbers.current,
.sst-pagination .page-numbers:hover {
	border-color: var(--sst-gold);
	background: var(--sst-gold);
	color: var(--sst-white);
}
