/* Little Princess Rosie — mobile-first styles */
:root {
  --ivory: #fbf6ee;
  --cream: #f4ebdd;
  --blush: #f6e4e1;
  --rose: #b76e79;
  --gold: #b8913e;
  --gold-dark: #8a6a24;
  --ink: #3d2f2a;
  --muted: #6e5d55;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: max(2.5rem, env(safe-area-inset-top)) 1.25rem 2.5rem;
  background:
    radial-gradient(ellipse at top, rgba(246, 228, 225, .9), transparent 65%),
    var(--ivory);
  border-bottom: 1px solid rgba(184, 145, 62, .35);
}
.hero__crown { width: 150px; margin: 0 auto .5rem; }
.hero__title {
  font: 600 clamp(2.4rem, 11vw, 4.5rem)/1.05 var(--serif);
  color: var(--gold-dark);
  margin: 0 0 .5rem;
  letter-spacing: .01em;
}
.hero__tagline {
  font: italic 500 clamp(1.25rem, 5vw, 1.7rem)/1.3 var(--serif);
  color: var(--rose);
  margin: 0;
}
.divider {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  color: var(--gold); margin: 1.25rem auto; max-width: 260px; font-size: 1.1rem;
}
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero__intro { max-width: 34rem; margin: 0 auto 1.5rem; color: var(--muted); }
.hero__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; }
@media (min-width: 700px) { .hero__nav { gap: .75rem; } .hero__nav a { font-size: .85rem; padding: .7rem 1rem; letter-spacing: .12em; } }
.hero__nav a {
  text-decoration: none; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .7rem .7rem; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 999px; color: var(--gold-dark);
}
.hero__nav a:hover, .hero__nav a:focus-visible { background: var(--blush); }

/* ---------- Sections ---------- */
.section { padding: 3rem 1rem; text-align: center; }
.section--tinted { background: var(--cream); }
.section__title {
  font: 600 clamp(2rem, 8vw, 2.8rem)/1.1 var(--serif);
  color: var(--gold-dark); margin: 0 0 .4rem;
}
.section__lead { color: var(--muted); margin: 0 auto 1.75rem; max-width: 32rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem;
  max-width: 1400px; margin: 0 auto;
}
.gallery__item {
  display: block; overflow: hidden; border-radius: 10px;
  aspect-ratio: 3 / 4; background: var(--cream);
  box-shadow: 0 0 0 1px rgba(184, 145, 62, .35), 0 6px 18px rgba(61, 47, 42, .08);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Social ---------- */
.social {
  display: grid; grid-template-columns: 1fr; gap: .75rem;
  max-width: 22rem; margin: 0 auto;
}
.social__btn, .contact__btn {
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .8rem 1.25rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; letter-spacing: .04em;
  color: var(--gold-dark); background: var(--ivory);
  border: 1.5px solid var(--gold);
  transition: background .2s, color .2s;
}
.social__btn svg, .contact__btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.social__btn:hover, .social__btn:focus-visible,
.contact__btn:hover, .contact__btn:focus-visible { background: var(--gold); color: #fff; }

/* ---------- Contact ---------- */
.contact__btn { display: inline-flex; max-width: 100%; word-break: break-all; }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding: 2rem 1.25rem max(2rem, env(safe-area-inset-bottom));
  background: var(--ink); color: #eadfcf; font-size: .9rem;
}
.footer img { width: 72px; margin: 0 auto .75rem; }
.footer p { margin: .25rem auto; max-width: 36rem; }
.footer__notice { font-size: .8rem; color: #c9b9a6; font-style: italic; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(30, 22, 19, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 94vw; max-height: 86vh; width: auto; border-radius: 8px; }
.lightbox__btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(251, 246, 238, .9); color: var(--gold-dark);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox__close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .hero { padding-top: 4rem; padding-bottom: 3.5rem; }
  .hero__crown { width: 190px; }
  .section { padding: 4.5rem 2rem; }
  .gallery { gap: 1rem; }
  .social { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); max-width: 40rem; }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery__item img { transition: none; }
}
