.formula-story {
	--story-ink: #282724;
	--story-paper: #f8f8f6;
	--story-line: #d7d4ca;
	--story-accent: #1d4546;
	background: var(--story-paper);
	color: var(--story-ink);
}
.formula-story :is(h1, h2) {
	font-family: "Cormorant Variable", "Cormorant", Georgia, serif;
	font-weight: 500;
	text-transform: uppercase;
	text-wrap: balance;
}
.formula-story h2 { font-size: clamp(29px, 4vw, 55px); line-height: 1.05; }
.formula-story p { line-height: 1.65; }
.story-shell { width: min(100% - 48px, 1178px); margin-inline: auto; }
.story-section { padding-block-start: clamp(58px, 8.5vw, 128px); scroll-margin-top: 105px; }
.formula-story > .story-section:last-child { padding-block-end: clamp(58px, 8.5vw, 128px); }
.story-center { text-align: center; }
.story-center > p { max-width: 62ch; margin: 20px auto 0; }

.story-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: end center;
	min-height: max(540px, min(55.55vw, 800px));
	background: #182b2e;
	color: #fff;
	text-align: center;
}
.story-hero__image, .story-hero::before {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.story-hero__image { object-fit: cover; z-index: -2; }
.story-hero::before {
	z-index: -1;
	content: "";
	background: linear-gradient(180deg, #102126a6, transparent 37%, #090f13a8 74%, #090f13e0);
}
.story-hero__content { width: min(830px, 100% - 48px); padding: 155px 0 42px; }
.story-hero h1 { font-size: clamp(33px, 5vw, 69px); line-height: 1.02; }
.story-hero p { max-width: 66ch; margin: 20px auto 0; font-size: clamp(14px, 1.28vw, 18px); }
.story-hero__next {
	display: inline-grid;
	place-items: center;
	margin-top: 22px;
	width: 44px;
	height: 44px;
	border: 1px solid #fff9;
	border-radius: 50%;
	font-size: 24px;
}
.story-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 13px; }
.story-crumbs a:hover { text-decoration: underline; }

.story-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 92px); align-items: center; }
.story-split_wide-media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.story-copy p { margin-top: 21px; }
.story-square, .story-founder { display: block; width: 100%; aspect-ratio: 1; background: #e8e4da; object-fit: cover; }
.story-founder { object-position: center; aspect-ratio: 712 / 690; }
.story-formula-art { position: relative; aspect-ratio: 1; }
.story-formula-art img { position: absolute; width: 79%; height: 79%; object-fit: cover; }
.story-formula-art img:first-child { inset: 0 auto auto 0; }
.story-formula-art img:last-child { inset: auto 0 0 auto; border: 5px solid var(--story-paper); }

.story-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(30px, 6vw, 72px);
	border-block: 1px solid var(--story-line);
}
.story-stats div { display: flex; flex-direction: column-reverse; gap: 8px; padding: 24px 18px; }
.story-stats div + div { border-inline-start: 1px solid var(--story-line); }
.story-stats dd { font-family: "Cormorant Variable", Georgia, serif; font-size: clamp(23px, 3vw, 41px); line-height: 1; }
.story-stats dt { font-size: 13px; }
.story-production { display: block; width: 100%; aspect-ratio: 1178 / 292; object-fit: cover; margin-top: 27px; }
.story-button { display: inline-flex; min-height: 44px; align-items: center; margin-top: 25px; padding: 9px 23px; border: 1px solid; }
.story-button:hover { background: var(--story-ink); color: #fff; border-color: var(--story-ink); }
.story-button_light:hover { background: #fff; color: var(--story-ink); border-color: #fff; }

.story-collections, .story-reviews, .story-ingredients ul { display: grid; list-style: none; gap: 15px; padding: 0; }
.story-collections { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 25px; }
.story-collections a { display: grid; align-content: end; gap: 12px; height: 100%; padding: 12px; background: #eeece4; }
.story-collections img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.story-collections a span { font-size: 13px; }
.story-collections a:hover > span, .story-reviews a:hover { text-decoration: underline; }
.story-reviews { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; }
.story-reviews a { display: flex; gap: 5px; justify-content: space-between; padding: 14px; background: #fff; font-size: 13px; }
.story-review__image { position: relative; display: block; width: 100%; cursor: zoom-in; }
.story-review__image img { display: block; width: 100%; aspect-ratio: 320 / 443; object-fit: cover; }
.story-review-dialog { position: fixed; inset: 0; margin: auto; max-width: calc(100vw - 32px); padding: 0; background: #fff; color: #222; border: 0; }
.story-review-dialog::backdrop { background: #15191bcc; }
.story-review-dialog img { display: block; max-width: 100%; max-height: 86dvh; object-fit: contain; }
.story-review-dialog__close { z-index: 1; position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; background: #fff; font-size: 25px; cursor: pointer; }
.story-faq__brand details { border-bottom: 1px solid var(--story-line); padding-block: 15px; }
.story-faq__brand details:first-of-type { margin-top: 16px; }
.story-faq__brand summary { cursor: pointer; font-weight: 600; }
.story-faq__brand p { margin-top: 12px; }
.story-faq__brand a { text-decoration: underline; }
.story-faq > section { padding-block-start: 46px; }

.story-tabs:not([hidden]) { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px clamp(14px, 4vw, 50px); margin-top: 25px; }
.story-tabs button { padding: 9px 0; min-height: 44px; border-bottom: 1px solid transparent; cursor: pointer; }
.story-tabs button[aria-selected="true"] { border-color: var(--story-ink); font-weight: 600; }
.story-tabs:not([hidden]) ~ .story-ingredients .story-ingredients__heading { display: none; }
.story-ingredients { margin-top: 27px; }
.story-ingredients ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story-ingredients li { background: #eaece6; border-top: 2px solid var(--story-accent); }
.story-ingredients li:has(img) { border-top: 0; }
.story-ingredients li img { display: block; width: 100%; aspect-ratio: 320 / 372; height: auto; object-fit: cover; }
.story-ingredients li > div { padding: clamp(14px, 2vw, 24px); }
.story-ingredients li h3 { margin-bottom: 8px; font-size: clamp(16px, 2vw, 24px); font-weight: 500; }
.story-ingredients li p { font-size: 14px; }
.story-related > section { padding-block-start: 28px; }
.story-related > section h2 { display: none; }
.story-shore { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(375px, 46vw, 650px); background: #30291f; color: #fff; }
.story-shore img, .story-shore::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-shore img { object-fit: cover; z-index: -2; }
.story-shore::before { content: ""; z-index: -1; background: linear-gradient(30deg, #151915e6, #12121100 92%); }
.story-shore > div { max-width: 640px; padding: clamp(23px, 4vw, 60px); }
.story-shore p { margin-top: 12px; }

@media (max-width: 767px) {
	.story-shell { width: calc(100% - 36px); }
	.story-hero { min-height: min(760px, max(570px, 96svh)); }
	.story-hero__content { width: calc(100% - 36px); padding-bottom: 28px; }
	.story-split, .story-split_wide-media { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.story-split_media-first .story-copy { order: -1; }
	.story-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.story-stats div { padding-inline: 12px; }
	.story-stats dd { font-size: 22px; }
	.story-stats div:nth-child(3) { border-inline-start: 0; }
	.story-stats div:nth-child(n + 3) { border-block-start: 1px solid var(--story-line); }
	.story-production { aspect-ratio: 589 / 584; }
	.story-collections, .story-ingredients ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.story-reviews { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(75%, 295px); overflow-x: auto; scroll-snap-type: x mandatory; }
	.story-reviews li { scroll-snap-align: start; }
	.story-tabs:not([hidden]) { justify-content: flex-start; }
}
