@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: 12px 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); }
}

.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;
  }
}
