/*
Theme Name: The House Shop
Description: Closing notice for the-house-shop.com. One page (index.php), plus redirects of the former shop URLs to the-bath-shop.com (inc/redirects.php).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: the-house-shop
*/

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/source-sans-3-latin-400.woff2") format("woff2");
}

:root {
	color-scheme: light;
	--ink: #1d1d1b;
	--paper: #fff;
	--gutter: clamp(1rem, 6.15vw, 3.875rem);
	--tile-gap: clamp(0.75rem, 1.4vw, 1rem);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	/* The layout: 10pt on 12pt at 600pt wide, i.e. 16.8px at 1008px. Never below 16px. */
	font-size: clamp(1rem, 1.667vw, 1.125rem);
	line-height: 1.25;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
}

/* The former navbar: same bar, logo only. */
.site-header {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 4rem;
	border-bottom: 1px solid var(--ink);
}

.site-header__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1;
}

.site-header__logo {
	width: 11.875rem;
}

.notice {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tile-gap);
	max-width: calc(70rem + 2 * var(--gutter));
	margin: 0 auto;
	padding: clamp(2.5rem, 5.5vw, 3.5rem) var(--gutter) clamp(3rem, 9vw, 6.25rem);
}

.notice__text {
	max-width: 26em;
	margin: 0 auto;
	text-align: center;
	text-wrap: balance;
}

.notice__text p {
	margin: 0 0 1.25em;
}

.notice__text p:last-child {
	margin-bottom: 0;
}

.notice__text sup {
	line-height: 0;
}

.notice__text a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.2s ease;
}

.notice__text a:hover,
.notice__text a:focus-visible {
	text-decoration-color: currentColor;
}

/* One column: a short rule separates the two languages. */
.notice__text + .notice__text {
	padding-top: clamp(2rem, 8vw, 2.75rem);
	margin-top: clamp(1.25rem, 5vw, 2rem);
	background: linear-gradient(var(--ink), var(--ink)) top center / 2.5rem 1px no-repeat;
}

.tile {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 8 / 9;
	background: #efe6da;
}

.tile--appliance {
	background: #5d93c4;
}

.notice__text + .tile {
	margin-top: clamp(1.75rem, 6vw, 2.5rem);
}

.tile picture,
.tile__photo {
	display: block;
	width: 100%;
	height: 100%;
}

.tile__photo {
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile:hover .tile__photo,
.tile:focus-visible .tile__photo {
	transform: scale(1.025);
}

.tile:focus-visible {
	outline-offset: 3px;
}

.tile__logo {
	position: absolute;
}

/* THE BATH SHOP: outlined wordmark on a white label. */
.tile__logo--bath {
	top: 12.5%;
	left: 7.1%;
	width: 85.8%;
	padding: 5.2% 4.2%;
	background: var(--paper);
}

/* Appliance & Interior: the hexagon badge, centred. */
.tile__logo--appliance {
	top: 8.2%;
	left: 24.5%;
	width: 51%;
}

@media (min-width: 48em) {
	.notice {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: clamp(2.5rem, 5vw, 3.25rem);
		align-items: start;
	}

	.notice__text + .notice__text {
		padding-top: 0;
		margin-top: 0;
		background: none;
	}

	.notice__text + .tile {
		margin-top: 0;
	}
}

/* No hover on touch screens: show there that the two domain lines are links. */
@media (hover: none) {
	.notice__text a {
		text-decoration-color: currentColor;
	}
}

/* Windows contrast themes repaint backgrounds; the wordmarks are dark ink and need their white. */
@media (forced-colors: active) {
	.site-header,
	.tile__logo--bath {
		forced-color-adjust: none;
	}

	.site-header {
		background: #fff;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tile__photo,
	.notice__text a {
		transition: none;
	}

	.tile:hover .tile__photo,
	.tile:focus-visible .tile__photo {
		transform: none;
	}
}

@media print {
	.tile {
		break-inside: avoid;
	}
}
