/* ==========================================================================
   Kamilė · Joga — LAIKINAS „Jau greitai" puslapis

   Naudojamas tik su laikinu index.html.
   Paleidimo dieną: svetaine.html pervadinti į index.html,
   o šį failą ir laikiną puslapį galima ištrinti.
   ========================================================================== */

/* --- 1. Tokenai (iš styles.css, tik reikalingi) --------------------------- */
:root {
  --bg:    #F4F3F0;
  --ink:   #182241;
  --sage:  #8B9C88;
  --sand:  #D9CFC0;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --ease:  cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Bazė ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body { height: 100%; }

body.soon {
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ink); color: var(--bg); }

/* --- 3. Turinys ---------------------------------------------------------- */
.soon__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  text-align: center;
}

/* Lėtas kvėpavimas fone — smėlio spalvos švytėjimas */
.soon__breath {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(20rem, 62vw, 42rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(217, 207, 192, .55) 0%,
              rgba(217, 207, 192, .18) 46%,
              rgba(217, 207, 192, 0) 70%);
  z-index: -1;
  opacity: 0;
  animation:
    soon-fade 2.4s var(--ease) .2s forwards,
    soon-breathe 11s ease-in-out 2.6s infinite;
}

.soon__text {
  margin: 0;
  font-size: clamp(2.75rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(14px);
  animation: soon-rise 1.6s var(--ease) .45s forwards;
}

.soon__rule {
  display: block;
  height: 1px;
  width: 0;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--sage);
  animation: soon-line 1.4s var(--ease) 1.15s forwards;
}

/* --- 4. Judesys ---------------------------------------------------------- */
@keyframes soon-fade {
  to { opacity: 1; }
}

@keyframes soon-rise {
  to { opacity: 1; transform: none; }
}

@keyframes soon-line {
  to { width: clamp(3rem, 8vw, 4.5rem); }
}

@keyframes soon-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.09); opacity: .72; }
}

@media (prefers-reduced-motion: reduce) {
  .soon__breath,
  .soon__text,
  .soon__rule { animation: none; }

  .soon__breath { opacity: 1; }
  .soon__text   { opacity: 1; transform: none; }
  .soon__rule   { width: clamp(3rem, 8vw, 4.5rem); }
}
