:root {
  --night-ridge: #102e33;
  --pine: #173d3f;
  --alpine-mist: #edf4ef;
  --snow: #fafcf7;
  --sunset: #f4b446;
  --trail: #c85345;
  --lake: #2a7578;
  --display: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: "Bodoni Moda", Georgia, serif;
  --utility: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --split: 55%;
  --header-height: 86px;
  --footer-height: 64px;
}

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

* {
  margin: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 320px;
  overflow: hidden;
}

body {
  color: var(--night-ridge);
  background: var(--night-ridge);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sunset);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  padding: 10px 14px;
  color: var(--snow);
  background: var(--night-ridge);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.landing {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--night-ridge);
}

.landing__background,
.landing__atmosphere,
.landing__panel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing__background {
  z-index: -3;
  background-color: var(--night-ridge);
  background-image:
    image-set(
      url("assets/hiker-sunset.avif") type("image/avif"),
      url("assets/hiker-sunset.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
  animation: scene-arrival 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing__atmosphere {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 26, 30, 0.38) 0%, rgba(5, 26, 30, 0.05) 46%, transparent 63%),
    linear-gradient(180deg, rgba(4, 20, 24, 0.26), transparent 28%, rgba(4, 21, 25, 0.2));
}

.landing__panel {
  z-index: -1;
  left: var(--split);
  background:
    linear-gradient(145deg, rgba(250, 252, 247, 0.92), rgba(237, 244, 239, 0.82)),
    rgba(237, 244, 239, 0.86);
  border-left: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: -30px 0 90px rgba(9, 38, 40, 0.08);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: var(--split) 1fr;
  align-items: center;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.site-header--minimal {
  grid-template-columns: 1fr;
}

.brand {
  justify-self: start;
  margin-left: clamp(28px, 5vw, 78px);
  color: var(--snow);
  font-family: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-shadow: 0 1px 20px rgba(4, 22, 25, 0.28);
  text-transform: uppercase;
}

.brand__compact {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: stretch;
  justify-content: flex-end;
  gap: clamp(20px, 2.1vw, 36px);
  min-width: 0;
  padding: 0 clamp(26px, 4.6vw, 72px);
  color: var(--night-ridge);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav > a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
}

.main-nav > a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.main-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(16, 46, 51, 0.21);
  cursor: pointer;
  list-style: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary:hover,
.language-switcher[open] summary {
  border-color: var(--night-ridge);
  color: var(--snow);
  background: var(--night-ridge);
}

.language-switcher summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.language-switcher summary b {
  position: relative;
  top: -2px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: transform 180ms ease;
}

.language-switcher[open] summary b {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: 152px;
  padding: 7px;
  color: var(--night-ridge);
  background: rgba(250, 252, 247, 0.98);
  border: 1px solid rgba(16, 46, 51, 0.16);
  box-shadow: 0 18px 42px rgba(7, 27, 30, 0.19);
}

.language-menu a {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 6px;
  align-items: center;
  padding: 10px 9px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: none;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
  background: rgba(42, 117, 120, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: var(--split) 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
}

.hero-copy {
  grid-column: 2;
  width: 100%;
  max-width: 720px;
  padding: 0 clamp(34px, 5.1vw, 82px);
  animation: copy-arrival 900ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow,
.field-note,
.site-footer {
  font-family: var(--utility);
  text-transform: uppercase;
}

.eyebrow {
  color: var(--lake);
  font-size: clamp(0.62rem, 0.73vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.13em;
}

.hero h1 {
  margin-top: clamp(15px, 2.2vh, 23px);
  font-size: clamp(2.7rem, 4.55vw, 5.25rem);
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 span {
  font-weight: 300;
}

.hero h1 strong {
  margin-top: 0.1em;
  font-weight: 800;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 44ch;
  margin-top: clamp(20px, 3.2vh, 32px);
  color: rgba(16, 46, 51, 0.73);
  font-size: clamp(0.83rem, 1vw, 0.98rem);
  line-height: 1.65;
}

.primary-action {
  display: inline-flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  min-width: 220px;
  margin-top: clamp(23px, 3.8vh, 38px);
  padding: 14px 17px;
  color: var(--snow);
  background: var(--night-ridge);
  border: 1px solid var(--night-ridge);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.primary-action:hover {
  color: var(--night-ridge);
  background: transparent;
  transform: translateY(-2px);
}

.primary-action span {
  font-size: 1rem;
}

.field-note {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  bottom: calc(var(--footer-height) + 22px);
  left: clamp(28px, 5vw, 78px);
  color: rgba(250, 252, 247, 0.82);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 18px rgba(3, 20, 24, 0.5);
}

.field-note::before {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 1px;
  background: var(--sunset);
  content: "";
}

.field-note__mountain {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.field-note__keepsake {
  margin-left: 2px;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.field-note__keepsake:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  position: absolute;
  inset: auto 0 0;
  z-index: 8;
  display: grid;
  grid-template-columns: var(--split) 1fr;
  align-items: center;
  height: var(--footer-height);
  font-size: 0.61rem;
  letter-spacing: 0.09em;
}

.instagram-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-self: start;
  margin-left: clamp(28px, 5vw, 78px);
  color: var(--snow);
  text-decoration: none;
  text-shadow: 0 1px 18px rgba(3, 20, 24, 0.5);
}

.instagram-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
}

.keepsake-link {
  justify-self: end;
  margin-right: clamp(26px, 4.6vw, 72px);
  color: rgba(16, 46, 51, 0.7);
  text-decoration: none;
}

.instagram-link:hover,
.keepsake-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@keyframes scene-arrival {
  from {
    opacity: 0;
    transform: scale(1.065);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes copy-arrival {
  from {
    opacity: 0;
    transform: translate3d(22px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
    --footer-height: 52px;
  }

  .landing__background {
    background-position: 27% center;
  }

  .landing__atmosphere {
    background:
      linear-gradient(180deg, rgba(3, 20, 24, 0.42) 0%, rgba(3, 20, 24, 0.02) 31%, transparent 38%),
      linear-gradient(0deg, rgba(6, 27, 30, 0.11), transparent 30%);
  }

  .landing__panel {
    top: 35%;
    left: 0;
    background: linear-gradient(
      180deg,
      rgba(237, 244, 239, 0) 0%,
      rgba(237, 244, 239, 0.9) 15%,
      rgba(237, 244, 239, 0.97) 38%,
      rgba(237, 244, 239, 0.98) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.36);
    border-left: 0;
    box-shadow: 0 -30px 70px rgba(9, 38, 40, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 18px;
    border-bottom-color: rgba(255, 255, 255, 0.25);
  }

  .site-header--minimal {
    justify-content: flex-end;
  }

  .brand {
    margin-left: 0;
    font-size: 0.79rem;
  }

  .brand__full {
    display: none;
  }

  .brand__compact {
    display: inline;
  }

  .main-nav {
    flex: 0 1 auto;
    gap: clamp(12px, 4vw, 20px);
    padding: 0;
    color: var(--snow);
    font-size: 0.61rem;
    text-shadow: 0 1px 16px rgba(3, 20, 24, 0.5);
  }

  .language-switcher summary {
    min-height: 34px;
    padding: 6px 8px;
    border-color: rgba(255, 255, 255, 0.46);
  }

  .language-switcher summary:hover,
  .language-switcher[open] summary {
    color: var(--night-ridge);
    background: var(--alpine-mist);
    border-color: var(--alpine-mist);
    text-shadow: none;
  }

  .language-menu {
    width: 145px;
    text-shadow: none;
  }

  .hero {
    display: block;
    padding: var(--header-height) 0 var(--footer-height);
  }

  .hero-copy {
    position: absolute;
    right: 0;
    bottom: calc(var(--footer-height) + clamp(15px, 3vh, 27px));
    left: 0;
    max-width: none;
    padding: 0 clamp(20px, 6vw, 38px);
  }

  .eyebrow {
    font-size: clamp(0.56rem, 2.4vw, 0.65rem);
  }

  .hero h1 {
    margin-top: clamp(10px, 1.8vh, 17px);
    font-size: clamp(2.6rem, 12.7vw, 4.4rem);
    line-height: 0.86;
  }

  .hero h1 strong {
    white-space: normal;
  }

  .hero-intro {
    max-width: 42ch;
    margin-top: clamp(14px, 2.4vh, 23px);
    font-size: clamp(0.76rem, 3vw, 0.91rem);
    line-height: 1.52;
  }

  .primary-action {
    min-width: min(238px, 100%);
    margin-top: clamp(16px, 2.8vh, 27px);
    padding: 12px 15px;
  }

  .field-note {
    bottom: calc(var(--footer-height) + 2px);
    left: 20px;
    z-index: 12;
    display: flex;
    gap: 7px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #000;
    background: transparent;
    box-shadow: none;
    font-size: 0.55rem;
    text-shadow: none;
  }

  .field-note--en-mobile-black,
  .field-note--en-mobile-black .field-note__keepsake {
    color: #000;
  }

  .site-footer {
    display: flex;
    justify-content: space-between;
    height: var(--footer-height);
    padding: 0 clamp(20px, 6vw, 38px);
    color: var(--night-ridge);
  }

  .instagram-link,
  .keepsake-link {
    margin: 0;
    color: rgba(16, 46, 51, 0.72);
    text-shadow: none;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding: 0 14px;
  }

  .main-nav {
    gap: 10px;
    font-size: 0.57rem;
    letter-spacing: 0.07em;
  }

  .language-switcher summary svg {
    display: none;
  }

  .hero-copy,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12.3vw, 3.2rem);
  }

  .instagram-link span {
    display: none;
  }
}

@media (max-height: 660px) {
  :root {
    --header-height: 58px;
    --footer-height: 44px;
  }

  .landing__panel {
    top: 31%;
  }

  .hero-copy {
    bottom: calc(var(--footer-height) + 10px);
  }

  .eyebrow {
    font-size: 0.55rem;
  }

  .hero h1 {
    margin-top: 8px;
    font-size: clamp(2.25rem, 10.8vw, 3.7rem);
  }

  .hero-intro {
    margin-top: 11px;
    font-size: 0.75rem;
    line-height: 1.42;
  }

  .primary-action {
    margin-top: 13px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (min-width: 761px) and (max-height: 610px) {
  .hero h1 {
    font-size: clamp(2.35rem, 4.1vw, 3.8rem);
  }

  .hero-intro {
    margin-top: 15px;
    line-height: 1.45;
  }

  .primary-action {
    margin-top: 18px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
