/* Za Oponou — zaoponou.imerze.cz
   Bez frameworku, bez buildu. Mobile-first.
   Písma self-hostovaná (Google Fonts subsety latin + latin-ext; Cormorant Garamond je
   variabilní font, jeden soubor pokrývá váhy 300–700). */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-wght-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-wght-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-italic-wght-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-italic-wght-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/spectral-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/spectral-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a0806;
  --ink-deep: #070504;
  --paper: #f6ecda;
  --body: #e0d4c0;
  --gold: #e3c795;
  --gold-dim: #dcc491;
  --muted: #9d9181;
  --serif-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --serif-body: 'Spectral', Georgia, 'Times New Roman', serif;
  --gutter: clamp(20px, 5vw, 64px);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font-family: var(--serif-body);
  font-weight: 300;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { color: #f7e6c0; }

::selection { background: rgba(212, 175, 55, .28); color: #fff6e2; }

/* ── Hero ─────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Spodní padding drží místo pro nápovědu ke scrollu (.hero__cue). */
  padding: clamp(56px, 9vh, 104px) var(--gutter) clamp(104px, 14vh, 150px);
}

.hero__frame {
  position: absolute;
  top: -7%; right: 0; bottom: -7%; left: 0;
  z-index: 0;
  animation: drift 46s ease-in-out infinite alternate;
}

/* Mobil: loutka na nitích (portrét). Desktop níž: strop zavěšených postav. */
.hero__img {
  position: absolute;
  inset: 0;
  background-image: url('assets/loutka-na-nitich.webp');
  background-size: cover;
  background-position: 50% 34%;
  background-repeat: no-repeat;
  filter: brightness(.74) contrast(1.02) saturate(.6) sepia(.26);
  transform: translate3d(0, 0, 0) scale(1.045);
  will-change: transform;
}

.hero__veil { position: absolute; inset: 0; }

.hero__veil--radial {
  z-index: 1;
  background: radial-gradient(120% 85% at 50% 12%,
    rgba(226, 163, 74, .14) 0%, rgba(18, 12, 8, .3) 42%, rgba(8, 6, 5, .82) 100%);
}

/* Poslední zastávka je plná barva pozadí — přechod do druhé sekce bez hrany. */
.hero__veil--linear {
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(10, 8, 6, .55) 0%,
    rgba(10, 8, 6, .12) 22%,
    rgba(10, 8, 6, .4) 52%,
    rgba(10, 8, 6, .78) 78%,
    rgba(10, 8, 6, .96) 92%,
    var(--ink) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .5;
  background: url('assets/grain.png') repeat;
  mix-blend-mode: soft-light;
}

.motto {
  position: relative;
  z-index: 4;
  margin: 0;
  width: 100%;
  max-width: clamp(300px, 82vw, 880px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.motto blockquote {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(1.26rem, 1.02rem + 1.5vw, 2.45rem);
  line-height: 1.3;
  color: var(--paper);
  text-wrap: pretty;
  text-shadow: 0 2px 26px rgba(6, 4, 3, .85);
}

.motto blockquote p { margin: 0; }

.motto figcaption { margin-top: clamp(26px, 4vh, 46px); }

.motto cite {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1rem, .92rem + .4vw, 1.3rem);
  letter-spacing: .09em;
  color: var(--gold);
}

/* Nápověda ke scrollu: prostrkaný label a linka, která stéká dolů.
   Po prvním scrollu ji skript schová (.is-hidden). */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.5vh, 34px);
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(.72rem, .68rem + .2vw, .84rem);
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
  transition: opacity .6s ease;
}

.hero__cue:hover, .hero__cue:focus-visible { color: #f7e6c0; opacity: 1; }

.hero__cue.is-hidden { opacity: 0; pointer-events: none; }

.hero__cue-line {
  width: 1px;
  height: clamp(34px, 6vh, 54px);
  background: linear-gradient(180deg, rgba(226, 199, 149, .9), rgba(226, 199, 149, 0));
  transform-origin: top;
  animation: cueLine 2.8s ease-in-out infinite;
}

.hero__cue-arrow { display: block; margin-top: -6px; opacity: .8; }

@keyframes cueLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Odstavec ─────────────────────────────────────── */

/* Zář dohasíná uvnitř sekce, aby na krajích nevznikla hrana. */
.intro {
  position: relative;
  background:
    radial-gradient(120% 44% at 50% 50%, rgba(226, 163, 74, .09), rgba(226, 163, 74, 0) 100%),
    var(--ink);
  padding: clamp(72px, 12vh, 150px) var(--gutter);
}

.intro p {
  position: relative;
  max-width: 66ch;
  margin: 0 auto;
  font-size: clamp(1.04rem, .98rem + .32vw, 1.22rem);
  line-height: 1.82;
  letter-spacing: .005em;
  text-wrap: pretty;
}

/* ── Datum premiéry ───────────────────────────────── */

.date {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(108px, 20vh, 250px) var(--gutter);
  text-align: center;
}

.date__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  filter: brightness(.62) contrast(1.02) saturate(.8);
}

.date__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 90% at 50% 50%, rgba(10, 7, 5, .34) 0%, rgba(10, 7, 5, .86) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(10, 8, 6, .38) 38%, var(--ink) 100%);
}

.date__inner {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.6vh, 30px);
}

.date__label {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(.78rem, .72rem + .3vw, .98rem);
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: #e6cd9c;
}

.date__year {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(4.2rem, 3rem + 9vw, 10rem);
  line-height: .86;
  letter-spacing: .03em;
  color: #f2dfb2;
  text-shadow: 0 4px 60px rgba(226, 163, 74, .28);
}

.date__rule {
  position: relative;
  display: block;
  width: clamp(120px, 22vw, 260px);
  height: 1px;
  margin: clamp(16px, 2.6vh, 30px) auto 0;
  background: linear-gradient(90deg, rgba(226, 199, 149, 0), rgba(226, 199, 149, .45), rgba(226, 199, 149, 0));
}

/* ── Patička ──────────────────────────────────────── */

.site-footer {
  background: var(--ink-deep);
  border-top: 1px solid rgba(212, 175, 55, .16);
  padding: clamp(26px, 4vh, 42px) var(--gutter);
}

.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.imerze {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-dim);
  font-size: .86rem;
  letter-spacing: .09em;
}

.imerze img { display: block; height: 19px; width: auto; opacity: .92; }

.copy {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--muted);
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -1.2%, 0) scale(1.03); }
}

@media (min-width: 701px) {
  .hero__img {
    background-image: url('assets/hero-strop.webp');
    background-position: 50% 38%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}
