/* The Hairdressers - site styles */

@font-face {
	font-family: Westminster;
	src: url("../fonts/westminster.woff2") format("woff2"), local("Westminster");
	font-display: swap;
}

@font-face {
	font-family: "Cascadia Mono";
	src: url("../fonts/cascadia-mono.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
}

:root {
	--pink: #ff29d6;
	--pink-hover: #f0f;
	--lime: #0f0;
	--lettering: Westminster, fantasy;
	--body-font: "Cascadia Mono", monospace;
}

*, ::before, ::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 8px;
	background: #fff;
	color: #000;
	font: 13px/15px var(--body-font);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-hover); font-weight: bold; }
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

h1, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Lettering: everything set in Westminster */
.site-title, .site-nav a, .mix-heading h1, .mix-heading p, .tracklist a, .strapline {
	font-family: var(--lettering);
	font-weight: 400;
	font-synthesis: none;
	white-space: nowrap;
}

.site-nav a:hover, .tracklist a:hover { color: var(--lime); font-weight: 400; }

/* Header */
.site-title {
	height: 56px;
	font-size: 58.3px;
	line-height: 58px;
	text-align: center;
}

.site-nav ul {
	display: flex;
	justify-content: center;
}

.site-nav { padding-bottom: 22px; }

.site-nav li { position: relative; width: 111px; height: 35px; }
.site-nav li + li { margin-left: 7px; }
.site-nav li + li::before {
	content: "";
	position: absolute;
	top: 4px;
	left: -5px;
	width: 4px;
	height: 31px;
	background: var(--pink);
}

.site-nav a {
	display: block;
	height: 100%;
	padding-left: 2px;
	font-size: 36.4px;
	line-height: 35px;
	text-align: center;
}

/* Home page */
.dancers {
	display: flex;
	justify-content: center;
	margin-top: 34px;
}

.dancer { position: relative; flex: 0 1 202px; }
.dancer img { display: block; width: 100%; height: auto; }
.dancer img + img { position: absolute; inset: 0; opacity: 0; }
.dancer:hover img + img { opacity: 1; }

.strapline {
	margin-top: 16px;
	height: 52px;
	font-size: 48px;
	line-height: 46px;
	text-align: center;
}

.strapline span { font-size: 0.64em; color: var(--pink-hover); }

/* Mixes pages */
.mix-intro { max-width: 75%; margin: 0 auto; text-align: center; }
.mix-intro p + ul { margin-top: 15px; }

.mix-heading { width: 208px; height: 103px; margin: 0 auto; position: relative; }
.mix-heading h1 {
	height: 70px;
	padding-left: 7px;
	font-size: 48px;
	line-height: 68px;
}

.mix-heading p {
	height: 33px;
	margin: 0 2px;
	padding-left: 4px;
	font-size: 26px;
	line-height: 19px;
	word-spacing: 0.27em;
	border-bottom: 4px solid var(--pink);
}

.tracklist { width: 208px; margin: 0 auto; }

.not-found { margin-top: 40px; text-align: center; }
.not-found .mix-heading { text-align: left; }
.not-found > p { margin-top: 14px; }
.ohdear-tracklist { margin-top: 8px; }
.tracklist a {
	display: block;
	height: 39px;
	padding-left: 7px;
	font-size: 47.7px;
	line-height: 40px;
}

.tracklist .forty-track a {
	height: 61px;
	padding-top: 11px;
	line-height: 39px;
}

/* About page */
.about-content {
	width: 75%;
	margin: 0 auto;
}

.about-content p + p { margin-top: 15px; }

.about-portrait {
	display: block;
	width: 153px;
	height: 168px;
	margin: 16px auto 0;
}

/* Contact and links pages */
.contact-content {
	margin-top: 79px;
	text-align: center;
}

.links-list {
	width: 25%;
	margin: 0 auto;
	padding-left: 40px;
	list-style: disc;
}

.links-list li::marker { color: var(--pink); }

@media (max-width: 640px) {
	.site-title { height: auto; font-size: clamp(28px, 9vw, 58px); line-height: 1.1; }
	.site-nav ul { width: 100%; }
	.site-nav li { flex: 1 1 0; width: auto; }
	.site-nav li + li { margin-left: 5px; }
	.site-nav li + li::before { left: -4px; width: 3px; }
	.site-nav a { font-size: clamp(14px, 5.2vw, 36px); }
	.strapline { height: auto; font-size: clamp(24px, 9.5vw, 47px); line-height: 1.1; }
	.mix-intro { max-width: none; }
	.about-content { width: 100%; }
	.links-list { width: min(100%, 316px); }
}

@media (prefers-reduced-motion: no-preference) {
	.dancer img + img { transition: opacity 0.1s; }
}
