@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Libre+Franklin:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Libre Franklin', sans-serif; background: #F3ECDC; color: #27284E; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: 'Fraunces', serif; }
a { text-decoration: none; }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(39,40,78,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(243,236,220,0.1);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: #F3ECDC; border-radius: 2px; transition: transform .3s cubic-bezier(0.16,1,0.3,1), opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }
.nav-link { color: #F3ECDC; opacity: 0.82; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: opacity .15s ease, border-color .15s ease; }
.nav-link:hover, .nav-link-active { color: #F3ECDC; opacity: 1; border-color: #56BE8C; }
.nav-link-active { border-bottom: 1px solid #56BE8C; }
.ink-link { color: #27284E; border-bottom: 1px solid #27284E; padding-bottom: 1px; transition: opacity .15s ease; }
.ink-link:hover { opacity: 0.6; }
.wine-link { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .15s ease; }
.wine-link:hover { opacity: 0.7; }
.footer-link { color: #B9B8D6; transition: color .15s ease; }
.footer-link:hover { color: #F3ECDC; }
::selection { background: #E89524; color: #F3ECDC; }
/* Reveal-on-scroll: each direct child of a .reveal block cascades in on its
   own, instead of the whole block moving as one slab. Grid rows (grid-2/3/4)
   go a level deeper so their cells stagger individually. Both the "hidden"
   and "settled" rules wrap only the .reveal/.reveal.is-visible ancestor in
   :where() (zero specificity there), so the two stay tied on their own
   specificity and resolve by source order (settled comes second = wins at
   rest) while any real component rule — .tile:hover, .btn:hover — is more
   specific than either and always wins over both. */
:where(.reveal) > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1);
}
:where(.reveal.is-visible) > * { opacity: 1; transform: none; }
.reveal > *:nth-child(1) { transition-delay: 0s; }
.reveal > *:nth-child(2) { transition-delay: .09s; }
.reveal > *:nth-child(3) { transition-delay: .18s; }
.reveal > *:nth-child(4) { transition-delay: .27s; }
.reveal > *:nth-child(n+5) { transition-delay: .34s; }

:where(.reveal) .grid-2 > *, :where(.reveal) .grid-3 > *, :where(.reveal) .grid-4 > * {
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .55s cubic-bezier(0.16,1,0.3,1), transform .55s cubic-bezier(0.16,1,0.3,1);
}
:where(.reveal.is-visible) .grid-2 > *, :where(.reveal.is-visible) .grid-3 > *, :where(.reveal.is-visible) .grid-4 > * { opacity: 1; transform: none; }
.reveal .grid-2 > *:nth-child(1), .reveal .grid-3 > *:nth-child(1), .reveal .grid-4 > *:nth-child(1) { transition-delay: .05s; }
.reveal .grid-2 > *:nth-child(2), .reveal .grid-3 > *:nth-child(2), .reveal .grid-4 > *:nth-child(2) { transition-delay: .11s; }
.reveal .grid-3 > *:nth-child(3), .reveal .grid-4 > *:nth-child(3) { transition-delay: .17s; }
.reveal .grid-4 > *:nth-child(4) { transition-delay: .23s; }
.reveal .grid-4 > *:nth-child(5) { transition-delay: .29s; }
.reveal .grid-4 > *:nth-child(6) { transition-delay: .35s; }
.reveal .grid-4 > *:nth-child(7) { transition-delay: .41s; }
.reveal .grid-4 > *:nth-child(8) { transition-delay: .47s; }

/* Letter-by-letter entrance wiggle for the hero headline. script.js splits
   .wiggle-text into per-character spans (real spaces stay as text nodes so
   the line still wraps normally) and adds .wiggle-in once the hero scrolls
   into view; each letter then pops up and settles with a springy overshoot,
   staggered by --i. Degrades gracefully with no JS: plain text, no spans. */
.wiggle-text span { display: inline-block; opacity: 0; transform: translateY(22px) rotate(-9deg); }
.wiggle-text.wiggle-in span {
  animation: letterWiggleIn .6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 0.03s);
}
@keyframes letterWiggleIn {
  0% { opacity: 0; transform: translateY(22px) rotate(-9deg); }
  55% { opacity: 1; transform: translateY(-5px) rotate(4deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.btn { transition: transform .3s cubic-bezier(0.16,1,0.3,1), box-shadow .3s cubic-bezier(0.16,1,0.3,1); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(39,40,78,0.5); }
.btn:active { transform: translateY(-1px); transition-duration: .1s; }
.tile { transition: transform .5s cubic-bezier(0.16,1,0.3,1); overflow: hidden; }
.tile:hover { transform: scale(1.035); }
.tile img, .photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(0.16,1,0.3,1); }
.photo-frame:hover img { transform: scale(1.045); }
.field-label, .field-label-dark { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.2px; margin-bottom: 8px; }
.field-label { color: #3A3A55; }
.field-label-dark { color: #B9B8D6; }
.field-input { width: 100%; min-height: 48px; font: 400 15px 'Libre Franklin', sans-serif; color: #27284E; background: #FBF8F1; border: 1px solid #C7C3D9; border-radius: 2px; padding: 13px 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.field-input:focus { outline: none; border-color: #E89524; box-shadow: 0 0 0 3px rgba(232,149,36,.14); }
.field-input::placeholder { color: #8C8AA3; }
.field-input[type="file"] { padding: 9px 12px; }
.field-input[type="file"]::file-selector-button { margin-right: 12px; border: 0; border-radius: 2px; background: #D8D5E6; color: #27284E; padding: 8px 12px; font: 600 13px 'Libre Franklin', sans-serif; cursor: pointer; }
.field-label-dark + .field-input { background: #F3ECDC; border-color: #46476B; }
.field-label-dark + .field-input:focus { border-color: #56BE8C; box-shadow: 0 0 0 3px rgba(86,190,140,.16); }
.field-label-dark + .field-input::placeholder { color: #8482A0; }
select.field-input { appearance: auto; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-title { font-size: 52px !important; }
  .section-title { font-size: 34px !important; }
  .hide-mobile { display: none !important; }
  .menu-toggle { display: flex; }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(39,40,78,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(243,236,220,0.1);
    padding: 4px 48px 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s cubic-bezier(0.16,1,0.3,1), visibility 0s linear .25s;
  }
  .mobile-nav a { padding: 14px 2px; border-bottom: 1px solid rgba(243,236,220,0.1); }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s cubic-bezier(0.16,1,0.3,1), visibility 0s linear 0s;
  }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal > *, .reveal .grid-2 > *, .reveal .grid-3 > *, .reveal .grid-4 > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .tile:hover, .photo-frame:hover img { transform: none !important; }
  .wiggle-text span { opacity: 1 !important; transform: none !important; animation: none !important; }
}
