@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: 88px 0 72px;
}

.joy-header {
  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: 42px 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:focus {
  outline: none;
}

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

.external-nav {
  gap: 6px;
}

.nav-link-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.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--explore {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
}

.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 {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--joy-line);
  border-radius: 8px;
  background: var(--joy-panel);
}

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

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  border: 1px solid var(--joy-line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.58);
  color: var(--joy-text);
  font: inherit;
}

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

.guestbook-form textarea {
  min-height: 132px;
  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 {
  justify-self: start;
  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;
}

.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-message {
  padding: 22px;
  border: 1px solid var(--joy-line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.28);
}

.guestbook-message p {
  margin: 0 0 14px;
  white-space: pre-wrap;
}

.guestbook-message footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--joy-muted);
  font-size: 14px;
}

.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: 54px 0 56px;
  }

  .joy-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    position: relative;
    margin-bottom: 42px;
    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--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-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;
  }
}
