/* Czcionka z Canvy — jeśli wrzucisz plik do folderu fonts/, zostanie użyta. */
@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;
  --muted: #a8977a;
  --line: #e6d3c4;
  --btn-bg: #fbf6f0;
  --beige: #f4ece2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, #faf5ee 0, transparent 55%),
    radial-gradient(circle at 85% 90%, #efe2d3 0, transparent 50%),
    var(--beige);
  background-attachment: fixed;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
}

.card {
  container-type: inline-size;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background: #fff;
}
@media (min-width: 560px) {
  body { padding: 32px 16px; }
  .card {
    width: min(100%, 560px);
    min-height: 0;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(140, 110, 80, .18);
  }
}

.page {
  position: relative;
  overflow: hidden;
  min-height: inherit;
  padding: 9cqw 9cqw 16cqw;
  border-radius: inherit;
}
.page::before {
  content: "";
  position: absolute;
  inset: 3.5cqw;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
}

.flower {
  position: absolute;
  top: -2cqw;
  right: -9cqw;
  width: 54cqw;
  pointer-events: none;
  user-select: none;
  animation: sway 7s ease-in-out infinite alternate;
  transform-origin: 80% 10%;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4cqw;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 1.5cqw;
  color: var(--muted);
  text-decoration: none;
  font-size: 2.8cqw;
  letter-spacing: .5cqw;
  text-transform: uppercase;
  transition: color .2s;
}
.back .arrow { transition: transform .25s; }
.back:hover { color: var(--orange); }
.back:hover .arrow { transform: translateX(-1cqw); }

.title {
  position: relative;
  z-index: 1;
  width: 56%;
  margin-top: 14cqw;
  text-align: center;
}
.title .script {
  display: block;
  font-family: 'Symphony', 'Pinyon Script', cursive;
  color: var(--gold);
  font-size: 19cqw;
  line-height: 1;
}
.title .big {
  display: block;
  margin-top: 1cqw;
  font-weight: 600;
  color: var(--orange);
  font-size: 9.5cqw;
  letter-spacing: .6cqw;
  line-height: 1;
}
html[lang="de"] .title .big { font-size: 7.6cqw; letter-spacing: .3cqw; }

/* ---------- harmonogram ---------- */
.schedule {
  position: relative;
  z-index: 1;
  list-style: none;
  margin-top: 30cqw;   /* pod kwiatkiem */
  display: grid;
  gap: 1cqw;
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: 33% 1fr;
  align-items: baseline;
  gap: 3cqw;
  padding: 2.2cqw 3cqw;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(-4cqw);
  transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,.7,.2,1), background .3s;
}
.schedule.visible .row { opacity: 1; transform: none; }
.row:hover { background: var(--btn-bg); }
.time {
  font-size: 3cqw;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: .15cqw;
  white-space: nowrap;
}
.event {
  font-size: 3cqw;
  font-weight: 500;
  letter-spacing: .7cqw;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text);
}

/* w dniu wesela podświetla się to, co dzieje się teraz */
.row.current { background: var(--btn-bg); box-shadow: inset 3px 0 0 var(--orange); }
.row.current .event::after {
  content: "teraz";
  display: inline-block;
  margin-left: 2cqw;
  padding: .4cqw 1.8cqw;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 2cqw;
  letter-spacing: .3cqw;
  vertical-align: middle;
  animation: pulse 1.8s ease-in-out infinite;
}
html[lang="de"] .row.current .event::after { content: "jetzt"; }

.date {
  position: relative;
  margin-top: 12cqw;
  text-align: center;
  color: var(--orange);
  font-size: 2.9cqw;
  font-weight: 600;
  letter-spacing: .15cqw;
}

/* wejście nagłówka */
.topbar, .title, .date {
  opacity: 0;
  animation: fadeUp .8s ease-out forwards;
}
.topbar { animation-delay: .05s; }
.title  { animation-delay: .15s; }
.date   { animation-delay: .9s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sway {
  from { transform: rotate(-1deg); }
  to   { transform: rotate(1.5deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .topbar, .title, .date, .row { opacity: 1 !important; transform: none !important; }
}
