:root {
  --pink: #ff6f91;
  --pink-light: #ffe1eb;
  --lavender: #a685e2;
  --mint: #3ec9a7;
  --gold: #ffc857;
  --ink: #3a2e50;
  --btn-ink: #1f1638;
  --paper: #fffaf5;
  --card-shadow: 0 8px 24px rgba(58, 46, 80, 0.12);
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--pink-light) 0%, var(--paper) 320px);
  line-height: 1.5;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

h1, h2 {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
}

/* ---- Header ---- */

.hero {
  text-align: center;
  padding: 32px 16px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.confetti {
  font-size: 1.5rem;
  letter-spacing: 8px;
  margin-bottom: 8px;
}

.photo-frame {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--card-shadow), 0 0 0 4px var(--gold);
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-fallback {
  display: none;
  font-size: 5rem;
  color: #fff;
}

/* Shown only if the photo fails to load (see index.html onerror handler) */
.photo-frame.photo-missing .hero-photo { display: none; }
.photo-frame.photo-missing .photo-fallback { display: block; }

h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--pink);
}

/* ---- Cards ---- */

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 22px 20px;
  margin-bottom: 18px;
}

.card h2 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon { font-size: 1.2em; }

.big-line {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 4px 0;
}

.weather-note {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 12px 0 0;
}

/* ---- Map ---- */

.map {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  margin: 14px 0;
  background: #eee;
  display: none; /* shown by script.js once the map initializes */
}

.map.is-ready { display: block; }

.map-fallback {
  background: var(--pink-light);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  font-size: 0.95rem;
}

.map-fallback.is-hidden { display: none; }

.maps-label {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0 0 8px;
}

.location-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.card a.loc-btn {
  display: block;
  text-align: center;
  background: var(--mint);
  color: var(--btn-ink);
  text-decoration: none;
  font-weight: 800;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 1.05rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.loc-btn:active { transform: scale(0.98); opacity: 0.9; }

.loc-btn:nth-of-type(1) { background: var(--lavender); }
.loc-btn .btn-sub { font-weight: 600; font-size: 0.85em; opacity: 0.9; }

.backup-link {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.7;
  text-decoration: underline;
  margin: -4px 0 4px;
}

.note {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 14px 0 0;
}

.note a.subtle-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.note a.subtle-link:hover,
.note a.subtle-link:focus-visible {
  opacity: 0.8;
}

/* ---- Contact ---- */

.contact-line {
  font-size: 1.1rem;
  margin: 6px 0;
}

.contact-line a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}

/* ---- Links in body text ---- */

.card a {
  color: var(--pink);
  font-weight: 700;
}

/* ---- Footer ---- */

footer {
  text-align: center;
  padding: 16px;
  color: var(--ink);
  opacity: 0.7;
  font-weight: 600;
}

@media (max-width: 380px) {
  h1 { font-size: 1.7rem; }
  .photo-frame { width: 160px; height: 160px; }
}

/* ---- Photo modal ---- */

body.modal-open { overflow: hidden; }

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-modal[hidden] { display: none; }

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 46, 80, 0.8);
}

.photo-modal-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 640px);
  max-height: 85vh;
}

.photo-modal-content img {
  display: block;
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.photo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}
