/* --------------------
	Hero
-------------------- */

#hero {
	color: white;
	border: 8px solid var(--tan);

	padding-top: 16px;
	margin: 0;

	overflow: hidden;
}

h1.title {
	display: flex;
	flex-flow: column nowrap;
	align-items: flex-start;
	transform-origin: 0 0;
	transform: skewX(-6deg) rotate(-6deg);
}

h1.title > span {
	background-color: black;
	padding: 2px 16px;
}

h1.title > span:first-child {
	margin-left: 16px;
}

h1.title > span:nth-child(2) {
	font-size: 98px;
}

h1.title .small {
	font-size: 48px;
}


#hero > .row {
	flex-wrap: nowrap;
	gap: 0;
}

.box {
	background-color: var(--tan);
	width: 418px;
	height: 150px;
	padding: 8px 8px 0 0;

	clip-path: polygon(
		0% 32px,
		100% 0%,
		calc(100% - 32px) 100%,
		0% 100%
	);
}

.box > div {
	width: 100%;
	height: 100%;

	clip-path: polygon(
		0% 32px,
		100% 0%,
		calc(100% - 32px) 100%,
		0% 100%
	);

	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
	text-transform: uppercase;
}

.box > div p {
	margin: 0;
}

.box > div > :first-child {
	flex: 1;
	height: 100%;
	margin-left: 32px;
	font-size: 120px;

	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: flex-start;
}

.box > div > :first-child > * {
	transform: scale(1.2);
}

.box > div > :last-child {
	display: flex;
	flex-flow: column nowrap;
	align-self: stretch;

	font-size: 20px;
	font-weight: bold;
	text-align: right;

	margin-right: 32px;
}

.box > div > :last-child > :first-child {
	flex: 1;
	transform: rotate(-4deg);
	margin-top: 16px;
}

.box > div > :last-child > :last-child {
	font-size: 32px;
	margin-bottom: 32px;
}


#hero > .row > :first-child {
	z-index: 1;
}

#hero > .row > :last-child {
	margin-left: -32px;
}

#msg {
	position: relative;
	z-index: 2;
	transform: translateY(-50%);
}

#msg > div {
	padding: 8px 16px;
	margin-left: 250px;
}

#msg h1 {
	margin: 0;
}


@media (max-width: 850px) {
	#hero > .row {
		flex-direction: column;
	}

	#hero > .row > :first-child {
		margin-bottom: -32px;
		z-index: 0;
	}

	#hero > .row > :last-child {
		width: 450px;
	}

	#msg > div {
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	h1.title {
		font-size: 48px;
	}

	h1.title > span:nth-child(2) {
		font-size: 60px;
	}

	h1.title .small {
		font-size: 32px;
	}

	.box {
		width: 320px;
	}

	.box:last-child {
		width: 375px !important;
	}

	.box > div > :last-child > p:last-child {
		font-size: 28px;
	}
}


/* --------------------
	Info panels - cuts and who pays
-------------------- */

#info-grid {
	align-items: flex-start;
	row-gap: 16px;
	column-gap: 32px;
	margin-bottom: 32px;
}

.info-column {
	display: grid;
	grid-template-columns: 48px minmax(200px, 1fr) 150px;
	column-gap: 8px;
	row-gap: 16px;
	flex: 1;
}

.info-column > div {
	display: grid;
	grid-template-columns: subgrid;
	grid-column: -1 / 1;
	grid-template-rows: repeat(3, auto);

	font-weight: bold;
}

.info-column > div > *:first-child {
	grid-row: 1 / -1;
	align-self: start;
}

.info-column > div > *:not(:first-child) {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 3;
}

.info-column .row {
	flex-wrap: nowrap;
}

.info-column > div * {
	margin: 0;
}

.info-column > div > :last-child {
	font-size: 20px;
	text-align: right;
}

.info-column > div > :first-child {
	height: 28px;

	display: flex;
	justify-content: center;
	align-items: center;
}

.info-column > div > :first-child::after {
	content: '\2b07';
	color: var(--red);
	font-family: 'dharma-gothic-e', sans-serif;
	font-size: 28px;
}

.info-column > div p {
	font-weight: normal;
	font-size: 16px;
}


#who-pays {
	margin-bottom: 32px;
	column-gap: 64px;
	row-gap: 32px;
}

#who-pays > div:first-child {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 256px;
	height: 128px;
	clip-path: polygon(15% 15%, 100% 0%, 85% 85%, 0% 100%);

	background-color: var(--yellow);
}

#who-pays > div:first-child > h1 {
	font-size: 40px;
	transform: rotate(-3deg);
}

#who-pays-grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(2, auto);
	grid-template-rows: repeat(3, auto);
	grid-auto-flow: column;
	column-gap: 16px;
	row-gap: 8px;

	min-width: 430px;
}

#who-pays-grid > div {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 16px;
}

#who-pays-grid p {
	font-family: 'Neue-Haas-Grotesk-Display', sans-serif;
	font-size: 26px;
	font-weight: bold;
	margin: 0;
	flex-shrink: 1;
}

#who-pays-grid > div > p:first-child {
	width: 21px;
	height: 28px;
	flex-shrink: 0;
}

#who-pays-grid > div > p:first-child::after {
	color: var(--red);
	font-family: 'dharma-gothic-e', sans-serif;
	font-size: 28px;
	content: '\2716';
}

#who-pays-grid > div:nth-child(n+4) > p:first-child::after {
	content: '\2b06';
}

#who-pays-grid > div:nth-child(n+4) > p:first-child {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 28px;
}

@media (max-width: 1150px) {
	#who-pays-grid {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(6, auto);
	}

	#who-pays-grid > div:nth-child(4) {
		margin-top: 16px;
	}
}

@media (max-width: 600px) {
	.info-column {
		grid-template-columns: 24px 1fr 100px;
	}

	.info-column > div h2 {
		font-size: 20px;
	}

	.info-column > div p {
		font-weight: normal;
		font-size: 14px;
	}

	.info-column > div > :last-child {
		font-size: 16px;
	}

	#who-pays {
		flex-flow: column nowrap;
	}

	#who-pays-grid {
		min-width: 0;
	}

	#who-pays-grid p {
		font-family: 'Neue-Haas-Grotesk-Display', sans-serif;
		font-size: 20px;
		font-weight: bold;
		margin: 0;
	}
}


/* --------------------
	The petition and everything around it
-------------------- */

.row.gutters {
	gap: 16px;
}

.box-title h1 {
	margin-bottom: 0;
}

.box-title p {
	margin-top: 0;
	margin-left: 16px;
}



#petition {
	flex-grow: 1;
	justify-content: flex-start;
}


#demands h1 {
	margin-top: 0;
}

#demands-grid {
	display: grid;
	grid-template-columns: max-content minmax(min-content, 256px);
	gap: 16px;
}

#demands-grid > div {
	display: grid;
	grid-template-columns: subgrid;
	grid-column: 1 / -1;
}

#demands-grid > div:not(:first-child) {
	border-top: 1px solid black;
	padding-top: 16px;
}

#demands-grid > div > p:first-child {
	color: var(--red);
	font-weight: bold;
	font-size: 42px;
	line-height: 1;
}

#demands-grid > div > p:last-child {
	font-family: 'Heue-Haas-Grotesk-Display', sans-serif;
	font-weight: 900;
	font-size: 20px;
	margin-top: 5px;
}

#demands-grid p {
	margin: 0;
}

@media (max-width: 800px) {
	#demands-grid {
		grid-template-columns: max-content minmax(min-content, 1fr);
	}
}



#get-involved {
	flex: 1;
	min-width: 360px;
	column-gap: 32px;
}

#get-involved > img {
	flex: 1;
	max-width: 840px;
	min-width: 350px;
	height: auto;
	max-height: 275px;
	object-fit: cover;
}

#get-involved > div {
	flex: 2;
	min-width: 375px;
	container-type: inline-size;
}

#get-involved h1 {
	margin-bottom: 0;
}

#get-involved p {
	margin: 0;
	margin-bottom: 8px;
}

#get-involved-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(120px, 160px));
}

#get-involved a {
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	align-items: center;
	max-width: 160px;
	padding: 16px 4px 8px;
	
	color: black;
	font-family: 'dharma-gothic-e', sans-serif;
	font-size: 22px;
	font-weight: bold;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	
	transition: background var(--fade-time-fast) ease-out;
}

#get-involved a:hover {
	background-color: var(--light-grey);
}

#get-involved a > *:first-child {
	font-size: 42px;
	color: var(--red);
	margin-bottom: 16px;
}

#get-involved a > *:nth-child(2) {
	flex: 1;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
}

#get-involved a > *:last-child {
	font-size: 30px;
	color: var(--red);
}

@container (max-width: 500px) {
	#get-involved-grid {
		grid-template-columns: repeat(2, minmax(120px, 160px));
		justify-content: center;
	}
}

@media (max-with: 450px) {
	#get-involved > div {
		min-width: 0;
	}
}