:root {
  --cream: #efebda;
  --dark: #262626;
  --ember: #d9824a;
  --font: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
}

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

html, body { margin: 0; height: 100%; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__photo {
  position: absolute; inset: 0; z-index: -3;
  /* Až dorazí fotka, stačí ji uložit jako assets/foto/uvod.jpg */
  background:
    url("assets/foto/uvod.jpg") center / cover no-repeat,
    radial-gradient(120% 80% at 50% 110%, #4a2f22 0%, #2e2724 45%, var(--dark) 75%);
  transform: scale(1.06);
  animation: breathe 30s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(38,38,38,.55) 0%, rgba(38,38,38,.25) 70%, rgba(38,38,38,.6) 100%),
    linear-gradient(to bottom, rgba(38,38,38,.35), rgba(38,38,38,.15) 40%, rgba(38,38,38,.75));
}

@keyframes breathe {
  from { transform: scale(1.06); }
  to   { transform: scale(1.12) translateY(-1%); }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 520px);
  text-align: center;
  padding: 72px 0 96px;
}

.logo { margin: 0 auto 28px; }
.logo img {
  display: block;
  width: clamp(170px, 34vw, 260px);
  height: auto;
  margin: 0 auto;
  animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember);
  animation: rise 1.6s .25s cubic-bezier(.2,.7,.2,1) both;
}

.lead {
  margin: 0 auto 28px;
  max-width: 30ch;
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.3;
  animation: rise 1.6s .4s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- FORMULÁŘ ---------- */
.signup { animation: rise 1.6s .55s cubic-bezier(.2,.7,.2,1) both; }

.signup__row {
  display: flex;
  gap: 0;
  border: 1px solid rgba(239,235,218,.55);
  border-radius: 999px;
  padding: 5px;
  background: rgba(38,38,38,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color .2s;
}
.signup__row:focus-within { border-color: var(--cream); }

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 18px;
  padding: 10px 16px;
  outline: none;
}
.signup input::placeholder { color: rgba(239,235,218,.5); }

.signup button {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--dark);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.signup button:hover { background: #fff; }
.signup button:active { transform: scale(.97); }
.signup button:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.signup button[disabled] { opacity: .6; cursor: progress; }

.signup__note {
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(239,235,218,.6);
}
.signup__msg {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 500;
}
.signup__msg.is-error { color: #f0a07a; }

.signup.is-done .signup__row,
.signup.is-done .signup__note { display: none; }
.signup.is-done .signup__msg { font-size: 20px; }

@media (max-width: 420px) {
  .signup__row { flex-direction: column; border-radius: 22px; gap: 6px; }
  .signup input[type="email"] { text-align: center; }
  .signup button { padding: 12px 20px; border-radius: 16px; }
}

/* ---------- KRESBY ---------- */
.kresby {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.kresba {
  position: absolute;
  color: var(--cream);
  opacity: .8;
  animation: sway var(--sway, 9s) ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}
.kresba svg {
  display: block; width: 100%; height: 100%;
  overflow: visible;
  filter: url(#heat);
}
.kresba path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

@keyframes sway {
  0%   { transform: translateY(0) rotate(calc(var(--tilt, 2deg) * -1)); }
  100% { transform: translateY(-14px) rotate(var(--tilt, 2deg)); }
}

/* ---------- PATIČKA ---------- */
.foot {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  z-index: 2;
  text-align: center;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(239,235,218,.45);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .kresba svg { filter: none; }
}
