:root {
  --cream: #f4ead8;
  --ink: #1a1410;
  --gold: #8a4f16;
  --pad-x: max(1.25rem, env(safe-area-inset-left, 0px), 4vw);
  --pad-y: max(1.25rem, env(safe-area-inset-top, 0px), 4vh);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: #1b2a38;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  align-content: start;
  justify-items: start;
  overflow: hidden;
  isolation: isolate;
  padding: var(--pad-y) var(--pad-x);
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px), 4vw);
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}

.sea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 36%;
  z-index: -1;
}

.sea.is-rise {
  z-index: 0;
  transition: opacity 0.8s ease;
}

.sea.is-rise.is-out {
  opacity: 0;
  pointer-events: none;
}

.wordmark {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  max-width: 100%;
  text-align: left;
  text-shadow:
    0 1px 0 rgba(255, 248, 236, 0.7),
    0 0 18px rgba(255, 244, 228, 0.55);
}

.place {
  margin: 0;
  font-size: clamp(0.56rem, 1.6vw, 0.68rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0.15rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 7.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.92;
}

.trade {
  margin: 0.35rem 0 0;
  font-size: clamp(0.64rem, 1.8vw, 0.76rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
}

.mail {
  display: inline-block;
  margin-top: 0.85rem;
  max-width: 100%;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(0.78rem, 2.6vw, 0.92rem);
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(138, 79, 22, 0.55);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mail:hover,
.mail:focus-visible {
  color: var(--gold);
}

@media (min-width: 720px) {
  .place,
  .trade {
    letter-spacing: 0.42em;
  }

  h1 {
    letter-spacing: 0.12em;
  }
}

@media (min-width: 1100px) {
  .wordmark {
    width: 24rem;
  }
}

@media (max-width: 480px) {
  .place,
  .trade {
    letter-spacing: 0.22em;
  }

  h1 {
    letter-spacing: 0.06em;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .stage {
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
  }

  h1 {
    font-size: clamp(1.5rem, 5.5vh, 2.4rem);
  }

  .mail {
    margin-top: 0.45rem;
    padding: 0.2rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sea { display: none; }
  .stage {
    background: url("../assets/hero.jpg") left 36% / cover no-repeat;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 720px) {
  .stage {
    background-position: left 36%;
  }
}
