@font-face {
	font-family: "Flama";
	src: url("../../assets/flama-book.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Flama";
	src: url("../../assets/flama-medium.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Flama SemiCondensed";
	src: url("../../assets/flama-semicondensed-medium.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

:root {
	/* Palette */
	--black: #000;
	--white: #fff;
	--gray-900: #121212;
	--gray-700: #2e2e2e;
	--gray-300: #b3b3b3;
	--lime: #cfff48;
	--lime-deep: #a6d02f;
	--mint: #4affd4;
	--mint-deep: #1dbf94;
	--purple: #bc9cff;
	--purple-deep: #8362e0;
	--rose: #ffbecd;
	--rose-deep: #dc8196;
	--orange: #ffa14a;
	--orange-deep: #ca680e;
	--scrim: rgb(0 0 0 / 0.72);
	--scrim-soft: rgb(0 0 0 / 0.38);
	--hairline-on-accent: rgb(0 0 0 / 0.24);

	/* Roles */
	--surface: var(--black);
	--surface-raised: var(--gray-900);
	--text: var(--white);
	--text-muted: var(--gray-300);
	--track: var(--gray-700);
	--on-accent: var(--black);

	/* Book default */
	--book-color: var(--orange);

	/* Type */
	--font-text: "Flama", system-ui, sans-serif;
	--font-display: "Flama SemiCondensed", "Flama", system-ui, sans-serif;
	--tracking-display: 0.1em;

	/* Space */
	--page-gutter: 1rem;
	--section-space: clamp(4rem, 3rem + 5vw, 8rem);
	--radius-pill: 999px;

	color-scheme: dark;
}

@media (min-width: 48rem) {
	:root {
		--page-gutter: 2.5rem;
	}
}

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-text);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.55;
	padding-block-end: 5rem;
}

@media (min-width: 62rem) {
	body {
		padding-block-end: 0;
	}
}

img {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.container {
	inline-size: 100%;
	max-inline-size: 82.5rem;
	margin-inline: auto;
	padding-inline: var(--page-gutter);
}

.display {
	font-family: var(--font-display);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--tracking-display);
	line-height: 1;
}

/* Book modifiers: one per book, two variables. Roles resolve where the book is set. */

:root,
[class*="book--"] {
	--accent: var(--book-color);
}

.book--descubra {
	--book-color: var(--purple);
}

.book--siga {
	--book-color: var(--orange);
}

.book--experimente {
	--book-color: var(--mint);
}

/* Button */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
	min-block-size: 3.25rem;
	padding: 0.5rem 1.5rem;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	font-family: var(--font-text);
	font-weight: 500;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button--accent {
	background: var(--accent);
	color: var(--on-accent);
}

.button--accent:hover {
	background: var(--white);
}

.button--ink {
	background: var(--black);
	color: var(--white);
}

.button--ink:hover {
	background: var(--white);
	color: var(--black);
}

.button--line {
	border-color: var(--white);
	color: var(--white);
}

.button--line:hover {
	background: var(--white);
	color: var(--black);
}

.button--block {
	inline-size: 100%;
}

.button--play::before {
	content: "";
	inline-size: 0.7em;
	block-size: 0.8em;
	background: currentColor;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Site header */

.site-header {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	z-index: 3;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.25rem;
}

.site-header__logo img {
	inline-size: 5rem;
}

.site-header__nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	font-weight: 500;
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-header__nav a {
	display: inline-flex;
	align-items: center;
	min-block-size: 2.75rem;
	text-decoration: none;
}

.site-header__nav .site-header__nav-extra {
	display: none;
}

@media (min-width: 40rem) {
	.site-header__nav .site-header__nav-extra {
		display: inline-flex;
	}
}

.site-header__nav a:hover {
	text-decoration: underline;
	text-underline-offset: 0.4em;
	text-decoration-thickness: 2px;
}

/* Hero */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-block-size: min(100svh, 58rem);
	overflow: hidden;
	isolation: isolate;
}

.hero__photo {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: var(--hero-focus, 50% 40%);
	z-index: -2;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, var(--scrim) 0%, var(--scrim) 22%, var(--scrim-soft) 55%, transparent 80%);
}

.hero__content {
	display: grid;
	gap: 1.25rem;
	justify-items: start;
	padding-block: 7rem 2.5rem;
}

.hero__title {
	font-size: clamp(3.4rem, 15vw, 13rem);
	line-height: 0.92;
	inline-size: min-content;
	max-inline-size: 100%;
}

.hero__lead {
	max-inline-size: 30rem;
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.4;
}

.hero__verse {
	max-inline-size: 30rem;
	color: var(--text-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.hero__verse cite {
	display: block;
	margin-block-start: 0.25rem;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.75rem;
}

.hero__actions {
	display: grid;
	gap: 0.75rem;
	inline-size: 100%;
	margin-block-start: 0.5rem;
}

@media (min-width: 40rem) {
	.hero__actions {
		display: flex;
		flex-wrap: wrap;
		inline-size: auto;
	}
}

@media (min-width: 62rem) {
	.hero__content {
		padding-block: 8rem 4rem;
		gap: 1.5rem;
	}

	.hero__title {
		inline-size: auto;
		font-size: clamp(8rem, 13.4vw, 13rem);
		white-space: nowrap;
	}

	.hero__lead {
		font-size: 1.375rem;
		max-inline-size: 36rem;
	}

	.hero__verse {
		max-inline-size: 36rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hero__content > * {
		animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.hero__content > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.hero__content > :nth-child(3) {
		animation-delay: 0.2s;
	}

	.hero__content > :nth-child(4) {
		animation-delay: 0.3s;
	}

	.hero__content > :nth-child(5) {
		animation-delay: 0.4s;
	}

	.hero__photo {
		animation: settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
}

@keyframes rise {
	from {
		opacity: 0;
		translate: 0 1.5rem;
	}
}

@keyframes settle {
	from {
		scale: 1.06;
	}
}

/* Shelf: sticky book beside the route */

.shelf {
	display: grid;
	gap: 2.5rem;
	padding-block: 2.5rem var(--section-space);
}

@media (min-width: 62rem) {
	.shelf {
		grid-template-columns: 25rem minmax(0, 1fr);
		column-gap: clamp(3rem, 7vw, 7rem);
		padding-block-start: 4rem;
	}
}

.buybox {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 1rem;
	align-content: start;
	padding: 1rem;
	background: var(--accent);
	color: var(--on-accent);
}

@media (min-width: 62rem) {
	.buybox {
		position: sticky;
		inset-block-start: 1.5rem;
		align-self: start;
		grid-template-columns: 1fr;
		gap: 1.25rem;
		padding: 1.25rem;
	}
}

.buybox__head {
	display: grid;
	gap: 0.4rem;
	align-content: start;
}

.buybox__title {
	font-size: 1.75rem;
}

.buybox__sub {
	font-size: 0.9375rem;
	line-height: 1.4;
}

.buybox__price {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.75rem;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.buybox__actions {
	grid-column: 1 / -1;
	display: grid;
	gap: 0.5rem;
	justify-items: center;
}

.buybox__more {
	display: inline-flex;
	align-items: center;
	min-block-size: 2.75rem;
	font-weight: 500;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Book cover, cropped to the book edges (cover files carry a white margin and shadow) */

.cover {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--white);
}

.cover__img {
	position: absolute;
	inset-inline-start: -20.7%;
	inset-block-start: -6.5%;
	inline-size: 141.5%;
	max-inline-size: none;
}

@media (min-width: 62rem) {
	.buybox .cover {
		inline-size: min(100%, 40vh);
		margin-inline: auto;
	}
}

/* Intro */

.intro {
	display: grid;
	gap: 1rem;
	max-inline-size: 40rem;
	font-size: 1.1875rem;
	line-height: 1.55;
}

.intro__lead {
	font-family: var(--font-display);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.12;
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
}

/* Route */

.route-head {
	display: grid;
	gap: 0.75rem;
	margin-block: 4rem 2.5rem;
}

.route-head__title {
	font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.route-head__text {
	color: var(--text-muted);
	max-inline-size: 30rem;
}

.path {
	--dot: 2.75rem;
	--rail: 3.75rem;
	--track-w: 3px;
	--fill-w: 8px;
}

@media (min-width: 48rem) {
	.path {
		--dot: 3.5rem;
		--rail: 6rem;
	}
}

.waypoint {
	position: relative;
	display: grid;
	grid-template-columns: var(--rail) minmax(0, 1fr);
	padding-block-end: var(--waypoint-gap, 3.5rem);
}

.waypoint::before,
.waypoint::after {
	content: "";
	position: absolute;
	inset-block: calc(var(--dot) / 2) calc(var(--dot) / -2);
	border-radius: 4px;
}

.waypoint::before {
	inset-inline-start: calc(var(--dot) / 2 - var(--track-w) / 2);
	inline-size: var(--track-w);
	background: var(--track);
}

.waypoint::after {
	inset-inline-start: calc(var(--dot) / 2 - var(--fill-w) / 2);
	inline-size: var(--fill-w);
	background: var(--accent);
}

.waypoint:last-child::before,
.waypoint:last-child::after {
	display: none;
}

.waypoint__dot {
	z-index: 1;
	display: grid;
	place-items: center;
	inline-size: var(--dot);
	block-size: var(--dot);
	border: 3px solid var(--accent);
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.125rem;
	letter-spacing: 0.04em;
	line-height: 1;
}

.waypoint__body {
	display: grid;
	gap: 0.75rem;
	justify-items: start;
	align-content: start;
}

.waypoint__title {
	margin-block-start: calc((var(--dot) - 1.08em) / 2);
	font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
	letter-spacing: 0.06em;
	line-height: 1.08;
}

.waypoint__line {
	color: var(--text-muted);
	max-inline-size: 32rem;
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.waypoint__dot {
			border-color: var(--track);
			background: var(--surface);
			color: var(--text-muted);
			animation: dot-on linear both;
			animation-timeline: view();
			animation-range: cover 43% cover 50%;
		}

		.waypoint::after {
			animation: line-fill linear both;
			animation-timeline: view();
			animation-range: cover 50vh cover calc(100% - 50vh);
		}
	}
}

@keyframes dot-on {
	to {
		border-color: var(--accent);
		background: var(--accent);
		color: var(--on-accent);
	}
}

@keyframes line-fill {
	from {
		clip-path: inset(0 0 100% 0 round 4px);
	}

	to {
		clip-path: inset(0 round 4px);
	}
}

/* Video still: photo before the click, no embed */

.still {
	position: relative;
	display: block;
	inline-size: 100%;
	max-inline-size: 36rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface-raised);
	text-decoration: none;
}

.still__img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	transition: scale 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 48rem) {
	.still {
		aspect-ratio: 16 / 9;
	}
}

.still--focus-top .still__img {
	object-position: 50% 25%;
}

.still:hover .still__img {
	scale: 1.04;
}

.still__action {
	position: absolute;
	inset-inline-start: 1rem;
	inset-block-end: 1rem;
	z-index: 1;
}

.route-end {
	display: grid;
	gap: 1rem;
	justify-items: start;
}

/* Packages */

.packages {
	padding-block: var(--section-space);
	background: var(--accent);
	color: var(--on-accent);
}

.packages__head {
	display: grid;
	gap: 0.75rem;
	max-inline-size: 38rem;
	margin-block-end: 2.5rem;
}

.packages__title {
	font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.packages__list {
	border-block-start: 2px solid var(--on-accent);
}

.package {
	display: grid;
	gap: 0.5rem 1.5rem;
	padding-block: 1.5rem;
	border-block-end: 1px solid var(--hairline-on-accent);
}

.package__name {
	font-size: 1.5rem;
}

.package__price {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.5rem;
	letter-spacing: 0.04em;
}

.package__text {
	max-inline-size: 32rem;
}

.package .button {
	margin-block-start: 0.5rem;
}

@media (min-width: 48rem) {
	.package {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto auto;
		align-items: center;
		padding-block: 1.75rem;
	}

	.package__name {
		font-size: 1.875rem;
	}

	.package .button {
		margin-block-start: 0;
	}
}

/* Faith courses band */

.band {
	display: grid;
	background: var(--surface-raised);
}

.band__photo {
	inline-size: 100%;
	block-size: 100%;
	min-block-size: 18rem;
	object-fit: cover;
	object-position: 50% 35%;
}

.band__body {
	display: grid;
	gap: 1.25rem;
	justify-items: start;
	align-content: center;
	padding: var(--section-space) var(--page-gutter);
}

.band__title {
	font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.band__text {
	max-inline-size: 32rem;
	color: var(--text-muted);
}

@media (min-width: 62rem) {
	.band {
		grid-template-columns: 1fr 1fr;
	}

	.band__body {
		padding-inline: clamp(3rem, 6vw, 7rem);
	}
}

/* Site footer */

.site-footer {
	padding-block: 4rem 3rem;
	border-block-start: 1px solid var(--track);
}

.site-footer__grid {
	display: grid;
	gap: 2.5rem;
}

.site-footer__logo {
	inline-size: 6rem;
}

.site-footer__col {
	display: grid;
	gap: 0.25rem;
	align-content: start;
	font-size: 0.9375rem;
	color: var(--text-muted);
}

.site-footer__col strong {
	margin-block-end: 0.5rem;
	color: var(--text);
	font-weight: 500;
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-footer__col a {
	display: inline-flex;
	align-items: center;
	min-block-size: 2.25rem;
}

.site-footer__legal {
	margin-block-start: 3rem;
	color: var(--text-muted);
	font-size: 0.8125rem;
}

@media (min-width: 48rem) {
	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
	}
}

/* Mobile buy bar */

.buybar {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem var(--page-gutter) calc(0.75rem + env(safe-area-inset-bottom));
	background: var(--surface);
	border-block-start: 1px solid var(--track);
	transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.buybar[data-hidden="true"] {
	translate: 0 100%;
}

.buybar__text {
	display: grid;
	line-height: 1.2;
}

.buybar__title {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 1rem;
}

.buybar__price {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.buybar .button {
	min-block-size: 2.875rem;
	padding-inline: 1.1rem;
	font-size: 0.75rem;
}

@media (min-width: 62rem) {
	.buybar {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.buybar {
		transition: none;
	}

	.still__img {
		transition: none;
	}
}

/* Overview: books as stages of one path */

.hero--short {
	min-block-size: min(88svh, 46rem);
}

.hero--short .hero__title {
	font-size: clamp(3rem, 12.2vw, 11rem);
}

@media (min-width: 62rem) {
	.hero--short .hero__title {
		inline-size: min-content;
		white-space: normal;
		font-size: clamp(5rem, 8.2vw, 9.5rem);
	}
}

.stages {
	padding-block: 4rem var(--section-space);
}

.stages .path {
	--waypoint-gap: clamp(4rem, 2rem + 6vw, 7rem);
}

.stage {
	display: grid;
	gap: 1.25rem;
	align-items: start;
}

.stage__body {
	display: grid;
	gap: 0.75rem;
	justify-items: start;
	align-content: start;
}

.stage__cover {
	inline-size: min(100%, 15rem);
}

.stage__cover .cover {
	box-shadow: 0 0 0 0.75rem var(--accent);
	margin: 0.75rem;
}

.stage__meta {
	color: var(--text-muted);
	font-size: 0.9375rem;
}

.stage__title {
	font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
	line-height: 0.98;
}

.stage__sub {
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.35;
	max-inline-size: 28rem;
}

.stage__text {
	color: var(--text-muted);
	max-inline-size: 36rem;
}

.stage__price {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.5rem;
	letter-spacing: 0.04em;
}

.stage__actions {
	display: grid;
	gap: 0.75rem;
	inline-size: 100%;
	margin-block-start: 0.5rem;
}

@media (min-width: 40rem) {
	.stage__actions {
		display: flex;
		flex-wrap: wrap;
		inline-size: auto;
	}
}

@media (min-width: 62rem) {
	.stage {
		grid-template-columns: 20rem minmax(0, 1fr);
		gap: clamp(2rem, 5vw, 5rem);
	}

	.stage__cover {
		inline-size: 100%;
	}
}

.stage--end {
	--accent: var(--white);
}

.kit {
	display: grid;
	inline-size: 100%;
	max-inline-size: 30rem;
	grid-template-columns: repeat(auto-fill, minmax(5rem, 7rem));
	gap: 0.75rem;
	margin-block-start: 0.5rem;
}

.kit .cover {
	box-shadow: 0 0 0 0.375rem var(--accent);
	margin: 0.375rem;
}
