@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/archivo.woff2) format('woff2');
}

:root {
  color-scheme: dark;
  --cream: #F5EFE2;
  --cream-soft: rgba(245, 239, 226, 0.82);
  --grot: 'Archivo', -apple-system, 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--grot);
  color: var(--cream);
  background: #0c3f55;
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

/* blurred instant placeholder behind the real photo */
.bg-lqip {
  position: fixed;
  inset: -4%;
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.05);
  transform: scale(1.06);
}

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.bg img,
.bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0;
  transition: opacity 700ms ease;
}

.bg img {
  transform: scale(1.06);
}

.bg img.ok {
  opacity: 1;
  animation: drift 55s ease-in-out infinite alternate;
}

.bg video.ok {
  opacity: 1;
  transition: opacity 1200ms ease;
}

/* the slow lock-screen drift */
@keyframes drift {
  from { transform: scale(1.06) translate(0%, 0%); }
  to   { transform: scale(1.13) translate(-1.6%, 1.1%); }
}

.scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(3, 18, 28, 0.28), transparent 18%),
    radial-gradient(115% 85% at 0% 100%, rgba(2, 18, 26, 0.58), transparent 58%),
    linear-gradient(to top, rgba(2, 16, 24, 0.30), transparent 22%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1.2rem, 4vw, 3rem);
}

header {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.mark {
  font-weight: 680;
  font-stretch: 112%;
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(0, 10, 18, 0.4);
}

.hdr-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.lang {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cream-soft);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 10, 18, 0.45);
}

.lang:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  margin-top: auto;
  max-width: 34rem;
  padding-bottom: clamp(2rem, 6vh, 4.5rem);
}

h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  line-height: 1.22;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 8px rgba(0, 12, 20, 0.5), 0 2px 28px rgba(0, 12, 20, 0.45);
}

/* fixed four-line composition on wide screens; natural wrap on narrow */
h1 br {
  display: none;
}

@media (min-width: 900px) {
  h1 br {
    display: inline;
  }
  main {
    max-width: 48rem;
  }
}

.hl {
  font-style: normal;
  font-weight: 680;
  text-shadow: none;
  background: linear-gradient(105deg,
    #FFDF3D 0%, #FFEA70 40%, #FFFDE8 50%, #FFEA70 60%, #FFDF3D 100%);
  background-size: 280% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 214, 84, 0.75))
          drop-shadow(0 1px 5px rgba(0, 12, 20, 0.30));
  animation: sheen 7.5s ease-in-out infinite;
}

@keyframes sheen {
  0%   { background-position: 120% 0; }
  55%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}

.cities {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-soft);
  text-shadow: 0 1px 10px rgba(0, 14, 20, 0.55);
}

.anim {
  animation: rise-in 700ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: calc(var(--i, 0) * 140ms + 180ms);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main .sub {
  margin-top: 1.1rem;
  font-size: 1.06rem;
  color: var(--cream);
  max-width: 30rem;
  text-shadow: 0 1px 6px rgba(0, 14, 20, 0.6), 0 1px 22px rgba(0, 14, 20, 0.5);
}

.actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #093146;
  background: var(--cream);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0, 12, 20, 0.25);
  transition: background 160ms ease;
}

.btn:hover {
  background: #fff;
}

.email {
  font-size: 0.95rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 239, 226, 0.45);
  padding-bottom: 2px;
  text-shadow: 0 1px 10px rgba(0, 14, 20, 0.55);
  transition: border-color 160ms ease;
}

.email:hover {
  border-bottom-color: var(--cream);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1.8rem;
  font-size: 0.8rem;
  color: rgba(245, 239, 226, 0.75);
  text-shadow: 0 1px 10px rgba(0, 14, 20, 0.5);
}

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

footer a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* contact line above the cities */
.contact {
  font-size: 1rem;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 14, 20, 0.5);
}

.contact a {
  color: var(--cream);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 160ms ease;
}

.contact a:hover {
  color: #fff;
}

a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .bg img.ok {
    animation: none;
  }
  .bg img {
    transition: none;
  }
  .anim {
    animation: none;
  }
  .hl {
    animation: none;
    background-position: 50% 0;
  }
}
