/*
Theme Name: Alla Kozyreva
Theme URI: https://abhyasretreats.com/
Author: Balkrishan
Description: Editorial personal-brand theme for Alla Kozyreva, holistic wellbeing advisor in Mauritius. Faithful WordPress rebuild of the original single-page editorial site. Built for Advanced Custom Fields PRO.
Version: 2.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: alla
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--bg: #f8f6f1;              /* background        43 37% 96% */
	--ink: #1d202a;             /* foreground       226 18% 14% */
	--card: #fcfaf8;            /* card              40 33% 98% */
	--secondary: #f0ece6;       /* secondary         40 24% 92% */
	--muted-bg: #f1eee9;        /* muted             40 22% 93% */
	--muted: #585c6a;           /* muted-foreground 226  9% 38% */
	--accent: #9a734b;          /* accent            30 34% 45% */
	--sage: #4b5d4f;            /* sage             133 11% 33% (reserved) */
	--parchment: #eeeae2;       /* parchment-deep    40 28% 91% */
	--blush: #debeba;           /* blush              8 36% 80% */
	--blush-ink: #212530;       /* blush-foreground 226 18% 16% */
	--line: #ddd8d0;            /* border            40 16% 84% */
	--input: #dad4cb;           /* input             40 16% 82% */
	--ring: #1d202a;            /* ring             226 18% 14% */
	--destructive: #a63030;     /* destructive        0 55% 42% */

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--script: "Italianno", "Snell Roundhand", cursive;

	--max: 1440px;
	--gutter: 24px;
	--pad-y: 80px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
	:root { --gutter: 40px; }
}

@media (min-width: 1024px) {
	:root { --gutter: 64px; --pad-y: 112px; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection { background: rgba(154, 115, 75, 0.22); }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid rgba(29, 32, 42, 0.5); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em; }

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 100;
	background: var(--ink);
	color: var(--bg);
	padding: 10px 16px;
	font: 400 11px/1 var(--sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.skip-link:focus { left: 8px; top: 8px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	border-top: 1px solid var(--line);
	scroll-margin-top: 96px;
}
.section > .wrap { padding-block: var(--pad-y); }
.section--parchment { background: var(--parchment); }

/* 12-column grid, collapses to one column below 1024px. */
.g12 { display: grid; gap: 48px; }
@media (min-width: 1024px) {
	.g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 64px; }
	.c4 { grid-column: span 4; }
	.c5 { grid-column: span 5; }
	.c6 { grid-column: span 6; }
	.c7 { grid-column: span 7; }
	.c7-6 { grid-column: 6 / span 7; }
	.c6-7 { grid-column: 7 / span 6; }
	.c5-8 { grid-column: 8 / span 5; }
	.c4-9 { grid-column: 9 / span 4; }
	.sticky-rail { position: sticky; top: 112px; }
}

.rule { height: 1px; width: 100%; background: var(--line); }

/* ==========================================================================
   4. Type
   ========================================================================== */

.eyebrow {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--muted);
}
.eyebrow--light { color: rgba(248, 246, 241, 0.7); }
.eyebrow--wide { letter-spacing: 0.3em; }
.eyebrow--tight { letter-spacing: 0.24em; }

.micro {
	font-family: var(--sans);
	font-size: 10px;
	line-height: 1.5;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}
.micro--accent { color: var(--accent); }
.micro--18 { letter-spacing: 0.18em; }
.micro--22 { letter-spacing: 0.22em; }

.h1-hero { font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: 0.96; }
.h1-hero em { display: block; font-style: italic; color: var(--accent); }
.h1-page { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.04; }
.h1-chapter { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.04; max-width: 56rem; }
.h1-essay { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.03; max-width: 48rem; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; }
.h2--arc { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.h2--tight { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.06; }
.h2--sub { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
.h2--cta { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.1; }
.h2--band { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; }
.h2--nl { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
.h2--modal { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; }

.lead { font-size: 18px; line-height: 1.65; color: var(--muted); }
.note { font-size: 14px; line-height: 1.65; color: var(--muted); }
.note--xs { font-size: 12px; }
.muted { color: var(--muted); }
.body-muted { color: var(--muted); line-height: 1.65; }

.max-xs { max-width: 20rem; }
.max-sm { max-width: 24rem; }
.max-md { max-width: 28rem; }
.max-lg { max-width: 32rem; }
.max-xl { max-width: 36rem; }
.max-2xl { max-width: 42rem; }

/* ==========================================================================
   5. Buttons and links
   ========================================================================== */

.btn,
.btn-outline,
.btn-inverse {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 28px;
	border-radius: 0;
	font: 400 11px/1 var(--sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	border: 0;
	transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

/* Primary: blush filled, with a hairline that grows 24px -> 36px on hover. */
.btn { background: var(--blush); color: var(--blush-ink); }
.btn:hover { background: rgba(222, 190, 186, 0.8); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Secondary: blush outline over a 50% blush fill. */
.btn-outline {
	border: 1px solid var(--blush);
	background: rgba(222, 190, 186, 0.5);
	color: var(--blush-ink);
}
.btn-outline:hover { background: var(--blush); }

/* Inverse: used over photography. */
.btn-inverse {
	border: 1px solid rgba(248, 246, 241, 0.5);
	color: var(--bg);
}
.btn-inverse:hover { background: var(--bg); color: var(--ink); }

.hair {
	display: block;
	height: 1px;
	width: 24px;
	background: rgba(33, 37, 48, 0.6);
	transition: width 0.5s var(--ease);
}
.btn:hover .hair,
.btn-outline:hover .hair { width: 36px; }
.btn-inverse .hair { background: currentColor; }
.btn-inverse:hover .hair { width: 36px; }

.dot {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bg);
}
.is-speaking .dot { animation: ak-pulse 1.4s ease-in-out infinite; }
@keyframes ak-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Animated 1px underline, drawn left to right on hover. */
.link-quiet {
	display: inline-block;
	padding-bottom: 2px;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.45s var(--ease), color 0.3s ease;
}
.link-quiet:hover, .link-quiet:focus-visible { background-size: 100% 1px; }

.link-micro {
	font-family: var(--sans);
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
/* The 11px variant, used in the hero, the band and the retreat hero. */
.link-11 {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
/* Tracking variants have to win over .link-micro, which is declared here. */
.link-micro.eyebrow--wide { letter-spacing: 0.3em; }
.link-micro.eyebrow--tight { letter-spacing: 0.24em; }
.link-underline { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-hover-underline:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Small utility button: Download PDF. */
.btn-file {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	border: 1px solid var(--line);
	padding: 10px 20px;
	font: 400 10px/1 var(--sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink);
	transition: border-color 0.3s ease, background-color 0.3s ease;
}
.btn-file:hover { border-color: var(--blush); background: rgba(222, 190, 186, 0.4); }
.btn-file svg { width: 14px; height: 14px; }

.btn-arrow {
	border: 1px solid var(--line);
	padding: 8px;
	display: inline-flex;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-arrow:hover { background: var(--blush); color: var(--blush-ink); }
.btn-arrow svg { width: 16px; height: 16px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ==========================================================================
   6. Header and the Index overlay
   ========================================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 40;
	background: rgba(248, 246, 241, 0.85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(221, 216, 208, 0.6);
}
.admin-bar .site-header { top: 32px; }
.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 16px;
}
.brand { font-family: var(--serif); font-weight: 400; font-size: 16px; letter-spacing: -0.01em; }
@media (min-width: 640px) { .brand { font-size: 18px; } }

.index-toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font: 400 10px/1 var(--sans);
	letter-spacing: 0.3em;
	text-transform: uppercase;
}
.index-toggle__hair {
	display: block;
	height: 1px;
	width: 32px;
	background: rgba(29, 32, 42, 0.4);
	transition: width 0.5s var(--ease), background-color 0.5s var(--ease);
}
.index-toggle:hover .index-toggle__hair { width: 56px; background: var(--ink); }

.chapter-nav { display: flex; align-items: center; gap: 24px; }
.chapter-nav a { font: 400 10px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; }

/* Site content clears the fixed header. */
.site-main { padding-top: 0; }

.index-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: var(--bg);
	overflow-y: auto;
	opacity: 0;
	animation: ak-fade 0.4s var(--ease) forwards;
}
.admin-bar .index-overlay { top: 32px; }
.index-overlay[hidden] { display: none; }
@keyframes ak-fade { to { opacity: 1; } }

.index-overlay__inner {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	padding-block: 24px;
}
.index-overlay__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.index-overlay__body { padding-block: 64px; flex: 1; }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
	display: flex;
	align-items: baseline;
	gap: 20px;
	padding-block: 16px;
}
@media (min-width: 640px) { .index-list a { padding-block: 20px; } }
.index-list__n { font: 400 10px/1 var(--sans); letter-spacing: 0.25em; color: var(--muted); }
.index-list__label {
	font-family: var(--serif);
	font-weight: 300;
	font-size: 30px;
	line-height: 1.1;
	transition: transform 0.5s var(--ease);
}
@media (min-width: 640px) { .index-list__label { font-size: 36px; } }
.index-list a:hover .index-list__label { transform: translateX(8px); }

/* Staggered entrance, 50ms apart. */
.js .index-overlay .index-list li { opacity: 0; transform: translateY(18px); }
.index-overlay.is-open .index-list li { animation: ak-rise 0.5s ease forwards; }
@keyframes ak-rise { to { opacity: 1; transform: none; } }
.index-overlay.is-open .index-list li:nth-child(1) { animation-delay: 0.05s; }
.index-overlay.is-open .index-list li:nth-child(2) { animation-delay: 0.10s; }
.index-overlay.is-open .index-list li:nth-child(3) { animation-delay: 0.15s; }
.index-overlay.is-open .index-list li:nth-child(4) { animation-delay: 0.20s; }
.index-overlay.is-open .index-list li:nth-child(5) { animation-delay: 0.25s; }
.index-overlay.is-open .index-list li:nth-child(6) { animation-delay: 0.30s; }
.index-overlay.is-open .index-list li:nth-child(7) { animation-delay: 0.35s; }
.index-overlay.is-open .index-list li:nth-child(8) { animation-delay: 0.40s; }
.index-overlay.is-open .index-list li:nth-child(9) { animation-delay: 0.45s; }
.index-overlay.is-open .index-list li:nth-child(10) { animation-delay: 0.50s; }
.index-overlay.is-open .index-list li:nth-child(11) { animation-delay: 0.55s; }
.index-overlay.is-open .index-list li:nth-child(12) { animation-delay: 0.60s; }

.eras { margin-top: 24px; display: grid; gap: 20px; }
.eras dt { font-family: var(--serif); font-weight: 300; font-size: 20px; }
.eras dd { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   7. Hero (the only section that animates on load)
   ========================================================================== */

.hero { scroll-margin-top: 96px; }
.hero__inner { padding-block: 112px 64px; }
@media (min-width: 1024px) { .hero__inner { padding-block: 160px 96px; } }
.hero__grid { align-items: end; }

.hero__media { position: relative; }
.hero__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__inset {
	position: absolute;
	bottom: -40px;
	left: -16px;
	width: 144px;
	border: 1px solid var(--line);
	background: var(--bg);
	padding: 6px;
	display: none;
}
@media (min-width: 640px) { .hero__inset { display: block; } }
@media (min-width: 1024px) { .hero__inset { left: -40px; width: 160px; } }
.hero__inset-frame { aspect-ratio: 4 / 5; overflow: hidden; }
.hero__inset-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); }
.hero__inset figcaption {
	margin-top: 8px;
	padding: 0 4px 4px;
	font: 400 9px/1.5 var(--sans);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero__stats {
	margin-top: 96px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 32px;
}
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hero__stats { margin-top: 128px; } }
.hero__stats > div { display: flex; align-items: baseline; gap: 12px; }
.hero__stats dt { font-family: var(--serif); font-weight: 300; font-size: 24px; }
@media (min-width: 640px) { .hero__stats dt { font-size: 30px; } }
.hero__stats dd { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.js .hero [data-anim] { opacity: 0; }
.js .hero [data-anim="eyebrow"] { transform: translateY(12px); animation: ak-hero-up 0.7s ease forwards; }
.js .hero [data-anim="title"] { transform: translateY(24px); animation: ak-hero-up 0.9s var(--ease) 0.1s forwards; }
.js .hero [data-anim="intro"] { animation: ak-fade 0.9s ease 0.35s forwards; }
.js .hero [data-anim="actions"] { animation: ak-fade 0.9s ease 0.5s forwards; }
.js .hero [data-anim="media"] { transform: translateY(30px); animation: ak-hero-up 1s var(--ease) 0.2s forwards; }
@keyframes ak-hero-up { to { opacity: 1; transform: none; } }

/* ==========================================================================
   8. The Arc
   ========================================================================== */

.arc__image { margin-top: 32px; aspect-ratio: 4 / 5; max-width: 20rem; overflow: hidden; }
.arc__image img { width: 100%; height: 100%; object-fit: cover; }
.arc__list > li { padding-block: 40px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.arc__list > li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) {
	.arc__list > li { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; }
}
.arc__rail { display: flex; align-items: flex-start; gap: 16px; }
@media (min-width: 640px) { .arc__rail { flex-direction: column; gap: 8px; } }
.arc__n { font-family: var(--serif); font-size: 14px; color: var(--accent); }
.arc__link { display: block; }
.arc__era {
	font-family: var(--serif);
	font-weight: 300;
	font-style: italic;
	font-size: 24px;
	transition: color 0.5s ease;
}
@media (min-width: 640px) { .arc__era { font-size: 30px; } }
.arc__link:hover .arc__era { color: var(--accent); }
.arc__body { margin-top: 16px; max-width: 36rem; color: var(--muted); }
.arc__more { margin-top: 16px; display: inline-block; color: var(--muted); }

.pullquote {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
	max-width: 36rem;
	font-family: var(--serif);
	font-weight: 300;
	font-style: italic;
	font-size: 20px;
	line-height: 1.4;
}

.chapter-links { margin-top: 16px; display: grid; gap: 0 32px; }
@media (min-width: 640px) { .chapter-links { grid-template-columns: 1fr 1fr; } }
.chapter-links a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-block: 12px;
	border-bottom: 1px solid var(--line);
}
.chapter-links__label {
	font-family: var(--serif);
	font-weight: 300;
	font-size: 18px;
	transition: transform 0.5s var(--ease);
}
.chapter-links a:hover .chapter-links__label { transform: translateX(4px); }

.training { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
@media (min-width: 640px) { .training { grid-template-columns: 1fr 1fr; gap: 8px 32px; } }

.block { margin-top: 40px; }

/* ==========================================================================
   9. Section headers
   ========================================================================== */

.sec-head { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .sec-head { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.sec-head h2 { margin-top: 20px; }
.sec-head__note { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 20rem; }
.sec-head__note--wide { max-width: 24rem; }

/* ==========================================================================
   10. Advisory accordion
   ========================================================================== */

.acc { margin-top: 56px; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
	width: 100%;
	display: flex;
	align-items: baseline;
	gap: 20px;
	padding-block: 24px;
	text-align: left;
}
@media (min-width: 640px) { .acc__head { gap: 32px; } }
.acc__n { font: 400 10px/1 var(--sans); letter-spacing: 0.22em; color: var(--muted); flex-shrink: 0; }
.acc__title {
	flex: 1;
	font-family: var(--serif);
	font-weight: 300;
	font-size: 24px;
	line-height: 1.1;
	transition: color 0.3s ease;
}
@media (min-width: 640px) { .acc__title { font-size: 36px; } }
.acc__head:hover .acc__title { color: var(--accent); }
.acc__line {
	display: none;
	font: 400 10px/1 var(--sans);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}
@media (min-width: 640px) { .acc__line { display: block; } }
.acc__sign { font-size: 18px; color: var(--muted); flex-shrink: 0; }

.acc__panel { overflow: hidden; }
.acc-js .acc__panel { height: 0; opacity: 0; transition: height 0.45s var(--ease), opacity 0.45s var(--ease); }
.acc-js .acc__item.is-open .acc__panel { opacity: 1; }
.acc__panel-inner { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 640px) { .acc__panel-inner { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; } }
.acc__cols { display: grid; gap: 32px; }
@media (min-width: 640px) { .acc__cols { grid-template-columns: 1fr 1fr; } }
.acc__cols p { max-width: 28rem; color: var(--muted); }

/* Hairline + text list. */
.hair-list { display: grid; gap: 8px; font-size: 14px; line-height: 1.65; }
.hair-list li { display: flex; gap: 12px; }
.hair-list li::before {
	content: "";
	flex-shrink: 0;
	margin-top: 10px;
	height: 1px;
	width: 16px;
	background: var(--accent);
}
.hair-list--bordered { gap: 0; border-block: 1px solid var(--line); font-size: 17px; }
.hair-list--bordered li { padding-block: 16px; gap: 20px; }
.hair-list--bordered li + li { border-top: 1px solid var(--line); }
.hair-list--bordered li::before { width: 24px; margin-top: 12px; }

/* Dot + text list. */
.dot-list { display: grid; gap: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.dot-list li { display: flex; gap: 16px; }
.dot-list li::before {
	content: "";
	flex-shrink: 0;
	margin-top: 8px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--accent);
}

/* ==========================================================================
   11. Live sessions
   ========================================================================== */

.timetable { border-top: 1px solid var(--line); }
.timetable li { padding-block: 24px; }
.timetable li + li { border-top: 1px solid var(--line); }
.timetable__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.timetable__left { display: flex; align-items: baseline; gap: 20px; }
.timetable__day { width: 96px; flex-shrink: 0; font: 400 10px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.timetable__time { font-family: var(--serif); font-weight: 300; font-size: 24px; }
.timetable__class { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 20px; }
.timetable__note { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (min-width: 640px) { .timetable__note { padding-left: 96px; } }

/* ==========================================================================
   12. Gatherings
   ========================================================================== */

.gath { margin-top: 56px; }
.gath__label {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
	font: 400 10px/1.4 var(--sans);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--muted);
}
.gath__list li { padding-block: 28px; }
.gath__list li + li { border-top: 1px solid var(--line); }
.gath__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.gath__title { margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: 24px; }
.gath__summary { margin-top: 8px; max-width: 28rem; font-size: 14px; line-height: 1.65; color: var(--muted); }
.gath__meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 12px; color: var(--muted); }
.gath__meta a { color: var(--ink); }

/* ==========================================================================
   13. Library: tabs, shelf, modal
   ========================================================================== */

.lib-tabs {
	margin-top: 40px;
	display: flex;
	gap: 24px;
	overflow-x: auto;
	border-bottom: 1px solid var(--line);
	padding-bottom: 16px;
}
.lib-tab {
	white-space: nowrap;
	font: 400 10px/1 var(--sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.3s ease;
}
.lib-tab:hover { color: var(--ink); }
.lib-tab__bar { display: block; margin-top: 8px; height: 1px; width: 0; background: transparent; transition: width 0.5s var(--ease); }
.lib-tab.is-active { color: var(--ink); }
.lib-tab.is-active .lib-tab__bar { width: 100%; background: var(--accent); }

.shelf {
	margin-top: 40px;
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 16px;
}
@media (min-width: 640px) { .shelf { gap: 32px; } }
.shelf__hint { margin-top: 24px; font-size: 12px; color: var(--muted); }
@media (min-width: 640px) { .shelf__hint { display: none; } }

.lib-card { display: block; width: 78vw; flex-shrink: 0; scroll-snap-align: start; text-align: left; }
@media (min-width: 640px) { .lib-card { width: 320px; } }
.lib-card[hidden] { display: none; }
.lib-card__media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary); }
.lib-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease-out; }
.lib-card:hover .lib-card__media img { transform: scale(1.04); }
.lib-card__kind {
	position: absolute;
	left: 16px;
	top: 16px;
	background: rgba(248, 246, 241, 0.9);
	padding: 4px 10px;
	font: 400 9px/1.4 var(--sans);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.lib-card__meta { margin-top: 16px; display: flex; align-items: center; gap: 12px; font: 400 10px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.lib-card__meta .hair-sep { height: 1px; width: 16px; background: var(--line); }
.lib-card__title {
	display: block;
	margin-top: 8px;
	font-family: var(--serif);
	font-weight: 300;
	font-size: 20px;
	line-height: 1.35;
	transition: color 0.3s ease;
}
.lib-card:hover .lib-card__title { color: var(--accent); }
.lib-card__summary {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Full-screen modal detail. */
.lib-modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: var(--bg);
	overflow-y: auto;
	opacity: 0;
	animation: ak-fade 0.3s ease forwards;
}
.admin-bar .lib-modal { top: 32px; }
.lib-modal[hidden] { display: none; }
.lib-modal__inner { max-width: 1100px; margin-inline: auto; padding: 32px var(--gutter); }
@media (min-width: 1024px) { .lib-modal__inner { padding-block: 56px; } }
.lib-modal__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lib-page {
	max-width: 1100px;
	margin-inline: auto;
	padding: 112px var(--gutter) 80px;
}
@media (min-width: 1024px) { .lib-page { padding-block: 160px 96px; } }
.lib-panel[hidden] { display: none; }

.lib-detail { margin-top: 32px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .lib-detail { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px; } }
.lib-detail__cover { aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary); }
.lib-detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.lib-detail h2 { margin-top: 12px; }
.lib-detail__summary { margin-top: 20px; max-width: 32rem; color: var(--muted); }

.specs { margin-top: 28px; padding-block: 20px; border-block: 1px solid var(--line); display: grid; gap: 20px; }
@media (min-width: 640px) { .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.specs dd { margin-top: 6px; font-size: 14px; line-height: 1.4; }

.recipe { margin-top: 32px; display: grid; gap: 32px; }
@media (min-width: 640px) { .recipe { grid-template-columns: 1fr 1fr; } }
.recipe ul { margin-top: 12px; display: grid; gap: 8px; font-size: 14px; line-height: 1.65; }
.recipe ol { margin-top: 12px; display: grid; gap: 12px; font-size: 14px; line-height: 1.65; }
.recipe ol li { display: flex; gap: 12px; }
.recipe__n { font: 400 10px/1.8 var(--sans); letter-spacing: 0.2em; color: var(--accent); flex-shrink: 0; }

.script { margin-top: 32px; }
.script__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.script__status { font-size: 12px; color: var(--muted); }
.script__text {
	margin-top: 24px;
	max-width: 36rem;
	padding-left: 20px;
	border-left: 1px solid rgba(154, 115, 75, 0.4);
	font-family: var(--serif);
	font-weight: 300;
	font-style: italic;
	font-size: 18px;
	line-height: 1.65;
}
.script__play { padding: 12px 24px; font-size: 10px; }

.notes { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.notes ul { margin-top: 16px; }

/* Takeaways. */
.takeaways { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.takeaways__list { margin-top: 12px; }
.takeaways__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 16px;
}
.takeaways__list li + li { border-top: 1px solid var(--line); }
.takeaways__title { max-width: 24rem; font-family: var(--serif); font-weight: 300; font-size: 18px; line-height: 1.35; }
.takeaways__desc { margin-top: 4px; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* Course teaser. */
.course-teaser {
	margin-top: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border: 1px solid var(--blush);
	background: rgba(222, 190, 186, 0.4);
	padding: 20px 24px;
	transition: background-color 0.3s ease;
}
.course-teaser:hover { background: rgba(222, 190, 186, 0.7); }
.course-teaser__title { margin-top: 6px; font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1.35; }
.course-teaser__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.course-teaser svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ==========================================================================
   14. Stillness
   ========================================================================== */

.stillness__grid { align-items: center; }
.stillness__image { aspect-ratio: 5 / 4; overflow: hidden; }
.stillness__image img { width: 100%; height: 100%; object-fit: cover; }
.stillness__row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.stillness__foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ==========================================================================
   15. Abhyas Retreats band
   ========================================================================== */

.band { position: relative; overflow: hidden; scroll-margin-top: 96px; background: var(--ink); }
.band__bg { position: absolute; inset: 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: rgba(29, 32, 42, 0.7); }
.band__inner { position: relative; padding-block: 96px; color: var(--bg); }
@media (min-width: 1024px) { .band__inner { padding-block: 128px; } }
.band__copy { max-width: 42rem; }
.band__copy h2 { margin-top: 24px; }
.band__copy p { margin-top: 24px; max-width: 36rem; line-height: 1.65; color: rgba(248, 246, 241, 0.8); }
.band__actions { margin-top: 40px; }
.band__link { font: 400 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(248, 246, 241, 0.8); }

/* ==========================================================================
   16. Journal
   ========================================================================== */

.jr-grid { margin-top: 56px; display: grid; gap: 48px 32px; }
@media (min-width: 640px) { .jr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .jr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jr-card { display: block; }
.jr-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary); }
.jr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease-out; }
.jr-card:hover .jr-card__media img { transform: scale(1.04); }
.jr-card__meta { display: block; margin-top: 16px; font: 400 10px/1.5 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.jr-card__meta .sep { color: var(--line); margin-inline: 4px; }
.jr-card__title { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1.35; transition: color 0.3s ease; }
.jr-card:hover .jr-card__title { color: var(--accent); }
.jr-card__excerpt {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.jr-card__more { margin-top: 12px; }

/* ==========================================================================
   17. Newsletter band
   ========================================================================== */

.newsletter { background: var(--ink); color: var(--bg); scroll-margin-top: 96px; }
.newsletter > .wrap { padding-block: 64px; }
@media (min-width: 1024px) { .newsletter > .wrap { padding-block: 80px; } }
.newsletter__grid { align-items: center; }
.newsletter__label { font: 400 10px/1.5 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(248, 246, 241, 0.6); }
.newsletter h2 { margin-top: 16px; }
.newsletter__text { margin-top: 16px; max-width: 28rem; font-size: 14px; line-height: 1.65; color: rgba(248, 246, 241, 0.7); }
.nl-form { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .nl-form { flex-direction: row; align-items: flex-end; } }
.nl-form .field { flex: 1; }
.nl-form .btn { flex-shrink: 0; }
.nl-done { border: 1px solid rgba(248, 246, 241, 0.25); padding: 24px; }
.nl-done__title { font-family: var(--serif); font-weight: 300; font-size: 20px; }
.nl-done__text { margin-top: 8px; font-size: 14px; color: rgba(248, 246, 241, 0.7); }
.nl-error { margin-top: 12px; font-size: 14px; color: rgba(248, 246, 241, 0.9); }

/* ==========================================================================
   18. Forms
   ========================================================================== */

.field { display: block; }
.field > span { display: block; }
.field input,
.field select,
.field textarea {
	margin-top: 8px;
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	padding: 10px 0;
	font-size: 17px;
	line-height: 1.5;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.3s ease;
}
.field textarea { resize: none; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 0; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.75; }
.field select {
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 11px) 60%, calc(100% - 6px) 60%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}
.field--light > span { color: rgba(248, 246, 241, 0.6); }
.field--light input {
	border-color: rgba(248, 246, 241, 0.4);
	color: var(--bg);
}
.field--light input::placeholder { color: rgba(248, 246, 241, 0.4); }
.field--light input:focus { border-color: var(--bg); }

.enquiry-form { display: grid; gap: 24px; }
.enquiry-form__pair { display: grid; gap: 24px; }
@media (min-width: 640px) { .enquiry-form__pair { grid-template-columns: 1fr 1fr; } }
.enquiry-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 8px; }
.form-error { font-size: 14px; color: var(--destructive); }

.received { border: 1px solid var(--line); background: var(--parchment); padding: 32px; }
@media (min-width: 640px) { .received { padding: 40px; } }
.received__title { margin-top: 16px; font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.35; }
.received__text { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.received__link { margin-top: 24px; display: inline-block; }

/* ==========================================================================
   19. Connect
   ========================================================================== */

.connect__details { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 20px; font-size: 14px; }
.connect__details dd { margin-top: 4px; }

/* ==========================================================================
   20. Footer signature
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); background: var(--parchment); }
.site-footer > .wrap { padding-block: 64px 40px; }
@media (min-width: 1024px) { .site-footer > .wrap { padding-block: 80px 40px; } }
.signature {
	font-family: var(--script);
	font-weight: 400;
	font-size: clamp(3rem, 10vw, 7rem);
	line-height: 0.85;
	color: var(--accent);
}
.site-footer__bar {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 24px;
	font: 400 10px/1.6 var(--sans);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--muted);
}
@media (min-width: 640px) { .site-footer__bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ==========================================================================
   21. Detail pages: hero, specs, agenda, syllabus
   ========================================================================== */

.page-hero { border-bottom: 1px solid var(--line); background: var(--parchment); }
.page-hero > .wrap { padding-block: 112px 56px; }
@media (min-width: 1024px) { .page-hero > .wrap { padding-block: 144px 80px; } }
.page-hero__grid { margin-top: 32px; }
.page-hero__standfirst { margin-top: 28px; max-width: 36rem; font-size: 18px; line-height: 1.65; color: var(--muted); }
.page-hero__image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary); }
.page-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { max-width: 42rem; }

.meta-grid { padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.meta-grid--3 { margin-top: 56px; }
@media (min-width: 640px) {
	.meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.meta-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.meta-grid dd { margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: 18px; line-height: 1.35; }

.prose-col { display: grid; gap: 20px; line-height: 1.65; color: var(--muted); }
.ordered-list { margin-top: 40px; border-block: 1px solid var(--line); }
.ordered-list li { padding-block: 16px; font-size: 14px; line-height: 1.65; }
.ordered-list li + li { border-top: 1px solid var(--line); }

.syllabus { margin-top: 48px; border-block: 1px solid var(--line); }
.syllabus > li { padding-block: 32px; display: grid; gap: 24px; }
.syllabus > li + li { border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .syllabus > li { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; } }
.syllabus__n { font: 400 10px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.syllabus__title { margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.35; }
.syllabus__note { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--muted); }

.shelf-links { margin-top: 40px; display: grid; gap: 8px 56px; }
@media (min-width: 1024px) { .shelf-links { grid-template-columns: 1fr 1fr; } }
.shelf-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.shelf-links__title { font-family: var(--serif); font-weight: 300; font-size: 18px; line-height: 1.35; }

.other-dates { margin-top: 36px; }
.other-dates a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.other-dates__title { font-family: var(--serif); font-weight: 300; font-size: 18px; line-height: 1.35; }

/* CTA band shared by course / workshop / retreat / chapter pages. */
.cta-band { border-top: 1px solid var(--line); background: var(--parchment); }
.cta-band > .wrap { padding-block: 64px; }
@media (min-width: 1024px) { .cta-band > .wrap { padding-block: 96px; } }
.cta-band h2 { margin-top: 16px; max-width: 28rem; }
.cta-band__body { margin-top: 24px; max-width: 28rem; line-height: 1.65; color: var(--muted); }
.cta-band .btn-outline { margin-top: 36px; }
.cta-band__note { margin-top: 16px; font: 400 12px/1.5 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.cta-points { border-block: 1px solid var(--line); }
.cta-points li { display: flex; gap: 20px; padding-block: 20px; line-height: 1.65; color: rgba(29, 32, 42, 0.8); }
.cta-points li + li { border-top: 1px solid var(--line); }
.cta-points li::before { content: ""; flex-shrink: 0; margin-top: 12px; height: 1px; width: 32px; background: var(--accent); }

/* ==========================================================================
   22. Journal post
   ========================================================================== */

.essay { padding-block: 112px 80px; }
@media (min-width: 1024px) { .essay { padding-block: 160px 80px; } }
.essay__meta { margin-top: 24px; font: 400 10px/1.5 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.essay__meta .sep { color: var(--line); margin-inline: 4px; }
.essay h1 { margin-top: 16px; }
.essay__grid { margin-top: 48px; }
.essay__cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--secondary); }
.essay__cover img { width: 100%; height: 100%; object-fit: cover; }
.essay__body { margin-top: 40px; max-width: 36rem; }
.essay__body > * + * { margin-top: 24px; }
.essay__body p { line-height: 1.65; color: var(--muted); }
.essay__body p:first-child { font-size: 18px; color: var(--ink); }
.essay__body blockquote {
	margin-block: 32px;
	padding-left: 24px;
	border-left: 1px solid rgba(154, 115, 75, 0.4);
	font-family: var(--serif);
	font-weight: 300;
	font-style: italic;
	font-size: 24px;
	line-height: 1.35;
	color: var(--ink);
}
.essay__sign { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--script); font-size: 36px; color: var(--accent); }

.keep-reading { padding-top: 24px; border-top: 1px solid var(--line); }
.keep-reading ul { margin-top: 20px; display: grid; gap: 24px; }
.keep-reading a { display: block; }
.keep-reading__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--secondary); }
.keep-reading__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.keep-reading a:hover .keep-reading__media img { transform: scale(1.04); }
.keep-reading__cat { display: block; margin-top: 12px; font: 400 10px/1.5 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.keep-reading__title { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 300; font-size: 18px; line-height: 1.35; transition: color 0.3s ease; }
.keep-reading a:hover .keep-reading__title { color: var(--accent); }
.letters { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.letters p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.letters a { margin-top: 12px; display: inline-block; }

/* ==========================================================================
   23. Chapter pages
   ========================================================================== */

.chapter-section { border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.chapter-section--deep { background: var(--parchment); }
.chapter-section > .wrap { padding-block: 64px; }
@media (min-width: 1024px) { .chapter-section > .wrap { padding-block: 96px; } }
.chapter-section h2 { margin-top: 16px; max-width: 28rem; }
.chapter-section__note { margin-top: 20px; max-width: 20rem; font-size: 14px; line-height: 1.65; color: var(--muted); }

.chapter-prose { display: grid; gap: 24px; line-height: 1.65; color: var(--muted); }
.chapter-prose p { margin: 0; }
.chapter-prose blockquote {
	padding-left: 24px;
	border-left: 1px solid rgba(154, 115, 75, 0.5);
	font-family: var(--serif);
	font-weight: 300;
	font-style: italic;
	font-size: 20px;
	line-height: 1.4;
	color: var(--ink);
}
.chapter-prose h3 { font-family: var(--serif); font-weight: 300; font-size: 24px; font-style: italic; color: var(--ink); }
.chapter-prose ol { counter-reset: ak-num; }
.chapter-prose ol > li {
	counter-increment: ak-num;
	display: grid;
	gap: 16px;
	padding-block: 20px;
	border-bottom: 1px solid var(--line);
}
.chapter-prose ol > li:first-child { padding-top: 0; }
@media (min-width: 640px) { .chapter-prose ol > li { grid-template-columns: 32px minmax(0, 1fr); gap: 32px; } }
.chapter-prose ol > li::before {
	content: counter(ak-num, decimal-leading-zero);
	font-family: var(--serif);
	font-size: 14px;
	color: var(--accent);
}
.chapter-prose ol > li strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.chapter-prose > ul { display: grid; gap: 12px; }
.chapter-prose > ul > li { display: flex; gap: 12px; }
.chapter-prose > ul > li::before { content: ""; flex-shrink: 0; margin-top: 12px; height: 1px; width: 16px; background: var(--accent); }
.chapter-prose dl { display: grid; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .chapter-prose dl { grid-template-columns: 1fr 1fr; gap: 24px 40px; } }
.chapter-prose dt { font-family: var(--serif); font-weight: 300; font-size: 20px; color: var(--ink); }
.chapter-prose dd { margin-top: 6px; font-size: 14px; line-height: 1.65; }
.chapter-prose article { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.chapter-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   24. Gallery + lightbox
   ========================================================================== */

.gallery { display: grid; gap: 20px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery figure { margin: 0; }
.gallery__btn { display: block; width: 100%; overflow: hidden; background: var(--muted-bg); }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery__btn:hover img { transform: scale(1.03); }
.gallery__btn--portrait { aspect-ratio: 3 / 4; }
.gallery__btn--landscape { aspect-ratio: 4 / 3; }
.gallery__btn--square { aspect-ratio: 1 / 1; }
.gallery figcaption { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(29, 32, 42, 0.6); }
.lightbox[hidden] { display: none; }
.lightbox__panel { width: 100%; max-width: 72rem; background: var(--bg); }
.lightbox__frame { max-height: 70vh; overflow: hidden; background: var(--muted-bg); }
.lightbox__frame img { width: 100%; max-height: 70vh; object-fit: contain; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; }
.lightbox__caption { max-width: 32rem; font-size: 14px; line-height: 1.65; color: var(--muted); }
.lightbox__nav { display: flex; gap: 8px; flex-shrink: 0; }

/* ==========================================================================
   25. 404 and generic pages
   ========================================================================== */

.simple { padding-block: 160px 96px; }
.simple h1 { margin-top: 20px; max-width: 32rem; }
.simple__link { margin-top: 32px; display: inline-block; font: 400 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }

.page-body { padding-block: 112px 80px; }
@media (min-width: 1024px) { .page-body { padding-block: 160px 96px; } }
.page-body .prose { max-width: 36rem; }
.prose > * + * { margin-top: 20px; }
.prose p, .prose li { line-height: 1.65; color: var(--muted); }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-top: 40px; }
.prose h3 { font-size: 24px; margin-top: 32px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.archive-grid { margin-top: 56px; display: grid; gap: 48px 32px; }
@media (min-width: 640px) { .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.archive-grid .lib-card { width: auto; flex-shrink: 1; }
.pagination { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.pagination .page-numbers { margin-right: 16px; }

/* ==========================================================================
   26. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001s !important;
		animation-delay: 0s !important;
		transition-duration: 0.001s !important;
	}
	.js .hero [data-anim],
	.js .index-overlay .index-list li { opacity: 1; transform: none; }
}

/* ==========================================================================
   Library page (/library/) and the "Visit the whole library" row
   ========================================================================== */

.shelf__foot {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.shelf__foot .shelf__hint { margin-top: 0; }
.shelf__foot .link-micro { margin-left: auto; letter-spacing: 0.22em; }

.lib-hero { border-bottom: 1px solid var(--line); background: var(--parchment); }
.lib-hero > .wrap { padding-block: 112px 56px; }
@media (min-width: 1024px) { .lib-hero > .wrap { padding-block: 144px 80px; } }
.lib-hero h1 { margin-top: 24px; max-width: 48rem; }
.lib-hero__standfirst { margin-top: 32px; max-width: 42rem; font-size: 18px; line-height: 1.65; color: var(--muted); }
.lib-hero__count {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font: 400 10px/1.4 var(--sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

.lib-page-list > .wrap { padding-block: 64px; }
@media (min-width: 1024px) { .lib-page-list > .wrap { padding-block: 96px; } }
.lib-tabs--page { margin-top: 0; }
.lib-tabs__count {
	margin-left: auto;
	flex-shrink: 0;
	font: 400 10px/1 var(--sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}
.lib-grid { margin-top: 48px; display: grid; gap: 56px 32px; }
@media (min-width: 640px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .lib-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lib-grid .lib-card { width: 100%; flex-shrink: 1; }

/* ==========================================================================
   Update: Events, countdown strip, Index box, hero film, testimonials, genres
   ========================================================================== */

/* Index overlay: linked areas and the Connect box */
.eras a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.eras a:hover { text-decoration-color: var(--accent); }
.index-box {
	margin-top: 32px;
	border: 1px solid var(--line);
	padding: 24px;
	display: grid;
	gap: 16px;
	justify-items: start;
}
.index-box p { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* Next-session strip (home hero) */
.next-strip { margin-top: 96px; border-top: 1px solid var(--line); padding-top: 32px; display: grid; gap: 32px; }
@media (min-width: 640px) { .next-strip { grid-template-columns: 1.1fr 1fr auto; gap: 40px; align-items: baseline; } }
.next-strip__title { margin-top: 12px; font-family: var(--serif); font-weight: 300; font-size: 22px; line-height: 1.35; }
.next-strip__detail { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.next-strip__actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
@media (min-width: 640px) { .next-strip__actions { justify-content: flex-end; } }

/* Events band (home): one card */
.events-band { border-top: 1px solid var(--line); background: var(--parchment); }
.events-band .wrap { padding-block: 48px; }
.events-band__card { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .events-band__card { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; } }
.events-band__title { margin-top: 12px; font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.3; }
.events-band__meta { margin-top: 8px; color: var(--muted); }

/* Events page */
.hour-block { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.hour-list { margin-top: 20px; }
.hour-list li { display: grid; gap: 8px; padding-block: 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .hour-list li { grid-template-columns: 10rem 1fr; gap: 24px; } }
.hour-list__label { font: 400 10px/1.6 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.hour-list__body { font-size: 14px; line-height: 1.65; color: var(--muted); }
.next-card { border: 1px solid var(--line); background: var(--bg); padding: 32px; }
.next-card__title { margin-top: 12px; font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.3; }
.next-card .micro { margin-top: 8px; display: block; color: var(--muted); }
.next-card__clock { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.next-card__clock dt { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.next-card__clock dd { margin-top: 8px; font: 400 9px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.next-card__done { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; color: var(--muted); }
.next-card__meta { margin-top: 24px; display: grid; gap: 6px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.next-card__btn { margin-top: 24px; display: flex; width: 100%; justify-content: center; }
.enquiry-form__pair--wide { grid-template-columns: 1fr; }
@media (min-width: 640px) { .enquiry-form__pair--wide { grid-template-columns: 1fr 8rem; } }
.all-dates { border-top: 1px solid var(--line); }
.all-dates .wrap { padding-block: 64px; }
.dates-list { margin-top: 24px; border-top: 1px solid var(--line); }
.dates-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding-block: 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.dates-list__left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.dates-list__when { color: var(--muted); }
@media (min-width: 640px) { .dates-list__when { width: 14rem; } }
.dates-list__title { font-family: var(--serif); font-style: italic; font-size: 20px; }

/* Chapter hero: text beside a square picture or film */
.page-hero__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 64px; } .page-hero__grid > .page-hero__text { grid-column: span 7; } .page-hero__grid > .hero-film { grid-column: 9 / span 4; } }
.page-hero .meta-grid { margin-top: 48px; }
.hero-film { margin: 0; }
.hero-film__frame { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line); background: rgba(29, 32, 42, 0.05); overflow: hidden; }
.hero-film__frame img,
.hero-film__frame video,
.hero-film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.hero-film figcaption { margin-top: 12px; font: 400 10px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Testimonials */
.testimonials { background: var(--parchment); border-top: 1px solid var(--line); }
.testimonials .wrap { padding-block: 64px; }
.testimonials__head { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
@media (min-width: 640px) { .testimonials__head { flex-direction: row; align-items: baseline; } }
.testimonials__empty { margin-top: 32px; max-width: 28rem; border-top: 1px solid var(--line); padding-top: 32px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.testimonials__grid { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 32px; display: grid; gap: 32px; }
@media (min-width: 640px) { .testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.testimonial { margin: 0; }
.testimonial blockquote { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 20px; line-height: 1.45; }
.testimonial figcaption { margin-top: 20px; display: grid; gap: 6px; }

/* Guided meditations by genre */
.genres { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.genres__tabs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.genres__tab { border: 1px solid var(--line); background: transparent; padding: 10px 16px; font: 400 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: all 0.3s ease; }
.genres__tab:hover { border-color: var(--blush); }
.genres__tab.is-active { background: var(--blush); border-color: var(--blush); color: var(--blush-ink); }
.genres__list { margin-top: 12px; }
.genre-item { display: grid; gap: 12px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.genre-item[hidden] { display: none; }
@media (min-width: 640px) { .genre-item { grid-template-columns: 1fr auto; align-items: center; gap: 24px; } }
.genre-item__title { display: block; font-family: var(--serif); font-size: 19px; }
.genre-item__note { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.genre-item__play { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* Video on the home portrait: the picture stays the thumbnail */
.video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 0; background: rgba(29, 32, 42, 0.12); cursor: pointer; transition: background 0.3s ease; }
.video-play:hover { background: rgba(29, 32, 42, 0.28); }
.video-play__disc { width: 72px; height: 72px; border: 1px solid #fff; border-radius: 50%; position: relative; background: rgba(29, 32, 42, 0.35); }
.video-play__disc::after { content: ''; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.video-play__label { font: 400 10px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: #fff; }
.video-modal { position: fixed; inset: 0; z-index: 200; background: rgba(20, 22, 28, 0.92); display: flex; align-items: center; justify-content: center; padding: 64px 16px 24px; }
.video-modal[hidden] { display: none; }
.video-modal__stage { width: min(100%, 1100px); aspect-ratio: 16 / 9; background: #000; }
.video-modal__stage iframe,
.video-modal__stage video { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; top: 20px; right: 20px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; padding: 10px 16px; font: 400 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
html.is-locked { overflow: hidden; }
