/* ============================================================
   Misia + Kuba — wedding site
   Two-color print system: cobalt #0048ab on cream #fcf1eb
   ============================================================ */

:root {
  --ink:        #0048ab;
  --ink-deep:   #003380;
  --ink-soft:   rgba(0, 72, 171, 0.55);
  --ink-faint:  rgba(0, 72, 171, 0.18);
  --ink-hair:   rgba(0, 72, 171, 0.32);
  --paper:      #fcf1eb;
  --paper-warm: #f5e6dc;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial Black, sans-serif;
  --font-script:  "Caveat", "Bradley Hand", cursive;
  --font-body:    "Instrument Serif", Georgia, serif;
  --font-ui:      "Bricolage Grotesque", "Helvetica Neue", sans-serif;

  --gutter: 20px;
  --maxw: 1180px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--paper); }

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05, 0 0 0 0 0.05, 0 0 0 0 0.18, 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.9; text-transform: uppercase; }
.script  { font-family: var(--font-script); font-weight: 500; }
.label   { font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.smcaps  { font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Checker patterns ---------- */
/* Horizontal strip — alternating squares of ink and paper */
.strip-h {
  --sq: 18px;
  height: var(--sq);
  background-image: repeating-linear-gradient(
    to right,
    var(--ink) 0 var(--sq),
    var(--paper) var(--sq) calc(var(--sq) * 2)
  );
}
.strip-h.alt {
  background-image: repeating-linear-gradient(
    to right,
    var(--paper) 0 var(--sq),
    var(--ink) var(--sq) calc(var(--sq) * 2)
  );
}
.strip-h.dbl {
  height: calc(var(--sq) * 2);
  background-image:
    repeating-linear-gradient(to right, var(--ink) 0 var(--sq), var(--paper) var(--sq) calc(var(--sq) * 2)),
    repeating-linear-gradient(to right, var(--paper) 0 var(--sq), var(--ink) var(--sq) calc(var(--sq) * 2));
  background-size: 100% 50%, 100% 50%;
  background-repeat: no-repeat;
  background-position: top, bottom;
}
@media (max-width: 640px) { .strip-h { --sq: 12px; } }

/* Vertical strip — alternating squares running top to bottom */
.strip-v {
  --sq: 18px;
  width: var(--sq);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--ink) 0 var(--sq),
    var(--paper) var(--sq) calc(var(--sq) * 2)
  );
}
.strip-v.alt {
  background-image: repeating-linear-gradient(
    to bottom,
    var(--paper) 0 var(--sq),
    var(--ink) var(--sq) calc(var(--sq) * 2)
  );
}

/* Full bordered frame */
.checker-frame {
  position: relative;
  --sq: 14px;
  padding: var(--sq);
}
.checker-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to right, var(--ink) 0 var(--sq), var(--paper) var(--sq) calc(var(--sq) * 2)),
    repeating-linear-gradient(to right, var(--paper) 0 var(--sq), var(--ink) var(--sq) calc(var(--sq) * 2)),
    repeating-linear-gradient(to bottom, var(--ink) 0 var(--sq), var(--paper) var(--sq) calc(var(--sq) * 2)),
    repeating-linear-gradient(to bottom, var(--paper) 0 var(--sq), var(--ink) var(--sq) calc(var(--sq) * 2));
  background-repeat: no-repeat;
  background-position: top, bottom, left, right;
  background-size: 100% var(--sq), 100% var(--sq), var(--sq) 100%, var(--sq) 100%;
  pointer-events: none;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--gutter);
  background: rgba(252, 241, 235, 0.78);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--ink-faint);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.topbar a { color: inherit; text-decoration: none; }
.topbar .brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-weight: 800; letter-spacing: 0.04em;
}
.topbar nav { display: none; gap: 22px; flex-wrap: nowrap; }
@media (min-width: 1080px) { .topbar nav { display: flex; } }
.topbar nav a { white-space: nowrap; }
.topbar nav a:hover { color: var(--ink-deep); text-decoration: underline; text-underline-offset: 4px; }

.lang-toggle { display: inline-flex; gap: 8px; align-items: center; }
.lang-toggle button {
  font: inherit; background: none; border: 0; padding: 4px 6px; cursor: pointer;
  color: var(--ink-soft); letter-spacing: 0.12em;
}
.lang-toggle button.active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang-toggle .sep { opacity: 0.4; }

/* mobile menu button */
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; background: none; border: 1px solid var(--ink); padding: 6px 10px; cursor: pointer; color: var(--ink);
}
@media (min-width: 1080px) { .menu-btn { display: none; } }
.menu-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 8vw, 56px);
  padding: 60px 24px;
}
.menu-overlay a { color: inherit; text-decoration: none; }
.menu-overlay a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-overlay .close { position: absolute; top: 18px; right: 18px; font-size: 14px; letter-spacing: 0.1em; }

/* ---------- Section scaffolding ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 8px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 12px 0; } }

.section-head { display: grid; gap: 12px; margin-bottom: 24px; margin-top: 16px; }
.section-head .section-title { line-height: 1; }
.section-head .section-sub { margin-top: 8px; }
.section-eyebrow { font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; opacity: 0.7; }
.section-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 7.4vw, 78px); line-height: 0.92; letter-spacing: -0.02em; margin: 0;
  text-wrap: balance;
}
.section-sub { font-family: var(--font-body); font-style: italic; font-size: clamp(18px, 2vw, 22px); max-width: 50ch; opacity: 0.85; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 96px var(--gutter) 24px;
  gap: 24px;
  overflow: hidden;
}
.hero-side {
  position: absolute; top: 96px; bottom: 80px;
  width: 18px;
  background-image: repeating-linear-gradient(
    to bottom, var(--ink) 0 18px, var(--paper) 18px 36px
  );
  opacity: 0.95;
  display: none;
}
@media (min-width: 768px) { .hero-side { display: block; } }
.hero-side.left { left: 24px; }
.hero-side.right { right: 24px; }

.hero-eyebrow {
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px;
}
.hero-eyebrow .dot { display: inline-block; transform: translateY(-2px); margin: 0 8px; opacity: 0.7; }

.hero-names {
  align-self: center;
  text-align: center;
  margin: 0;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-illos {
  position: absolute;
  pointer-events: none;
}
.hero-illo {
  position: absolute;
  width: 90px;
  opacity: 0.95;
}
.hero-illo svg, .hero-illo img { width: 100%; height: auto; display: block; }

.hero-foot {
  display: grid;
  gap: 18px;
  text-align: center;
}
.hero-tagline {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(11px, 2vw, 14px);
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}
.hero-tagline .sep { display: inline-block; padding: 0 10px; opacity: 0.6; }
@media (max-width: 520px) {
  .hero-tagline {
    font-size: clamp(8px, 2.6vw, 11px);
    letter-spacing: 0.08em;
  }
  .hero-tagline .sep { padding: 0 5px; }
}

.countdown {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}
.countdown .pair { display: inline-flex; align-items: baseline; gap: 4px; }
.countdown .num {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1;
}
.countdown .lbl { font-size: 10px; opacity: 0.7; }

.scroll-cue {
  font-family: var(--font-script);
  font-size: 22px;
  text-align: center;
  line-height: 1;
  opacity: 0.85;
  margin-top: 8px;
  transition: opacity 0.4s ease;
}
.scroll-cue .arrow { display: block; margin-top: 4px; animation: bob 2.2s ease-in-out infinite; font-size: 18px; }
@keyframes bob { 0%,100%{transform: translateY(0);} 50%{transform: translateY(6px);} }
body.scrolled .scroll-cue { opacity: 0; }

/* ---------- Reveal scrub ---------- */
.reveal {
  position: relative;
  height: 280svh;
  background: var(--paper);
}
.reveal-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--paper);
}
.reveal-canvas {
  width: auto; height: 100%;
  max-height: 100svh; max-width: 100vw;
  display: block;
}
.reveal-loader {
  position: absolute; inset: auto 24px 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  transition: opacity 0.5s ease;
}
.reveal-loader.hidden { opacity: 0; pointer-events: none; }
.reveal-loader-bar { height: 2px; background: var(--ink-faint); overflow: hidden; }
.reveal-loader-bar > i { display: block; height: 100%; width: 0%; background: var(--ink); transition: width 0.2s ease; }
.reveal-whisper {
  position: absolute; left: 0; right: 0; bottom: 14vh;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(20px, 3vw, 28px);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.reveal-whisper.show { opacity: 0.8; }

/* progress bar overlay for the reveal "video" */
.reveal-progress {
  position: absolute;
  inset: auto var(--gutter) 24px var(--gutter);
  display: grid;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
}
.reveal-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  opacity: 0.75;
}
.reveal-progress-frame {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.reveal-progress-track {
  position: relative;
  height: 8px;
  background: var(--ink-faint);
  border: 1px solid var(--ink);
}
.reveal-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--ink);
  transition: width 0.12s linear;
}
.reveal-progress-tick {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 16px;
  background: var(--ink);
  transform: translateX(-0.5px);
  opacity: 0.6;
}
.reveal-progress-tick:first-of-type,
.reveal-progress-tick:last-of-type { opacity: 0; }

/* ---------- From Us ---------- */
.fromus { background: var(--paper); }
.fromus-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) { .fromus-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.fromus-prose {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  max-width: 50ch;
}
.fromus-prose p + p { margin-top: 1em; }
.fromus-prose em { font-style: italic; }
.fromus-sign {
  margin-top: 28px;
  font-family: var(--font-script);
  font-size: 32px;
  line-height: 1;
}
.fromus-illo {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.fromus-illo img { width: 100%; height: auto; display: block; }
.fromus-illo .quote {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-script);
  font-size: 28px;
  background: var(--paper);
  padding: 4px 12px;
  border: 1px solid var(--ink);
  transform: rotate(-3deg);
}

/* ---------- Run of Show ---------- */
.runshow .grid {
  display: grid; gap: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.runshow-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--ink);
  padding: 18px 18px;
  align-items: baseline;
}
@media (min-width: 640px) {
  .runshow-row { grid-template-columns: 140px 1fr 1.1fr; padding: 24px 28px; }
}
.runshow-row:last-child { border-bottom: 0; }
.runshow-time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.runshow-name {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(14px, 1.6vw, 16px);
  margin-top: 4px;
}
@media (min-width: 640px) { .runshow-name { margin-top: 0; } }
.runshow-note {
  grid-column: 1 / -1;
  font-family: var(--font-script);
  font-size: 22px;
  margin-top: 8px;
  opacity: 0.85;
}
@media (min-width: 640px) {
  .runshow-note { grid-column: auto; margin-top: 0; text-align: right; }
}
.runshow-row.tbd .runshow-time { font-family: var(--font-script); font-weight: 500; }

/* ---------- Map / Place ---------- */
.place-card {
  border: 2px solid var(--ink);
  background: var(--paper-warm);
  padding: 24px;
  display: grid;
  gap: 12px;
}
.place-card .label { opacity: 0.7; }
.place-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0;
}
.place-card .addr { font-family: var(--font-body); font-style: italic; font-size: 18px; }
.place-card .map-link {
  align-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 8px 14px; text-decoration: none;
  background: var(--paper);
}
.place-card .map-link:hover { background: var(--ink); color: var(--paper); }

/* Transport details block — sits inside place-card */
.transport-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--ink-hair);
  display: grid;
  gap: 14px;
}
.transport-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.6vw, 24px);
  margin: 0;
}
.transport-rows { display: grid; gap: 14px; }
@media (min-width: 720px) { .transport-rows { grid-template-columns: 1fr 1fr; gap: 16px 28px; } }
.transport-row { display: grid; gap: 6px; }
.transport-head {
  display: flex; align-items: baseline; gap: 8px;
}
.transport-icon {
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px;
  flex-shrink: 0;
}
.transport-name {
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 12px;
}
.transport-text {
  font-family: var(--font-body); font-style: italic; font-size: 16px;
  margin: 0; line-height: 1.45;
}
.transport-foot {
  font-family: var(--font-body); font-size: 14px; opacity: 0.8;
  margin: 0; padding-top: 6px;
  border-top: 1px dashed var(--ink-hair);
}

.map-stage {
  position: relative;
  border: 2px solid var(--ink);
  aspect-ratio: 16 / 11;
  width: 100%;
  background: var(--paper-warm);
  overflow: hidden;
}
.map-stage svg { display: block; width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-pin .dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--ink);
}
.map-pin .lbl {
  margin-top: 6px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 2px 8px;
  font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Accommodation ---------- */
.accom-lead {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 32px 24px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 32px;
  position: relative;
}
.accom-lead .gift-tag {
  position: absolute;
  top: -12px; left: 20px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 10px; padding: 6px 10px;
  white-space: nowrap;
  line-height: 1;
}
.accom-lead p { margin: 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; }

.accom-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .accom-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.accom-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr;
}
.accom-card .photo {
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  border-bottom: 2px solid var(--ink);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.accom-card .photo.has-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.accom-card .photo .stripe-bg {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, var(--ink-faint) 8px 9px);
}
.accom-card .photo .ph-label {
  position: relative;
  font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  background: var(--paper); padding: 6px 10px; border: 1px solid var(--ink);
}
.accom-card .body { padding: 22px 24px 26px; display: grid; gap: 14px; }
.accom-card h3 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 36px); margin: 0; line-height: 0.95; letter-spacing: -0.02em;
}
.accom-card .tagline { font-family: var(--font-script); font-size: 22px; line-height: 1.1; }
.accom-card .desc { font-family: var(--font-body); font-size: 18px; }
.accom-card ul.ams { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.accom-card ul.ams li {
  font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding-left: 18px; position: relative;
}
.accom-card ul.ams li::before { content: "+"; position: absolute; left: 0; top: 0; font-family: var(--font-display); }
.accom-card .price {
  font-family: var(--font-script); font-size: 18px; line-height: 1.4;
  border-top: 1px dashed var(--ink-hair); padding-top: 12px;
}
.accom-card .cta {
  display: inline-block; align-self: start;
  font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 10px 16px; text-decoration: none; background: var(--paper); color: var(--ink);
}
.accom-card .cta:hover { background: var(--ink); color: var(--paper); }

.transport-note {
  margin-top: 28px;
  border: 1px solid var(--ink);
  padding: 14px 18px;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  font-family: var(--font-body); font-style: italic; font-size: 17px;
}
.transport-note .icon { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; }

/* ---------- Tips / Things to do ---------- */
.tips-group { margin-top: 36px; }
.tips-group:first-of-type { margin-top: 8px; }
.tips-group-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  margin-bottom: 18px;
}
.tips-group-label {
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 12px;
}
.tips-group-note {
  font-family: var(--font-body); font-style: italic; font-size: 16px; opacity: 0.85;
}
.tips-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tips-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tips-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* mobile: make each group's cards horizontally scrollable */
@media (max-width: 639px) {
  .tips-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 14px;
    scroll-padding-left: var(--gutter);
  }
  .tips-grid::-webkit-scrollbar { display: none; }
  .tips-grid > .tip-card {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: start;
  }
  .tips-group-head::after {
    content: "swipe →";
    font-family: var(--font-script);
    font-size: 16px;
    opacity: 0.6;
    text-transform: none;
    letter-spacing: 0;
    margin-left: auto;
  }
}
.tip-card {
  border: 1px solid var(--ink);
  padding: 18px 18px 20px;
  display: grid; gap: 8px;
  background: var(--paper);
  position: relative;
  min-height: 180px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  /* anchor reset */
  color: var(--ink);
  text-decoration: none;
}
.tip-card:link, .tip-card:visited { color: var(--ink); }
.tip-map {
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 10px;
  margin-top: auto;
  padding-top: 10px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
@media (hover: hover) {
  .tip-card:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
  }
  .tip-card:hover .cat,
  .tip-card:hover .blurb,
  .tip-card:hover h4,
  .tip-card:hover .tip-map,
  .tip-card:hover .num { color: var(--paper); opacity: 1; }
}
.tip-card .cat {
  font-family: var(--font-ui); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.7;
}
.tip-card h4 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 28px); margin: 0; letter-spacing: -0.02em; line-height: 0.95;
}
.tip-card .blurb { font-family: var(--font-body); font-style: italic; font-size: 16px; }
.tip-card .num {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-script); font-size: 20px; opacity: 0.6;
}

/* ---------- Dress code ---------- */
.dress {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) { .dress { grid-template-columns: 1fr 1fr; gap: 60px; } }
.dress-prose { font-family: var(--font-body); font-size: clamp(18px, 2vw, 22px); max-width: 48ch; }
.dress-prose p + p { margin-top: 1em; }
.dress-mood {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.mood-tile {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--ink);
  background: var(--paper-warm);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.mood-tile .stripe-bg {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, var(--ink-faint) 8px 9px);
}
.mood-tile .ph-label {
  position: relative; font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  background: var(--paper); padding: 4px 8px; border: 1px solid var(--ink);
}

/* ---------- Gifts ---------- */
.gifts-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gifts-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; } }
.gift-card {
  display: grid; gap: 14px;
  text-align: center;
  padding: 24px 18px;
  position: relative;
}
.gift-card .illo {
  width: 180px; height: 180px;
  margin: 0 auto;
}
.gift-card .illo img { width: 100%; height: 100%; object-fit: contain; }
.gift-card h4 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 28px); margin: 0; letter-spacing: -0.02em;
}
.gift-card p { font-family: var(--font-body); font-style: italic; font-size: 17px; max-width: 28ch; margin: 0 auto; }
.gift-card.divider-r { border-right: none; }
@media (min-width: 640px) {
  .gift-card.divider-r { border-right: 1px dashed var(--ink-hair); }
}

/* ---------- FAQ ---------- */
.faq-cats {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}
@media (max-width: 520px) { .faq-cats { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .faq-cats { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; } }
.faq-cat {
  display: grid; gap: 12px;
  text-align: center;
  padding: 16px 8px;
  position: relative;
  min-width: 0;
}
.faq-cat .illo {
  width: clamp(120px, 38vw, 180px);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
}
.faq-cat h4 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(18px, 4.5vw, 24px); margin: 0; letter-spacing: -0.02em;
  word-break: break-word; hyphens: auto;
}
.faq-cat p {
  font-family: var(--font-body); font-style: italic; font-size: clamp(14px, 3.6vw, 16px);
  max-width: 26ch; margin: 0 auto;
  opacity: 0.9;
}

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-q {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  background: none; border: 0;
  text-align: left;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.01em; line-height: 1.05;
  color: var(--ink); cursor: pointer;
}
.faq-q .plus {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  font-family: var(--font-body); font-size: 18px; max-width: 60ch;
  padding: 0 0 22px;
  margin: 0;
}

/* ---------- RSVP ---------- */
.rsvp { background: var(--ink); color: var(--paper); }
.rsvp .wrap { display: grid; gap: 28px; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.rsvp h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(56px, 14vw, 200px); line-height: 0.86; letter-spacing: -0.04em;
  margin: 0;
}
.rsvp p { font-family: var(--font-body); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); max-width: 46ch; margin: 0 auto; }
.rsvp .deadline {
  font-family: var(--font-script); font-size: 28px; opacity: 0.95; white-space: nowrap;
}
.rsvp .cta {
  justify-self: center;
  display: inline-block;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.01em;
  background: var(--paper); color: var(--ink);
  padding: 18px 32px;
  border: 2px solid var(--paper);
  text-decoration: none;
}
.rsvp .cta:hover { background: transparent; color: var(--paper); }

/* ---------- Footer ---------- */
footer.foot {
  background: var(--paper);
  padding: 36px var(--gutter) 28px;
  display: grid;
  gap: 16px;
  text-align: center;
  border-top: 4px solid var(--ink);
  align-content: start;
}
@media (min-width: 768px) {
  footer.foot { padding: 60px var(--gutter) 40px; gap: 26px; }
}
footer.foot .marks {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 8vw, 80px); line-height: 0.92; letter-spacing: -0.03em;
  display: grid; justify-items: center; text-align: center;
}
footer.foot .date { font-family: var(--font-script); font-size: 28px; }
footer.foot .contacts {
  display: grid; gap: 4px;
  font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
footer.foot .contacts a { text-decoration: none; }
footer.foot .contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer.foot .meta { font-family: var(--font-ui); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }

/* ---------- Reveals on scroll ---------- */
.fadein { opacity: 0; transform: translateY(10px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fadein.in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .fadein { opacity: 1; transform: none; } }

/* ---------- Inline illo placement ---------- */
.illo-inline {
  display: inline-block;
  vertical-align: middle;
  width: 42px;
}
.illo-inline img { width: 100%; height: auto; display: block; }

.section .deco {
  position: absolute;
  pointer-events: none;
  width: 120px;
  opacity: 0.95;
}
.section .deco img { width: 100%; height: auto; display: block; }

/* ---------- Misc ---------- */
.divider-strip { margin: 0 calc(-1 * var(--gutter)); }
.kbd-line {
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  justify-content: center; max-width: 100%;
}
.hairline { height: 1px; background: var(--ink); opacity: 0.18; }

/* ---------- Venue photo placeholder (Place section) ---------- */
.venue-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper-warm);
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.venue-photo .stripe-bg {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, var(--ink-faint) 12px 13px);
}
.venue-photo .ph-label {
  position: relative;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  background: var(--paper); padding: 8px 14px; border: 1px solid var(--ink);
}
.venue-photo.has-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) { .venue-photo { aspect-ratio: 21 / 9; } }

/* ---------- SVG illos as mask (so they take ink color) ---------- */
.illo-mask {
  display: block;
  background-color: var(--ink);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform-origin: center;
}

/* gentle "bouncing to music" pulse + shake on hover — desktop only */
@keyframes illo-bounce {
  0%   { transform: rotate(var(--illo-rot, 0deg)) scale(1) translateY(0); }
  20%  { transform: rotate(calc(var(--illo-rot, 0deg) - 2.5deg)) scale(1.04) translateY(-3px); }
  40%  { transform: rotate(calc(var(--illo-rot, 0deg) + 2deg)) scale(1.02) translateY(-1px); }
  60%  { transform: rotate(calc(var(--illo-rot, 0deg) - 1.5deg)) scale(1.05) translateY(-4px); }
  80%  { transform: rotate(calc(var(--illo-rot, 0deg) + 1deg)) scale(1.02) translateY(-1px); }
  100% { transform: rotate(var(--illo-rot, 0deg)) scale(1) translateY(0); }
}
/* hero illustrations get a continuous, more visible ambient bounce */
@keyframes illo-ambient {
  0%, 100% { transform: rotate(var(--illo-rot, 0deg)) scale(1) translateY(0); }
  25%      { transform: rotate(calc(var(--illo-rot, 0deg) - 4deg)) scale(1.06) translateY(-8px); }
  50%      { transform: rotate(calc(var(--illo-rot, 0deg) + 5deg)) scale(1.08) translateY(-12px); }
  75%      { transform: rotate(calc(var(--illo-rot, 0deg) - 2deg)) scale(1.05) translateY(-6px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-floating {
    animation: illo-ambient 3.2s ease-in-out infinite;
  }
  .hero-floating:nth-of-type(1) { animation-delay: 0s; animation-duration: 3.0s; }
  .hero-floating:nth-of-type(2) { animation-delay: 0.4s; animation-duration: 3.6s; }
  .hero-floating:nth-of-type(3) { animation-delay: 0.8s; animation-duration: 3.3s; }
  .hero-floating:nth-of-type(4) { animation-delay: 1.2s; animation-duration: 3.8s; }
}
@media (hover: hover) and (pointer: fine) {
  @media (prefers-reduced-motion: no-preference) {
    .illo-mask { transition: transform 0.2s ease; }
    .illo-mask:hover,
    .scatter-illo:hover,
    .fromus-illo:hover,
    .hero-floating:hover,
    .faq-cat:hover .illo,
    .gift-card:hover .illo {
      animation: illo-bounce 1.4s ease-in-out infinite;
    }
  }
}
.illo-02 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-02.svg"); mask-image: url("illustrations/weselekubamb_svgi-02.svg"); }
.illo-03 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-03.svg"); mask-image: url("illustrations/weselekubamb_svgi-03.svg"); }
.illo-04 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-04.svg"); mask-image: url("illustrations/weselekubamb_svgi-04.svg"); }
.illo-05 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-05.svg"); mask-image: url("illustrations/weselekubamb_svgi-05.svg"); }
.illo-06 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-06.svg"); mask-image: url("illustrations/weselekubamb_svgi-06.svg"); }
.illo-07 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-07.svg"); mask-image: url("illustrations/weselekubamb_svgi-07.svg"); }
.illo-08 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-08.svg"); mask-image: url("illustrations/weselekubamb_svgi-08.svg"); }
.illo-09 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-09.svg"); mask-image: url("illustrations/weselekubamb_svgi-09.svg"); }
.illo-10 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-10.svg"); mask-image: url("illustrations/weselekubamb_svgi-10.svg"); }
.illo-12 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-12.svg"); mask-image: url("illustrations/weselekubamb_svgi-12.svg"); }
.illo-13 { -webkit-mask-image: url("illustrations/weselekubamb_svgi-13.svg"); mask-image: url("illustrations/weselekubamb_svgi-13.svg"); }

/* napis (MISIA i KUBA hand-drawn lockup) */
.hero-napis {
  display: block;
  width: clamp(280px, 78vw, 1000px);
  aspect-ratio: 1141.7 / 349.2;
  background-color: var(--ink);
  -webkit-mask: url("illustrations/website_napis.svg") center / contain no-repeat;
  mask: url("illustrations/website_napis.svg") center / contain no-repeat;
}
.foot-napis {
  width: clamp(140px, 22vw, 240px);
  margin: 0 auto;
}

/* gora / dol decorative strips replace strip-h pattern */
.strip-decor {
  display: block;
  width: 100%;
  aspect-ratio: 1309.89 / 76.72;
  background-color: var(--ink);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  mask-position: center center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.strip-decor.top    { -webkit-mask-image: url("illustrations/website_gora.svg"); mask-image: url("illustrations/website_gora.svg"); }
.strip-decor.bottom { -webkit-mask-image: url("illustrations/website_dol.svg");  mask-image: url("illustrations/website_dol.svg"); }
.strip-decor.on-ink { background-color: var(--paper); }
@media (max-width: 640px) { .strip-decor { height: 38px; } }

/* scattered loose illustrations between sections */
.scatter-illo {
  display: block;
  background-color: var(--ink);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
/* Hide scatter illos on anything narrower than the content column + meaningful side
   whitespace. Below this width they can only sit on top of content. */
@media (max-width: 1799px) {
  .scatter-illo.hide-mobile,
  [data-scatter] { display: none !important; }
}
/* On very wide screens, snap each scatter illo into the outside column next to .wrap
   so they never overlap the text grid. The 24px is the gap between illo and content. */
@media (min-width: 1800px) {
  [data-scatter="left"] {
    left: calc((100vw - var(--maxw)) / 2 - var(--scatter-w, 220px) - 24px) !important;
    right: auto !important;
  }
  [data-scatter="right"] {
    right: calc((100vw - var(--maxw)) / 2 - var(--scatter-w, 220px) - 24px) !important;
    left: auto !important;
  }
}

/* a small, centered version of the divider strip — used in places where we don't want full-bleed */
.divider-centered {
  width: min(640px, calc(100% - 2 * var(--gutter)));
  margin: 48px auto !important;
}
