:root {
  font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;
  color:#173f43;
  background:#f5efd9;
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input {
  font:inherit;
}

.ferry {
  min-height:100vh;
  min-height:100svh;
  position:relative;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  align-items:center;
  isolation:isolate;
  overflow:hidden;
  padding:80px clamp(30px,8vw,150px);
  gap:6vw;
}

.harbor-photo {
  z-index:-2;
  position:absolute;
  inset:0 36% 0 0;
  background:#e4e8c5 url("/harbor.webp") center 45%/cover no-repeat;
}

.ferry::after {
  content:"";
  z-index:-1;
  position:absolute;
  inset:0 0 0 59%;
  background:radial-gradient(#ccb9873d .8px,transparent .9px) 0 0/5px 5px,#f5efd9;
  clip-path:polygon(5% 0,100% 0,100% 100%,0 100%);
}

.wordmark {
  position:absolute;
  top:max(24px,env(safe-area-inset-top));
  left:clamp(22px,5vw,90px);
  font:700 15px/1.4 Georgia,serif;
  letter-spacing:.08em;
  color:#164e55;
  background:#fff7dfeF;
  border:1px solid #416a6580;
  box-shadow:0 2px #33615d55;
  border-radius:20px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:5px 13px;
}

.wordmark span {
  font-size:21px;
  color:#cb794e;
}

.wordmark i {
  height:14px;
  width:1px;
  background:#91aaa1;
}

.pass {
  grid-column:2;
  width:min(100%,425px);
  justify-self:center;
  background:#fff9e9;
  border:1px solid #caba90;
  border-radius:14px;
  box-shadow:0 5px 0 -2px #dccb9e,0 17px 40px #29494126;
  padding:clamp(25px,4vw,44px);
  position:relative;
}

.pass:before {
  content:"";
  position:absolute;
  inset:0 14px auto;
  height:5px;
  background:repeating-linear-gradient(124deg,#378b85 0 9px,transparent 9px 17px,#da835b 17px 26px,transparent 26px 34px);
}

.pass-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  color:#4c6b63;
}

.pass-head b {
  color:#bd7846;
  font-size:23px;
}

.pass h1 {
  font-family:"Songti SC",SimSun,serif;
  margin:13px 0 7px;
  line-height:1.2;
  font-size:clamp(30px,4.2vw,42px);
  color:#173f43;
}

.lede,.notice {
  font-size:14px;
  line-height:1.65;
  color:#4d655f;
  margin:0;
}

.lede {
  margin-bottom:23px;
}

label {
  display:block;
  font-weight:700;
  font-size:14px;
  margin-bottom:7px;
}

input {
  width:100%;
  height:46px;
  border-radius:7px;
  border:1px solid #bbbc9e;
  background:#fffdf3;
  padding:0 12px;
  margin-bottom:16px;
  color:#123f43;
}

input:focus {
  outline:2px solid #347b77;
  outline-offset:1px;
}

button {
  cursor:pointer;
  width:100%;
  border:0;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 17px;
  background:#225e5d;
  color:white;
  font-weight:700;
  font-size:16px;
}

button:focus-visible {
  outline:3px solid #db9d50;
  outline-offset:3px;
}

button:disabled {
  opacity:.7;
}

.notice {
  border-top:1px dashed #cabe9d;
  padding-top:13px;
  margin-top:19px;
  font-size:12px;
}

.error {
  color:#96392b;
  font-size:13px;
  margin:0 0 10px;
}

@media(max-width:760px) {
  .ferry {
    display:flex;
    justify-content:center;
    align-items:flex-end;
    padding:max(110px,27svh) 17px max(16px,env(safe-area-inset-bottom));
  }
  .ferry::after {
    display:none;
  }
  .harbor-photo {
    inset:0;
    background-position:center 29%;
  }
  .pass {
    padding:22px;
    width:min(100%,430px);
  }
  .pass h1 {
    margin-top:5px;
  }
  .lede {
    margin-bottom:16px;
  }
  .notice {
    margin-top:13px;
    padding-top:10px;
  }
  .wordmark {
    top:16px;
    left:18px;
  }
}

@media(max-height:620px) and (min-width:761px) {
  .ferry {
    padding-top:45px;
    padding-bottom:24px;
  }
  .pass {
    padding:18px 27px;
  }
}
