/* The site's additions to the base stylesheet (public/_holding/site.css) and to rooms/room.css. Sizes follow the
   type ladder in brand/BRAND.md. */

/* The primary logo, from the logo kit. Its minimum width is 200 px. */
.logo {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}
.logo img {
	width: 200px;
	height: auto;
}

/* One operable room on a page, between the heading and the sections. */
main > .room {
	margin-bottom: clamp(56px, 7vw, 96px);
}

/* Home: one picture, then the headline, then one button.
   The picture runs the full width under the header and is cropped to a wide frame. It has
   no controls. It is a set of large stills of one room, one for each scene, stacked; the one
   that is showing fades in over the others (hero.js). */
main.home {
	padding-top: 0;
}
.hero-stills {
	position: relative;
	height: min(62svh, 72vw);
	margin: 0 calc(-1 * var(--inset));
	overflow: hidden;
	background: var(--ink);
}
.hero-stills img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 60%;
	opacity: 0;
	transition: opacity 2.6s ease-in-out;
}
.hero-stills img[data-shown] {
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.hero-stills img {
		transition: none;
	}
}
main.home .lead {
	padding-top: clamp(40px, 5vw, 72px);
	padding-bottom: 0;
}
.home-next {
	margin-top: clamp(32px, 4vw, 48px);
}

/* The header links are set as the brand sets buttons: condensed capitals, letter-spaced.
   Capitals in a row read as navigation, where sentence case read as a line of text. Each
   link is tall enough to tap. */
.nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	font-stretch: 62%;
	font-variation-settings:
		"wdth" 62,
		"wght" 600;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* The header on a phone: the five links do not fit on one line beside each other. Contact
   is left out there, because every page ends in the band with the contact button, and the
   links are spread across the width. */
@media (max-width: 480px) {
	.nav {
		width: 100%;
		justify-content: space-between;
		gap: 12px;
		flex-wrap: nowrap;
	}
	.nav a[href="/contact/"] {
		display: none;
	}
}

/* The narrowest phones: the four links are a little smaller and closer, so they fit. */
@media (max-width: 359px) {
	.nav {
		gap: 6px;
	}
	.nav a {
		font-size: 13px;
		letter-spacing: 0.04em;
	}
}
