/* Chista temporary page. Palette from the Chista brand (night #071526, gold #f1d49f,
   moonlight #f8f2e4); artwork: the approved Default Night splash. No scripts. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #071526;
  --night-glass: rgba(7, 21, 38, 0.74);
  --gold: #f1d49f;
  --gold-soft: rgba(241, 212, 159, 0.3);
  --moon: #f8f2e4;
  --moon-dim: rgba(248, 242, 228, 0.78);
  color-scheme: dark;
}

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

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--moon);
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}
/* The palace stays clear at the top; the reflecting water carries the text. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(7, 21, 38, 0.92) 0%, rgba(7, 21, 38, 0.55) 55%, rgba(7, 21, 38, 0) 80%),
    linear-gradient(to bottom, rgba(7, 21, 38, 0.35) 0%, rgba(7, 21, 38, 0) 22%, rgba(7, 21, 38, 0) 45%, rgba(7, 21, 38, 0.85) 100%);
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 20px;
  padding:
    max(28px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.logo {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(62, 160, 255, 0.35)) drop-shadow(0 0 2px rgba(7, 21, 38, 0.6));
}

.panel {
  align-self: end;
  width: min(100%, 40rem);
  padding: clamp(22px, 4.5vw, 38px);
  background: linear-gradient(180deg, rgba(7, 21, 38, 0.6), var(--night-glass));
  border: 1px solid var(--gold-soft);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(241, 212, 159, 0.12);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 3px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(241, 212, 159, 0.42);
  border-radius: 999px;
  background: rgba(241, 212, 159, 0.08);
}
.lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(241, 212, 159, 0.65);
  animation: lamp 3.2s ease-in-out infinite;
}
@keyframes lamp { 50% { opacity: 0.45; box-shadow: 0 0 4px 1px rgba(241, 212, 159, 0.4); } }

h1 {
  margin: 0.55em 0 0.35em;
  font-size: clamp(28px, 6.2vw, 44px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--gold);
  text-shadow: 0 2px 18px rgba(241, 212, 159, 0.18);
}
.lead {
  margin: 0 0 0.7em;
  font-size: clamp(16.5px, 2.4vw, 18.5px);
  line-height: 2;
}
.note {
  margin: 0;
  font-size: 15px;
  color: var(--moon-dim);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
  gap: 6px 18px;
  margin: 22px 0;
  padding: 14px 0;
  border-block: 1px solid var(--gold-soft);
}
.facts dt {
  font-size: 12.5px;
  color: rgba(241, 212, 159, 0.82);
}
.facts dd {
  margin: 0;
  font-weight: 600;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 212, 159, 0.45);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.more::after { content: "←"; }
[dir="ltr"] .more::after { content: "→"; }
.more:hover { color: var(--moon); border-color: var(--moon); }

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.en {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(241, 212, 159, 0.18);
  font-size: 15px;
  line-height: 1.7;
}
.en h2 {
  margin: 0.6em 0 0.3em;
  font-size: clamp(20px, 3.4vw, 24px);
  font-weight: 700;
  color: var(--moon);
}
.en p:not(.status) {
  margin: 0 0 1em;
  color: var(--moon-dim);
}

.studio a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--moon-dim);
  font-size: 13px;
  text-decoration: none;
}
.studio a:hover { color: var(--moon); }
.studio img { width: 24px; height: 24px; opacity: 0.85; }

/* Wide screens: the palace takes the centre, the panel stands at the reading side. */
@media (min-width: 960px) and (orientation: landscape) {
  .stage { justify-items: stretch; }
  .mark { justify-self: center; }
  .logo { width: 340px; }
  .panel { justify-self: start; margin-inline-start: clamp(0px, 4vw, 64px); width: min(36rem, 46vw); }
  .studio { justify-self: start; margin-inline-start: clamp(0px, 4vw, 64px); }
}

/* Short landscape phones: let the page scroll naturally. */
@media (max-height: 520px) and (orientation: landscape) {
  .logo { width: 200px; }
}

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