@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500;1,600&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --blue: #2858b9;
  --button: #b9dcf4;
  --cream: #fcfaf2;
  --text: #111;
  --soft: #f4eee7;
  --shadow: 0 10px 28px rgba(40, 88, 185, .10);
  --radius: 999px;
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; background: #eef0f4; }
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #eef0f4;
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
  overflow-x: hidden;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Phone-friendly master canvas: centred and constrained like a mobile guest guide. */
#app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  flex: 1;
  background: var(--cream);
  box-shadow: 0 0 40px rgba(0,0,0,.08);
  overflow: hidden;
}

.page {
  min-height: calc(100vh - 76px);
  padding: 38px 24px 42px;
  position: relative;
  overflow: hidden;
  animation: pageIn .585s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title {
  margin: 0;
  color: var(--blue);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(44px, 12vw, 58px);
  line-height: .92;
  text-align: center;
  letter-spacing: -.025em;
}

.page-subtitle {
  margin: 26px 0 44px;
  color: var(--blue);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(29px, 8vw, 38px);
  line-height: 1;
  text-align: center;
}

.home .page-title { margin-top: 8px; }

.home-buttons {
  width: 100%;
  max-width: 365px;
  margin: 0 auto;
  display: grid;
  gap: 17px;
}

.guide-button,
.home-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 13px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--button);
  color: #0d0d0d;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.guide-button:hover,
.home-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: #add5f0;
}

.guide-button:active,
.home-button:active { transform: translateY(0); }

/* Home animation: 30% slower than the original timing. */
.home { animation-duration: .585s; }
.home .stagger > * {
  opacity: 0;
  animation: itemIn .585s ease forwards;
}
.home .stagger > *:nth-child(1) { animation-delay: .13s; }
.home .stagger > *:nth-child(2) { animation-delay: .234s; }
.home .stagger > *:nth-child(3) { animation-delay: .338s; }
.home .stagger > *:nth-child(4) { animation-delay: .442s; }
.home .stagger > *:nth-child(5) { animation-delay: .546s; }
.home .stagger > *:nth-child(6) { animation-delay: .65s; }
.home .stagger > *:nth-child(7) { animation-delay: .754s; }

.stagger > * {
  opacity: 0;
  animation: itemIn .585s ease forwards;
}
.stagger > *:nth-child(1) { animation-delay: .13s; }
.stagger > *:nth-child(2) { animation-delay: .234s; }
.stagger > *:nth-child(3) { animation-delay: .338s; }
.stagger > *:nth-child(4) { animation-delay: .442s; }
.stagger > *:nth-child(5) { animation-delay: .546s; }
.stagger > *:nth-child(6) { animation-delay: .65s; }
.stagger > *:nth-child(7) { animation-delay: .754s; }

@keyframes itemIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Flexible House Guide cards: 3–6 items in the master data.
   One card per row on phones for comfortable tapping; the grid can expand
   to two columns on wider screens without changing the data model. */
.guide-grid {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.guide-card {
  min-height: 96px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 24px;
  background: var(--button);
  color: #111;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: #add5f0;
}

.guide-card-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.guide-card-description {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.35;
  opacity: .82;
}

.guide-card-action {
  margin-top: 2px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.guide-placeholder {
  background: #e9f1f6;
  border: 1px dashed rgba(40,88,185,.28);
}

.house-guide-page .page-subtitle {
  margin-bottom: 30px;
}

.house-guide-page .back-row {
  margin-top: 28px;
}

@media (min-width: 600px) {
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer {
  width: 100%;
  max-width: 430px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px 22px;
  background: var(--cream);
  color: var(--blue);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.1;
  text-align: center;
}

.nav-row {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.nav-button { max-width: 260px; }

.host-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin: 24px auto 30px;
  max-width: 380px;
}

.host-heading {
  margin: 0;
  color: var(--blue);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(44px, 12vw, 58px);
  font-weight: 500;
  line-height: .82;
  letter-spacing: .03em;
}

.host-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #e9e9e9;
}

.host-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  text-align: center;
}

.welcome-copy {
  max-width: 380px;
  margin: 0 auto;
  color: var(--blue);
  font-size: 19px;
  line-height: 1.48;
  text-align: center;
}

.decorative-leaf {
  position: absolute;
  left: 3%;
  top: 30%;
  width: 100px;
  height: 210px;
  opacity: .05;
  border-left: 3px solid var(--blue);
  border-radius: 60% 0 0 60%;
  transform: rotate(-25deg);
  pointer-events: none;
}

.hero-image,
.hero-placeholder {
  width: calc(100% + 48px);
  margin-left: -24px;
  height: 205px;
  object-fit: cover;
  display: block;
}

.hero-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f4eee7, #e9e5dc);
  color: var(--blue);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
}

.section-title {
  margin: 28px 0 34px;
  color: var(--blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(36px, 10vw, 48px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.contact-list {
  display: grid;
  gap: 16px;
  max-width: 380px;
  margin: 0 auto;
}

.contact-card {
  background: var(--soft);
  padding: 19px 16px;
  text-align: center;
}

.contact-label {
  color: var(--blue);
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 7px;
}

.contact-value,
.contact-value a {
  color: var(--blue);
  font-size: 21px;
  line-height: 1.25;
  text-decoration: none;
}

.back-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.back-button { max-width: 260px; }

@media (min-width: 700px) {
  #app { border-radius: 0; }
}

@media (max-width: 430px) {
  body { background: var(--cream); }
  #app { box-shadow: none; }
  .page { min-height: auto; padding: 34px 22px 40px; }
  .page-subtitle { margin-bottom: 40px; }
  .home-buttons { gap: 16px; }
  .guide-button, .home-button { min-height: 60px; padding: 13px 16px; font-size: 18px; }
  .footer { font-size: 21px; }
}

@media (max-width: 360px) {
  .page { padding-left: 18px; padding-right: 18px; }
  .page-title { font-size: 42px; }
  .page-subtitle { font-size: 28px; }
  .guide-button, .home-button { font-size: 17px; }
  .home-buttons { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.welcome-placeholder {
  opacity: .55;
  font-style: italic;
}

.contact-value a {
  color: inherit;
  text-decoration: none;
}

.contact-value a:hover,
.contact-value a:focus-visible {
  text-decoration: underline;
}

.contact-empty {
  opacity: .45;
  font-size: 12px;
}

/* House Rules & Extra Charges page — inspired by the supplied poster. */
.rules-page {
  padding: 18px 12px 34px;
  background: #fffdf8;
}

.rules-header {
  width: 92%;
  margin: 0 auto 16px;
  padding: 9px 12px 12px;
  border-radius: 40px;
  background: #8f4d3d;
  color: #fff;
  text-align: center;
  box-shadow: 0 3px 0 rgba(0,0,0,.04);
}
.rules-header h1 {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(27px, 7vw, 38px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
}
.rules-header-zh {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.rules-list {
  display: grid;
  gap: 9px;
}
.rule-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 10px;
  border-radius: 22px;
  background: #f6f1e9;
}
.rule-card-1 { background: #fbf3e8; }
.rule-card-2 { background: #fbf3e8; }
.rule-card-3 { background: #fbf3e8; }
.rule-card-4 { background: #cfe9fb; }
.rule-card-5 { background: #dff1cf; }
.rule-card-6 { background: #e6dcfb; }
.rule-card-7 { background: #fbefbd; }
.rule-card-8 { background: #d5f0f2; }
.rule-card-9 { background: #f7d9e2; }
.rule-card-10 { background: #cfe9f5; }

.rule-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  line-height: 1;
}
.rule-copy { min-width: 0; }
.rule-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}
.rule-ms {
  margin-top: 3px;
  color: #2858b9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.18;
}
.rule-zh {
  margin-top: 2px;
  color: #75422f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
}
.rule-note {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}
.rule-charge {
  align-self: center;
  min-width: 78px;
  max-width: 118px;
  padding: 9px 11px;
  border-radius: 22px;
  background: #f54b62;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
  box-shadow: 0 2px 0 rgba(0,0,0,.03);
}
.charge-value { display: block; }
.charge-placeholder { opacity: .98; }
.rules-thankyou {
  margin: 18px 0 8px;
  color: #f0a021;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}
.rules-thankyou span { padding: 0 5px; }
.rules-back { margin-top: 8px; }
.rules-back .home-button { max-width: 250px; }

@media (max-width: 390px) {
  .rules-page { padding-left: 9px; padding-right: 9px; }
  .rule-card { grid-template-columns: 52px minmax(0,1fr) auto; gap: 7px; padding: 9px 8px; }
  .rule-icon { width: 50px; height: 50px; font-size: 35px; }
  .rule-title { font-size: 14px; }
  .rule-ms, .rule-zh { font-size: 11px; }
  .rule-charge { min-width: 70px; max-width: 102px; padding: 8px 8px; font-size: 13px; }
}
