/* Yossi & Simy wedding site - port of the approved design */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #f4f0ea;
  color: #1c1a17;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.card {
  max-width: 680px;
  margin: 28px auto;
  background: #fff;
  border-radius: 24px;
  padding: 30px 26px 34px;
  box-shadow: 0 1px 2px rgba(60, 50, 30, 0.06);
}
@media (max-width: 720px) {
  .card { margin: 14px 10px; padding: 24px 18px 28px; border-radius: 20px; }
}

.page-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 30px;
  margin: 4px 0 8px;
  letter-spacing: 0.2px;
}
.fact { color: #8a6d1f; font-weight: 600; margin: 0 0 14px; font-size: 15px; }
.intro { color: #57534a; margin: 0 0 8px; }

h2.group-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 23px;
  margin: 38px 0 16px;
}
.muted { color: #6b675f; font-size: 14.5px; }

/* Ornamental hero, styled like the frame of a printed invitation */
.hero { display: flex; justify-content: center; margin-top: 22px; }
.hero-frame {
  width: min(100%, 460px);
  border: 1px solid #bfa04e;
  border-radius: 4px;
  padding: 6px;
  background: linear-gradient(180deg, #fffdf8 0%, #fdf9ef 100%);
  box-shadow: inset 0 0 0 3px #fffdf8, inset 0 0 0 4px #d9c58f;
}
.hero-names {
  display: block;
  text-align: center;
  font-family: 'Snell Roundhand', 'Apple Chancery', 'Segoe Script', 'Brush Script MT', cursive;
  font-size: clamp(36px, 9vw, 54px);
  line-height: 1.2;
  color: #8a6d1f;
  padding: 26px 20px 6px;
}
.hero-hebrew {
  display: block;
  text-align: center;
  font-size: 17px;
  color: #6b5d3a;
  padding: 2px 20px 4px;
}
.hero-rule { display: flex; align-items: center; gap: 10px; margin: 14px 40px 6px; }
.hero-rule::before, .hero-rule::after { content: ''; flex: 1; height: 1px; background: #d9c58f; }
.hero-diamond { width: 7px; height: 7px; background: #bfa04e; transform: rotate(45deg); }
.hero-countdown { padding: 6px 16px 22px; text-align: center; min-height: 86px; }
.hero-units { display: flex; justify-content: center; gap: clamp(14px, 5vw, 28px); }
.hero-unit { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.hero-unit-value {
  font-size: 26px; font-weight: 600; color: #8a6d1f;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.hero-unit-label { font-size: 12px; color: #6b5d3a; margin-top: 2px; }
.hero-countdown-caption { display: block; margin-top: 8px; font-size: 14px; color: #6b5d3a; }
.hero-mazaltov { display: block; padding: 26px 16px 6px; text-align: center; font-size: 18px; color: #8a6d1f; }

/* Invitation slideshow */
.invite-show { display: flex; flex-direction: column; gap: 12px; }
.invite-stage {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  aspect-ratio: 1855 / 2400;
  max-height: 78vh;
  background: #fff;
  border: 1px solid #e8e5de;
  border-radius: 12px;
  overflow: hidden;
}
.invite-slide {
  position: absolute; inset: 0; padding: 0; border: 0; background: #fff;
  cursor: zoom-in; opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.invite-slide.is-active { opacity: 1; pointer-events: auto; }
.invite-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #e0dcd3; background: rgba(255,255,255,0.94); color: #4a463e;
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.strip-arrow:hover { background: #fff; border-color: #c9c3b6; }
.strip-arrow.prev { left: 10px; }
.strip-arrow.next { right: 10px; }
.invite-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.invite-dots { display: flex; gap: 8px; align-items: center; }
.invite-dot {
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent;
  cursor: pointer; position: relative;
}
.invite-dot::after {
  content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #d6d2c8;
}
.invite-dot.is-active::after { background: #1c1a17; }
.invite-count { color: #6b675f; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .invite-slide { transition: none; } }

/* Facts */
.facts { margin: 0 0 18px; }
.fact-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 11px 2px; border-bottom: 1px solid #efede7;
}
.fact-row:first-child { border-top: 1px solid #efede7; }
.fact-row dt { color: #6b675f; font-size: 14.5px; }
.fact-row dd { margin: 0; text-align: right; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid #dcd8cf; background: #fff; color: #1c1a17;
  font-size: 14.5px; font-family: inherit; text-decoration: none; cursor: pointer;
  min-height: 40px;
}
.btn:hover { border-color: #c6c0b3; background: #fbfaf7; }
.btn .arr { color: #6b675f; font-size: 13px; }
.btn-primary {
  background: #8a6d1f; border-color: #8a6d1f; color: #fff;
}
.btn-primary:hover { background: #7a6119; border-color: #7a6119; }
.btn[disabled] { opacity: 0.55; cursor: default; }

.closing {
  margin-top: 40px; color: #57534a;
  font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 15.5px;
}

/* Full picture viewer */
.viewer {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(12, 10, 8, 0.93);
  display: flex; align-items: center; justify-content: center;
}
.viewer[hidden] { display: none; }
.viewer img { max-width: 92vw; max-height: 88vh; object-fit: contain; background: #fff; }
.viewer .strip-arrow { position: fixed; }
.viewer .viewer-prev { left: 14px; }
.viewer .viewer-next { right: 14px; }
.viewer-close {
  position: fixed; top: 14px; right: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.12);
  color: #fff; font-size: 17px; cursor: pointer; z-index: 3;
}

/* Login and guestbook pages */
.narrow-card { max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.field label { color: #57534a; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; color: inherit;
  padding: 11px 13px; border: 1px solid #d8d4ca; border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid #d9c58f; outline-offset: 1px; border-color: #bfa04e; }
.field textarea { min-height: 120px; resize: vertical; }
.form-error { color: #b3261e; font-size: 14px; min-height: 20px; margin: 4px 0 0; }
.form-note { color: #6b675f; font-size: 14px; }
.center { text-align: center; }
.backlink { display: inline-block; margin-top: 22px; color: #8a6d1f; text-decoration: none; }
.backlink:hover { text-decoration: underline; }

.wish {
  border: 1px solid #efede7; border-radius: 14px; padding: 14px 16px; margin: 12px 0;
  background: #fffdf8;
}
.wish-name { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 16px; }
.wish-message { margin: 6px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wish-date { color: #6b675f; font-size: 13px; }
.wishes-empty { color: #6b675f; font-style: italic; }
