/* Firdose Moonda theme
   Tokens first; every colour and size below comes from here. */

:root {
	/* Her rose-gold logo colour leads. Deep aubergine ink, warm paper, a darker rose for readable text accents. */
	--ink: #231a27;
	--ink-soft: #5b5261;
	--paper: #fcf9f6;
	--tint: #f6ece7;
	--line: #e6d9d2;
	--accent: #9a4c3d;
	--rose: #d89686;
	--rose-light: #f0c9bd;

	--serif: "Bodoni Moda", "Didot", Georgia, serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

	--step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
	--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
	--step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
	--step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
	--step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
	--step-4: clamp(2.6rem, 1.8rem + 4vw, 5.4rem);

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 48px);
	--section: clamp(64px, 9vw, 128px);
	--radius: 0;
	--header-h: 84px;
	--header-h-top: 150px;
	--logo-h: 128px;
	--logo-h-small: 64px;
	--header-pad: clamp(20px, 3.2vw, 56px);
	--slide-hold: 5s;
	--slide-fade: 1.6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--step-0)/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--medium { max-width: 960px; }
.wrap--narrow { max-width: 760px; }

.eyebrow {
	font: 600 var(--step--1)/1.3 var(--sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 1rem;
}
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 38ch; }
.meta { font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.5rem; }

/* Buttons and links */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.95em 1.6em;
	background: var(--ink); color: var(--paper);
	font: 500 var(--step--1)/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
	text-decoration: none; border: 1px solid var(--ink); border-radius: 999px;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); }
.btn--block { width: 100%; }
.link-arrow {
	display: inline-flex; gap: 0.5em; align-items: center;
	font: 500 var(--step--1)/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform 0.2s; }
.link-arrow--out::after { content: "\2197"; }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: "\2190"; }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(4px); }

/* Header: full width, logo left, links centred, pink Contact button right. Tall over the hero, compact once scrolled. */
/* The frosted backdrop sits on a pseudo-element: a backdrop-filter on the header itself would trap the fixed mobile nav inside it. */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); transition: opacity 0.3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: var(--header-h-top); padding: 8px var(--header-pad); transition: min-height 0.35s ease; }
.site-header.is-scrolled .site-header__inner { min-height: var(--header-h); }
.brand { display: block; justify-self: start; background: none; }
.brand__logo { width: auto; height: var(--logo-h); background: none; transition: height 0.35s ease; }
.site-header.is-scrolled .brand__logo { height: var(--logo-h-small); }
.nav { justify-self: center; }
.header-cta {
	justify-self: end; display: inline-flex; align-items: center; padding: 0.95em 2.6em; border-radius: 999px;
	background: var(--rose); color: var(--ink); border: 1px solid var(--rose);
	font: 600 var(--step--1)/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.header-cta:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }

/* Pages with a full-screen photo (home and the main pages): the header floats over it until the page scrolls. */
:is(.home, .has-hero) .site-header { position: fixed; inset: 0 0 auto; color: var(--paper); }
:is(.home, .has-hero) .site-header::before { opacity: 0; }
:is(.home, .has-hero) .site-header.is-scrolled, :is(.home, .has-hero) .site-header:has(.nav.is-open) { color: var(--ink); }
:is(.home, .has-hero) .site-header.is-scrolled::before, :is(.home, .has-hero) .site-header:has(.nav.is-open)::before { opacity: 1; }
.nav__list { display: flex; gap: clamp(22px, 3.6vw, 64px); list-style: none; margin: 0; padding: 0; }
.nav__list a { font: 500 var(--step--1)/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav__list a:hover, .nav__list .current-menu-item a { border-bottom-color: var(--rose); color: inherit; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
.nav-toggle__bar { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform 0.2s; }

@media (max-width: 860px) {
	:root { --logo-h: 76px; --logo-h-small: 52px; --header-h-top: 96px; --header-h: 68px; }
	.site-header__inner { grid-template-columns: 1fr auto auto; gap: 12px; }
	.header-cta { order: 2; padding: 0.8em 1.4em; }
	.nav-toggle { display: block; order: 3; }
	.brand { order: 1; }
	.nav { position: fixed; inset: 0; justify-self: stretch; align-self: stretch; z-index: -2; background: var(--paper); color: var(--ink); padding: calc(var(--header-h-top) + 16px) var(--gutter) 32px; transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease, visibility 0s 0.3s; }
	.nav.is-open { transform: none; visibility: visible; transition: transform 0.3s ease; }
	.nav__list { flex-direction: column; gap: 4px; }
	.nav__list a { display: block; font: 400 var(--step-2)/1.4 var(--serif); text-transform: none; letter-spacing: 0; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3.75px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
}

/* Hero: full-screen photo slideshow with the intro over it */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h-top) + 32px) 0 clamp(48px, 8vh, 96px); background: var(--ink); color: var(--paper); overflow: hidden; }
.hero em { color: var(--rose-light); }
.hero .eyebrow { color: var(--rose-light); }
.hero .lede { color: color-mix(in srgb, var(--paper) 85%, transparent); }
.hero .btn { background: var(--rose); border-color: var(--rose); color: var(--ink); }
.hero .btn:hover { background: var(--paper); border-color: var(--paper); }
.hero .btn--ghost { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 55%, transparent); }
.hero .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.hero__slides { position: absolute; inset: 0; z-index: -1; }
.hero__slides::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--ink) 45%, transparent) 0%, transparent 24%),
		linear-gradient(20deg, color-mix(in srgb, var(--ink) 80%, transparent) 0%, color-mix(in srgb, var(--ink) 35%, transparent) 42%, transparent 70%);
}
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity var(--slide-fade) ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-wide, center) var(--focus-y, center); }
/* On a phone the photo is cropped to a tall strip, so each slide says where she is in the frame (--focus on the figure). */
@media (max-width: 760px) { .hero__slide img { object-position: var(--focus, 50%) var(--focus-y, center); } }
.hero__slide.is-active img { animation: hero-drift calc(var(--slide-hold) + var(--slide-fade) * 2) ease-out both; }
@keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
/* The hero text lines up with the logo, not the centred content column. */
.hero__inner { position: relative; max-width: none; padding-inline: var(--header-pad); }
.hero__text { max-width: 760px; }
.hero__title { font-size: var(--step-4); font-weight: 400; text-wrap: balance; margin-bottom: 1.5rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__awards { list-style: none; margin: 1.75rem 0 0; padding: 1rem 0 0; border-top: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); display: flex; flex-wrap: wrap; gap: 0.75rem clamp(24px, 3vw, 48px); font: 400 var(--step--1)/1.45 var(--sans); color: color-mix(in srgb, var(--paper) 85%, transparent); }
.hero__awards li { max-width: 46ch; }
.hero__award-place { display: block; font: 400 var(--step-1)/1.2 var(--serif); color: var(--rose-light); margin-bottom: 0.1rem; }
.hero__pause { position: absolute; right: var(--gutter); bottom: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--paper) 55%, transparent); background: transparent; color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.hero__pause::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.hero__pause[aria-pressed="true"]::before { width: 0; height: 0; border-block: 7px solid transparent; border-inline: 11px solid currentColor; border-inline-end: 0; margin-left: 3px; }
.hero__pause:hover { background: var(--paper); color: var(--ink); }
.arch { position: relative; margin: 0; max-width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Outlet strip: a slow ticker of the places she has written for and been heard on. The list is in the HTML once; the script copies it to make the loop. */
.outlets { border-block: 1px solid var(--line); padding: 28px 0 32px; overflow: hidden; }
.outlets__label { text-align: center; color: var(--ink-soft); margin: 0 0 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent); }
.marquee__track { display: flex; width: max-content; }
.outlets__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; list-style: none; margin: 0; padding: 0; font: italic 400 var(--step-2)/1.1 var(--serif); }
.outlets__list li { padding: 0 clamp(20px, 2.4vw, 36px); white-space: nowrap; display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.outlets__list li::after { content: "\2726"; font: normal 400 0.5em/1 var(--sans); color: var(--rose); margin-right: calc(-1 * clamp(20px, 2.4vw, 36px)); }
.marquee.is-running .outlets__list { flex-wrap: nowrap; }
.marquee:not(.is-running) .marquee__track { width: auto; justify-content: center; }

/* Stats */
.stats { padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.stats__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat__value { display: block; font: italic 400 var(--step-4)/1 var(--serif); color: var(--accent); font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 640px) { .stats__inner { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: var(--section) 0; }
.section--flush-top { padding-top: 0; }
.hero--page + .section--flush-top { padding-top: var(--section); }
.section--tint { background: var(--tint); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--rose-light); }
.section--ink em { color: var(--rose-light); }
.section-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section--ink .section-head { border-color: color-mix(in srgb, var(--paper) 20%, transparent); }
.section-head__numeral { font: italic 400 var(--step-3)/1 var(--serif); color: var(--rose); min-width: 1.4em; }
.section-head__title { font-size: var(--step-3); }
.section-head .eyebrow { margin-bottom: 0.5rem; }
@media (max-width: 640px) { .section-head { grid-template-columns: 1fr; } .section-head__numeral { display: none; } }

/* Pillars */
.pillars { padding-top: clamp(48px, 6vw, 80px); }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.pillar { padding: 32px 28px 36px; text-decoration: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: background 0.25s; }
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--tint); color: var(--ink); }
.pillar__numeral { font: italic 400 var(--step-1)/1 var(--serif); color: var(--accent); }
.pillar__title { font-size: var(--step-2); }
.pillar p { color: var(--ink-soft); flex: 1; margin: 0; }
@media (max-width: 960px) { .pillars__grid { grid-template-columns: 1fr 1fr; } .pillar:nth-child(2) { border-right: 0; } .pillar { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .pillars__grid { grid-template-columns: 1fr; } .pillar { border-right: 0; } }

/* Grids and cards */
.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: 1fr; } }

.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card__link:hover { color: var(--ink); }
.card__media { margin: 0 0 20px; aspect-ratio: 10 / 7; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card__link:hover .card__media img { transform: scale(1.04); }
.card__title { font-size: var(--step-1); line-height: 1.2; margin-bottom: 0.6rem; transition: color 0.2s; }
.card__link:hover .card__title { color: var(--accent); }
.card__text { color: var(--ink-soft); flex: 1; }

.card__cover { margin: 0 0 20px; aspect-ratio: 2 / 3; background: var(--paper); border-radius: 2px; overflow: hidden; box-shadow: 0 18px 40px -20px rgba(28, 26, 30, 0.45); transition: transform 0.35s ease; }
.card__cover img { width: 100%; height: 100%; object-fit: cover; }
.card__link:hover .card__cover { transform: translateY(-6px) rotate(-1deg); }
.card__cover-fallback { display: flex; align-items: flex-end; height: 100%; padding: 20px; background: var(--accent); color: var(--paper); font: italic 400 var(--step-1)/1.15 var(--serif); }

.card--course .card__link { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: border-color 0.2s, transform 0.2s; }
.section--tint .card--course .card__link { border-color: transparent; }
.card--course .card__link:hover { border-color: var(--accent); transform: translateY(-3px); }
.course__hours { font: 400 var(--step-3)/1 var(--serif); color: var(--accent); margin-bottom: 16px; }
.course__hours small { font: 500 var(--step--1) var(--sans); letter-spacing: 0.1em; text-transform: uppercase; margin-left: 6px; color: var(--ink-soft); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 40px; }
.filter { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font: 500 var(--step--1)/1 var(--sans); cursor: pointer; color: var(--ink); }
.filter.is-active, .filter:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-tags][hidden] { display: none; }

/* Talks */
.talk { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.talk:last-child { border-bottom: 1px solid var(--line); }
.talk__day { display: block; font: 400 var(--step-2)/1 var(--serif); }
.talk__year { display: block; color: var(--ink-soft); margin-top: 6px; }
.talk__title { font-size: var(--step-2); margin-bottom: 0.75rem; }
.talk__with { color: var(--ink-soft); font-style: italic; }
.talk__quote { margin: 1.25rem 0; padding-left: 20px; border-left: 2px solid var(--rose); font: italic 400 var(--step-1)/1.4 var(--serif); }
.talk__media { margin-top: 1.5rem; aspect-ratio: 16 / 9; }
.talk__media iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
@media (max-width: 640px) { .talk { grid-template-columns: 1fr; gap: 12px; } }

/* Testimonials */
.testimonial { margin: 0; }
.testimonial__quote { margin: 0 0 1.5rem; }
.testimonial__quote::before { content: "\201C"; display: block; font: 400 calc(var(--step-2) * 3)/0.6 var(--serif); color: var(--rose); margin-bottom: -0.15em; }
.testimonial__quote p { font: 400 var(--step-0)/1.7 var(--sans); margin: 0; }
/* Long reviews show five lines and a "Read the full review" button; without JS the whole review shows. */
.js .testimonial__quote p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.js .testimonial.is-open .testimonial__quote p { display: block; overflow: visible; }
.testimonial__more { background: none; border: 0; padding: 0 0 2px; margin: -0.75rem 0 1.5rem; font: 500 var(--step--1)/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: inherit; border-bottom: 1px solid var(--rose); cursor: pointer; }
.testimonial__more:hover { color: var(--rose); }
.testimonial__by strong { display: block; font-weight: 600; }
.testimonial__by span { color: color-mix(in srgb, currentColor 65%, transparent); }

.carousel { overflow: hidden; }
.carousel__track { display: flex; transition: transform 0.5s ease; }
.carousel__slide { flex: 0 0 100%; padding-right: 48px; }
@media (min-width: 900px) { .carousel__slide { flex-basis: 50%; } }
.carousel__controls { display: flex; gap: 8px; margin-top: 40px; }
.carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: none; color: inherit; font-size: 1.1rem; cursor: pointer; }
.carousel__btn:hover { background: var(--rose-light); border-color: var(--rose-light); color: var(--ink); }

/* Newsletter */
.newsletter { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0; }
.newsletter__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.newsletter .eyebrow { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.newsletter__title { font-size: var(--step-3); margin-bottom: 1rem; }
.newsletter em { color: var(--rose-light); }
.newsletter__soon { font: italic 400 var(--step-1)/1.4 var(--serif); }
.newsletter__soon a, .newsletter a { color: var(--paper); }
.newsletter input[type="email"], .newsletter input[type="text"] { width: 100%; padding: 14px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--paper) 50%, transparent); background: transparent; color: var(--paper); font: inherit; }
.newsletter button, .newsletter input[type="submit"] { margin-top: 10px; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--rose); color: var(--ink); font: 600 var(--step--1) var(--sans); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 760px) { .newsletter__inner { grid-template-columns: 1fr; } }
.newsletter__fields { display: grid; gap: 10px; }
.newsletter__fields button { justify-self: start; margin-top: 0; }
.newsletter input::placeholder { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* Forms (sent to the Destiny Digital portal) */
.hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.65em; margin: 0; font-size: var(--step--1); }
.form-note:empty { display: none; }
.contact-form { display: grid; gap: 18px; margin-top: 2rem; }
.contact-form .field { margin: 0; display: grid; gap: 6px; }
.contact-form label { font: 600 var(--step--1)/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-form label span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; }
.contact-form .field--check { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.contact-form .field--check input { width: auto; }
.contact-form .field--check label { font: inherit; text-transform: none; letter-spacing: 0; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.form-error { color: var(--accent); }

/* Inner pages */
.page-hero { padding: clamp(48px, 7vw, 112px) 0 clamp(40px, 5vw, 72px); }
.page-hero__inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end; }
.page-hero--image .page-hero__inner { grid-template-columns: 1.4fr 0.6fr; }
.page-hero__title { font-size: var(--step-4); font-weight: 400; text-wrap: balance; margin-bottom: 1.25rem; }
.page-hero__media { max-width: 360px; justify-self: end; width: 100%; }
@media (max-width: 760px) { .page-hero--image .page-hero__inner { grid-template-columns: 1fr; } .page-hero__media { justify-self: start; max-width: 280px; } }

.prose { font-size: var(--step-0); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 2em 0; padding-left: 24px; border-left: 2px solid var(--rose); font: italic 400 var(--step-1)/1.45 var(--serif); }
/* Pages with a lot of text: two columns on wide screens. */
@media (min-width: 1100px) {
	.wrap--narrow.prose--columns { max-width: var(--wrap); columns: 2; column-gap: clamp(40px, 5vw, 80px); }
	.prose--columns > * { break-inside: avoid; }
	.prose--columns > * + * { margin-top: 0; }
	.prose--columns > * { margin-bottom: 1.1em; }
}

.detail__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.detail__grid--course { grid-template-columns: 1.4fr 0.6fr; }
.detail__cover { margin: 0; box-shadow: 0 24px 60px -24px rgba(28, 26, 30, 0.5); }
.detail .btn { margin: 1.5rem 0; }
.facts { position: sticky; top: 100px; background: var(--tint); padding: 32px; border-radius: var(--radius); display: grid; gap: 20px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.facts dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.facts dd { margin: 0; }
@media (max-width: 760px) { .detail__grid, .detail__grid--course { grid-template-columns: 1fr; } .facts { position: static; } }

.cta-band { text-align: center; }
.cta-band .lede { margin: 1rem auto 2rem; }

/* About page photo carousel: a draggable strip that snaps photo by photo. Works as a plain scroller without JavaScript. */
.gallery { padding: 0 0 var(--section); }
.gallery__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.gallery__head .eyebrow { margin: 0; }
.gallery__controls { display: flex; gap: 8px; }
.gallery__track {
	display: flex; gap: clamp(12px, 1.6vw, 24px); list-style: none; margin: 0;
	padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
	scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__track.is-dragging img { pointer-events: none; }
.gallery__item { flex: 0 0 clamp(220px, 26vw, 380px); aspect-ratio: 2 / 3; overflow: hidden; scroll-snap-align: start; background: var(--tint); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; user-select: none; -webkit-user-drag: none; }
.gallery__item:hover img { transform: scale(1.04); }
.section--ink .carousel__btn, .gallery .carousel__btn { color: var(--ink); }
.gallery .carousel__btn:hover { background: var(--rose); border-color: var(--rose); }

/* Book launch photos: a masonry of the photos at their own shapes. */
.launch-video { margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 16 / 9; background: var(--ink); }
.launch-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.launch-photos { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; columns: 2; column-gap: clamp(10px, 1.4vw, 20px); }
.launch-photos li { break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 20px); background: color-mix(in srgb, var(--paper) 8%, transparent); }
.launch-photos img { display: block; width: 100%; height: auto; }
@media (min-width: 700px) { .launch-photos { columns: 3; } }
@media (min-width: 1100px) { .launch-photos { columns: 4; } }

/* Motion (GSAP). Starting states only apply once the script has confirmed it can animate. */
.has-motion [data-split] { visibility: hidden; }
.has-motion [data-split].is-split { visibility: visible; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.media-reveal { clip-path: inset(0 0 0 0); }
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 90; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--rose); pointer-events: none; mix-blend-mode: multiply; opacity: 0; transition: width 0.25s, height 0.25s, margin 0.25s, opacity 0.25s; }
.cursor-dot.is-on { opacity: 1; }
.cursor-dot.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: 0.35; }
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; background: var(--rose); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* World Cups timeline. A vertical list on phones; on wider screens the script pins it and scrolls it sideways. */
.worldcups { background: var(--ink); color: var(--paper); padding: var(--section) 0; overflow: hidden; }
.worldcups .eyebrow { color: var(--rose-light); }
.worldcups em { color: var(--rose-light); }
.worldcups .lede { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.worldcups__head { margin-bottom: clamp(40px, 5vw, 72px); }
.worldcups__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: 0; max-width: var(--wrap); margin-inline: auto; position: relative; }
.worldcups__item { position: relative; padding: 28px 0 28px 36px; border-left: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); }
.worldcups__item::before { content: ""; position: absolute; left: -6px; top: 40px; width: 11px; height: 11px; border-radius: 50%; background: var(--rose); }
.worldcups__count { display: block; font: 500 var(--step--1)/1 var(--sans); letter-spacing: 0.12em; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.worldcups__year { display: block; font: italic 400 var(--step-4)/1 var(--serif); color: var(--rose); margin: 8px 0 12px; }
.worldcups__title { font-size: var(--step-2); }
.worldcups__host { margin: 6px 0 16px; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.worldcups__quote { display: block; font: italic 400 var(--step-1)/1.4 var(--serif); margin-bottom: 12px; }
.worldcups__story { text-decoration: none; display: block; }
.worldcups__story:hover { color: var(--rose-light); }
@media (min-width: 900px) {
	.worldcups.is-horizontal .worldcups__viewport { overflow: visible; }
	.worldcups.is-horizontal .worldcups__track { display: flex; width: max-content; max-width: none; margin: 0; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
	.worldcups.is-horizontal .worldcups__item { width: clamp(300px, 28vw, 400px); padding: 48px 48px 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); }
	.worldcups.is-horizontal .worldcups__item::before { left: 0; top: -6px; }
}

/* Latest ESPNcricinfo articles, written in by the build step. */
.latest__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 40px); counter-reset: latest; }
.latest__item { border-top: 1px solid var(--line); counter-increment: latest; }
.latest__item a { display: grid; gap: 6px; padding: 24px 0 28px; text-decoration: none; }
.latest__item a::before { content: counter(latest, decimal-leading-zero); font: italic 400 var(--step-1)/1 var(--serif); color: var(--rose); }
.latest__date { font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.latest__title { font: 400 var(--step-1)/1.25 var(--serif); }
.latest__item a:hover .latest__title { color: var(--accent); }
.latest__summary { color: var(--ink-soft); font-size: var(--step--1); }
.latest__summary:empty { display: none; }
.latest__fallback { font: italic 400 var(--step-1)/1.4 var(--serif); color: var(--ink-soft); }
@media (max-width: 860px) { .latest__list { grid-template-columns: 1fr; } }
.stat a.stat__label { text-decoration-color: var(--rose); }

/* Listening page */
.listen { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.listen__item { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; }
.listen__title { font-size: var(--step-2); margin-bottom: 0.6rem; }
.listen__text { color: var(--ink-soft); }
.listen__player { margin: 8px 0 16px; }
.listen__player iframe { width: 100%; border: 0; display: block; background: var(--tint); }
.listen__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; }
@media (max-width: 760px) { .listen { grid-template-columns: 1fr; } }

/* Press kit */
.presskit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.presskit__bio { grid-column: span 1; }
.presskit__bio-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.presskit__bio-head .eyebrow { margin: 0; }
.presskit__copy { background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 16px; font: 500 var(--step--1)/1 var(--sans); cursor: pointer; color: var(--ink); }
.presskit__copy:hover, .presskit__copy.is-done { background: var(--rose); border-color: var(--rose); }
.presskit__facts { grid-column: 1 / -1; position: static; grid-template-columns: repeat(3, 1fr); }
.presskit__facts > div { display: grid; gap: 4px; }
.presskit__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); margin-bottom: 20px; }
.presskit__photo { margin: 0; }
.presskit__photo img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.presskit__photo figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; font-size: var(--step--1); }
.presskit__photo figcaption span { color: var(--ink-soft); }
@media (max-width: 860px) { .presskit { grid-template-columns: 1fr; } .presskit__facts { grid-template-columns: 1fr 1fr; } .presskit__photos { grid-template-columns: 1fr 1fr; } }

/* Book cover drawn in type until the cover image arrives */
.book-cover { aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 3vw, 40px); background: linear-gradient(160deg, var(--ink) 0%, var(--accent) 120%); color: var(--paper); }
.book-cover__number { font: italic 400 clamp(4rem, 9vw, 8rem)/0.9 var(--serif); color: var(--rose); }
.book-cover__title { font: 400 var(--step-3)/1.05 var(--serif); }
.book-cover__by { font: 500 var(--step--1)/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose-light); }
.book-cover--small { padding: 18px; }
.book-cover--small .book-cover__number { font-size: var(--step-4); }
.book-cover--small .book-cover__title { font-size: var(--step-1); }
.badge { display: inline-block; background: var(--rose); color: var(--ink); border-radius: 999px; padding: 4px 12px; margin-right: 8px; letter-spacing: 0.08em; }
.book-facts { position: static; margin: 1rem 0 1.5rem; grid-template-columns: auto 1fr; gap: 10px 20px; }
.book-facts > div { display: contents; }

/* Blog posts (built from the portal) */
.post__image { margin: 0 0 clamp(32px, 5vw, 56px); aspect-ratio: 16 / 9; }
.post__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: var(--step--1); }

/* Footer: her rose pink, as on her current site, with ink text so it stays readable. */
.site-footer { background: var(--rose); color: var(--ink); padding: clamp(56px, 7vw, 96px) 0 32px; font-size: var(--step--1); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--paper); }
.site-footer .eyebrow { color: var(--ink); font: 400 var(--step-2)/1.1 var(--serif); letter-spacing: 0; text-transform: none; margin-bottom: 1.2rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.site-footer__logo { display: inline-block; }
.site-footer__logo-img { width: auto; height: 140px; filter: brightness(0) invert(1); }
.site-footer__tag { margin-top: 1rem; }
.socials { display: flex; gap: 10px; list-style: none; padding: 0; margin: 1rem 0 0; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 50%; transition: background 0.2s, color 0.2s; }
.socials a:hover { background: var(--ink); color: var(--rose); border-color: var(--ink); }
.site-footer .nav__list, .footer-links { flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; display: flex; }
.site-footer .nav__list a { font: inherit; text-transform: none; letter-spacing: 0; text-decoration: none; padding: 0; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.site-footer__base p { margin: 0; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Scroll reveal (only when JS has run) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* Placeholder until a photo is chosen */
.arch:not(:has(img)) { background: linear-gradient(165deg, var(--accent) 0%, var(--ink) 55%, var(--rose) 140%); display: grid; place-items: center; }
.arch:not(:has(img))::before { content: "FM"; font: italic 400 clamp(4rem, 10vw, 8rem)/1 var(--serif); color: color-mix(in srgb, var(--paper) 85%, transparent); }
