:root {
  --sand: #e7dac7;
  --copper: #a47762;
  --cream: #f6f0e6;
  --ink: #1a1411;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--cream);
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.45;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.bg-poster,
.bg-video,
.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-poster,
.bg-video {
  object-fit: cover;
  object-position: center 42%;
}

.bg-video {
  z-index: 1;
}

.overlay {
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(26, 20, 17, 0.28), rgba(26, 20, 17, 0.46) 42%, rgba(26, 20, 17, 0.58)),
    rgba(26, 20, 17, 0.18);
  pointer-events: none;
}

.reduce-motion .bg-video,
.bg-video.is-suspended {
  display: none;
}

.reduce-motion .bg-video.is-playing {
  display: block;
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    1.25rem
    max(1.25rem, env(safe-area-inset-bottom));
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 46rem);
  max-width: 100%;
  min-width: 0;
  padding: 1.5rem 0 1rem;
  text-align: center;
  animation: enter 1s ease both;
}

.logo {
  display: block;
  width: min(100%, 36rem);
  max-width: 100%;
  min-width: 0;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(20, 12, 8, 0.45));
}

.lead {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(20, 12, 8, 0.55);
}

.lead-en {
  margin-top: 0.4rem;
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  font-style: italic;
  color: var(--sand);
}

.instagram,
.media-toggle,
.credit a {
  -webkit-tap-highlight-color: transparent;
}

.instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  max-width: 100%;
  min-height: 48px;
  margin-top: 1.6rem;
  padding: 0.75rem 1.3rem;
  border: 1px solid rgba(231, 218, 199, 0.75);
  border-radius: 999px;
  background: rgba(164, 119, 98, 0.28);
  color: var(--cream);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.instagram:hover {
  background: rgba(164, 119, 98, 0.62);
  border-color: var(--sand);
}

.instagram:focus-visible,
.media-toggle:focus-visible,
.credit a:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

.credit {
  width: 100%;
  margin: 0;
  padding: 0.75rem 4.5rem 0.15rem;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 1px 8px rgba(20, 12, 8, 0.65);
}

.credit a {
  color: rgba(246, 240, 230, 0.9);
  text-underline-offset: 0.2em;
}

.media-toggle {
  position: fixed;
  z-index: 5;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(231, 218, 199, 0.7);
  border-radius: 50%;
  background: rgba(26, 20, 17, 0.55);
  color: var(--cream);
  cursor: pointer;
}

.media-toggle:hover {
  background: rgba(164, 119, 98, 0.72);
}

.media-toggle .icon-play {
  display: none;
}

.media-toggle[aria-pressed="false"] .icon-pause {
  display: none;
}

.media-toggle[aria-pressed="false"] .icon-play {
  display: block;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 800px) {
  .bg-poster,
  .bg-video {
    object-position: 40% 40%;
  }
}

@media (max-height: 560px) {
  .content {
    padding-block: 0.75rem;
  }

  .logo {
    width: min(52vh, 100%);
  }

  .lead {
    margin-top: 0.75rem;
    font-size: 1.05rem;
  }

  .lead-en {
    font-size: 0.92rem;
  }

  .instagram {
    margin-top: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content {
    animation: none;
  }

  .bg-video {
    display: none;
  }

  .bg-video.is-playing {
    display: block;
  }
}
