/* story.css — Adam's Story page overrides only. The system lives in
   components.css; keep this file thin.

   Quiet Editorial: one continuous warm reading surface, a single
   epigraph, and two isolated moments (the reveal, the ending). Base
   rules below render everything fully visible and unanimated; the
   fade-rise only ever applies once JS (story-scroll.js) has confirmed
   prefers-reduced-motion is NOT set and flagged <html class="akf-js">. */

/* ---- shared: warm duotone for every story photo ---- */
.akf-story .akf-duotone {
	filter: grayscale(1) sepia(0.5) brightness(1.02) contrast(1.02);
}

/* Tighter section rhythm than the site default so the story reads as one
   continuous piece, not a stack of panels. The set-apart moments below
   re-assert their own (still modest) spacing at equal-or-higher specificity. */
/* Reading sections contribute no vertical padding; the set-apart callouts
   below own all the spacing, so each callout's symmetric padding is the
   entire gap above and below it (even on both sides). */
.akf-story .akf-section { padding-block: 0; }

/* ---- intro hero: sage rather than the homepage's field green, so the
   story page reads as its own space while staying inside the same
   system. Kept close to the pre-redesign version. ---- */
.akf-story .akf-story-hero { background: var(--field); text-align: center; }
.akf-story .akf-story-hero .akf-hero__title { max-width: none; }
.akf-story .akf-story-hero .akf-hero__lede { max-width: 46ch; margin-inline: auto; font-style: italic; }
.akf-story-hero__by {
	margin: 0.6rem 0 0;
	font-size: var(--step--1);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(244, 242, 233, 0.72);
}
.akf-story-hero__facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	list-style: none;
	margin: 1.8rem 0 0;
	padding: 1.4rem 0 0;
	border-top: 1px solid rgba(244, 242, 233, 0.28);
}
.akf-story-hero__facts li { font-size: var(--step--1); color: rgba(244, 242, 233, 0.85); }

/* ---- epigraph: the page's one pull-quote. Quiet, centered, a
   distinct (lighter, larger) typographic register — not a boxed card,
   not a brand-color block. ---- */
.akf-story .akf-epigraph { padding-block: clamp(2.75rem, 6vw, 4.5rem); text-align: center; }
.akf-epigraph__quote { position: relative; max-width: 54ch; margin: 0 auto; }
.akf-epigraph__quote p {
	font-family: var(--font-body);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(1.3rem, 2.6vw, 1.7rem);
	line-height: 1.45;
	color: var(--text-on-bone);
	margin: 0;
}
.akf-epigraph__quote cite {
	display: block;
	margin-top: 1.6rem;
	font-style: normal;
	font-size: var(--step--1);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted-on-bone);
}

/* ---- the reading column ---- */
.akf-story .akf-prose {
	max-width: 65ch;
	margin-inline: auto;
}
.akf-story .akf-prose p {
	font-size: clamp(1.125rem, 1.06rem + 0.2vw, 1.25rem);
	line-height: 1.7;
	margin: 0 0 1.5rem;
	text-align: left; /* ragged right, never justified */
}
.akf-story .akf-prose p:last-child { margin-bottom: 0; }
.akf-story .akf-lede { font-size: var(--step-1); line-height: 1.5; }

/* Drop cap on the true opening letter only — progressive enhancement
   via ::first-letter, stays in the a11y tree. */
.akf-story .akf-prose--opening p:first-of-type::first-letter {
	float: left;
	font-family: var(--font-disp);
	font-weight: 800;
	font-stretch: 70%;
	font-size: 3.4em;
	line-height: 0.82;
	padding: 0.03em 0.09em 0 0;
	color: var(--sage);
}

/* Scene breaks between the story's movements: whitespace + a single
   centered glyph, never a rule. */
.akf-story .akf-scenebreak {
	text-align: center;
	margin: clamp(2.25rem, 6vw, 4rem) 0;
	font-size: 1.3rem;
	color: var(--muted-on-bone);
}

/* Inset photos, placed within the flow at natural pauses. */
.akf-story .akf-story__inset {
	max-width: 26rem;
	margin: clamp(2rem, 6vw, 3.75rem) auto;
}
.akf-story .akf-story__inset img {
	width: 100%;
	height: auto;
	border-radius: 3px;
	object-fit: cover;
}

/* ---- the reveal: isolated quiet moment on the reading surface ---- */
.akf-story .akf-story__reveal-section { text-align: center; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.akf-story__reveal-line {
	font-family: var(--font-disp);
	font-weight: 500;
	font-stretch: 84%;
	font-size: clamp(1.65rem, 4vw, 2.5rem);
	line-height: 1.2;
	letter-spacing: -0.005em;
	max-width: 20ch;
	margin: 0 auto; /* no default <p> margin, so the section's symmetric padding sets equal space above and below */
	color: var(--text-on-bone);
}

/* ---- the ending: reverent isolation. Smaller and quieter than the
   reveal — restraint, not amplification — with the most whitespace on
   the page and a subtle tone deepening (--bone-d via the section
   surface class already applied in markup). ---- */
.akf-story .akf-story__ending-section { text-align: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.akf-story__ending-line {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: var(--step-0);
	line-height: 2.05;
	max-width: 42ch;
	margin-inline: auto;
	color: var(--muted-on-bone);
}

/* Real gap before the give band so it never shares a viewport with the
   ending line above it — on top of the ending section's own large
   bottom padding. */
.akf-story .akf-give-band { padding-top: clamp(6rem, 15vw, 10rem); }

/* ---- one-shot fade + rise (progressive enhancement) ----
   Base state: fully visible, no transform — this is what every
   visitor gets with CSS-only or JS-disabled browsers. */
.akf-reveal { opacity: 1; transform: none; }

/* Only ever pre-hide when (a) motion is not reduced, AND (b) JS has
   run and flagged the document — never gate visibility on a class
   that could fail to arrive. */
@media (prefers-reduced-motion: no-preference) {
	.akf-js .akf-reveal {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity 0.45s ease-out, transform 0.45s ease-out;
	}
	.akf-js .akf-reveal.is-visible {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Thin scroll-progress bar, added by story-scroll.js. Not gated on
   reduced-motion: it's a static width read-out with no transition,
   not a decorative animation. */
.akf-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, var(--sage), var(--gold));
	z-index: var(--z-menu);
	pointer-events: none;
}

/* responsive collapse */
@media (max-width: 780px) {
	.akf-story .akf-story__inset { max-width: 100%; }
}
