/* ============================================================
   Tiigle — "Tulossa pian" -sivu
   Itsenäinen tyylitiedosto: ei riipu teeman muusta CSS:stä.
   ============================================================ */

:root {
  --gold:       #C9A84C;
  --gold-light: #E8D49A;
  --dark:       #1A1A18;
  --dark2:      #2C2C28;
  --muted:      #CFCEC5;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body.cs-body {
  min-height: 100svh;
  background: var(--dark);
  color: #FFFFFF;
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  overflow-x: hidden;
}

/* Hienovarainen kultahehku sommitelman takana */
body.cs-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 52%,
              rgba(201, 168, 76, 0.075), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Rakenne ---------- */
.cs {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

/* ---------- Logo ---------- */
.cs-logo {
  display: block;
  width: auto;
  height: 190px;                       /* varalla, jos svh ei ole tuettu */
  height: clamp(140px, 24svh, 205px);  /* kasvaa isolla näytöllä, kutistuu matalalla */
  margin-bottom: 1.5rem;
}

/* ---------- Typografia ---------- */
.cs-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 1.1rem;
}
.cs-title .cs-gold { color: var(--gold); }

.cs-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 2.4vw, 1.15rem);
  line-height: 1.65;
  max-width: 34rem;
  text-wrap: balance;
  margin: 0 auto 1.8rem;
}

/* ---------- Tee (signature) ---------- */
.cs-scene {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.cs-tee {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 739 / 126;   /* sama kuin tee_valkoinen_vaaka.png -> canvas osuu varteen */
  animation: csFloat 7s ease-in-out infinite;
}
.cs-tee img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
}
.cs-tee canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cs-shadow {
  width: min(74%, 390px);
  height: 12px;
  margin-top: 10px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 70%);
  border-radius: 50%;
  filter: blur(5px);
}

@keyframes csFloat {
  0%, 100% { transform: translateY(-3px); }
  50%      { transform: translateY(3px); }
}

/* ---------- Kultaerotin  ——●—— ---------- */
.cs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
  margin-bottom: 1.4rem;
}
.cs-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4));
}
.cs-line-r { background: linear-gradient(90deg, rgba(201, 168, 76, 0.4), transparent); }
.cs-gem {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 4px;
  white-space: nowrap;
}

/* ---------- Yhteystiedot ---------- */
.cs-contact {
  color: var(--muted);
  font-size: 0.95rem;
}
.cs-contact a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.cs-contact a:hover,
.cs-contact a:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-light);
}
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Saapumisanimaatio ---------- */
.cs-rise {
  opacity: 0;
  transform: translateY(14px);
  animation: csRise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes csRise {
  to { opacity: 1; transform: translateY(0); }
}
.cs-d1 { animation-delay: 0.05s; }
.cs-d2 { animation-delay: 0.18s; }
.cs-d3 { animation-delay: 0.30s; }
.cs-d4 { animation-delay: 0.42s; }
.cs-d5 { animation-delay: 0.56s; }
.cs-d6 { animation-delay: 0.70s; }

/* ---------- Pienet näytöt ---------- */
@media (max-width: 640px) {
  body.cs-body { padding: 1.75rem 1.25rem; }
  .cs-logo    { height: 135px; height: clamp(115px, 19svh, 155px); margin-bottom: 1.3rem; }
  .cs-lead    { margin-bottom: 1.6rem; }
  .cs-scene   { margin-bottom: 1.6rem; }
  .cs-divider { margin-bottom: 1.4rem; }
  .cs-contact { font-size: 0.9rem; }
}

/* ---------- Vähennetty liike ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .cs-rise { opacity: 1; transform: none; }
  .cs-tee  { transform: none; }
}
