/*
 * Front page. The salon's own sign in mirrors is the opening; the rest is photographs and quiet type.
 */
.wh2 {
	--wh2-pad: max(var(--wauw-gutter), calc((100% - 96rem) / 2));
	--wh2-gap: clamp(1.25rem, 2.8vw, 2.5rem);
	--wh2-room: clamp(4rem, 8vw, 7.5rem);
	font-family: var(--wx-body);
	font-size: 1.0625rem;
	line-height: 1.55;
}
.wh2 :is(h1, h2) { margin: 0; color: var(--wp--preset--color--contrast); font-family: var(--wx-display); font-weight: 400; letter-spacing: -0.015em; }
.wh2 h1 { font-size: var(--wx-title); line-height: 1.1; letter-spacing: -0.02em; }
.wh2 h1 span { display: block; text-wrap: balance; }
.wh2 h1 span + span { margin-top: 0.5rem; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.25; letter-spacing: 0; }
.wh2 h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.15; }
.wh2 p { margin: 0; }
.wh2 :is(.wh2-open, .wh2-way, .wh2-visit) img { display: block; width: 100%; object-fit: cover; }

.wh2 .wx-btn { text-decoration: none; }

/* Text links: always underlined, never a guess. */
.wh2-line, .wh2-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; font-weight: 600; transition: text-decoration-color 0.2s; }
.wh2-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; }
:is(a:hover .wh2-line, .wh2-link:hover) { text-decoration-color: transparent; }

/* Black Friday: one plain line under the header, gone with the black look. */
.wh2-bf { display: none; }
html.is-bf .wh2-bf { display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: center; justify-content: center; box-sizing: border-box; min-height: 2.75rem; padding: 0.35rem var(--wauw-gutter); color: inherit; text-decoration: none; }
html.is-bf .wh2 { --wh2-strip: 2.75rem; }

/* Opening: photograph first, words right under it, both on the first screen. */
.wh2-open__photo { height: clamp(13rem, calc(100svh - var(--wauw-header) - var(--wh2-strip, 0rem) - 18.75rem), 100vw); object-position: 94% 24%; }
.wh2-open__text { display: grid; gap: 1rem; padding: 1.75rem var(--wh2-pad) 0; }
.wh2-open__do { display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; align-items: center; }
.wh2-open__do p { flex: 0 0 100%; text-wrap: balance; }

/* Ways in: three portraits edge to edge, hair first. Black and white until you point at one. */
.wh2-ways { display: grid; gap: 4px; padding-block: var(--wh2-room); }
.wh2 .wh2-way { position: relative; display: block; overflow: hidden; color: var(--wx-ivory); text-decoration: none; }
.wh2 .wh2-way img { height: auto; aspect-ratio: 5 / 6; filter: grayscale(1); transition: filter 0.5s; }
.wh2-way::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(8 14 12 / 0.32) 35%, rgb(8 14 12 / 0.82)); pointer-events: none; }
.wh2 .wh2-way__cap { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 0.35rem; justify-items: start; padding: 1.75rem var(--wauw-gutter); }
.wh2 .wh2-way h2 { color: inherit; font-size: clamp(2rem, 2.9vw, 2.9rem); line-height: 1.1; }
.wh2-way .wh2-line { margin-top: 0.6rem; }
.wh2-way--about img { object-position: 50% 78%; }
.wh2-way--prices img { object-position: 50% 60%; }
@media (hover: hover) {
	.wh2 .wh2-way:hover img { filter: none; }
}

/* Products: the cards are the shop's own (card.css). */
.wh2-shop { padding: 0 var(--wh2-pad) var(--wh2-room); }
.wh2-head { display: flex; flex-wrap: wrap; gap: 0 2rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }

/* Address and phone */
.wh2-visit { display: grid; }
.wh2-visit img { height: auto; aspect-ratio: 3 / 2; }
.wh2-visit__text { padding: 2.25rem var(--wauw-gutter) 3rem; }
.wh2-visit__tel { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; font-family: var(--wx-display); font-size: clamp(1.6rem, 2.4vw, 2.25rem); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color 0.2s; }
.wh2-visit__tel:hover { text-decoration-color: transparent; }
.wh2-visit__text p:first-of-type { margin-top: 1.1rem; }
.wh2-visit__text .wh2-visit__more { display: flex; gap: 1.75rem; margin-top: 0.6rem; }

@media (min-width: 44rem) {
	.wh2-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wh2 .wh2-way img { width: 100%; height: clamp(26rem, 78svh, 50rem); aspect-ratio: auto; }
	.wh2 .wh2-way__cap { padding: 2.25rem clamp(1.25rem, 2.5vw, 2.5rem); }
}
@media (min-width: 48rem) {
	.wh2-open__photo { height: clamp(20rem, calc(100svh - var(--wauw-header) - var(--wh2-strip, 0rem) - 17rem), 66.6vw); object-position: 50% 22%; }
	.wh2 { --wh2-split: 6; }
	.wh2-open__text { padding-top: 2.25rem; }
	.wh2-visit { grid-template-columns: calc(var(--wh2-pad) + (100% - 2 * var(--wh2-pad) - var(--wh2-gap)) * var(--wh2-split) / 12) 1fr; column-gap: var(--wh2-gap); align-items: center; }
	.wh2-visit__text { padding: 0 var(--wh2-pad) 0 0; }
}
@media (min-width: 64rem) {
	.wh2 { --wh2-split: 7.5; }
	.wh2-open__photo { height: clamp(20rem, calc(100svh - var(--wauw-header) - var(--wh2-strip, 0rem) - 13.5rem), 66.6vw); }
	.wh2-open__text { grid-template-columns: 7.5fr 4.5fr; gap: var(--wh2-gap); align-items: end; }
}
@media (prefers-reduced-motion: reduce) {
	.wh2 * { transition: none !important; }
}
