/* Czcionki z Canvy — jeśli wrzucisz pliki do folderu fonts/, zostaną użyte.
   Bez nich strona używa najbardziej podobnej z Google Fonts (Pinyon Script). */
@font-face {
  font-family: 'Symphony';
  src: local('Symphony'), url('../fonts/Symphony.woff2') format('woff2'), url('../fonts/Symphony.otf'), url('../fonts/Symphony.ttf');
  font-display: swap;
}
:root {
  --orange: #e0673f;
  --gold: #9c8358;
  --text: #8a7650;
  --line: #e6d3c4;
  --btn-bg: #fbf6f0;
  --beige: #f4ece2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 20% 15%, #faf5ee 0, transparent 55%),
    radial-gradient(circle at 85% 90%, #efe2d3 0, transparent 50%),
    var(--beige);
  font-family: 'Montserrat', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Karta jest kontenerem — wszystko w środku skaluje się względem jej szerokości (cqw) */
.card {
  container-type: inline-size;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: #fff;
}
/* Na komputerze: karta o proporcjach zaproszenia, dopasowana do wysokości ekranu */
@media (min-width: 560px) {
  body { padding: 32px 16px; }
  .card {
    width: min(100%, 620px, calc((100svh - 64px) * 0.62));
    min-width: 400px;
    min-height: 0;
    aspect-ratio: 0.62;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(140, 110, 80, .18);
  }
}

.page {
  position: relative;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 15cqw 9cqw 11cqw;
  border-radius: inherit;
}
/* cienka ramka jak na papierowym zaproszeniu */
.page::before {
  content: "";
  position: absolute;
  inset: 3.5cqw;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
}

.flower {
  position: absolute;
  top: -1cqw;
  right: -7cqw;
  width: 47cqw;
  height: auto;
  pointer-events: none;
  user-select: none;
  animation: sway 7s ease-in-out infinite alternate;
  transform-origin: 80% 10%;
}

.header {
  position: relative;
  width: 52%;
  text-align: center;
}
h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--orange);
  font-size: 4.4cqw;
  line-height: 1.35;
  letter-spacing: .5cqw;
}
.names {
  font-family: 'Symphony', 'Pinyon Script', cursive;
  color: var(--gold);
  font-size: 11.5cqw;
  line-height: 1.2;
  margin-top: 5cqw;
  white-space: nowrap;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqw;
  margin-top: 3cqw;
  color: var(--orange);
  font-size: 2.6cqw;
}
.divider::before, .divider::after {
  content: "";
  width: 10cqw;
  height: 1px;
  background: var(--line);
}

.links {
  position: relative;
  margin: auto 0;          /* środek wolnej przestrzeni pod nagłówkiem */
  padding-top: 13cqw;      /* żeby nie wchodzić pod kwiatek */
  padding-bottom: 4cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6cqw;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqw;
  width: 84%;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  background: var(--btn-bg);
  border: 1px solid var(--line);
  padding: 3cqw 4cqw;
  font-size: 2.9cqw;
  font-weight: 500;
  letter-spacing: .5cqw;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn .arrow { transition: transform .25s; }
.btn:hover, .btn:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(224, 103, 63, .25);
  outline: none;
}
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(1cqw); }
html[lang="de"] .btn { letter-spacing: .3cqw; }

.lang-corner {
  position: absolute;
  top: 6.5cqw;
  left: 7cqw;
  z-index: 2;
}

.date {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  color: var(--orange);
  font-size: 2.9cqw;
  font-weight: 600;
  letter-spacing: .15cqw;
}

/* delikatne pojawianie się elementów */
.header, .links > *, .date {
  opacity: 0;
  animation: fadeUp .8s ease-out forwards;
}
.header          { animation-delay: .1s; }
.links > :nth-child(1) { animation-delay: .35s; }
.links > :nth-child(2) { animation-delay: .45s; }
.links > :nth-child(3) { animation-delay: .55s; }
.links > :nth-child(4) { animation-delay: .65s; }
.links > :nth-child(5) { animation-delay: .75s; }
.date            { animation-delay: .8s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sway {
  from { transform: rotate(-1deg); }
  to   { transform: rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; opacity: 1 !important; }
}
