/* ==========================================================================
   D’oba — Our Story (editorial chapters)
   ========================================================================== */

.story-hero {
	padding-top: calc(var(--header-h) + clamp(1.5rem, 1rem + 3vw, 4rem));
	background: var(--c-ink);
	color: var(--c-cream);
}

.story-hero__grid {
	display: grid;
	gap: clamp(3rem, 2rem + 3vw, 4rem);
	align-items: center;
	padding-bottom: calc(var(--section-y) * 0.8);
}

.story-hero .kicker {
	color: var(--c-pink-soft);
}

.story-hero__title {
	max-width: 13ch;
	font-size: var(--fs-h1);
	line-height: 0.95;
	color: var(--c-cream);
}

.story-hero__title em {
	color: var(--c-pink-soft);
}

.story-hero__text {
	max-width: 30ch;
	margin-top: 1.5rem;
	font-family: var(--f-display);
	font-weight: 430;
	font-size: var(--fs-xl);
	line-height: 1.3;
}

.story-hero__figure {
	position: relative;
	justify-self: center;
	width: min(80vw, 420px);
}

.story-hero__arch {
	aspect-ratio: 953 / 1123;
	transform: rotate(-2deg);
}

.story-hero__note {
	margin-top: 1.5rem;
	margin-left: -4%;
	color: var(--c-pink-soft);
	font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem);
}

@media (min-width: 900px) {
	.story-hero__grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	}

	.story-hero__note {
		margin-left: -22%;
	}
}

/* Shared chapter styles */
.chapter {
	padding-block: calc(var(--section-y) + var(--band-h) / 2) var(--section-y);
}

.chapter__kicker {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-family: var(--f-display);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.chapter__num {
	font-family: var(--f-hand);
	font-size: 2rem;
	letter-spacing: 0;
	color: var(--c-pink-deep);
	transform: rotate(-8deg);
}

.chapter__title {
	font-size: var(--fs-h2);
	line-height: 0.95;
}

.chapter__body {
	display: grid;
	gap: 1.1rem;
	max-width: 38rem;
	margin-top: 1.5rem;
	font-size: var(--fs-lg);
	line-height: 1.6;
}

/* Chapters that open with a pattern band: the band sits on the seam, spacing moves inside. */
.chapter:has(> .chapter__band) {
	padding-top: 0;
}

.chapter__band {
	margin-top: calc(var(--band-h) / -2);
}

.chapter__band + .container {
	padding-top: var(--section-y);
}

/* 01 Origin */
.chapter--origin .chapter__grid {
	display: grid;
	gap: 1.25rem;
}

.chapter--origin .origin__figure {
	margin-top: 1.5rem;
}

@media (max-width: 599px) {
	.recipe__plus {
		display: none;
	}
}

.origin__figure {
	justify-self: center;
	width: min(100%, 520px);
}

.origin__frame {
	--tilt: 2deg;
}

.pull-quote {
	padding-top: clamp(1rem, 2vw, 2rem);
	text-align: center;
}

.pull-quote p {
	max-width: 20ch;
	margin-inline: auto;
	font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.5rem);
	font-style: italic;
	font-weight: 600;
	line-height: 1.05;
	text-transform: none;
	color: var(--c-coral-deep);
}

.pull-quote p::before {
	content: "“";
}

.pull-quote p::after {
	content: "”";
}

@media (min-width: 900px) {
	.chapter--origin .chapter__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas:
			"head figure"
			"body figure"
			"quote quote";
		column-gap: clamp(2rem, 6vw, 7rem);
		row-gap: 0;
	}

	.chapter--origin .chapter__head { grid-area: head; align-self: end; }
	.chapter--origin .chapter__body { grid-area: body; align-self: start; }
	.origin__figure { grid-area: figure; align-self: center; }
	.pull-quote { grid-area: quote; margin-top: clamp(3rem, 5vw, 5rem); }
}

/* 02 Teta */
.chapter--teta {
	padding-bottom: 0;
	background: var(--c-pink);
}

.teta__grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.chapter--teta .chapter__num {
	color: var(--c-brown);
}

.teta__photo {
	justify-self: center;
	width: min(92vw, 520px);
}

.sayings {
	display: grid;
	gap: 0.9rem;
	margin-top: 2rem;
}

.saying {
	justify-self: start;
	padding: 0.7rem 1.3rem 0.8rem;
	border-radius: var(--r-soft);
	background: var(--c-cream);
	font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
	box-shadow: 0 10px 22px -16px rgba(42, 22, 16, 0.6);
}

.saying--2 {
	justify-self: center;
	background: var(--c-white);
}

.saying--3 {
	justify-self: end;
}

.teta__moods {
	display: flex;
	justify-content: center;
	gap: clamp(0.5rem, 3vw, 3rem);
	margin-top: clamp(2.5rem, 4vw, 4rem);
	padding-inline: var(--gutter);
	overflow: hidden;
}

.teta__moods li {
	width: clamp(110px, 22vw, 280px);
	margin-bottom: -2px;
}

.teta__moods li:nth-child(2) {
	transform: translateY(12%);
}

@media (min-width: 900px) {
	.teta__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: clamp(2rem, 6vw, 7rem);
	}

	.teta__photo {
		order: 0;
	}
}

/* 03 Recipe */
.chapter--recipe {
	background: var(--c-paper);
}

.recipe__head {
	display: grid;
	justify-items: center;
	text-align: center;
}

.recipe__head .chapter__kicker {
	justify-content: center;
}

.recipe__head .chapter__title {
	max-width: 18ch;
}

.recipe__text {
	max-width: 42ch;
	margin-top: 1.25rem;
	font-size: var(--fs-lg);
	line-height: 1.55;
}

.recipe__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.5rem, 2vw, 2rem);
	max-width: 900px;
	margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) auto 0;
}

.recipe__item {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 0.6rem;
}

.recipe__img {
	width: 100%;
	max-width: 200px;
	aspect-ratio: 1;
	object-fit: contain;
	padding: 14%;
	border: 2px dashed rgba(168, 74, 44, 0.45);
	border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
	background: #f1d9c2;
}

.recipe__item:nth-child(2) .recipe__img {
	border-radius: 45% 55% 48% 52% / 55% 45% 52% 48%;
	background: var(--c-pink-soft);
}

.recipe__plus {
	position: absolute;
	left: calc(clamp(0.5rem, 2vw, 2rem) / -2);
	top: 38%;
	transform: translate(-50%, -50%);
	font-size: clamp(1.5rem, 1rem + 2vw, 3rem);
	color: var(--c-coral-deep);
}

.recipe__name {
	font-size: clamp(1.15rem, 1rem + 0.8vw, 1.75rem);
}

/* 04 Today */
.chapter--today {
	padding-top: var(--section-y);
	background: var(--c-cream);
}

.today__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.today__figure {
	justify-self: center;
	width: min(100%, 460px);
}

.today__arch {
	aspect-ratio: 4 / 4.2;
	transform: rotate(1.5deg);
	background: #e28fc4;
}

.today__copy .button-row {
	margin-top: 2rem;
}

@media (min-width: 900px) {
	.today__grid {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		column-gap: clamp(2rem, 6vw, 7rem);
	}
}
