/* buttons: sharp rectangles, signal colour only on primary calls */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid var(--signal-600);
	border-radius: 0;
	font-family: var(--text-face);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: var(--white);
	background: var(--signal-600);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
	color: var(--white);
	border-color: var(--signal-700);
	background: var(--signal-700);
}

.btn[disabled] {
	cursor: progress;
	border-color: var(--gray-400);
	background: var(--gray-400);
}

.btn-line {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--gray-900);
	border-radius: 0;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	color: var(--gray-900);
	background: transparent;
	cursor: pointer;
}

.btn-line:hover {
	color: var(--white);
	background: var(--gray-900);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	font-weight: 700;
	text-decoration: none;
}

.link-arrow::after {
	content: "\2192";
	transition: transform 0.15s ease;
}

.link-arrow:hover::after {
	transform: translateX(4px);
}

.hero .link-arrow {
	color: var(--gray-50);
	border-bottom: 1px solid var(--accent-300);
}

.nobr {
	white-space: nowrap;
}

/* offset frame in spruce behind photos */
.framed {
	position: relative;
	margin: 0 var(--offset-14) var(--offset-14) 0;
}

.framed::before {
	content: "";
	position: absolute;
	top: var(--offset-14);
	left: var(--offset-14);
	right: calc(-1 * var(--offset-14));
	bottom: calc(-1 * var(--offset-14));
	z-index: 0;
	border: 2px solid var(--accent-500);
}

.hero .framed::before {
	border-color: var(--accent-300);
}

.framed img {
	position: relative;
	z-index: 1;
	width: 100%;
}

.framed + *,
.framed + .fine {
	margin-top: calc(var(--offset-14) + 20px); /* clears the shifted frame */
}

.fig-note {
	margin: calc(var(--offset-14) + 20px) 0 0;
	font-size: 0.875rem;
	color: var(--gray-600);
}

.fine {
	font-size: 0.875rem;
	color: var(--gray-600);
}

/* playbill rows: categories as a programme */
.bill-list {
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--gray-900);
	list-style: none;
}

.bill-row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 4px 18px;
	padding: 22px 0;
	border-bottom: 1px dashed var(--gray-400);
}

.bill-no {
	grid-row: span 3;
	font-family: var(--mono-face);
	font-size: 0.875rem;
	color: var(--accent-500);
}

.bill-name {
	margin: 0;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
	font-weight: 900;
}

.bill-name a {
	text-decoration: none;
	color: var(--gray-900);
}

.bill-name a:hover {
	color: var(--accent-500);
}

.bill-what {
	margin: 0;
	color: var(--gray-600);
}

.bill-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	font-family: var(--mono-face);
	font-size: 0.875rem;
}

.bill-meta .link-arrow {
	font-family: var(--text-face);
	font-size: 0.9375rem;
}

@media (min-width: 900px) {
	.bill-row {
		grid-template-columns: 60px minmax(0, 0.9fr) minmax(0, 1.2fr) 240px;
		align-items: baseline;
		gap: 24px;
		padding: 26px 0;
	}

	.bill-no {
		grid-row: auto;
	}

	.bill-meta {
		justify-content: flex-end;
	}
}

/* product cards: no borders, divided by lines */
.goods-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 40px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 639px) {
	.goods-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 16px;
	}

	.goods-name {
		font-size: 1.05rem;
	}
}

.goods-card {
	display: flex;
	flex-direction: column;
	padding-top: 16px;
	border-top: 1px solid var(--gray-900);
}

.goods-card a {
	text-decoration: none;
	color: inherit;
}

.goods-card img {
	width: 100%;
	background: var(--gray-100);
}

.goods-cat {
	margin: 0 0 10px;
	font-family: var(--mono-face);
	font-size: 0.75rem;
	color: var(--gray-600);
}

.goods-name {
	margin: 16px 0 4px;
	font-size: 1.2rem;
}

.goods-card a:hover .goods-name {
	color: var(--accent-500);
}

.goods-fabric {
	margin: 0 0 10px;
	font-size: 0.9375rem;
	color: var(--gray-600);
}

.goods-price {
	margin: auto 0 0;
	font-family: var(--head-face);
	font-size: 1.15rem;
	font-weight: 800;
}

.goods-price small {
	display: block;
	font-family: var(--text-face);
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--gray-600);
}

.goods-price small a {
	color: var(--gray-700);
}

@media (min-width: 1000px) {
	.step-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding-bottom: 96px;
	}

	.step-grid > :nth-child(3n + 2) {
		transform: translateY(48px);
	}

	.step-grid > :nth-child(3n + 3) {
		transform: translateY(96px);
	}
}

/* compare table */
.table-wrap {
	overflow-x: auto;
	min-width: 0;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-10);
	background: var(--white);
	scrollbar-width: thin;
	scrollbar-color: var(--accent-500) transparent;
}

.data-table {
	width: 100%;
	min-width: 640px;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.data-table caption {
	padding: 16px 20px 0;
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	text-align: left;
	color: var(--gray-600);
}

.data-table th,
.data-table td {
	padding: 14px 20px;
	border-bottom: 1px solid var(--gray-200);
	text-align: left;
	vertical-align: top;
}

.data-table thead th {
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gray-600);
}

.data-table tbody th {
	font-family: var(--head-face);
	font-weight: 800;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
	border-bottom: 0;
}

.data-table .num {
	font-family: var(--mono-face);
	white-space: nowrap;
}

.table-wrap + .fine {
	margin-top: 14px;
}

.wide-photo {
	width: 100%;
	max-height: clamp(220px, 34vh, 420px);
	object-fit: cover;
	margin-bottom: 36px;
}

/* kit: jacket + trousers of one cloth */
.kit-grid {
	display: grid;
	gap: 32px;
}

.kit-card {
	padding: 28px;
	border-left: 3px solid var(--accent-500);
	background: var(--white);
}

.kit-card h3 {
	margin-bottom: 6px;
}

.kit-lines {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.kit-lines li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--gray-200);
}

.kit-lines .kit-total {
	border-bottom: 0;
	font-family: var(--head-face);
	font-size: 1.15rem;
	font-weight: 800;
}

.kit-photo {
	max-width: 100%;
}

@media (min-width: 900px) {
	.kit-grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}
}

/* quote wall: uneven tiles */
.quote-wall {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.quote-tile {
	position: relative;
	margin: 0;
	padding: 26px 24px 22px;
	border-radius: var(--radius-10);
	background: var(--white);
	border: 1px solid var(--gray-200);
}

.quote-tile blockquote {
	margin: 0 0 14px;
	font-size: 1.0625rem;
}

.quote-tile blockquote p {
	margin: 0;
}

.quote-tile footer {
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	color: var(--gray-600);
}

.quote-tile::before {
	content: "\201C";
	position: absolute;
	top: 10px;
	right: 18px;
	font-family: var(--head-face);
	font-size: 3.4rem;
	font-weight: 900;
	line-height: 1;
	color: var(--accent-100); /* corner mark, muted by colour */
}

.quote-big {
	color: var(--gray-50);
	background: var(--gray-950);
	border-color: var(--gray-950);
}

.quote-big blockquote {
	font-family: var(--head-face);
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
	font-weight: 700;
	line-height: 1.35;
}

.quote-big footer {
	color: var(--gray-200);
}

.quote-big::before {
	color: rgba(132, 180, 170, 0.35);
}

.quote-tile blockquote {
	padding-right: 30px;
}

@media (min-width: 900px) {
	.quote-wall {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.quote-wall > :nth-child(1) {
		grid-column: 1 / span 4;
		grid-row: span 2;
	}

	.quote-wall > :nth-child(2) {
		grid-column: 5 / span 2;
	}

	.quote-wall > :nth-child(3) {
		grid-column: 5 / span 2;
	}

	.quote-wall > :nth-child(4) {
		grid-column: 1 / span 3;
	}

	.quote-wall > :nth-child(5) {
		grid-column: 4 / span 3;
	}
}

/* terms strip */
.terms-strip {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px dashed rgba(246, 247, 249, 0.3);
}

.terms-strip li {
	display: grid;
	gap: 4px;
	padding: 22px 0;
	border-bottom: 1px dashed rgba(246, 247, 249, 0.3);
}

.terms-strip strong {
	font-family: var(--head-face);
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--gray-50);
}

.terms-strip span {
	color: var(--gray-200);
}

@media (min-width: 900px) {
	.terms-strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		border-bottom: 1px dashed rgba(246, 247, 249, 0.3);
	}

	.terms-strip li {
		padding: 26px 28px;
		border-bottom: 0;
		border-left: 1px dashed rgba(246, 247, 249, 0.3);
	}

	.terms-strip li:first-child {
		padding-left: 0;
		border-left: 0;
	}
}

/* faq */
.faq-list {
	border-top: 2px solid var(--gray-900);
}

.faq-list details {
	border-bottom: 1px dashed var(--gray-400);
}

.faq-list summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 64px;
	padding: 14px 0;
	font-family: var(--head-face);
	font-size: 1.15rem;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.faq-list summary::-webkit-details-marker {
	display: none;
}

.faq-list summary::after {
	content: "+";
	flex: 0 0 auto;
	font-family: var(--mono-face);
	font-size: 1.3rem;
	color: var(--accent-500);
}

.faq-list details[open] summary::after {
	content: "\2212";
}

.faq-list details > div {
	max-width: 70ch;
	padding: 0 0 20px;
	color: var(--gray-700);
}

/* two-column layout with notes */
.split {
	display: grid;
	gap: 40px;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: start;
		gap: 64px;
	}

	.split-rev {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	}
}

.prose {
	max-width: 70ch;
}

.prose h2 {
	margin-top: 1.6em;
}

.prose h2:first-child,
.prose h3:first-child {
	margin-top: 0;
}

.prose h3 {
	margin-top: 1.4em;
}

.prose li {
	margin-bottom: 0.4em;
}

/* tiles with accent edge */
.edge-card {
	padding: 24px 26px;
	border-left: 3px solid var(--accent-500);
	border-radius: 0 var(--radius-10) var(--radius-10) 0;
	background: var(--white);
}

.edge-card > :last-child {
	margin-bottom: 0;
}

.edge-card h2,
.edge-card h3 {
	margin-bottom: 0.4em;
}

.panel {
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-10);
	background: var(--white);
}

.panel > :last-child {
	margin-bottom: 0;
}

.panel-dark {
	color: var(--gray-50);
	border-color: var(--gray-950);
	background: var(--gray-950);
}

.panel-dark h2,
.panel-dark h3 {
	color: var(--gray-50);
}

.panel-dark a {
	color: var(--accent-300);
}

.panel-dark .fine {
	color: var(--gray-200);
}

.card-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 20px;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.step-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.step-list li {
	position: relative;
	padding: 0 0 24px 72px;
	counter-increment: step;
}

.step-list li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: -4px;
	left: 0;
	font-family: var(--mono-face);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--accent-500);
}

.step-list h3 {
	margin-bottom: 4px;
}

.step-list p {
	margin: 0;
	color: var(--gray-700);
}

.fact-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.fact-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px; /* chips that are links stay tappable */
}

.fact-chips li {
	padding: 0 14px;
	border: 1px solid var(--gray-200);
	border-radius: 999px;
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	background: var(--white);
}

.big-figure {
	display: block;
	font-family: var(--head-face);
	font-size: clamp(2.6rem, 2rem + 2.6vw, 4.4rem);
	font-weight: 900;
	line-height: 1;
	color: var(--accent-500);
}

.legal-dl {
	display: grid;
	gap: 0;
	margin: 0;
}

.legal-dl div {
	display: grid;
	gap: 2px 24px;
	padding: 14px 0;
	border-bottom: 1px dashed var(--gray-200);
}

.legal-dl div:last-child {
	border-bottom: 0;
}

.legal-dl dt {
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	color: var(--gray-600);
}

.legal-dl dd {
	margin: 0;
}

@media (min-width: 700px) {
	.legal-dl div {
		grid-template-columns: 200px minmax(0, 1fr);
	}
}

.toc {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	counter-reset: toc;
}

.toc li {
	border-bottom: 1px dashed var(--gray-200);
	counter-increment: toc;
}

.toc a {
	display: flex;
	gap: 12px;
	min-height: 44px;
	align-items: center;
	text-decoration: none;
	color: var(--gray-700);
}

.toc a::before {
	content: counter(toc, decimal-leading-zero);
	font-family: var(--mono-face);
	font-size: 0.75rem;
	color: var(--accent-500);
}

@media (min-width: 1000px) {
	.legal-layout {
		display: grid;
		grid-template-columns: 260px minmax(0, 1fr);
		align-items: start;
		gap: 64px;
	}

	.legal-layout aside {
		position: sticky;
		top: 24px;
	}
}

.legal-layout aside {
	margin-bottom: 32px;
}

.legal-sec {
	padding: 26px 0;
	border-top: 1px dashed var(--gray-400);
}

.legal-sec:first-child {
	padding-top: 0;
	border-top: 0;
}

.legal-sec > :last-child {
	margin-bottom: 0;
}

.legal-sec h2 {
	display: flex;
	align-items: baseline;
	gap: 14px;
	font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
}

.legal-sec h2 span {
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--accent-500);
}

.form-sheet {
	padding: clamp(22px, 3vw, 36px);
	border: 1px dashed var(--gray-400);
	border-radius: var(--radius-10);
	font-family: var(--mono-face);
	font-size: 0.9375rem;
	background: var(--white);
}

.form-sheet p {
	margin-bottom: 0.9rem;
}

/* catalogue filter */
.filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.filter-bar button {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--gray-200);
	border-radius: 0;
	font: inherit;
	font-size: 0.9375rem;
	color: var(--gray-900);
	background: var(--white);
	cursor: pointer;
}

.filter-bar button span {
	margin-left: 6px;
	font-family: var(--mono-face);
	font-size: 0.75rem;
	color: var(--gray-600);
}

.filter-bar button[aria-pressed="true"] {
	color: var(--white);
	border-color: var(--gray-900);
	background: var(--gray-900);
}

.filter-bar button[aria-pressed="true"] span {
	color: var(--gray-200);
}

.cat-group + .cat-group {
	margin-top: 56px;
}

.cat-group > h2 {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 24px;
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
}

.cat-group > h2 span {
	font-family: var(--mono-face);
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--accent-500);
}

/* product page */
.item-layout {
	display: grid;
	gap: 32px;
	padding-top: 28px;
	padding-bottom: clamp(48px, 6vw, 88px);
}

.item-photo {
	max-width: min(520px, 100%, 49vh); /* 4:5 photo stays under ~62vh tall */
}

.item-photo img {
	background: var(--gray-100);
}

.item-info h1 {
	margin-bottom: 8px;
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.item-color {
	margin: 0 0 18px;
	font-family: var(--mono-face);
	font-size: 0.875rem;
	color: var(--gray-600);
}

.item-price {
	margin: 0 0 24px;
	font-family: var(--head-face);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.2;
}

.item-price small {
	display: block;
	font-family: var(--text-face);
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--gray-600);
}

.item-price small a {
	color: var(--gray-700);
}

.item-specs {
	margin: 28px 0 0;
}

.item-text {
	max-width: 62ch;
}

.item-more {
	display: grid;
	gap: 20px;
	margin-top: 8px;
}

@media (min-width: 900px) {
	.item-layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas: "photo buy" "photo more";
		align-items: start;
		gap: 40px 64px;
	}

	.item-buy {
		grid-area: buy;
	}

	.item-more {
		grid-area: more;
	}

	.item-photo {
		position: sticky;
		top: 24px;
		grid-area: photo;
		justify-self: end;
	}

	.item-layout .framed + * {
		margin-top: 0; /* side column, nothing sits under the frame */
	}
}

.pair-note {
	margin: 18px 0 0;
	padding: 14px 18px;
	border-left: 3px solid var(--accent-500);
	font-size: 0.9375rem;
	background: var(--accent-100);
}

/* cookie bar: top strip of the document; menu.js reserves its height as body padding, so it never covers content */
.consent-kh {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 40;
	display: grid;
	gap: 10px;
	padding: 12px var(--gutter-24);
	border-bottom: 2px solid var(--accent-500);
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--gray-50);
	background: var(--gray-950);
}

.consent-kh[hidden] {
	display: none;
}

.consent-kh p {
	margin: 0;
}

.consent-kh a {
	color: var(--accent-300);
}

.consent-btns {
	display: flex;
	gap: 10px;
}

.consent-btns button {
	flex: 1 1 0;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--gray-50);
	border-radius: 0;
	font: inherit;
	font-weight: 700;
	color: var(--gray-950);
	background: var(--gray-50);
	cursor: pointer;
}

.consent-btns button:hover {
	background: var(--gray-200);
}

@media (min-width: 900px) {
	.consent-kh {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 32px;
		padding-inline: max(var(--gutter-24), calc((100% - var(--wrap-1200)) / 2));
	}

	.consent-btns button {
		min-width: 132px;
	}
}

.state-msg {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-left: 3px solid var(--accent-500);
	font-size: 0.9375rem;
	background: var(--accent-100);
}

.state-msg.msg-error {
	border-left-color: var(--alert-600);
	background: rgb(246, 232, 236);
}

.not-found {
	display: grid;
	gap: 32px;
	padding-top: clamp(48px, 6vw, 96px);
	padding-bottom: clamp(48px, 6vw, 96px);
}

.not-found .big-figure {
	font-size: clamp(5rem, 3rem + 10vw, 11rem);
}

@media (min-width: 900px) {
	.not-found {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		align-items: center;
	}
}

/* vertical rhythm between stacked decorated blocks */
:is(.panel, .edge-card, .empty-state, .step-list) + :is(.panel, .edge-card, .empty-state, .prose, .card-row) {
	margin-top: 20px;
}

.framed .wide-photo {
	margin-bottom: 0;
}

.h1-like {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	font-weight: 900;
}

#dank > .band-tight {
	padding-top: 0; /* page-head brings its own top space */
}

/* single-column grids must not grow past the viewport on long German words */
@media (max-width: 899px) {
	.split,
	.kit-grid,
	.item-layout,
	.not-found {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 959px) {
	.basket-layout,
	.checkout {
		grid-template-columns: minmax(0, 1fr);
	}
}

.legal-dl dd,
.prose,
.panel,
.edge-card {
	overflow-wrap: break-word;
	hyphens: auto;
}

.panel-dark .big-figure,
.band-dark .big-figure {
	color: var(--accent-300);
}

.band-dark .step-list p {
	color: var(--gray-200);
}

.band-dark .step-list li::before {
	color: var(--accent-300);
}

.framed .wide-photo {
	object-position: 50% 15%; /* keep faces inside the height cap */
}
