/*
Theme Name: Subiksham
Theme URI: https://subiksham.local
Author: Madhu
Description: A journal on life and living. Custom theme built from the Subiksham Figma design — Journal (posts), Art gallery, About, with every banner editable from Appearance → Customize.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: subiksham
*/

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
	--navy: #23407e;
	--muted: #4a6aa8;
	--sky: #bfd6ff;
	--sky-2: #bfd3ff;
	--card: #e3ecfc;
	--white: #fff;
	--font-display: "Gloock", Georgia, "Times New Roman", serif;
	--font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
	--container: 1312px; /* same width as the footer banner */
	--gutter: 64px;
	--pill: 999px;
	--shadow-nav: 0 12px 40px 0 rgba(35, 64, 126, 0.5);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--navy);
	background-color: #a9c7ff;
	background-image: linear-gradient(180deg, #a9c7ff 0%, #bfd6ff 40%, #d3e2ff 75%, #e4edff 100%);
	background-repeat: no-repeat;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	background: var(--white); padding: 8px 16px; border-radius: var(--pill);
}

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Shared type */
.eyebrow {
	line-height: normal;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--navy);
}
.section-title {
	font-size: clamp(40px, 6vw, 68px);
	line-height: 1;
	color: var(--white);
	margin-top: 10px;
}
.text-link {
	font-size: 16px;
	font-weight: 600;
	color: var(--navy);
	white-space: nowrap;
}
.text-link:hover { text-decoration: underline; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 49px;
	padding: 0 30px;
	border-radius: var(--pill);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(35, 64, 126, .6); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--glass { background: rgba(255, 255, 255, .6); color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }

/* Placeholder used whenever an image has not been uploaded yet */
.ph { background: var(--card); width: 100%; height: 100%; }

/* ------------------------------------------------------------------ */
/* Header / nav pill                                                   */
/* ------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	justify-content: center;
	padding: 18px var(--gutter) 0;
	pointer-events: none;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.nav-pill {
	pointer-events: auto;
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 4px 0 24px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, .7);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: var(--shadow-nav);
	max-width: 100%;
}
.nav-pill__logo {
	font-family: var(--font-display);
	font-size: 22px;
	color: var(--navy);
	margin-right: 17px;
	white-space: nowrap;
}
.nav-pill ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2px;
}
.nav-pill li a {
	display: flex;
	align-items: center;
	height: 36px;
	padding: 0 18px;
	border-radius: var(--pill);
	font-size: 14px;
	font-weight: 600;
	color: var(--navy);
	white-space: nowrap;
	transition: background-color .2s ease;
}
.nav-pill li a:hover { background: rgba(35, 64, 126, .08); }
.nav-pill li.current-menu-item > a,
.nav-pill li.current_page_item > a,
.nav-pill li.is-current > a { background: var(--navy); color: var(--white); }

/* ------------------------------------------------------------------ */
/* Page heads (Journal / Art / About)                                  */
/* ------------------------------------------------------------------ */
.page-head {
	text-align: center;
	padding-top: 90px;
}
.page-head__title {
	font-size: clamp(64px, 11vw, 136px);
	line-height: .92;
	letter-spacing: -0.025em;
	color: var(--white);
	margin-top: 8px;
}
.badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 31px;
	padding: 0 16px;
	border-radius: var(--pill);
	background: var(--white);
	font-size: 13px;
	font-weight: 600;
}
.badge::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 4px;
	background: var(--navy);
}

/* Filter pills */
.filters {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 4px;
	margin-top: 40px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .5);
}
.filters a {
	display: flex;
	align-items: center;
	height: 34px;
	padding: 0 18px;
	border-radius: var(--pill);
	font-size: 14px;
	font-weight: 600;
	color: var(--navy);
}
.filters a:hover { background: rgba(255, 255, 255, .6); }
.filters a.is-active { background: var(--white); }

/* ------------------------------------------------------------------ */
/* Home: hero                                                          */
/* ------------------------------------------------------------------ */
.hero {
	position: relative;
	text-align: center;
	padding-top: 198px;
}
.hero__eyebrow {
	line-height: normal;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}
.hero__title {
	font-size: clamp(72px, 15.3vw, 220px);
	line-height: .88;
	letter-spacing: -0.03em;
	color: var(--white);
	margin-top: 28px;
}
.hero__tagline {
	max-width: 504px;
	margin: 57px auto 0;
	font-size: clamp(19px, 2vw, 24px);
	line-height: 1.4;
	font-style: italic;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 19px;
	margin-top: 20px;
}
.hero__art {
	position: absolute;
	opacity: .75;
	pointer-events: none;
}
/* offsets are relative to the eyebrow line (design y=268) */
.hero__art--1 { width: 160px; top: -144px; right: 21px; }
/* Same height = their drawn floor lines sit level; mirrored either side of the lettering. */
.hero__art--2, .hero__art--3 { width: auto; height: 170px; top: 150px; }
.hero__art--2 { left: 40px; }
.hero__art--3 { right: 40px; }
.hero__inner { position: relative; }

/* Hand-lettered title: script word / small spaced line between rules / script word */
.hero__title--script {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: -40px;
	letter-spacing: 0;
	line-height: 1;
}
.hero__script {
	display: block;
	font-family: "Mrs Saint Delafield", "Gloock", cursive;
	font-size: clamp(96px, 16vw, 236px);
	line-height: .95;
	padding: 0 .12em; /* room for swashes */
	color: var(--white);
	text-shadow: 0 10px 40px rgba(35, 64, 126, .18);
}
.hero__script--sm {
	font-size: clamp(64px, 9.5vw, 140px);
	margin-top: 10px;
}
.hero__mid {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: -4px;
	font-family: var(--font-display);
	font-size: clamp(13px, 1.3vw, 18px);
	letter-spacing: .38em;
	text-transform: uppercase;
	color: var(--navy);
}
.hero__mid::before,
.hero__mid::after {
	content: "";
	width: clamp(28px, 4vw, 56px);
	height: 1px;
	background: currentColor;
}
.hero__title--script + .hero__tagline { margin-top: 28px; }

/* Animated line drawings */
.hero svg.hero__art { color: var(--muted); opacity: .9; overflow: visible; height: auto; }

/* Pencil yoga sketches: a slow, gentle float (like a breath). */
.hero__float { animation: hero-float 7s ease-in-out infinite; }
.hero__float--late { animation-delay: 0s; } /* float in sync so they stay level */
@keyframes hero-float {
	0%, 100% { transform: translateY(0) rotate(0); }
	50%      { transform: translateY(-10px) rotate(-1.2deg); }
}

.hero--still .hero__art,
.hero--still .hero__art * { animation: none !important; }

/* White bird flock: each bird crosses the full banner width left to right on its own
   height, speed and wingbeat. Flap = 10-frame sprite stepped through with background-position. */
.hero__flock {
	position: absolute;
	top: -170px;
	left: 50%;
	width: 100vw;
	height: 260px;
	margin-left: -50vw;
	pointer-events: none;
	z-index: 1;
}
.flock__path {
	position: absolute;
	left: 0;
	animation: flock-cross var(--dur) linear var(--delay) infinite;
	will-change: transform;
}
.flock__drift { animation: flock-drift var(--drift) ease-in-out infinite alternate; }
.flock__bird {
	width: 90px;
	height: 125px;
	background: url("assets/img/bird-sprite.svg") 0 0 / auto 100% no-repeat;
	transform: scale(var(--scale));
	transform-origin: 50% 50%;
	filter: drop-shadow(0 4px 10px rgba(35, 64, 126, .18));
	animation: flock-flap var(--flap) steps(10) infinite;
}
@keyframes flock-flap {
	to { background-position: -900px 0; }
}
@keyframes flock-cross {
	from { transform: translateX(-12vw); }
	to   { transform: translateX(108vw); }
}
@keyframes flock-drift {
	from { transform: translateY(0); }
	to   { transform: translateY(var(--amp)); }
}

/* ------------------------------------------------------------------ */
/* Home: about teaser                                                  */
/* ------------------------------------------------------------------ */
.home-about {
	display: grid;
	grid-template-columns: 540px minmax(0, 520px);
	justify-content: space-between;
	align-items: center;
	gap: 48px;
	margin-top: 160px;
}
.arch {
	border-radius: var(--pill) var(--pill) 28px 28px;
	overflow: hidden;
	background: var(--card);
	aspect-ratio: 4 / 5;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.home-about__title {
	font-size: clamp(44px, 5vw, 68px);
	line-height: 1;
	letter-spacing: -0.015em;
	color: var(--white);
	margin-top: 18px;
}
.home-about__text {
	font-size: 19px;
	line-height: 1.65;
	margin-top: 31px;
}
.home-about .btn { margin-top: 16px; height: 46px; padding: 0 26px; font-size: 16px; }

/* ------------------------------------------------------------------ */
/* Section header (eyebrow + title + link / arrows)                    */
/* ------------------------------------------------------------------ */
.section { margin-top: 176px; }
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

/* ------------------------------------------------------------------ */
/* Home: journal                                                       */
/* ------------------------------------------------------------------ */
.home-journal {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
}
.feature-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 24px;
	overflow: hidden;
	background: var(--card);
}
.feature-card__media img,
.thumb img,
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-card:hover img,
.post-card:hover img,
.mini-post:hover img { transform: scale(1.03); }
.feature-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	font-size: 13px;
	font-weight: 600;
}
.tag {
	display: inline-flex;
	align-items: center;
	height: 25px;
	padding: 0 12px;
	border-radius: var(--pill);
	background: var(--white);
	font-size: 13px;
	font-weight: 600;
	color: var(--navy);
}
.feature-card__title {
	font-size: 40px;
	line-height: 1.1;
	color: var(--white);
	margin-top: 17px;
}
.feature-card__excerpt { margin-top: 19px; font-size: 16px; }

/* Same width as the big card, so 4/3 makes the list exactly as tall as its image; posts spread evenly down it. */
.mini-list { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; aspect-ratio: 4 / 3; align-self: start; }
.mini-post { display: flex; align-items: center; gap: 20px; }
.thumb {
	flex: 0 0 104px;
	width: 104px; height: 104px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--card);
}
.meta-sm {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.meta-sm .dot { margin: 0 8px; }
.mini-post__title {
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.2;
	color: var(--white);
	margin-top: 6px;
}

/* ------------------------------------------------------------------ */
/* Home: art carousel                                                  */
/* ------------------------------------------------------------------ */
.arrows { display: flex; gap: 10px; }
.arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 1px solid rgba(35, 64, 126, .14);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease, border-color .25s ease;
}
.arrow svg { transition: transform .25s ease; }
.arrow--prev { background: rgba(255, 255, 255, .7); color: var(--navy); }
.arrow--next { background: var(--navy); border-color: var(--navy); color: var(--white); }
.arrow:hover { box-shadow: 0 10px 24px -12px rgba(35, 64, 126, .7); }
.arrow--prev:hover { background: var(--white); }
.arrow--prev:hover svg { transform: translateX(-3px); }
.arrow--next:hover { background: #1a3266; }
.arrow--next:hover svg { transform: translateX(3px); }
.arrow:disabled {
	opacity: .35;
	cursor: default;
	box-shadow: none;
	background: rgba(255, 255, 255, .45);
	border-color: rgba(35, 64, 126, .1);
	color: var(--navy);
}
.arrow:disabled svg { transform: none; }

.carousel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden; /* sideways only: never scroll or clip vertically */
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	/* bleed past the container to the right edge of the viewport */
	margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2));
	padding-right: max(var(--gutter), (100vw - var(--container)) / 2);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 auto; scroll-snap-align: start; }
.carousel__media {
	display: block;
	height: 420px;
	border-radius: 24px;
	overflow: hidden;
	background: var(--card);
}
.carousel__media img { height: 100%; width: auto; max-width: none; }
.carousel__media .ph { width: 336px; }
.caption {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 14px;
	font-size: 15px;
}
.caption { align-items: center; }
.caption__title { font-family: var(--font-display); font-size: 19px; line-height: 1.2; color: var(--white); }
.caption__type {
	flex: none;
	padding: 4px 11px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, .6);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--navy);
}
.arrows { align-items: center; }
.arrows__link { margin-right: 14px; }

/* ------------------------------------------------------------------ */
/* Journal page                                                        */
/* ------------------------------------------------------------------ */
.lead-post {
	position: relative;
	display: block;
	height: 656px;
	margin-top: 56px;
	border-radius: 32px;
	overflow: hidden;
	background: var(--card);
	box-shadow: 0 30px 70px -40px rgba(35, 64, 126, .55);
}
.lead-post > img { width: 100%; height: 100%; object-fit: cover; }
.lead-post__card {
	position: absolute;
	left: 28px;
	bottom: 28px;
	width: min(632px, calc(100% - 56px));
	padding: 36px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.lead-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}
.lead-post__meta strong {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--navy);
}
.lead-post__title {
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.05;
	color: var(--navy);
	margin-top: 10px;
}
.lead-post__excerpt { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.lead-post .btn { margin-top: 16px; height: 40px; padding: 0 22px; font-size: 14px; }

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 28px;
	margin-top: 56px;
}
.post-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 22px;
	overflow: hidden;
	background: var(--card);
}
.post-card .meta-sm { margin-top: 14px; }
.post-card__title {
	font-size: 26px;
	line-height: 1.15;
	color: var(--white);
	margin-top: 12px;
}
.post-card__sub { margin-top: 14px; font-size: 15px; }
.post-card__sub .dot { margin: 0 6px; }

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 64px;
}
.pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, .55);
	font-weight: 600;
}
.pagination .page-numbers.current { background: var(--navy); color: var(--white); }

.empty-state {
	text-align: center;
	margin-top: 56px;
	padding: 56px 24px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .55);
	font-size: 17px;
}

/* ------------------------------------------------------------------ */
/* Single post                                                         */
/* ------------------------------------------------------------------ */
.post-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 720px;
	margin-top: 42px;
	padding: 72px;
	border-radius: 32px;
	overflow: hidden;
	background: var(--navy);
	color: var(--white);
}
.post-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-hero--has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(35, 64, 126, .15) 0%, rgba(35, 64, 126, .2) 40%, rgba(35, 64, 126, .85) 100%);
}
.post-hero > *:not(.post-hero__bg) { position: relative; z-index: 1; }
.post-hero > .post-hero__back {
	position: absolute;
	top: 72px;
	left: 72px;
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 18px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, .9);
	color: var(--navy);
	font-size: 14px;
	font-weight: 600;
}
.post-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
}
.post-hero__meta .tag {
	height: 26px;
	padding: 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.post-hero__title {
	max-width: 864px;
	font-size: clamp(48px, 7.8vw, 112px);
	line-height: .95;
	letter-spacing: -0.025em;
	margin-top: 10px;
}
.post-hero__excerpt { margin-top: 26px; font-size: 22px; font-style: italic; }

.post-body {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 64px;
	align-items: start;
	margin-top: 72px;
}
.author { display: flex; align-items: center; gap: 12px; }
.author__photo {
	width: 52px; height: 52px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--card);
	flex: 0 0 52px;
}
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author__label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.author__name { font-family: var(--font-display); font-size: 20px; color: var(--white); line-height: 1.2; }
.post-aside hr { border: 0; height: 1px; background: rgba(255, 255, 255, .6); margin: 20px 0; }
.post-aside__facts { font-size: 14px; line-height: 22px; }
.post-aside__facts strong { font-weight: 700; display: block; }

.article {
	padding: 56px;
	border-radius: 28px;
	background: var(--white);
	box-shadow: 0 30px 70px 0 rgba(35, 64, 126, .5);
	font-size: 19px;
	line-height: 1.85;
	color: var(--navy);
}
.article > * + * { margin-top: 1.1em; }
.article h2 { font-size: 28px; line-height: 1.4; }
.article h3 { font-size: 23px; line-height: 1.4; }
.article h2, .article h3 { margin-top: 1.4em; }
.article > :first-child { margin-top: 0; }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article img, .article figure img { border-radius: 18px; }
.article figure { margin-left: 0; margin-right: 0; }
.article figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.article blockquote {
	margin-left: 0;
	margin-right: 0;
	padding-left: 24px;
	border-left: 3px solid var(--sky);
	font-family: var(--font-display);
	font-size: 24px;
	line-height: 1.5;
}
.article ul, .article ol { padding-left: 1.3em; }
.article .alignwide, .article .alignfull { margin-left: 0; margin-right: 0; }

.keep-reading { margin-top: 72px; }
.keep-reading__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 18px;
}
.nav-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 206px;
	padding: 28px 30px 30px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .55);
	transition: transform .2s ease;
}
.nav-card:hover { transform: translateY(-3px); }
.nav-card__label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.nav-card__title { font-family: var(--font-display); font-size: 32px; line-height: 1.1; }
.nav-card--next { background: var(--navy); color: var(--white); text-align: right; }
.nav-card--next .nav-card__label { color: var(--sky-2); }

/* ------------------------------------------------------------------ */
/* Art page (masonry)                                                  */
/* ------------------------------------------------------------------ */
.masonry {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin-top: 48px;
}
.masonry__col { flex: 1 1 0; min-width: 0; }
.masonry__item { margin: 0 0 27px; }
.masonry__media {
	display: block;
	border-radius: 22px;
	overflow: hidden;
	background: var(--card);
}
.masonry__media img { width: 100%; transition: transform .5s ease; }
.masonry__media:hover img { transform: scale(1.03); }
.masonry__media .ph { aspect-ratio: 4 / 5; }
.masonry__item:nth-child(3n+2) .masonry__media .ph { aspect-ratio: 1; }
.masonry__item:nth-child(3n) .masonry__media .ph { aspect-ratio: 3 / 4; }
.masonry .caption { margin-top: 12px; }

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: rgba(20, 36, 72, .88);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 16px; }
.lightbox__close {
	position: absolute;
	top: 20px; right: 20px;
	width: 44px; height: 44px;
	border: 0; border-radius: 22px;
	background: var(--white); color: var(--navy);
	font-size: 22px; cursor: pointer;
}
.lightbox__caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--white); font-weight: 600; }

/* Single art */
.art-single { margin-top: 56px; text-align: center; }
.art-single__media { display: inline-block; border-radius: 24px; overflow: hidden; background: var(--card); }
.art-single__media img { max-height: 80vh; width: auto; }
.art-single__media .ph { width: min(520px, 80vw); aspect-ratio: 4 / 5; }
.art-single__content { max-width: 640px; margin: 32px auto 0; font-size: 18px; line-height: 1.7; }

/* ------------------------------------------------------------------ */
/* About page                                                          */
/* ------------------------------------------------------------------ */
.about-title {
	max-width: 1076px;
	margin: 18px auto 0;
	font-size: clamp(52px, 8.6vw, 124px);
	line-height: .95;
	letter-spacing: -0.025em;
	color: var(--white);
}
.about-intro {
	display: grid;
	grid-template-columns: 460px minmax(0, 497px);
	justify-content: space-between;
	align-items: center;
	gap: 48px;
	margin-top: 96px;
}
.about-intro .arch { aspect-ratio: 460 / 575; }
.about-copy { font-size: 17px; line-height: 1.75; }
.about-copy > * + * { margin-top: 22px; }
.about-copy > p:first-child {
	font-family: var(--font-display);
	font-size: clamp(24px, 2.3vw, 30px);
	line-height: 1.35;
	color: var(--white);
}
.about-copy a { text-decoration: underline; }
.about-quote { text-align: center; margin-top: 96px; }
.about-quote img { width: 110px; margin: 0 auto; opacity: .8; }
.about-quote p {
	max-width: 904px;
	margin: 21px auto 0;
	font-family: var(--font-display);
	font-size: clamp(34px, 3.9vw, 56px);
	line-height: 1.15;
	color: var(--white);
}
.whatido { margin-top: 91px; }
.whatido h2 { font-size: clamp(40px, 3.9vw, 56px); line-height: 1; color: var(--white); }
.whatido__list { list-style: none; margin: 35px 0 0; padding: 0; display: grid; gap: 12px; }
.whatido__row {
	display: grid;
	grid-template-columns: 88px minmax(0, 397px) minmax(0, 1fr);
	align-items: center;
	min-height: 93px;
	padding: 16px 32px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .55);
}
.whatido__num { font-size: 14px; font-weight: 700; }
.whatido__title { font-family: var(--font-display); font-size: 32px; line-height: 1.1; }
.whatido__desc { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Generic page */
.page-content { max-width: 776px; margin: 56px auto 0; }

/* ------------------------------------------------------------------ */
/* Footer CTA                                                          */
/* ------------------------------------------------------------------ */
.site-footer { padding: 96px 64px 28px; }
.cta {
	position: relative;
	max-width: 1312px;
	margin: 0 auto;
	padding: 72px 72px 40px;
	border-radius: 36px;
	overflow: hidden;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(169, 199, 255, .22) 0%, rgba(169, 199, 255, 0) 55%),
		var(--navy);
	color: var(--sky);
	isolation: isolate;
}
.cta__flock { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta__flock .flock__path { animation-name: flock-cross-box; }
@keyframes flock-cross-box {
	from { transform: translateX(-140px); }
	to   { transform: translateX(1440px); }
}

.cta__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
	align-items: center;
	gap: 48px;
}
.cta__figure { width: 90px; opacity: .8; margin-bottom: 16px; }
.cta__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.cta__eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #8fe3b0;
	box-shadow: 0 0 0 0 rgba(143, 227, 176, .6);
	animation: cta-pulse 2.4s ease-out infinite;
}
@keyframes cta-pulse {
	70%  { box-shadow: 0 0 0 10px rgba(143, 227, 176, 0); }
	100% { box-shadow: 0 0 0 0 rgba(143, 227, 176, 0); }
}
.cta__title {
	max-width: 624px;
	margin-top: 18px;
	font-size: clamp(42px, 4.5vw, 64px);
	line-height: 1.02;
	color: var(--white);
}
.cta .btn { margin-top: 32px; height: 54px; padding: 0 32px; font-size: 16px; font-weight: 700; }

/* Latest post card */
.cta__latest {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px 24px 14px 14px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(191, 214, 255, .2);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background-color .25s ease, transform .25s ease;
}
.cta__latest:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }
.cta__latest-media {
	flex: 0 0 132px;
	width: 132px;
	height: 132px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--card);
}
.cta__latest-media img { width: 100%; height: 100%; object-fit: cover; }
.cta__latest-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cta__latest-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.cta__latest-title { font-family: var(--font-display); font-size: 28px; line-height: 1.1; color: var(--white); }
.cta__latest-meta { font-size: 14px; color: rgba(191, 214, 255, .8); }

/* Brand signature */
.cta__wordmark {
	margin: 40px 0 -18px;
	font-family: "Mrs Saint Delafield", "Gloock", cursive;
	font-size: clamp(96px, 15vw, 230px);
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	color: rgba(191, 214, 255, .22);
	user-select: none;
	pointer-events: none;
}

.cta__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 25px;
	border-top: 1px solid rgba(191, 214, 255, .3);
	font-size: 14px;
}
.cta__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cta__bottom a { font-weight: 600; }
.cta__bottom a:hover { color: var(--white); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
	:root { --gutter: 24px; }
	.hero__inner { padding-bottom: 170px; }
	.hero__art--2, .hero__art--3 { top: auto; bottom: 10px; width: auto; height: 130px; }
	.hero__art--2 { left: calc(50% - 175px); }
	.hero__art--3 { right: calc(50% - 175px); }
	.home-about { margin-top: 96px; }
	.home-about, .about-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.home-journal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
	.whatido__row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr); }
	.site-footer { padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (max-width: 860px) {
	.hero { padding-top: 120px; }
	.hero__art--1 { width: 90px; top: -84px; right: 0; }
	.hero__flock { top: -120px; height: 200px; }
	.flock__path:nth-child(n+6) { display: none; }
	.home-about, .about-intro { grid-template-columns: 1fr; margin-top: 64px; }
	.home-about .arch, .about-intro .arch { max-width: 360px; width: 100%; margin: 0 auto; }
	.home-journal { grid-template-columns: 1fr; }
	.mini-list { aspect-ratio: auto; gap: 28px; }
	.section { margin-top: 112px; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
	.masonry__col { display: contents; }
	.lead-post { height: auto; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; }
	.lead-post > img { position: absolute; inset: 0; }
	.lead-post__card { position: relative; left: auto; bottom: auto; margin: 200px 16px 16px; width: auto; padding: 24px; }
	.post-hero { min-height: 520px; padding: 88px 24px 36px; }
	.post-hero > .post-hero__back { top: 24px; left: 24px; }
	.post-body { grid-template-columns: 1fr; gap: 28px; padding: 0; }
	.article { padding: 32px 24px; font-size: 17px; }
	.keep-reading { padding: 0; }
	.whatido__row { grid-template-columns: 40px 1fr; row-gap: 6px; }
	.whatido__desc { grid-column: 2; }
	.whatido__title { font-size: 26px; }
	.cta { padding: 48px 28px 28px; }
	.cta__top { grid-template-columns: 1fr; gap: 32px; }
	.cta__latest-media { flex-basis: 96px; width: 96px; height: 96px; }
	.cta__latest-title { font-size: 22px; }
	.cta__wordmark { margin-top: 28px; }
	.carousel__media { height: 320px; }
	.carousel__media .ph { width: 256px; }
}

@media (max-width: 560px) {
	:root { --gutter: 16px; }
	.hero__inner { padding-bottom: 140px; }
	.hero__art--2, .hero__art--3 { width: auto; height: 108px; }
	.flock__bird { transform: scale(calc(var(--scale) * .6)); }
	.cta__wordmark { font-size: 21vw; margin-bottom: -8px; }
	.hero__flock { top: -100px; height: 150px; }
	.hero__art--2 { left: calc(50% - 150px); }
	.hero__art--3 { right: calc(50% - 150px); }
	.nav-pill { padding-left: 14px; height: 48px; }
	.nav-pill__logo { font-size: 18px; margin-right: 6px; }
	.nav-pill li a { padding: 0 9px; font-size: 13px; height: 34px; }
	.page-head { padding-top: 64px; }
	.post-grid { grid-template-columns: 1fr; }
	.masonry { grid-template-columns: 1fr; }
	.keep-reading__grid { grid-template-columns: 1fr; }
	.section-head { flex-wrap: wrap; }
	.feature-card__title { font-size: 32px; }
	.site-footer { padding-top: 72px; padding-bottom: 16px; }
	.lead-post__card { margin-top: 160px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
	.hero__art, .hero__art * { animation: none !important; }
	.flock { display: none; }
}

/* ------------------------------------------------------------------ */
/* Scroll reveal                                                        */
/* (JS adds .js-anim before paint; content rises in as it scrolls into */
/*  view, then .is-done hands it back to its normal hover styles)       */
/* ------------------------------------------------------------------ */
.js-anim :is(.hero__title, .hero__tagline, .hero__actions, .page-head > *, .section-head, .home-about > *, .feature-card, .mini-post, .carousel, .lead-post, .post-card, .masonry__item, .post-hero, .post-aside, .article, .keep-reading .eyebrow, .nav-card, .about-intro > *, .about-quote, .whatido h2, .whatido__row, .cta__intro, .cta__latest, .cta__wordmark, .empty-state):not(.is-in):not(.is-done) {
	opacity: 0;
	transform: translateY(34px);
}
.js-anim .is-in {
	transition:
		opacity .9s cubic-bezier(.16, .84, .3, 1) var(--rd, 0ms),
		transform .9s cubic-bezier(.16, .84, .3, 1) var(--rd, 0ms);
}

/* ------------------------------------------------------------------ */
/* Page transitions: birds sweep across, page fades, next page rises   */
/* ------------------------------------------------------------------ */
/* Two birds cross the screen slowly. The flight starts on click and carries on, from the
   exact same point, on the next page (JS passes the elapsed time), so it never stalls. */
.page-flock {
	position: fixed;
	inset: 0;
	z-index: 200;
	overflow: hidden;
	pointer-events: none;
	visibility: hidden;
}
.is-leaving .page-flock,
.is-arriving .page-flock { visibility: visible; }
.page-flock__path { position: absolute; left: 0; transform: translateX(-12vw); }
.page-flock .flock__bird { filter: drop-shadow(0 6px 12px rgba(35, 64, 126, .18)); }
.is-leaving .page-flock__path,
.is-arriving .page-flock__path { animation: pf-cross var(--fly, 3.6s) cubic-bezier(.3, .1, .6, .95) var(--d, 0ms) both; }
@keyframes pf-cross {
	from { transform: translate(-12vw, 0); }
	to   { transform: translate(112vw, -70px); }
}

.is-leaving main,
.is-leaving .site-footer {
	opacity: 0;
	transform: translateY(-14px);
	transition: opacity .4s ease, transform .4s ease;
}
.is-arriving main { animation: page-in .8s cubic-bezier(.16, .84, .3, 1) both; }
@keyframes page-in {
	from { opacity: 0; transform: translateY(18px); }
}

@media (prefers-reduced-motion: reduce) {
	.page-flock { display: none; }
}

/* ------------------------------------------------------------------ */
/* Big headings: wrap into balanced lines instead of leaving one word  */
/* ------------------------------------------------------------------ */
.page-head__title, .about-title, .post-hero__title, .section-title,
.home-about__title, .cta__title, .nav-card__title, .lead-post__title,
.feature-card__title, .post-card__title { text-wrap: balance; }

/* ------------------------------------------------------------------ */
/* Phones: tighter sizes                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 560px) {
	/* Menu pill */
	.site-header { padding-top: 12px; }
	.nav-pill { height: 44px; padding: 0 4px 0 14px; }
	.nav-pill__logo { font-size: 17px; margin-right: 4px; }
	.nav-pill li a { height: 34px; padding: 0 9px; font-size: 12.5px; }

	/* Section headers (Journal / Art on home) */
	.section-title { font-size: 38px; margin-top: 8px; }
	.section-head { margin-bottom: 26px; }
	.home-art .section-head > div:first-child { width: 100%; }
	.home-art .arrows { width: 100%; }
	.arrows__link { margin-right: auto; font-size: 15px; }
	.arrow { width: 42px; height: 42px; }
	.arrow svg { width: 18px; height: 18px; }

	/* Page heads (Journal, Art, About) */
	.page-head { padding-top: 48px; }
	.page-head .eyebrow { font-size: 10.5px; letter-spacing: .16em; }
	.page-head__title { font-size: 58px; }
	.badge { height: 28px; font-size: 12px; padding: 0 14px; }
	.filters {
		flex-wrap: nowrap;
		max-width: 100%;
		margin-top: 28px;
		overflow-x: auto;
		scrollbar-width: none;
		justify-content: flex-start;
	}
	.filters::-webkit-scrollbar { display: none; }
	.filters a { flex: none; height: 32px; padding: 0 14px; font-size: 13px; }
	.about-title { font-size: 44px; margin-top: 12px; }

	/* Single post cover */
	.post-hero { min-height: 400px; margin-top: 24px; padding: 80px 20px 28px; border-radius: 24px; }
	.post-hero > .post-hero__back { top: 20px; left: 20px; height: 32px; padding: 0 14px; font-size: 13px; }
	.post-hero__meta { gap: 6px 10px; font-size: 11px; letter-spacing: .1em; }
	.post-hero__meta .tag { height: 24px; padding: 0 11px; font-size: 11px; letter-spacing: .12em; }
	.post-hero__title { font-size: 42px; margin-top: 12px; }
	.post-hero__excerpt { margin-top: 14px; font-size: 17px; }
	.post-body { margin-top: 40px; }
	.article { padding: 26px 20px; border-radius: 22px; }

	/* Keep reading */
	.keep-reading { margin-top: 48px; }
	.keep-reading__grid { gap: 12px; }
	.nav-card { min-height: 0; gap: 26px; padding: 20px 22px 22px; border-radius: 20px; }
	.nav-card__label { font-size: 11px; }
	.nav-card__title { font-size: 24px; }

	/* Footer banner */
	.site-footer { padding-top: 64px; }
	.cta { padding: 34px 22px 20px; border-radius: 26px; }
	.cta__eyebrow { align-items: flex-start; gap: 10px; font-size: 11px; letter-spacing: .14em; line-height: 1.5; }
	.cta__eyebrow::before { flex: none; margin-top: 4px; }
	.cta__title { margin-top: 14px; font-size: 38px; }
	.cta .btn { height: 48px; margin-top: 24px; padding: 0 24px; font-size: 15px; }
	.cta__latest { padding: 10px 16px 10px 10px; gap: 14px; border-radius: 18px; }
	.cta__latest-media { flex-basis: 76px; width: 76px; height: 76px; border-radius: 12px; }
	.cta__latest-title { font-size: 19px; }
	.cta__latest-meta { font-size: 12.5px; }
	.cta__bottom { font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* Phones & tablets: give display headings room so lines never touch  */
/* (desktop keeps the tight, editorial line spacing from the design)    */
/* ------------------------------------------------------------------ */
@media (max-width: 860px) {
	.hero__title:not(.hero__title--script),
	.page-head__title,
	.about-title,
	.post-hero__title,
	.section-title,
	.home-about__title,
	.lead-post__title,
	.feature-card__title,
	.cta__title,
	.whatido h2 {
		line-height: 1.08;
		letter-spacing: -0.01em;
	}
	.post-card__title,
	.mini-post__title,
	.nav-card__title,
	.cta__latest-title,
	.whatido__title,
	.about-quote p,
	.about-copy > p:first-child,
	.article h2,
	.article h3 {
		line-height: 1.2;
	}
	.post-hero__title { margin-top: 14px; }
	.post-hero__excerpt { margin-top: 12px; }
}

/* ------------------------------------------------------------------ */
/* Elementor: keep the design intact inside Elementor-built pages      */
/* ------------------------------------------------------------------ */
.elementor-area { width: 100%; }
/* Our section widgets bring their own spacing — remove Elementor's widget gap. */
.elementor-area .elementor-widget[class*="elementor-widget-subiksham-"] { margin-block-end: 0 !important; width: 100%; }
.elementor-area .elementor-widget[class*="elementor-widget-subiksham-"] > .elementor-widget-container { margin: 0; padding: 0; }
/* Elementor sets "img { height: auto }" — restore the design's image sizing. */
.elementor-area .hero__art--2,
.elementor-area .hero__art--3 { height: 170px; width: auto; max-width: none; }
.elementor-area .arch img,
.elementor-area .feature-card__media img,
.elementor-area .thumb img,
.elementor-area .post-card__media img,
.elementor-area .lead-post > img { height: 100%; }
.elementor-area .carousel__media img { height: 100%; width: auto; max-width: none; }
.elementor-area .about-quote img { width: 110px; }
@media (max-width: 1100px) {
	.elementor-area .hero__art--2, .elementor-area .hero__art--3 { height: 130px; }
}
@media (max-width: 560px) {
	.elementor-area .hero__art--2, .elementor-area .hero__art--3 { height: 108px; }
}
