@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/anton.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #183e42;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

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

.harbor {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #183e42;
}

/* The ambient layer fills unusual screen ratios; the sharp scene NEVER crops. */
.ambience {
  position: absolute;
  inset: -40px;
  z-index: -2;
  pointer-events: none;
}

.ambience img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) brightness(0.82);
}

.landscape {
  position: relative;
  container-type: inline-size;
  width: min(100vw, calc(100vh * 16 / 9));
  width: min(100vw, calc(100svh * 16 / 9));
  aspect-ratio: 16 / 9;
  flex: none;
}

.scenery {
  display: block;
  position: absolute;
  inset: 0;
}

.scenery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.identity {
  position: absolute;
  top: 13%;
  left: 4%;
  right: 4%;
  text-align: center;
  animation: arrive 1.2s ease-out both;
}

h1 {
  margin: 0;
  color: #fff;
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-size: 9.2vw;
  font-size: 9.2cqw;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgb(19 42 52 / 22%);
}

h1 span {
  white-space: nowrap;
}

.verse {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 22px 0 0;
  font-size: clamp(12px, 1.15vw, 18px);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgb(19 42 52 / 35%);
}

.verse::before,
.verse::after {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  background: rgb(255 255 255 / 65%);
}

.footer {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 20px;
  right: 20px;
  text-align: center;
  text-shadow: 0 2px 8px #102c30;
}

.footer small {
  color: rgb(255 255 255 / 90%);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

@media (max-aspect-ratio: 1/1) {
  .landscape {
    width: min(100vw, calc(100vh * 9 / 16));
    width: min(100vw, calc(100svh * 9 / 16));
    aspect-ratio: 9 / 16;
  }

  .identity {
    top: 16%;
    left: 5%;
    right: 5%;
  }

  h1 {
    font-size: 21vw;
    font-size: 21cqw;
    line-height: 1.08;
    letter-spacing: 0.025em;
  }

  h1 span {
    display: block;
  }

  .verse {
    margin-top: 18px;
    font-size: 13px;
    gap: 15px;
  }

  .verse::before,
  .verse::after {
    width: 24px;
  }

  .footer {
    bottom: max(20px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .verse {
    margin-top: 10px;
    font-size: 11px;
  }

  .footer {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@keyframes arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .identity {
    animation: none;
  }
}
