/*
 * Linkseite (page template "Linkseite", page-templates/page-links.php): link-in-bio page for Instagram.
 * Loaded only on that template. Colours of the old Linky page: background #EDEBE8, buttons #d3cdc5, text #191919.
 * The site stylesheet css/main.min.css is not loaded on this page: the fonts and base rules it used from there are
 * below (font URLs as in main.min.css, so the font preloads of src/StaticFiles.php still match).
 */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/OpenSans-Regular.woff2) format("woff2"), url(../fonts/OpenSans-Regular.ttf) format("truetype");
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../fonts/OpenSans-SemiBold.woff2) format("woff2"), url(../fonts/OpenSans-SemiBold.ttf) format("truetype");
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/OpenSans-Bold.woff2) format("woff2"), url(../fonts/OpenSans-Bold.ttf) format("truetype");
}

@font-face {
	font-family: "Anton";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/Anton-Regular.woff2) format("woff2"), url(../fonts/Anton-Regular.ttf) format("truetype");
}

/* base rules from main.min.css (also used by the cookie box and the guarantee notice) */
* {
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	background-color: #EDEBE8;
}

/* from WooCommerce's layout CSS, which the site loads everywhere: images never wider than their box */
.jm-links-body img {
	height: auto;
	max-width: 100%;
}

/* footer markup of plugins that is not printed on this page (page-links.php); hidden should it ever come back */
.jm-links-body .lf-cart-main-holder,
.jm-links-body .cr-pswp {
	display: none !important;
}

html body.jm-links-body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: #EDEBE8;
	color: #191919;
	font-family: 'Open Sans', sans-serif;
	-webkit-text-size-adjust: 100%;
}

.jm-links,
.jm-links *,
.jm-links *::before,
.jm-links *::after {
	box-sizing: border-box;
}

.jm-links {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 44px 20px 16px;
}

.jm-links__head {
	text-align: center;
}

.jm-links__photo {
	display: block;
	width: 128px;
	height: 128px;
	margin: 0 auto 20px;
	border: 4px solid #d3cdc5;
	border-radius: 50%;
	object-fit: cover;
	background: #d3cdc5;
}

.jm-links__name {
	margin: 0;
	font-family: 'Anton', sans-serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #191919;
}

.jm-links__subline {
	max-width: 34em;
	margin: 10px auto 0;
	font-size: 16px;
	line-height: 1.5;
}

.jm-links__nav {
	margin-top: 32px;
}

.jm-links__list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-links__list li {
	margin: 0;
	padding: 0;
}

.jm-links__list li::before {
	content: none;
}

.jm-links__button {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	min-height: 60px;
	padding: 14px 52px;
	background: #d3cdc5;
	color: #191919;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.05em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.jm-links__button::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 24px;
	width: 9px;
	height: 9px;
	margin-top: -5px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.jm-links__button:visited {
	color: #191919;
}

.jm-links__button:hover,
.jm-links__button:active {
	background: #191919;
	color: #EDEBE8;
}

.jm-links__button:focus-visible {
	outline: 3px solid #191919;
	outline-offset: 3px;
}

.jm-links__badge {
	display: inline-block;
	padding: 3px 8px 2px;
	background: #191919;
	color: #EDEBE8;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
}

.jm-links__button:hover .jm-links__badge,
.jm-links__button:active .jm-links__badge {
	background: #EDEBE8;
	color: #191919;
}

.jm-links__legal {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 36px;
	padding-top: 8px;
	border-top: 1px solid #d3cdc5;
	font-size: 15px;
	font-weight: 600;
}

.jm-links__legal a {
	display: inline-block;
	padding: 12px 10px;
	color: #191919;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jm-links__legal a:hover {
	text-decoration-thickness: 2px;
}

.jm-links__legal a:focus-visible {
	outline: 2px solid #191919;
	outline-offset: 2px;
}

.jm-links__dot {
	color: #191919;
	opacity: 0.5;
}

/* EU notice on the legal guarantee (mu-plugin jo-gewaehrleistung.php prints it in wp_footer): quiet line below */
.jm-links-body .jo-gewaehrleistung-footer {
	margin: 0 auto;
	padding: 0 20px 32px;
	font-size: 13px;
	text-align: center;
}

.jm-links-body .jo-gewaehrleistung-footer a {
	color: #191919;
}

@media only screen and (min-width: 834px) {
	.jm-links {
		padding-top: 72px;
	}

	.jm-links__photo {
		width: 144px;
		height: 144px;
	}

	.jm-links__name {
		font-size: 48px;
	}
}
