/* ————— Basia i Miszke — minifestiwal weselny ————— */

:root {
  --cream: #FCF4E3;
  --cream-deep: #F3E6C6;
  --orange: #F6A138;
  --red: #EC6339;
  --red-deep: #D14E28;
  --blue: #7B9EB3;
  --olive: #826C33;
  --ink: #3F355B;
  --yellow: #EFC645;

  --font-display: "Alfa Slab One", "Georgia", serif;
  --font-groovy: "Shrikhand", "Georgia", serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Zilla Slab", "Georgia", serif;

  --checker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Crect width='8' height='8' fill='%233F355B'/%3E%3Cpath fill='%23FCF4E3' d='M1.01,0.01h.98v.98h-.98zM3.01,0.01h.98v.98h-.98zM5.01,0.01h.98v.98h-.98zM7.01,0.01h.98v.98h-.98zM0.01,1.01h.98v.98h-.98zM2.01,1.01h.98v.98h-.98zM4.01,1.01h.98v.98h-.98zM6.01,1.01h.98v.98h-.98zM1.01,2.01h.98v.98h-.98zM3.01,2.01h.98v.98h-.98zM5.01,2.01h.98v.98h-.98zM7.01,2.01h.98v.98h-.98zM0.01,3.01h.98v.98h-.98zM2.01,3.01h.98v.98h-.98zM4.01,3.01h.98v.98h-.98zM6.01,3.01h.98v.98h-.98zM1.01,4.01h.98v.98h-.98zM3.01,4.01h.98v.98h-.98zM5.01,4.01h.98v.98h-.98zM7.01,4.01h.98v.98h-.98zM0.01,5.01h.98v.98h-.98zM2.01,5.01h.98v.98h-.98zM4.01,5.01h.98v.98h-.98zM6.01,5.01h.98v.98h-.98zM1.01,6.01h.98v.98h-.98zM3.01,6.01h.98v.98h-.98zM5.01,6.01h.98v.98h-.98zM7.01,6.01h.98v.98h-.98zM0.01,7.01h.98v.98h-.98zM2.01,7.01h.98v.98h-.98zM4.01,7.01h.98v.98h-.98zM6.01,7.01h.98v.98h-.98z'/%3E%3Cpath fill='%23F6A138' d='M0.01,0.01h.98v.98h-.98zM4.01,0.01h.98v.98h-.98zM3.01,1.01h.98v.98h-.98zM7.01,1.01h.98v.98h-.98zM2.01,2.01h.98v.98h-.98zM6.01,2.01h.98v.98h-.98zM1.01,3.01h.98v.98h-.98zM5.01,3.01h.98v.98h-.98zM0.01,4.01h.98v.98h-.98zM4.01,4.01h.98v.98h-.98zM6.01,4.01h.98v.98h-.98zM3.01,5.01h.98v.98h-.98zM2.01,6.01h.98v.98h-.98zM6.01,6.01h.98v.98h-.98zM1.01,7.01h.98v.98h-.98zM5.01,7.01h.98v.98h-.98zM7.01,7.01h.98v.98h-.98z'/%3E%3Cpath fill='%23EC6339' d='M2.01,0.01h.98v.98h-.98zM6.01,0.01h.98v.98h-.98zM1.01,1.01h.98v.98h-.98zM5.01,1.01h.98v.98h-.98zM0.01,2.01h.98v.98h-.98zM4.01,2.01h.98v.98h-.98zM3.01,3.01h.98v.98h-.98zM7.01,3.01h.98v.98h-.98zM2.01,4.01h.98v.98h-.98zM1.01,5.01h.98v.98h-.98zM5.01,5.01h.98v.98h-.98zM7.01,5.01h.98v.98h-.98zM0.01,6.01h.98v.98h-.98zM4.01,6.01h.98v.98h-.98zM3.01,7.01h.98v.98h-.98z'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image: var(--checker);
  background-size: 384px 384px;
}

@media (max-width: 640px) {
  body { background-size: 256px 256px; }
}

::selection { background: var(--orange); color: var(--ink); }

:focus-visible {
  outline: 3px dashed var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ————— hero ————— */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 5vw, 56px) 16px 40px;
}

.poster {
  width: min(660px, 94vw);
  height: auto;
  display: block;
}

.t-arc {
  font-family: var(--font-display);
  font-size: 62px;
  fill: var(--cream);
  letter-spacing: 6px;
  filter: drop-shadow(0 5px 0 var(--olive));
}

.t-arc-b { font-size: 54px; letter-spacing: 3px; }

.t-date {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 4px;
  fill: var(--cream);
}

.t-mark {
  font-family: var(--font-groovy);
  font-size: 44px;
  fill: var(--orange);
  filter: drop-shadow(3px 3px 0 var(--red));
}

.tagline {
  font-family: var(--font-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.72rem, 2.4vw, 0.95rem);
  color: var(--olive);
  text-align: center;
  max-width: 34em;
  margin: 26px auto 0;
  background: var(--cream);
  border: 3px solid var(--olive);
  border-radius: 999px;
  padding: 0.9em 1.6em;
}

.hero-cta { margin-top: 26px; }

/* ————— pasek tagów ————— */

.strip {
  background: var(--olive);
  color: var(--cream);
  overflow: hidden;
  border-block: 3px solid var(--olive);
  padding: 0.6em 0;
}

.strip-track {
  display: flex;
  width: max-content;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: slide 120s linear infinite; }
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ————— panele sekcji ————— */

main {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vw, 64px);
  padding: clamp(36px, 6vw, 72px) 16px;
  align-items: center;
}

.panel {
  width: 100%;
  max-width: 860px;
  background: var(--cream);
  border: 3px solid var(--olive);
  border-radius: clamp(28px, 5vw, 52px);
  padding: clamp(28px, 6vw, 56px) clamp(20px, 6vw, 64px);
}

@media (prefers-reduced-motion: no-preference) {
  html.js .panel {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  html.js .panel.on {
    opacity: 1;
    transform: none;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.section-icon {
  width: 74px;
  height: auto;
  display: block;
}

.badge-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: var(--red);
  border-radius: 20px;
  padding: 0.35em 0.8em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.shout {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 3px 3px 0 var(--red);
  letter-spacing: 0.03em;
}

.section-sub {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: var(--olive);
}

.note {
  margin-top: 1.6em;
  text-align: center;
  font-style: italic;
  color: var(--olive);
}

.center { text-align: center; }

/* ————— countdown ————— */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 520px) {
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tile {
  background: var(--red);
  border-radius: 22px;
  padding: clamp(14px, 3vw, 22px) 8px clamp(12px, 2.5vw, 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tile .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.tile .unit {
  font-family: var(--font-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--cream);
  opacity: 0.9;
}

.countdown-done {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--red);
  margin-top: 8px;
}

/* ————— plan dnia ————— */

.timeline {
  list-style: none;
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding-left: 64px;
  display: flex;
  flex-direction: column;
  gap: 1.6em;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 56'%3E%3Cpath d='M6,0 q5,14 0,28 q-5,14 0,28' fill='none' stroke='%236A6733' stroke-width='4'/%3E%3C/svg%3E");
  background-size: 12px 56px;
  background-repeat: repeat-y;
}

.timeline li { position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--red);
}

.timeline .time {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  display: block;
  line-height: 1.2;
}

.timeline h3 {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  color: var(--olive);
  margin: 0.15em 0 0.1em;
}

/* ————— dojazd / noclegi ————— */

.address {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  max-width: 30em;
  margin: 0 auto 1.4em;
}

.dots {
  list-style: none;
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.dots li {
  padding-left: 1.6em;
  position: relative;
}

.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--red);
}

/* ————— FAQ ————— */

details {
  border-bottom: 2px dashed var(--olive);
  padding: 0.9em 0.2em;
}

details:first-of-type { border-top: 2px dashed var(--olive); }

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--olive);
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.2em;
  color: var(--red);
  line-height: 1;
  transition: transform 0.25s ease;
  flex: none;
}

details[open] summary::before { transform: rotate(45deg); }

details p { padding: 0.7em 0 0.2em 2em; }

/* ————— przyciski ————— */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: var(--red);
  border: none;
  border-radius: 18px;
  padding: 0.75em 1.5em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--olive);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover { background: var(--red-deep); }

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--olive);
}

.btn-big { font-size: 1.2rem; }

/* ————— RSVP ————— */

.panel-rsvp form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-rsvp label:not(.choice) {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--olive);
  text-align: center;
}

#names {
  font-family: var(--font-body);
  font-size: 1.15rem;
  text-align: center;
  color: var(--ink);
  background: #FDF8EC;
  border: 3px solid var(--olive);
  border-radius: 16px;
  padding: 0.7em 1em;
  width: 100%;
}

#names::placeholder { color: var(--olive); opacity: 0.55; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choices {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.choice {
  cursor: pointer;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: var(--olive);
  background: var(--cream);
  border: 3px solid var(--olive);
  border-radius: 18px;
  padding: 0.6em 1.3em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:has(input:checked) {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

.choice:has(input:focus-visible) {
  outline: 3px dashed var(--red);
  outline-offset: 3px;
}

.form-error {
  text-align: center;
  color: var(--red-deep);
  font-weight: 600;
}

.rsvp-done {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rsvp-done[hidden],
form[hidden] { display: none; }

.badge-names {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  text-transform: uppercase;
  color: var(--cream);
  background: var(--red);
  border-radius: 18px;
  padding: 0.4em 0.9em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ————— stopka ————— */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 56px;
  text-align: center;
  font-family: var(--font-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--olive);
}

.footer p {
  background: var(--cream);
  border-radius: 999px;
  padding: 0.2em 1em;
}

.footer-icon { width: 52px; height: 52px; }

.footer-url { font-size: 0.85rem; opacity: 0.85; }

