/*
 * /contact (page-contact.php) on FUSS light, over the page frame (css/frame.css: top bar,
 * green footer). The content (.fcMain) is at most 980px wide. Figma: Hummm file, page "13 Shop", Direction 2 "Works": one oversized
 * line of Neue Faktum, sparse small labels in four columns, thin ink rules, no boxes.
 */

/* Over v2.css's white page, so the bounce at either end stays FUSS light. */
html:has(body.fuss-contact),
html.is-v2:has(body.fuss-contact),
html.is-v2 body.fuss-v2.fuss-contact {
	background: #e7e9e0;
}

.fcPage {
	--red: #ff4f1f;
	--grid: repeat(4, minmax(0, 1fr));
	--field: clamp(22px, 2.08vw, 30px);
}

.fcPage a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.fcPage a:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
	border-radius: 2px;
}

/* The site's buttons have no outline; the menu button gets one here for the keyboard. */
.fcPage .pageMenuBtn:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 6px;
	border-radius: 2px;
}

.fcPage .fcLabel {
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 16.8px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.fcOpt {
	margin-left: 6px;
	opacity: .5;
}

/* ---------- At most 980px of content; the top bar and footer stay full width ---------- */

.fcMain {
	max-width: calc(980px + 2 * var(--m));
	margin: 0 auto;
}

/* ---------- The line ---------- */

.fcHead {
	padding: 72px var(--m) 0;
}

.fcPage .fcGiant {
	margin: 0 0 0 -.045em;
	padding: 0;
	/* Two lines that run the width of the content at any size (160px = 15.6vw of 980px + margins). */
	font-size: min(15.6vw, 160px);
	line-height: .86;
	font-weight: 400;
	letter-spacing: -.035em;
	text-wrap: balance;
}

/* ---------- Four sparse columns ---------- */

.fcInfo {
	display: grid;
	grid-template-columns: var(--grid);
	gap: 32px var(--m);
	padding: 96px var(--m) 0;
}

.fcPage .fcInfo .fcLabel + p {
	max-width: 300px;
	margin-top: 8px;
	font-size: 15px;
	line-height: 20px;
	color: color-mix(in srgb, var(--ink) 62%, var(--light));
}

.fcPage .fcInfo a {
	color: var(--ink);
}

/* ---------- The form: a label column, then the field on a thin ink rule ---------- */

.fcForm {
	margin-top: 128px;
	padding: 0 var(--m) 168px;
}

.fcPage .fcField {
	display: grid;
	grid-template-columns: var(--grid);
	column-gap: var(--m);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.fcPage .fcField + .fcField {
	margin-top: 44px;
}

/* Floated, so the legend is an ordinary grid item like the labels. */
.fcPage .fcField > .fcLabel {
	float: left;
	grid-column: 1;
	padding-top: 14px;
}

.fcControl {
	grid-column: 2 / -1;
	min-width: 0;
}

.fcPage .fcControl input,
.fcPage .fcControl select,
.fcPage .fcControl textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 4px 0 15px;
	border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: var(--field);
	line-height: 38px;
	letter-spacing: -.01em;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
}

.fcPage .fcControl textarea {
	min-height: calc(38px * 4 + 19px);
	resize: vertical;
}

.fcPage .fcControl select {
	padding-right: 36px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%23121117' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center / 14px 9px no-repeat;
	cursor: pointer;
}

.fcPage .fcControl select option {
	background: var(--light);
	color: var(--ink);
}

/* Focus: the rule thickens, no box. */
.fcPage .fcControl input:focus,
.fcPage .fcControl select:focus,
.fcPage .fcControl textarea:focus {
	outline: none;
	padding-bottom: 13px;
	border-bottom-width: 3px;
}

/* ---------- What you need: ink outline pills, filled when chosen ---------- */

.fcPills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 6px;
}

.fcPill {
	position: relative;
	cursor: pointer;
}

.fcPill input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.fcPage .fcPill span {
	display: block;
	padding: 7px 16px;
	border: 1px solid var(--ink);
	border-radius: 18px;
	font-size: 15px;
	line-height: 20px;
	transition: background-color .2s, color .2s;
}

.fcPill:hover span {
	background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.fcPage .fcPill input:checked + span {
	background: var(--ink);
	color: var(--light);
}

.fcPill input:focus-visible + span {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

/* ---------- Send ---------- */

.fcSend {
	display: grid;
	grid-template-columns: var(--grid);
	column-gap: var(--m);
	margin-top: 56px;
}

.fussPage .fcButton {
	grid-column: 2;
	justify-self: start;
	height: 52px;
	padding: 0 34px;
	border-radius: 26px;
	background: var(--green);
	color: var(--ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}

.fussPage .fcButton:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

/* ---------- Errors: the shop's red-orange marks the rule and the note; the words stay ink ---------- */

.fcPage .fcField.is-invalid .fcControl input,
.fcPage .fcField.is-invalid .fcControl textarea {
	border-bottom-color: var(--red);
	border-bottom-width: 2px;
	padding-bottom: 14px;
}

.fcPage .fcField.is-invalid .fcControl input:focus,
.fcPage .fcField.is-invalid .fcControl textarea:focus {
	border-bottom-width: 3px;
	padding-bottom: 13px;
}

.fcPage .fcChoices.is-invalid .fcPill span {
	border-color: var(--red);
}

.fcPage .fcError {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 12px;
	font-size: 15px;
	line-height: 20px;
}

.fcError::before,
.fcSummary .fcLabel::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--red);
}

.fcSummary {
	display: grid;
	grid-template-columns: var(--grid);
	column-gap: var(--m);
	margin-bottom: 72px;
	padding-top: 16px;
	border-top: 2px solid var(--red);
	font-size: 18px;
	line-height: 24px;
}

.fcSummary:focus {
	outline: none;
}

.fcPage .fcSummary .fcLabel {
	display: flex;
	align-items: center;
	gap: 8px;
	grid-column: 1;
	padding-top: 4px;
}

.fcPage .fcSummary .fcLabel ~ * {
	grid-column: 2 / -1;
}

.fcPage .fcSummary ul {
	margin: 8px 0 0;
	padding-left: 1.1em;
	list-style: disc;
}

/* ---------- Sent: the whole window FUSS green (parts/contact-sent.php) ---------- */

html.is-v2:has(body.fuss-contact-sent),
html.is-v2 body.fuss-v2.fuss-contact-sent,
body.fuss-page.fuss-contact-sent {
	--page-ground: #1ae32f;
	background: #1ae32f;
}

.fcSentPage {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	container-type: inline-size;
}

.fcSent {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-end;
	padding: 48px var(--m) var(--m);
}

/* "Sent!" is 2.18em of ink in Faktum: fitted to the width, unless the window is too short. */
.fcPage .fcSentWord {
	margin: 0 0 0 -.031em;
	padding: 0;
	font-size: min(calc((100cqw - 2 * var(--m)) / 2.18), calc((100svh - 220px) / .78));
	line-height: .78;
	font-weight: 400;
	letter-spacing: -.035em;
	white-space: nowrap;
}

.fcPage .fcSentLine {
	margin-top: 32px;
	font-size: clamp(22px, 2.5vw, 36px);
	line-height: 1.2;
	font-weight: 400;
	letter-spacing: -.01em;
}

/* With JavaScript the sent screen floods in from the Send button (js/contact.js). */
.fcFlood {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10000;
	width: 100vw;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	background: var(--green, #1ae32f);
	clip-path: circle(0 at var(--fx) var(--fy));
	transition: clip-path .5s cubic-bezier(.3, .6, .2, 1);
}

.fcFlood.is-on {
	clip-path: circle(var(--fr) at var(--fx) var(--fy));
}

.fcFlood .fcSentPage {
	height: 100%;
	min-height: 0;
}

html.fc-flooding {
	overflow: hidden;
}

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

.fcTrap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Narrower ---------- */

@media (max-width: 1100px) {
	.fcInfo {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.fcHead {
		padding-top: 40px;
	}

	.fcPage .fcGiant {
		font-size: 17vw;
		line-height: .92;
	}

	.fcInfo {
		gap: 28px var(--m);
		padding-top: 56px;
	}

	.fcForm {
		margin-top: 80px;
		padding-bottom: 120px;
	}

	.fcPage .fcField,
	.fcSend,
	.fcSummary {
		grid-template-columns: minmax(0, 1fr);
	}

	.fcPage .fcField + .fcField {
		margin-top: 36px;
	}

	.fcPage .fcField > .fcLabel {
		float: none;
		padding: 0 0 6px;
	}

	.fcControl,
	.fussPage .fcButton,
	.fcPage .fcSummary .fcLabel,
	.fcPage .fcSummary .fcLabel ~ * {
		grid-column: 1;
	}

	.fcPage {
		--field: 22px;
	}

	.fcPage .fcControl input,
	.fcPage .fcControl select,
	.fcPage .fcControl textarea {
		line-height: 30px;
	}

	.fcPage .fcControl textarea {
		min-height: calc(30px * 5 + 19px);
	}

	.fcSend {
		margin-top: 44px;
	}

	.fcSent {
		padding-bottom: 32px;
	}

	.fcPage .fcSentLine {
		margin-top: 20px;
	}

	.fcSummary {
		margin-bottom: 48px;
		font-size: 16px;
		line-height: 22px;
	}

	.fcPage .fcSummary .fcLabel {
		padding: 0 0 8px;
	}
}
