@font-face {
  font-family: "CH Mesa";
  src: url("/assets/CHMesa.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Averia Serif Libre";
  src: url("/assets/averia-serif-libre-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Averia Serif Libre";
  src: url("/assets/averia-serif-libre-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("/assets/karla-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("/assets/karla-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --joy-bg: #f4e6d7;
  --joy-text: #5d5143;
  --joy-muted: #74675a;
  --joy-line: rgba(93, 81, 67, 0.32);
  --joy-panel: rgba(255, 250, 242, 0.38);
  --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: var(--joy-bg);
  color: var(--joy-text);
  font-family: "Karla", Arial, sans-serif;
  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: "CH Mesa", Georgia, serif;
  font-size: 56px;
  line-height: 1.25;
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.joy-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 26px;
  margin: 34px auto 60px;
  padding: 0 18px;
  color: var(--joy-text);
  font-family: "Karla", Arial, sans-serif;
  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-text);
}

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

.joy-cover {
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(93, 81, 67, 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: 1024 / 600;
}

.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 {
  width: min(100% - 48px, var(--joy-copy));
  margin: 58px auto 0;
}

.welcome-copy {
  text-align: center;
  font-family: "Averia Serif Libre", Georgia, "Times New Roman", serif;
}

.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: "Averia Serif Libre", Georgia, "Times New Roman", serif;
  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 {
  margin: 0 0 12px;
  font-family: "Averia Serif Libre", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}

.content-section p,
.schedule-card p,
.faq-item p,
.explore-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;
}

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

.schedule-list {
  display: grid;
  gap: 18px;
}

.schedule-date {
  margin: 46px 0 6px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.schedule-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border: 1px solid var(--joy-line);
  border-radius: 8px;
  background: var(--joy-panel);
}

.schedule-when {
  padding-left: 28px;
  color: var(--joy-muted);
  font-family: "Averia Serif Libre", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.schedule-when p {
  margin: 0 0 6px;
}

.schedule-card > div:last-child {
  padding-right: 28px;
}

.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: "Karla", Arial, sans-serif;
  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;
}

.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: "Averia Serif Libre", Georgia, "Times New Roman", serif;
  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-left: 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: "Karla", Arial, sans-serif;
  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: 3;
  display: none;
  pointer-events: none;
  user-select: none;
}

.decor-palms {
  z-index: 5;
  right: -18px;
  top: 34%;
  width: clamp(150px, 22vw, 280px);
}

.decor-bougainvillea {
  z-index: 5;
  left: -28px;
  bottom: -22px;
  width: clamp(160px, 24vw, 320px);
}

.decor-banana {
  left: -24px;
  top: 128px;
  width: clamp(150px, 22vw, 300px);
}

.decor-chicharon {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: clamp(130px, 20vw, 260px);
  animation: chicharon-wiggle 3.8s ease-in-out infinite;
  transform-origin: 55% 72%;
}

.page-welcome .decor-palms,
.page-welcome .decor-bougainvillea,
.page-faq .decor-palms,
.page-faq .decor-bougainvillea,
.page-travel .decor-palms,
.page-travel .decor-banana,
.page-schedule .decor-banana,
.page-explore .decor-chicharon {
  display: block;
}

@keyframes chicharon-wiggle {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) translateX(-3px) rotate(-2.4deg);
  }
  55% {
    transform: translateY(3px) translateX(2px) rotate(1.8deg);
  }
  78% {
    transform: translateY(-3px) translateX(1px) rotate(-0.9deg);
  }
}

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

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

  .event-title {
    display: block;
    font-size: 34px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .nav-toggle {
    display: grid;
    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;
  }

  .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;
    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, 242, 0.58);
    box-shadow: 0 18px 38px rgba(93, 81, 67, 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 {
    width: calc(100% - 40px);
    margin-top: 42px;
  }

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

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

  .schedule-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
  }

  .schedule-when,
  .schedule-card > div:last-child {
    padding: 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,
  .guestbook-form,
  .guestbook-message {
    padding: 22px;
  }

  .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-palms {
    width: 130px;
    right: -36px;
    top: 38%;
  }

  .decor-bougainvillea {
    width: 145px;
    left: -38px;
    bottom: -24px;
  }

  .decor-banana {
    width: 135px;
    left: -34px;
    top: 112px;
  }

  .decor-chicharon {
    width: 130px;
    right: 12px;
    bottom: 12px;
  }

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