/* ================
= Root styles
= "div#capsule" acts as "body" or ":root"
=================== */
div#capsule {
	--max-paragraph-width: 65ch;
	--focus-outline-color: #ef725d;
	font-size: 1.25rem;
	font-size: clamp(1rem, 0.8475rem + 0.678vw, 1.25rem);
	color: #383838;
}

div#capsule::selection {
	background-color: #fde5e1;
}


/* ================
= Main styles
=================== */
p,
li,
figcaption {
	max-width: var(--max-paragraph-width, 75ch);
	text-wrap: pretty;
}

/* ================
= Header
=================== */
#capsule-header {
	position: fixed;
	width: 100%;
}

header#cabecera {
	padding: 7rem 1rem;
	padding: clamp(2rem, -1.0508rem + 13.5593vw, 7rem) 1rem;
	position: relative;
	overflow: hidden;
	background-color: #ffdcca;
	background: linear-gradient(0deg, #ffffff, #ffe4d6);
}

header#cabecera .contenido-cabecera {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-inline: auto;
	text-align: center;
	position: relative;
	z-index: 1;
	max-width: 90ch;
}

header#cabecera h1 {
	font-weight: 900;
	font-size: 2.5em;
	text-wrap-style: balance;
}

header#cabecera p.subtitle {
	font-weight: 700;
	font-size: 1.2em;
	text-wrap-style: balance;
}

header#cabecera #graphic0 {
	display: flex;
	align-items: center;
	position: absolute;
	inset: 0;
	pointer-events: none;
	padding-block: 4rem 1rem;
}

header#cabecera #graphic0 .chart-container {
	display: flex;
	align-items: center;
	height: 100%;
	max-width: 100%;
	aspect-ratio: 1;
	z-index: 0;
	opacity: 0.4;
}


/* ================
= Body
=================== */
#main-content {
	padding-block: 1rem 6rem;
	background: linear-gradient(to top, #ffe4d6, #fff 80px);
}

#main-content>* {
	width: 680px;
	max-width: 100%;
	margin-inline: auto;
	padding-inline: 1rem;
}

#main-content>img,
#main-content>picture img {
	height: auto;
	padding: 0;
	margin-bottom: 1.5em;
}

#main-content>h2 {
	margin-top: 1.2em;
}

div#graphic2,
div#graphic3 {
	padding-inline: 0;
}

.meta {
	display: grid;
}

.meta>* {
	font-size: 0.9em;
}

.meta p.author {
	font-weight: 500;
}

.meta p.date {
	font-size: 0.8em;
}

.meta a {
	text-decoration-color: #efc2ba;
	transition: color .2s;
	color: #383838 !important;
}

.meta a:hover {
	color: #8c3222 !important;
}

#graphic2 {
	width: 1024px;
	max-width: 100%;
	margin-bottom: 1.5em;
}

#graphic2 h1 {
	margin: 0 1ch 0 0;
	font-size: 20px;
}

.desktop-only {
	display: none;
}

.mobile-only {
	display: block;
}

@media (min-width: 500px) {
	.desktop-only {
		display: block;
	}

	.mobile-only {
		display: none;
	}
}

#main-content a:not([class]) {
	color: #f26c55;
	transition: color .2s;
}

#main-content a:not([class]):hover {
	color: #8c3222;
}

p.graphic-headline {
	font-weight: 700;
	text-align: center;
	margin-block: 1.5em 0.5em;
}

#main-content svg * {
	outline: none;
}

.step-content p {
	margin: 0;
}


/* ================
= Footer
=================== */
footer {
	display: grid;
	justify-content: center;
	align-items: center;
	user-select: none;
	padding-block: 3rem;
	background: white;
	border-top: 3px solid #f26c55;
}