* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	background: #111;
	color: #fff;
}

.hero {
	position: relative;
	width: 100%;
	min-height: 100dvh;

	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;

	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;

	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.35) 0%,
		rgba(0, 0, 0, 0.08) 50%,
		rgba(0, 0, 0, 0) 75%
	);

	pointer-events: none;
}

.masthead {
	position: absolute;
	top: 4vw;
	left: 5vw;
	z-index: 1;

	font-size: clamp(3rem, 8vw, 8rem);
	font-weight: 700;
	line-height: 0.8;
	letter-spacing: -0.06em;

	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.65);
}

.masthead a,
.masthead a:link,
.masthead a:visited,
.masthead a:hover,
.masthead a:active {
    color: #fff;
    text-decoration: none;
}

.hero-content {
	position: absolute;
	left: 5vw;
	bottom: 14vh;
	z-index: 1;

	max-width: 700px;

	color: #fc0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.65);
}

.hero-content h1 {
	margin: 0 0 0.4rem 0;

	font-size: clamp(2rem, 4vw, 4.5rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.03em;

	color: #fff;
}

.hero-content p {
	margin: 0.5rem 0;
	padding-left: 0.2rem;

	font-size: clamp(1rem, 1.5vw, 1.4rem);
}

.hero-content a {
	display: inline-block;

	color: #fc0;
	text-decoration: none;

	transition:
		transform 0.15s ease,
		text-shadow 0.15s ease;
}

.coming-soon {
	color: #fff;
	opacity: 0.85;
}

.site-footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;

	display: flex;
	justify-content: space-between;
	align-items: center;

	padding: 3rem 5vw 1.5rem;

	font-size: 0.8rem;
	letter-spacing: 0.04em;

	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.65) 20%,
		rgba(0, 0, 0, 0.35) 65%,
		rgba(0, 0, 0, 0) 100%
	);
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}


/* Mobile layout */

@media (max-width: 700px) {

	.masthead {
		top: 2rem;
		left: 1.5rem;

		font-size: clamp(4rem, 22vw, 7rem);
	}

	.hero-content {
		left: 1.5rem;
		right: 1.5rem;
		bottom: 3rem;
	}

	.site-footer {
		padding: 1.25rem 1.5rem;
	}

	.hero::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;

		height: 10rem;

		background: linear-gradient(
			to top,
			rgba(0, 0, 0, 0.65) 0%,
			rgba(0, 0, 0, 0.35) 55%,
			rgba(0, 0, 0, 0) 100%
		);

		pointer-events: none;
	}

	.hero-content,
	.site-footer {
		z-index: 2;
	}

}


/* Mouse / trackpad hover */

@media (hover: hover) and (pointer: fine) {

	.hero-content a:hover {
		transform: translateY(-2px) scale(1.08);
	}

}


/* Touch feedback */

@media (hover: none) {

	.hero-content a:active {
		transform: scale(1.08);
	}

}

/* Shared native select styling — eliminate Safari's bevels site-wide.
   More specific page selectors may set dimensions or layout. */
select {
    -webkit-appearance: none;
    appearance: none;
    color: #fff;
    background-color: #303030;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23ddd' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 12px 8px;
    background-position: right .8rem center;
    border: 1px solid #656565;
    border-radius: 6px;
    padding: .7rem 2.3rem .7rem .65rem;
    font: inherit;
    cursor: pointer;
}
select:focus-visible { outline: 2px solid #d7bc77; outline-offset: 2px; }
select:disabled { cursor: not-allowed; opacity: .6; }

/* ==========================================================
   HOMEPAGE — LAUNCH SIGNUP
   Consolidated from /styles/launch-signup.css
   ========================================================== */
/* sn0w homepage launch signup — independent lower-right CTA.
   Keep the existing masthead, hero image, headline and footer intact. */
.hero { position: relative; }
.hero > .launch-signup {
  position: absolute;
  right: 5vw;
  bottom: 86px;
  z-index: 3;
  box-sizing: border-box;
  width: min(410px, 90vw);
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}
.hero > .launch-signup h2 {
  margin: 0 0 11px;
  font: 700 28px/1.2 Arial, sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
}
.hero > .launch-signup .launch-signup-fields {
  display: flex;
  gap: 7px;
  width: 100%;
}
.hero > .launch-signup .launch-signup-fields input {
  min-width: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
  padding: 10px 11px;
  font: 14px Arial, sans-serif;
  border: 1px solid #b2c3cf;
  border-radius: 5px;
  background: rgba(255,255,255,.96);
  color: #172333;
}
.hero > .launch-signup .launch-signup-fields button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 5px;
  padding: 10px 12px;
  background: #efc947;
  color: #172333;
  font: 700 13px Arial, sans-serif;
  cursor: pointer;
}
.hero > .launch-signup .launch-signup-fields button:hover { background: #ffe181; }
.hero > .launch-signup .launch-signup-feedback {
  margin: 9px 0 0;
  padding: 7px 9px;
  font: 12px/1.4 Arial, sans-serif;
  color: #fff;
  background: rgba(5,20,38,.72);
  border-radius: 4px;
}
.hero > .launch-signup .launch-signup-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
/* On narrow screens, stack the CTA above the existing left-side copy.
   Keep the contact address at its original footer position. */
@media (max-width: 800px) {
  .hero > .launch-signup {
    left: 5vw;
    right: 5vw;
    bottom: 210px;
    width: min(410px, 90vw);
  }
}
@media (max-height: 640px) and (min-width: 801px) {
  .hero > .launch-signup { bottom: 62px; }
}

/* Desktop composition: align the two lower corners without changing the masthead. */
@media (min-width: 801px) and (min-height: 681px) {
  .hero .hero-content { translate: 0 25px; }
}
/* Preserve legibility and available space on narrower viewports. */
@media (max-width: 800px) {
  .hero > .launch-signup h2 { font-size: clamp(19px, 4vw, 24px); }
}
@media (max-height: 680px) and (min-width: 801px) {
  .hero > .launch-signup h2 { font-size: 23px; }
}

/* Replace the email row with an equal-height status after successful submission. */
.hero > .launch-signup .launch-signup-confirmation {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 41px;
  margin: 0;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.35;
}

/* ==========================================================
   SHARED INTERNAL PAGE SHELL, MOUNTAIN BACKDROP AND FOOTER
   Used by Snowfinder, Maps, Resorts and Gear.
   ========================================================== */
/* =========================================================
   01. PAGE LAYOUT AND BACKGROUND
   ========================================================= */

.page {
    --snow-darkness: 0.85; /* Dark is the only site theme. */
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
}

.page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;

    /* Match the dark ocean atmosphere of the Winkel map below the stripe.
       Keep the mountain unobscured above the shared navigation stripe.
       Apply theme darkness only BELOW its gold lower rule. */
    background-image:
        linear-gradient(to bottom,
            transparent 0,
            transparent var(--sn0w-content-start, 9.625rem),
            rgba(12, 20, 28, 0.96) var(--sn0w-content-start, 9.625rem),
            rgba(12, 20, 28, 0.96) 100%
        ),
        url('/public/assets/site/snow.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-content {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: 10rem;
    z-index: 1;
}

/* =========================================================
   02. MASTHEAD
   ========================================================= */

/* Override global masthead positioning for Snowfinder */
.page .masthead {
    top: 1.5vw;
    left: 4vw;
    font-size: 4rem;
}

/* =========================================================
   12. FOOTER
   ========================================================= */

.page-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: #171717;
    border-top: 1px solid #999;
}

.page-bottom .site-footer {
    position: static;
    background: none;
    padding-top: 1rem;
}

/* ==========================================================
   SHARED INTERNAL MASTHEAD AND SECTION STRIPE
   Formerly /styles/masthead.css. Homepage .hero remains separate.
   ========================================================== */
/* Shared sn0w masthead, navigation and section stripe. */
.masthead-controls {
    position: absolute;
    top: 2rem;
    right: 4vw;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sn0w-site-menu { position: relative; }
.sn0w-menu-toggle {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: #fff;
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    cursor: pointer;
}
.sn0w-menu-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.sn0w-menu-toggle:hover,
.sn0w-menu-toggle[aria-expanded="true"] { background: rgba(0,0,0,.8); }
.sn0w-menu-toggle:focus-visible,
.sn0w-menu-panel a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.sn0w-menu-panel {
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    min-width: 11rem;
    padding: .4rem;
    background: rgba(15,15,15,.96);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.sn0w-menu-panel[hidden] { display: none; }
.sn0w-menu-panel a {
    display: block;
    padding: .7rem .8rem;
    border-radius: 6px;
    color: #eee;
    font: 700 12px Arial, Helvetica, sans-serif;
    letter-spacing: .04em;
    text-decoration: none;
}
.sn0w-menu-panel a:hover { background: rgba(255,255,255,.12); color: #fff; }
.sn0w-menu-panel a[aria-current="page"] { color: #e0bd73; }

@media (max-width: 600px) {
    .masthead-controls { right: 1rem; top: 1.5rem; gap: .4rem; }
}

/* =========================================================
   SHARED SECTION STRIPE
   A reserved navigation row on non-resort pages. Resort pages
   already render their own full-width, gold-edged toolbar here.
   ========================================================= */
.page {
    --sn0w-stripe-top: 6.375rem;
    --sn0w-stripe-height: 3.25rem;
    --sn0w-content-start: calc(var(--sn0w-stripe-top) + var(--sn0w-stripe-height));
}

.sn0w-section-stripe {
    position: absolute;
    top: var(--sn0w-stripe-top);
    left: 0;
    right: 0;
    height: var(--sn0w-stripe-height);
    z-index: 5;
    box-sizing: border-box;
    background: #202020;
    border-bottom: 2px solid #c6a66a;
}

/* The resort toolbar already occupies the same row and draws
   its own gold rule: never render a duplicate underneath. */
.page:has(.snowfinder-resort) .sn0w-section-stripe {
    display: none;
}

/* =========================================================
   FIXED GLOBAL MASTHEAD
   Keep shared header elements pinned while directories scroll.
   Scoped to .page so the public coming-soon hero is unchanged.
   ========================================================= */
.page .masthead {
    position: fixed;
    z-index: 45;
}

.page .masthead-controls {
    position: fixed;
    z-index: 50;
}

.page .sn0w-section-stripe {
    position: fixed;
    z-index: 35;
}

/* =========================================================
   OPAQUE FIXED MASTHEAD BACKDROP
   Paint the same full-viewport mountain photograph behind the
   logo, clipping it to the header. Scrolling content passes
   BEHIND the header instead of showing through its clear sky.
   The separate charcoal stripe stays directly beneath it.
   ========================================================= */
.page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 34;
    pointer-events: none;
    background: url('/public/assets/site/snow.png') center center / cover no-repeat;
    clip-path: inset(0 0 calc(100% - var(--sn0w-stripe-top)) 0);
}

/* Optional section title and description, inspired by the resort toolbar. */
.sn0w-section-stripe:has(.sn0w-section-identity) {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.sn0w-section-identity {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    max-width: 40%;
    padding: 0.5rem 1.25rem;
    background: #353535;
    border-right: 1px solid rgba(255, 255, 255, .12);
}
.sn0w-section-identity h1 {
    margin: 0;
    color: #fff;
    font: 700 clamp(1rem, 1.35vw, 1.3rem)/1.1 Arial, Helvetica, sans-serif;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.sn0w-section-description {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0.45rem 1.25rem;
    color: #dedede;
    font: 400 clamp(.76rem, 1vw, .95rem)/1.3 Arial, Helvetica, sans-serif;
}
@media (max-width: 650px) {
    .sn0w-section-identity { padding-inline: .85rem; }
    .sn0w-section-description { padding-inline: .85rem; font-size: .73rem; }
}
