/*
  Mobile first: style bazowe projektowane od 312px szerokości,
  większe ekrany dostają nadpisania w @media (min-width: …) na końcu pliku.
*/
:root {
  --paper: #ffffff;
  --paper-soft: #faf8fb;
  --ink: #1f1d22;
  --ink-soft: #55525a;
  --lilac: #8a78b8;
  --lilac-deep: #6c5a9c;
  --lilac-pale: #efeaf7;
  --line: #cfcbd4;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --gutter: 16px;
  --bar-h: 64px;
  --section-y: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 300px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }

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

/* ---------- TOP MENU ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(207, 203, 212, .6);
}

.monogram {
  display: none;
  font-size: 20px; letter-spacing: .24em; text-decoration: none; white-space: nowrap;
}
.monogram span { font-family: var(--script); letter-spacing: 0; font-size: 26px; padding: 0 .1em; }

.links { display: none; gap: 32px; }
.links a {
  text-decoration: none; font-size: 14px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .2s;
}
.links a:hover { color: var(--lilac-deep); }

/* Na telefonie dwa równe przyciski na całą szerokość paska. */
.actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  width: 100%; max-width: 420px;
}

.btn {
  min-height: 44px; /* wygodny cel dotyku */
  padding: 6px 10px;
  font-family: var(--serif); font-size: 12px; font-weight: 600; line-height: 1.15;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-ghost { background: #fff; color: var(--lilac-deep); border: 1px solid var(--lilac); }
.btn-ghost:hover { background: var(--lilac-pale); }
.btn-solid { background: var(--lilac); color: #fff; border: 1px solid var(--lilac); }
.btn-solid:hover { background: var(--lilac-deep); border-color: var(--lilac-deep); }
.btn:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 2px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--paper);
  min-height: min(100svh, 980px);
  padding: calc(var(--bar-h) + 40px) var(--gutter) 96px;
  display: flex; justify-content: center; align-items: center;
  text-align: center;
}

/* Kwiaty jako rozmyte tło powitania */
.flowers {
  position: absolute; z-index: -2; pointer-events: none;
  mix-blend-mode: multiply; /* biel tła akwareli znika na białej stronie */
  opacity: .62;
  filter: blur(1px);
}
.flowers-left {
  left: -6vw; bottom: -2vw; width: 92vw;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 20% 85%, #000 55%, transparent 88%);
          mask-image: radial-gradient(ellipse 85% 85% at 20% 85%, #000 55%, transparent 88%);
}
.flowers-right {
  /* piwonia z lewego dołu zaproszenia — przy dolnej krawędzi, żeby była widoczna w całości */
  right: -6vw; bottom: 0; width: 58vw;
  opacity: .78;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%),
                      linear-gradient(to bottom, transparent 0, #000 35%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 22%),
                      linear-gradient(to bottom, transparent 0, #000 35%);
          mask-composite: intersect;
}

/* Jasna mgiełka pod tekstem — dba o czytelność na tle kwiatów */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 75% 55% at 50% 50%,
              rgba(255,255,255,.88) 0%, rgba(255,255,255,.6) 55%, rgba(255,255,255,0) 100%);
}

.hero-inner {
  position: relative; width: 100%; max-width: 640px;
  text-shadow: 0 0 1px #fff, 0 0 10px #fff, 0 0 22px rgba(255,255,255,.9);
}

.kicker, .invite {
  font-style: italic; letter-spacing: .1em; color: var(--ink-soft); margin: 0;
}
.kicker { font-size: 16px; }

.couple { margin: 22px 0 26px; font-weight: 300; line-height: 1; }
.couple .first {
  display: block; font-size: clamp(28px, 9.5vw, 68px);
  letter-spacing: .18em; margin-right: -.18em; /* wyrównanie po trackingu */
  text-transform: uppercase;
}
.couple .last {
  display: block; font-family: var(--script); font-weight: 400;
  font-size: clamp(38px, 12vw, 76px); margin: 2px 0 4px;
}
.amp-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 14px 0 20px;
}
.amp-row .rule { height: 1px; width: clamp(48px, 18vw, 160px); background: var(--ink); opacity: .7; }
.amp-row .amp { font-family: var(--script); font-size: 40px; line-height: 1; }

.invite { font-size: 17px; line-height: 1.7; }

.date {
  margin: 22px 0 0; font-size: 17px; line-height: 1.5;
  letter-spacing: .16em; text-transform: uppercase;
}
.date span { display: block; }
.date .sep { display: none; }

.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 64px));
  justify-content: center; gap: 6px;
  margin-top: 28px;
}
.countdown div { display: flex; flex-direction: column; align-items: center; }
.countdown span {
  font-size: 28px; font-weight: 300; color: var(--lilac-deep);
  font-variant-numeric: lining-nums tabular-nums; line-height: 1.1;
}
.countdown small {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- CYTAT ---------- */
.quote {
  background: var(--paper-soft);
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  padding: 36px var(--gutter); text-align: center;
}
.quote blockquote { margin: 0 auto; max-width: 480px; }
.quote p { font-style: italic; font-size: 20px; letter-spacing: .04em; margin: 0 0 12px; }
.quote p br { display: none; }
.quote cite { font-style: normal; font-size: 13px; letter-spacing: .2em; color: var(--ink-soft); }

/* ---------- SZCZEGÓŁY ---------- */
.details {
  display: grid; grid-template-columns: 1fr;
  max-width: 1040px; margin: 0 auto; padding: var(--section-y) var(--gutter);
}
.panel { text-align: center; }
.divider { border-top: 1px dashed var(--line); margin: 44px auto; width: 60%; }

.script { font-family: var(--script); font-size: 46px; line-height: 1.1; margin: 0 0 12px; color: var(--lilac-deep); }
.script.big { font-size: clamp(52px, 16vw, 80px); color: var(--ink); }

.panel h2, .plan h2 {
  font-weight: 400; font-size: 14px; letter-spacing: .24em; text-transform: uppercase;
  margin: 0 0 14px;
}
.when { font-size: 17px; letter-spacing: .1em; margin: 0 0 10px; color: var(--ink-soft); }
.where { font-size: 17px; letter-spacing: .04em; margin: 0 0 22px; }
.script-inline { font-family: var(--script); font-size: 26px; line-height: 1.45; }

.map-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%;
  padding: 8px 16px 8px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--lilac-deep);
  background: var(--lilac-pale); border: 1px solid var(--lilac); border-radius: 999px;
  transition: background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.map-link svg { flex: none; }
.map-link .ext { opacity: .7; transition: transform .2s; }
.map-link:hover { background: var(--lilac); color: #fff; }
.map-link:hover .ext { transform: translate(2px, -2px); }
.map-link:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 3px; }

/* ---------- PLAN ---------- */
.plan {
  text-align: center; padding: var(--section-y) var(--gutter);
  border-top: 1px dashed var(--line);
}
.plan h2 { margin-bottom: 10px; }
.plan-note { font-style: italic; letter-spacing: .04em; color: var(--ink-soft); margin: 0 0 36px; }

.timeline {
  --t-col: 50px;  /* kolumna z godziną */
  --t-gap: 28px;  /* odstęp, w którego środku biegnie linia */
  list-style: none; margin: 0 auto; padding: 0; max-width: 520px; text-align: left;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px;
  left: calc(var(--t-col) + var(--t-gap) / 2);
  border-left: 1px dashed var(--line);
}
.timeline li {
  position: relative; display: grid;
  grid-template-columns: var(--t-col) 1fr; gap: var(--t-gap);
  padding: 0 0 30px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; top: 9px;
  left: calc(var(--t-col) + var(--t-gap) / 2 - 4px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--lilac);
}
.timeline time {
  text-align: right; font-size: 18px; letter-spacing: .04em; color: var(--lilac-deep);
  line-height: 1.4; white-space: nowrap;
}
.timeline h3 {
  margin: 0; font-weight: 500; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  line-height: 1.5; padding-top: 2px;
}
.timeline p { margin: 2px 0 0; font-style: italic; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.timeline .tbd { opacity: .55; }

/* ---------- KONTAKT ---------- */
.contact {
  text-align: center; padding: var(--section-y) var(--gutter);
  background: linear-gradient(to bottom, var(--paper), var(--lilac-pale));
}
.lead { font-style: italic; font-size: 18px; letter-spacing: .08em; margin: 6px 0 36px; }
.lead strong { font-style: normal; font-weight: 500; white-space: nowrap; }

.people { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.person .name {
  margin: 0; font-size: 22px; letter-spacing: .24em; margin-right: -.24em;
  text-transform: uppercase; font-weight: 300;
}
.person a {
  display: inline-block; padding: 6px 4px; /* większy cel dotyku */
  font-size: 19px; letter-spacing: .16em; text-decoration: none; color: var(--ink-soft);
  white-space: nowrap;
}
.person a:hover { color: var(--lilac-deep); }

.gifts { margin-top: 48px; color: var(--ink-soft); }
.gift-icons { display: flex; justify-content: center; align-items: center; gap: 20px; color: var(--ink); }

/* ---------- STOPKA ---------- */
.footer { text-align: center; padding: 40px var(--gutter) 48px; border-top: 1px dashed var(--line); }
.footer .script { font-size: clamp(30px, 10vw, 38px); color: var(--ink); margin-bottom: 6px; }
.footer p:last-child { margin: 0; letter-spacing: .3em; font-size: 13px; color: var(--ink-soft); }

/* =========================================================
   WIĘKSZE EKRANY
   ========================================================= */

/* duże telefony / małe tablety */
@media (min-width: 480px) {
  .topbar { justify-content: space-between; padding: 0 var(--gutter); }
  .monogram { display: block; }
  .actions { display: flex; width: auto; }
  .btn { padding: 8px 16px; white-space: nowrap; letter-spacing: .14em; }

  .kicker, .invite { letter-spacing: .16em; }
  .couple .first { letter-spacing: .26em; margin-right: -.26em; }
  .countdown { gap: 14px; }
  .countdown small { letter-spacing: .2em; }

  .people { flex-direction: row; justify-content: center; gap: 56px; }
}

/* tablety */
@media (min-width: 720px) {
  :root { --gutter: 32px; --bar-h: 68px; --section-y: 96px; }
  body { font-size: 19px; }

  .btn { font-size: 13px; padding: 10px 18px; letter-spacing: .2em; }

  .hero { padding: calc(var(--bar-h) + 56px) var(--gutter) 120px; }
  .flowers { filter: blur(1.5px); }
  .flowers-left  { left: -3vw; bottom: -3vw; width: clamp(360px, 46vw, 760px); }
  .flowers-right { right: -3vw; width: clamp(260px, 30vw, 520px); }
  .hero::before {
    background: radial-gradient(ellipse 48% 60% at 50% 50%,
                rgba(255,255,255,.9) 0%, rgba(255,255,255,.6) 60%, rgba(255,255,255,0) 100%);
  }

  .couple { margin: 28px 0 32px; }
  .couple .first { letter-spacing: .32em; margin-right: -.32em; }
  .amp-row { gap: 24px; margin: 18px 0 26px; }
  .amp-row .amp { font-size: 48px; }
  .invite { font-size: 18px; }
  .kicker { font-size: 17px; }

  .date { margin-top: 28px; font-size: clamp(18px, 2.6vw, 24px); letter-spacing: .26em; }
  .date span { display: inline; }
  .date .sep { display: inline; }

  .countdown { grid-template-columns: repeat(4, 72px); gap: clamp(14px, 3vw, 36px); margin-top: 36px; }
  .countdown span { font-size: clamp(32px, 5vw, 40px); }
  .countdown small { font-size: 12px; letter-spacing: .24em; }

  .quote { padding: 44px var(--gutter); }
  .quote p { font-size: clamp(21px, 2.2vw, 24px); letter-spacing: .05em; }
  .quote p br { display: inline; }

  .details { grid-template-columns: 1fr auto 1fr; }
  .panel { padding: 8px clamp(16px, 4vw, 48px); }
  .divider { border-top: 0; border-left: 1px dashed var(--line); margin: 0; width: auto; }

  .script { font-size: 52px; }
  .panel h2, .plan h2 { font-size: 16px; letter-spacing: .3em; }
  .script-inline { font-size: 30px; }

  .timeline { --t-col: 72px; --t-gap: 40px; }
  .timeline time { font-size: 20px; }
  .timeline h3 { font-size: 15px; letter-spacing: .24em; }

  .lead { font-size: 20px; letter-spacing: .14em; margin-bottom: 48px; }
  .people { gap: clamp(40px, 10vw, 120px); }
  .person .name { font-size: 26px; letter-spacing: .3em; margin-right: -.3em; }
  .person a { font-size: 20px; letter-spacing: .24em; }
  .gifts { margin-top: 64px; }
}

/* desktop */
@media (min-width: 960px) {
  .links { display: flex; }
}
