/* =========================================================
   Katy Štíchová – úvodní stránka „Coming soon“
   Fonty jsou hostované lokálně (žádné externí požadavky).
   ========================================================= */

/* ---------- Fonty ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-300-normal.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;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-300-normal.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: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-500-normal.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: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-normal.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: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-500-italic.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: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-italic.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: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lora-latin-ext-400-normal.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: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lora-latin-400-normal.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;
}

/* ---------- Proměnné ---------- */
:root {
  --green-950: #142214;
  --green-900: #1c2e1c;
  --green-800: #26402a;
  --green-700: #355236;
  --moss: #5d6b33;
  --cream: #f4ecdc;
  --cream-soft: rgba(244, 236, 220, 0.86);
  --gold: #c9a466;
  --gold-soft: rgba(201, 164, 102, 0.55);

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  --frame-inset: clamp(12px, 3.5vw, 48px);
  --radius: clamp(14px, 2vw, 26px);
}

/* ---------- Základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  background-color: var(--green-900);
  /* Rozostřené „bokeh“ pozadí lesa poskládané z gradientů */
  background-image:
    radial-gradient(ellipse 40% 35% at 12% 18%, rgba(196, 160, 82, 0.28), transparent 70%),
    radial-gradient(ellipse 30% 25% at 22% 8%, rgba(232, 214, 160, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 85%, rgba(150, 140, 80, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 50% at 70% 30%, rgba(60, 92, 56, 0.55), transparent 75%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(48, 78, 44, 0.7), transparent 75%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 55%, var(--green-950) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

/* ---------- Rozvržení ---------- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--frame-inset);
}

.card {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Portrét ---------- */
.portrait {
  position: relative;
  margin: 0;
  min-height: 0;
}

.portrait picture,
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portrait img {
  object-fit: cover;
  object-position: 50% 30%;
  /* Měkké prolnutí fotky do pozadí */
  -webkit-mask-image:
    linear-gradient(to right, #000 55%, transparent 100%),
    linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 55%, transparent 100%),
    linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-composite: intersect;
  animation: fade-in 1.6s ease-out both;
}

/* ---------- Text ---------- */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 4rem);
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.rule {
  display: block;
  width: 72px;
  height: 1px;
  margin: clamp(1.25rem, 2.5vw, 2rem) auto;
  background: var(--gold);
}

.headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.6rem, 9vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.lead {
  margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.2;
  color: var(--gold);
}

.note {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  letter-spacing: 0.02em;
  color: var(--cream-soft);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  color: var(--gold);
}

.ornament__line {
  width: clamp(60px, 9vw, 130px);
  height: 1px;
}
.ornament__line:first-child { background: linear-gradient(to right, transparent, var(--gold)); }
.ornament__line:last-child  { background: linear-gradient(to left, transparent, var(--gold)); }

.ornament__star {
  flex: none;
  animation: twinkle 4s ease-in-out infinite;
}

.footer {
  padding-top: 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(244, 236, 220, 0.55);
}

/* Jednosloupcová varianta (např. stránka 404) */
.card--simple { grid-template-columns: 1fr; }

.link {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
}
.link:hover,
.link:focus-visible { color: var(--gold); }

/* ---------- Animace ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.is-ready .reveal { opacity: 1; transform: none; }
.is-ready .reveal:nth-child(2) { transition-delay: 0.1s; }
.is-ready .reveal:nth-child(3) { transition-delay: 0.2s; }
.is-ready .reveal:nth-child(4) { transition-delay: 0.35s; }
.is-ready .reveal:nth-child(5) { transition-delay: 0.45s; }
.is-ready .reveal:nth-child(6) { transition-delay: 0.55s; }

/* Bez JavaScriptu je obsah vidět hned */
.no-js .reveal { opacity: 1; transform: none; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.65; transform: scale(0.85) rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobil / tablet na výšku ---------- */
@media (max-width: 820px) {
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .portrait {
    height: min(62vh, 520px);
    height: min(62svh, 520px);
  }

  .portrait img {
    object-position: 50% 25%;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  }

  .content {
    margin-top: -4.5rem;
    position: relative;
    padding-top: 0;
  }
}
