@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&family=Noto+Serif+Hebrew:wght@400;500;600;700&family=Rubik:wght@400;500;600;700&family=Secular+One&display=swap");

:root {
  --joy-bg: #b9d5d2;
  --joy-text: #073b4c;
  --joy-muted: #536e73;
  --joy-line: rgba(7, 59, 76, 0.24);
  --joy-panel: rgba(255, 255, 255, 0.68);
  --joy-coral: #d75f45;
  --joy-sun: #e4a83c;
  --joy-tile: #176a85;
  --font-display: "Secular One", "Rubik", "Heebo", Arial, sans-serif;
  --font-body: "Rubik", "Heebo", Arial, sans-serif;
  --joy-max: 1024px;
  --joy-copy: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--joy-bg);
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.54), transparent 26rem),
    radial-gradient(circle at 96% 12%, rgba(23, 106, 133, 0.22), transparent 30rem),
    radial-gradient(circle at 78% 92%, rgba(215, 95, 69, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 46%),
    linear-gradient(180deg, #b9d5d2 0%, #d8e8de 52%, #b7d1d3 100%);
  color: var(--joy-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  width: min(100%, var(--joy-max));
  margin: 0 auto;
  padding: 78px 0 72px;
}

.joy-header {
  position: relative;
  z-index: 6;
  text-align: center;
}

.event-title {
  display: inline-block;
  color: var(--joy-text);
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.language-toggle {
  position: static;
  display: flex;
  width: max-content;
  margin: 14px auto 0;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--joy-line);
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.62);
  color: var(--joy-text);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--joy-tile);
  background: rgba(23, 106, 133, 0.12);
  color: var(--joy-text);
  transform: translateY(-1px);
}

.joy-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 26px;
  margin: 22px auto 60px;
  padding: 0 18px;
  color: var(--joy-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.joy-nav a {
  position: relative;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  text-decoration: none;
}

.joy-nav a.is-hidden {
  display: none;
}

.joy-nav a:focus {
  outline: none;
}

.joy-nav a:focus-visible {
  outline: none;
}

.external-nav {
  gap: 6px;
}

.joy-nav a[aria-current="page"]::before,
.joy-nav a:hover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--joy-coral);
}

.page-content {
  position: relative;
  z-index: 4;
}

.joy-cover {
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(40, 91, 98, 0.16);
}

.joy-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.joy-cover--welcome {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
}

.joy-cover--welcome img {
  transform: scale(1.08);
  object-position: 50% 50%;
}

.joy-cover--schedule {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.joy-cover--travel {
  width: min(100%, 850px);
  aspect-ratio: 3 / 2;
}

.joy-cover--faq {
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
}

.joy-cover--faq img {
  object-position: 50% 50%;
}

.joy-cover--explore {
  width: min(100%, 800px);
  aspect-ratio: 4 / 3;
}

.photo-collage {
  width: min(100%, 860px);
  margin: 0 auto;
}

.photo-collage img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.welcome-copy,
.content-column,
.schedule-list,
.faq-list,
.explore-list,
.gift-page {
  width: min(100% - 48px, var(--joy-copy));
  margin: 58px auto 0;
}

.welcome-copy {
  text-align: center;
  font-family: var(--font-display);
}

.welcome-copy p {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.45;
}

.welcome-copy .welcome-line {
  margin-top: 26px;
  font-size: 17px;
}

.page-title {
  margin: 54px auto 36px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.25;
}

.content-section {
  padding: 30px 0;
  border-top: 1px solid var(--joy-line);
}

.content-section:first-child {
  border-top: 0;
}

.content-section h2,
.schedule-card h2,
.faq-item h2,
.explore-card h2,
.gift-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}

.content-section p,
.schedule-card p,
.faq-item p,
.explore-card p,
.gift-card p {
  margin: 0 0 12px;
}

.content-section--icon {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

.section-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--joy-text);
}

.icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.joy-link {
  display: inline-block;
  color: var(--joy-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.gift-intro {
  margin-bottom: 18px;
  text-align: center;
}

.gift-intro .page-title {
  margin-top: 0;
  margin-bottom: 18px;
}

.gift-intro p {
  max-width: 620px;
  margin: 0 auto 10px;
}

.gift-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gift-card {
  padding: 30px;
  border: 1px solid var(--joy-line);
  border-radius: 8px;
  background: var(--joy-panel);
  box-shadow: 0 14px 30px rgba(14, 83, 106, 0.08);
}

.gift-card--paybox {
  border-color: rgba(44, 109, 163, 0.38);
  background: linear-gradient(135deg, rgba(223, 239, 250, 0.82), var(--joy-panel));
}

.gift-card--paypal {
  border-color: rgba(14, 83, 106, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(198, 224, 229, 0.82));
}

.gift-card__brand {
  display: flex;
  min-height: 58px;
  align-items: center;
  margin-bottom: 18px;
}

.payment-logo {
  width: auto;
  height: auto;
  object-fit: contain;
}

.payment-logo--paybox {
  width: 168px;
  max-height: 58px;
}

.payment-logo--paypal {
  width: 180px;
  height: 62px;
  object-fit: cover;
  object-position: center;
}

.temporary-note {
  color: var(--joy-muted);
  font-size: 13px;
  font-style: italic;
}

.link-stack {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 10px;
}

.schedule-list {
  position: relative;
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
}

.schedule-date {
  width: fit-content;
  margin: 42px auto 62px;
  padding: 8px 18px 7px;
  border: 1px solid var(--joy-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  text-align: center;
  color: var(--joy-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.schedule-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding-top: 3px;
}

.schedule-timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  inset-inline: 3%;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4c64f 0%, #efa257 36%, #ce6555 67%, #2e3e78 100%);
  clip-path: polygon(
    0 28%, 12.5% 20%, 25% 72%, 37.5% 84%, 50% 28%,
    62.5% 20%, 75% 72%, 87.5% 84%, 100% 28%,
    100% 46%, 87.5% 100%, 75% 90%, 62.5% 38%, 50% 46%,
    37.5% 100%, 25% 90%, 12.5% 38%, 0 46%
  );
  opacity: 0.46;
  filter: blur(1.25px);
}

html[dir="rtl"] .schedule-timeline::before {
  background: linear-gradient(270deg, #f4c64f 0%, #efa257 36%, #ce6555 67%, #2e3e78 100%);
}

.schedule-stop {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
  --stop-color: #f4c64f;
  --stop-ink: #9b6e0e;
}

.schedule-stop:nth-child(even) {
  transform: translateY(24px);
}

html[dir="rtl"] .schedule-stop:nth-child(odd) {
  transform: translateY(24px);
}

html[dir="rtl"] .schedule-stop:nth-child(even) {
  transform: none;
}

.schedule-stop:nth-child(2) {
  --stop-color: #efa257;
  --stop-ink: #bd6935;
}

.schedule-stop:nth-child(3) {
  --stop-color: #ce6555;
  --stop-ink: #ae4f48;
}

.schedule-stop:nth-child(4) {
  --stop-color: #2e3e78;
  --stop-ink: #2e3e78;
}

.schedule-stop__marker {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 28px;
  place-content: center;
  border: 5px solid var(--joy-bg);
  border-radius: 50%;
  background: var(--stop-color);
  color: var(--joy-text);
  box-shadow: 0 0 0 1px var(--joy-tile), 0 10px 22px rgba(7, 59, 76, 0.18);
  line-height: 1;
}

.schedule-stop:nth-child(4) .schedule-stop__marker {
  color: #fffdf7;
  box-shadow: 0 0 0 1px var(--stop-color), 0 10px 22px rgba(46, 62, 120, 0.24);
}

.schedule-stop__marker strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.schedule-stop__marker span {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.schedule-stop__content {
  min-height: 184px;
  padding: 0 6px;
}

.schedule-stop__content h2 {
  margin: 0 0 10px;
  color: var(--stop-ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.schedule-stop__content > p {
  margin: 0 auto 10px;
  color: var(--joy-muted);
  font-size: 14px;
  line-height: 1.45;
}

.schedule-stop__content .meta-row {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}

.schedule-stop__content .meta-row .icon {
  display: none;
}

.meta-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin: 12px 0 0;
  color: var(--joy-muted);
  font-size: 15px;
}

.meta-row .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.meta {
  color: var(--joy-muted);
  font-size: 15px;
}

.calendar-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 6px 12px;
  border: 1px solid var(--joy-line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.36);
  color: var(--joy-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}

.calendar-link .icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.faq-list,
.explore-list {
  display: grid;
  gap: 18px;
}

.rsvp-page {
  width: min(100% - 48px, 720px);
  margin: 58px auto 0;
}

.rsvp-copy {
  margin-bottom: 24px;
  text-align: center;
}

.rsvp-copy .page-title {
  margin: 0 0 14px;
}

.rsvp-copy p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--joy-muted);
}

.rsvp-card {
  display: grid;
  width: min(100%, 620px);
  gap: 18px;
  margin: 0 auto;
  padding: 34px clamp(22px, 5vw, 48px) 38px;
  border: 1px solid rgba(7, 59, 76, 0.16);
  border-radius: 26px 14px 30px 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 238, 0.28)),
    var(--joy-panel);
  box-shadow: 0 18px 42px rgba(14, 83, 106, 0.12);
}

.rsvp-card h2 {
  margin: 0;
  color: var(--joy-text);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.rsvp-progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.rsvp-progress li {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(7, 59, 76, 0.22);
  border-radius: 50%;
  color: var(--joy-muted);
  font-size: 12px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.rsvp-progress li.is-active {
  background: var(--joy-coral);
  color: #fffaf0;
  transform: translateY(-2px);
}

.rsvp-progress li.is-complete {
  background: rgba(23, 106, 133, 0.16);
  color: var(--joy-text);
}

.rsvp-field,
.rsvp-fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--joy-text);
  font-size: 14px;
}

.rsvp-field > span,
.rsvp-fieldset legend {
  font-weight: 600;
}

.rsvp-field input,
.rsvp-field textarea {
  width: 100%;
  border: 1px solid rgba(7, 59, 76, 0.22);
  border-radius: 12px;
  background: rgba(255, 250, 238, 0.62);
  color: var(--joy-text);
  font: inherit;
}

.rsvp-field input {
  min-height: 46px;
  padding: 9px 13px;
}

.rsvp-field textarea {
  min-height: 88px;
  padding: 10px 13px;
  resize: vertical;
}

.rsvp-field input:focus,
.rsvp-field textarea:focus {
  outline: 2px solid rgba(215, 95, 69, 0.38);
  outline-offset: 2px;
}

.rsvp-help,
.rsvp-muted,
.rsvp-selected {
  margin: 0;
  color: var(--joy-muted);
  font-size: 14px;
  text-align: center;
}

.rsvp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -4px 0 0;
  color: var(--joy-muted);
  font-size: 13px;
}

.rsvp-loading__spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid rgba(23, 106, 133, 0.22);
  border-top-color: var(--joy-tile);
  border-radius: 50%;
  animation: rsvp-spin 800ms linear infinite;
}

@keyframes rsvp-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-loading__spinner {
    animation: none;
  }
}

.rsvp-selected {
  font-family: var(--font-display);
  font-size: 18px;
}

.rsvp-name-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(7, 59, 76, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 238, 0.3);
}

.rsvp-name-section h3 {
  margin: 0;
  color: var(--joy-text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.rsvp-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rsvp-choice-list,
.rsvp-choice-grid {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rsvp-choice {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(7, 59, 76, 0.18);
  border-radius: 12px;
  background: rgba(255, 250, 238, 0.42);
  cursor: pointer;
}

.rsvp-choice__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  flex: 1;
}

.rsvp-choice__name {
  font-weight: 600;
}

.rsvp-choice__status {
  color: var(--joy-muted);
  font-size: 12px;
  line-height: 1.35;
}

.rsvp-choice__status.is-responded {
  color: var(--joy-tile);
}

.rsvp-choice__status.is-pending {
  color: var(--joy-muted);
}

.rsvp-choice:has(input:checked) {
  border-color: var(--joy-coral);
  background: rgba(215, 95, 69, 0.12);
}

.rsvp-choice input {
  accent-color: var(--joy-coral);
}

.rsvp-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.rsvp-button {
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--joy-text);
  border-radius: 999px;
  background: var(--joy-text);
  color: #fffaf0;
  font: 600 14px/1.2 var(--font-body);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.rsvp-button:hover,
.rsvp-button:focus-visible {
  background: var(--joy-coral);
  transform: translateY(-1px);
}

.rsvp-button--secondary {
  background: transparent;
  color: var(--joy-text);
}

.rsvp-button--secondary:hover,
.rsvp-button--secondary:focus-visible {
  color: #fffaf0;
}

.rsvp-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.rsvp-error {
  margin: 0;
  color: #a63c31;
  font-size: 14px;
  text-align: center;
}

.rsvp-card--success {
  justify-items: center;
  text-align: center;
}

.rsvp-card--success p {
  margin: 0;
  color: var(--joy-muted);
}

.rsvp-success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 106, 133, 0.16);
  color: var(--joy-text);
  font-size: 28px;
}

html[dir="rtl"] .rsvp-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .rsvp-card h2,
html[dir="rtl"] .rsvp-progress,
html[dir="rtl"] .rsvp-help,
html[dir="rtl"] .rsvp-muted,
html[dir="rtl"] .rsvp-selected,
html[dir="rtl"] .rsvp-card--success {
  text-align: center;
}

html[dir="rtl"] .rsvp-card--success {
  justify-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guestbook-page {
  width: min(100% - 48px, var(--joy-copy));
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.guestbook-copy {
  text-align: center;
}

.guestbook-copy h2,
.guestbook-wall h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
}

.guestbook-copy p,
.guestbook-muted,
.guestbook-status {
  margin: 0;
  color: var(--joy-muted);
}

.guestbook-form {
  position: relative;
  display: grid;
  width: min(100%, 560px);
  gap: 14px;
  margin: 0 auto;
  padding: 34px 28px 24px;
  border: 0;
  border-radius: 3px 8px 4px 6px;
  background:
    linear-gradient(135deg, rgba(255, 250, 232, 0.2), transparent 42%),
    repeating-linear-gradient(0deg, rgba(93, 81, 67, 0.06) 0 1px, transparent 1px 20px),
    #e4c77f;
  box-shadow:
    0 14px 26px rgba(65, 42, 26, 0.22),
    inset 0 0 0 1px rgba(87, 56, 35, 0.1);
  transform: rotate(-0.5deg);
  transform-origin: 50% 18px;
}

.guestbook-form::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 54px;
  height: 15px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255, 244, 209, 0.28), transparent 24% 76%, rgba(91, 63, 39, 0.08)),
    rgba(232, 208, 164, 0.84);
  box-shadow: 0 2px 4px rgba(93, 81, 67, 0.16);
  transform: translateX(-50%) rotate(2deg);
}

.guestbook-form::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(89, 60, 35, 0.06));
  pointer-events: none;
}

.guestbook-form label {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  color: var(--joy-text);
  font-size: 14px;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  border: 1px solid rgba(93, 81, 67, 0.28);
  border-radius: 5px;
  background: rgba(255, 247, 222, 0.45);
  color: var(--joy-text);
  font: inherit;
  box-shadow: inset 0 1px 5px rgba(87, 56, 35, 0.08);
}

.guestbook-form input {
  min-height: 42px;
  padding: 8px 11px;
}

.guestbook-form textarea {
  min-height: 116px;
  padding: 10px 11px;
  resize: vertical;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: 2px solid rgba(93, 81, 67, 0.28);
  outline-offset: 2px;
}

.guestbook-form button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--joy-text);
  border-radius: 8px;
  background: var(--joy-text);
  color: var(--joy-bg);
  font: inherit;
  cursor: pointer;
}

.guestbook-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.guestbook-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 13px;
}

.guestbook-actions .guestbook-muted {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.35;
}

.guestbook-status {
  position: relative;
  z-index: 1;
  min-height: 1.35em;
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.guestbook-wall {
  display: grid;
  gap: 16px;
}

.guestbook-messages {
  display: grid;
  gap: 14px;
}

.guestbook-board {
  position: relative;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  grid-auto-flow: dense;
  gap: 10px 6px;
  padding: 34px 30px 42px;
  border: 14px solid #8a5f3f;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(80, 52, 32, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 72%, rgba(255, 223, 169, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 32%, rgba(94, 62, 37, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 54%, rgba(126, 84, 48, 0.18) 0 2px, transparent 3px),
    repeating-radial-gradient(circle at 30% 40%, rgba(78, 50, 30, 0.1) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #b98451 0%, #c8955d 42%, #ad7547 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 192, 0.18),
    inset 0 0 30px rgba(68, 43, 27, 0.24),
    0 18px 42px rgba(93, 81, 67, 0.18);
}

.guestbook-board::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 13px;
  border: 1px solid rgba(77, 49, 29, 0.24);
  background:
    radial-gradient(circle at 20% 24%, rgba(84, 54, 33, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 66%, rgba(255, 228, 183, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 18%, rgba(111, 72, 41, 0.14) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(255, 234, 197, 0.1), transparent 28%, rgba(70, 43, 25, 0.08));
  box-shadow: inset 0 0 22px rgba(62, 39, 24, 0.18);
  pointer-events: none;
}

.guestbook-board::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 16% 80%, rgba(74, 47, 29, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(255, 231, 188, 0.12) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(255, 238, 208, 0.1), transparent 18%, transparent 72%, rgba(67, 42, 25, 0.12));
  pointer-events: none;
}

.guestbook-message {
  padding: 22px;
  border: 1px solid var(--joy-line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.28);
}

.guestbook-board .guestbook-message {
  position: relative;
  z-index: var(--note-z);
  min-height: 132px;
  margin: var(--note-margin);
  padding: 26px 17px 15px;
  border: 0;
  border-radius: 2px 8px 3px 6px;
  background:
    linear-gradient(135deg, rgba(255, 250, 232, 0.22), transparent 42%),
    repeating-linear-gradient(0deg, rgba(93, 81, 67, 0.07) 0 1px, transparent 1px 18px),
    var(--note-color);
  box-shadow:
    0 12px 20px rgba(65, 42, 26, 0.28),
    inset 0 0 0 1px rgba(87, 56, 35, 0.12);
  filter: saturate(0.92);
  transform: translate(var(--note-x), var(--note-y)) rotate(var(--note-rotate));
  transform-origin: 50% 18px;
  transition: transform 160ms ease, z-index 160ms ease;
}

.guestbook-board .guestbook-message:hover {
  z-index: 20;
  transform: translate(var(--note-x), calc(var(--note-y) - 6px)) rotate(var(--note-rotate));
}

.guestbook-board .guestbook-message::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: var(--pin-x);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #b65338;
  box-shadow:
    inset -2px -2px 2px rgba(93, 81, 67, 0.2),
    0 2px 3px rgba(93, 81, 67, 0.22);
}

.guestbook-board .guestbook-message:nth-child(3n)::before {
  background: #2f6f5d;
}

.guestbook-board .guestbook-message:nth-child(4n)::before {
  background: #d5a22c;
}

.guestbook-board .guestbook-message:nth-child(5n)::before {
  width: 32px;
  height: 12px;
  border-radius: 2px;
  background: rgba(232, 208, 164, 0.78);
  transform: translateX(-50%) rotate(-5deg);
}

.guestbook-board .guestbook-message::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(73, 49, 30, 0.05));
  pointer-events: none;
}

.guestbook-message p {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.guestbook-message footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--joy-muted);
  font-size: 13px;
}

.faq-item,
.explore-card {
  padding: 28px;
  border: 1px solid var(--joy-line);
  border-radius: 8px;
  background: var(--joy-panel);
}

.faq-item ul {
  margin: 4px 0 16px;
  padding-inline-start: 22px;
}

.explore-intro {
  width: min(100% - 48px, var(--joy-copy));
  margin: 48px auto 0;
  text-align: center;
}

.explore-category {
  margin: 34px 0 2px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  z-index: 4;
  max-width: 760px;
  margin: 4rem auto 0;
  padding: 0 2rem;
  color: var(--joy-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer__eyebrow {
  font-weight: 400;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.footer-links a {
  font-weight: 400;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.decor {
  position: fixed;
  z-index: 7;
  display: none;
  pointer-events: none;
  user-select: none;
}

.decor-israel {
  z-index: 3;
  width: clamp(120px, 17vw, 230px);
  opacity: 0.92;
  animation: israel-float 8s ease-in-out infinite;
  transform-origin: center;
}

.page-welcome .decor-israel--pomegranate,
.page-schedule .decor-israel--olive,
.page-photos .decor-israel--tile,
.page-faq .decor-israel--sun,
.page-gifts .decor-israel--hummus {
  display: block;
}

.decor-israel--pomegranate {
  right: max(18px, env(safe-area-inset-right));
  bottom: 7%;
  width: clamp(130px, 18vw, 230px);
  transform: rotate(-7deg);
}

.decor-israel--olive {
  top: 17%;
  left: -46px;
  width: clamp(135px, 15vw, 180px);
  transform: rotate(-9deg);
}

.decor-israel--tile {
  bottom: 12%;
  left: max(16px, env(safe-area-inset-left));
  width: clamp(110px, 15vw, 185px);
  transform: rotate(-13deg);
}

.decor-israel--sun {
  top: 20%;
  right: max(20px, env(safe-area-inset-right));
  width: clamp(110px, 15vw, 185px);
  transform: rotate(8deg);
}

.decor-israel--hummus {
  right: max(14px, env(safe-area-inset-right));
  bottom: 8%;
  width: clamp(140px, 19vw, 250px);
  transform: rotate(6deg);
}

@keyframes israel-float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-9px) rotate(-1deg);
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 48px 0 56px;
  }

  .joy-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    position: relative;
    margin-bottom: 36px;
    padding: 0 20px;
    text-align: left;
  }

  .event-title {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 36px;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
  }

  .nav-toggle {
    display: grid;
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 10px;
    place-items: center;
    gap: 6px;
    border: 1px solid var(--joy-line);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.42);
    color: var(--joy-text);
    cursor: pointer;
  }

  .language-toggle {
    position: static;
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    margin: 0;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .joy-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: none;
    width: min(100%, 340px);
    margin: 18px auto 0;
    padding: 18px 20px;
    flex-direction: column;
    gap: 14px;
    border: 1px solid var(--joy-line);
    border-radius: 8px;
    background: rgba(255, 250, 238, 0.86);
    box-shadow: 0 18px 38px rgba(14, 83, 106, 0.12);
  }

  body.nav-open .joy-nav {
    display: flex;
  }

  .joy-nav a {
    justify-content: center;
    min-height: 30px;
  }

  .joy-cover {
    border-radius: 18px;
  }

  .joy-cover--welcome,
  .joy-cover--schedule {
    width: calc(100% - 32px);
  }

  .joy-cover--welcome {
    aspect-ratio: 16 / 9;
  }

  .joy-cover--travel,
  .joy-cover--faq,
  .joy-cover--explore,
  .photo-collage {
    width: calc(100% - 32px);
  }

  .welcome-copy,
  .content-column,
  .schedule-list,
  .faq-list,
  .explore-list,
  .explore-intro,
  .gift-page {
    width: calc(100% - 40px);
    margin-top: 42px;
  }

  .welcome-copy p {
    font-size: 21px;
  }

  .page-title {
    font-size: 34px;
  }

  .schedule-date {
    margin-bottom: 42px;
    letter-spacing: 0.08em;
  }

  .schedule-timeline {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-inline-start: 18px;
  }

  .schedule-timeline::before {
    top: 30px;
    bottom: 32px;
    inset-inline: auto;
    inset-inline-start: 46px;
    width: 10px;
    height: auto;
    background: linear-gradient(180deg, #f4c64f 0%, #efa257 36%, #ce6555 67%, #2e3e78 100%);
    clip-path: polygon(
      30% 0, 70% 0, 92% 12%, 38% 22%, 80% 32%,
      22% 42%, 72% 52%, 28% 62%, 84% 72%, 36% 82%,
      70% 92%, 32% 100%, 8% 100%, 50% 92%, 16% 82%,
      58% 72%, 4% 62%, 46% 52%, 4% 42%, 62% 32%,
      20% 22%, 76% 12%, 30% 0
    );
    opacity: 0.46;
    filter: blur(1px);
  }

  html[dir="rtl"] .schedule-timeline::before {
    background: linear-gradient(180deg, #f4c64f 0%, #efa257 36%, #ce6555 67%, #2e3e78 100%);
  }

  html[dir="rtl"] .schedule-stop,
  html[dir="rtl"] .schedule-stop:nth-child(even),
  html[dir="rtl"] .schedule-stop:nth-child(odd) {
    transform: none;
  }

  .schedule-stop,
  .schedule-stop:nth-child(even) {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    transform: none;
    text-align: start;
  }

  .schedule-stop__marker {
    margin: 0;
  }

  .schedule-stop__content {
    min-height: 0;
    padding: 7px 0 0;
  }

  .schedule-stop__content > p {
    margin-inline: 0;
  }

  .content-section--icon {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .section-icon {
    width: 30px;
    height: 30px;
  }

  .icon {
    width: 23px;
    height: 23px;
  }

  .faq-item,
  .explore-card,
  .gift-card,
  .guestbook-form,
  .guestbook-message {
    padding: 22px;
  }

  .gift-options {
    grid-template-columns: 1fr;
  }

  .rsvp-page {
    width: calc(100% - 40px);
    margin-top: 42px;
  }

  .rsvp-card {
    padding: 28px 20px 30px;
    border-radius: 20px 12px 24px 14px;
  }

  .rsvp-card h2 {
    font-size: 26px;
  }

  .rsvp-choice-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-name-grid {
    grid-template-columns: 1fr;
  }

  .guestbook-page {
    width: calc(100% - 40px);
  }

  .guestbook-form {
    padding: 34px 22px 22px;
  }

  .guestbook-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 28px 22px 34px;
  }

  .guestbook-board .guestbook-message {
    width: min(100%, 240px);
    justify-self: center;
    margin: var(--note-margin);
    min-height: 128px;
    padding: 25px 14px 15px;
  }

  .guestbook-copy h2,
  .guestbook-wall h2 {
    font-size: 28px;
  }

  .decor-israel--pomegranate {
    right: -18px;
    bottom: 8%;
    width: 145px;
  }

  .decor-israel--olive {
    top: 17%;
    left: -38px;
    width: 135px;
  }

  .decor-israel--tile {
    bottom: 12%;
    left: -16px;
    width: 125px;
  }

  .decor-israel--sun {
    top: 18%;
    right: -12px;
    width: 120px;
  }

  .decor-israel--hummus {
    right: -18px;
    bottom: 8%;
    width: 155px;
  }

  .page-welcome .site-footer {
    margin-top: 9rem;
  }
}
