*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #111;
  --paper: #fff;
  --muted: #555;
  --soft: #f7f7f5;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}


/* ── Cat cursor & paw trail ── */

html.has-cat-cursor,
html.has-cat-cursor * {
  cursor: none !important;
}

.cat-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  filter: drop-shadow(0 1px 0 var(--ink));
}

.cat-cursor.is-active {
  opacity: 1;
}

.cat-cursor img {
  display: block;
  width: auto;
  height: auto;
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.paw-trail {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.paw-print {
  position: fixed;
  width: 22px;
  height: 26px;
  pointer-events: none;
  color: var(--ink);
  animation: paw-burst 1s ease-out forwards;
}

.paw-print .paw-shape {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
          drop-shadow(0 0 4px rgba(160, 160, 160, 0.55));
  animation: paw-shimmer 1s ease-out forwards;
}

.paw-print .sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  pointer-events: none;
  animation: sparkle-burst 0.9s ease-out forwards;
}

.paw-print .sparkle::before {
  content: '✦';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  line-height: 1;
  color: var(--ink);
  text-shadow:
    0 0 1px #fff,
    0 0 3px #fff,
    0 0 6px rgba(255, 255, 255, 1),
    0 0 10px rgba(180, 180, 180, 0.85);
}

@keyframes paw-burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.35) rotate(var(--rot, 0deg));
  }
  40% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg));
  }
}

@keyframes paw-shimmer {
  0%, 100% {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
            drop-shadow(0 0 3px rgba(255, 255, 255, 0.55));
  }
  30% {
    filter: drop-shadow(0 0 2px #fff)
            drop-shadow(0 0 6px rgba(255, 255, 255, 1))
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
  }
  60% {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7))
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.45));
  }
}

@keyframes sparkle-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--sx, 0px)),
      calc(-50% + var(--sy, 0px))
    ) scale(0.3) rotate(180deg);
  }
}

/* ── Hero ── */

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
}

.hero-top {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    margin-bottom: 1.25rem;
  }

  .polaroid-hero {
    margin-bottom: 0.35rem;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 768px) {
  .hero-copy {
    max-width: none;
    justify-self: start;
  }
}

.eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.1rem, 9vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 0 0 1.75rem;
}

.invite-lines {
  margin: 0 0 1.35rem;
}

.invite-line {
  display: block;
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
  font-size: clamp(0.68rem, 1.8vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.32;
}

.invite-line + .invite-line {
  margin-top: 0.2rem;
}

@media (min-width: 480px) {
  .invite-line {
    white-space: nowrap;
  }
}

.location-tag {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ── Postcard photos ── */

.polaroid,
.postcard-photo {
  margin: 0;
  background: #f6f2ea;
  border: 1px solid var(--ink);
  padding: 0.5rem;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.14);
  position: relative;
}

.postcard-photo-frame {
  position: relative;
  overflow: hidden;
}

.polaroid img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.4s ease;
  border: 1px solid rgba(17, 17, 17, 0.2);
}

.polaroid.is-in-view img {
  filter: grayscale(0%) contrast(1);
}

@media (hover: hover) {
  .polaroid:hover img {
    filter: grayscale(0%) contrast(1);
  }
}

.postcard-label {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  left: auto;
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  pointer-events: none;
}

.postmark-group {
  position: absolute;
  bottom: 1.1rem;
  right: 1rem;
  left: auto;
  width: 7rem;
  height: 4.25rem;
  pointer-events: none;
  z-index: 2;
}

.postmark-group-alt {
  right: 1rem;
  left: auto;
}

.postmark-waves {
  position: absolute;
  left: 0;
  right: 3.85rem;
  top: 50%;
  width: auto;
  height: 2.75rem;
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.68;
  z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cpath d='M0 5 C18 1 32 9 58 5 S98 1 120 5' fill='none' stroke='%23111' stroke-width='1.45' stroke-linecap='round'/%3E%3Cpath d='M0 13 C20 9 34 17 60 13 S96 9 120 13' fill='none' stroke='%23111' stroke-width='1.45' stroke-linecap='round'/%3E%3Cpath d='M0 21 C16 17 36 25 54 21 S92 17 120 21' fill='none' stroke='%23111' stroke-width='1.45' stroke-linecap='round'/%3E%3Cpath d='M0 29 C22 25 30 33 62 29 S88 25 120 29' fill='none' stroke='%23111' stroke-width='1.45' stroke-linecap='round'/%3E%3Cpath d='M0 37 C14 33 38 41 56 37 S94 33 120 37' fill='none' stroke='%23111' stroke-width='1.45' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mix-blend-mode: multiply;
}

.postmark-waves-alt {
  transform: translateY(-50%) rotate(6deg);
}

.postcard-postmark {
  position: absolute;
  right: 0.15rem;
  bottom: 0.15rem;
  width: 3.85rem;
  height: 3.85rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  opacity: 0.62;
  transform: rotate(8deg);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.85);
  mix-blend-mode: multiply;
  color: var(--ink);
  z-index: 2;
}

.postmark-group-alt .postcard-postmark {
  right: 0.15rem;
  left: auto;
  transform: rotate(-6deg);
}

.postmark-top {
  font-size: 0.34rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
  max-width: 3.6rem;
  margin-bottom: 0.2rem;
  opacity: 0.9;
}

.postmark-bottom {
  font-size: 0.3rem;
  letter-spacing: 0.08em;
  margin-top: 0.1rem;
  opacity: 0.88;
}

.polaroid-hero {
  transform: rotate(2deg);
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}

.polaroid-tilt-left {
  transform: rotate(-3deg);
  width: 100%;
  max-width: min(100%, 455px);
  margin: 0 auto;
}

.polaroid-tilt-right {
  transform: rotate(2.5deg);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.photo-row {
  display: grid;
  grid-template-columns: minmax(0, 455px) minmax(0, 300px);
  justify-content: center;
  gap: 1.25rem;
  margin: -0.5rem auto 2rem;
  align-items: end;
}

@media (max-width: 639px) {
  .photo-row {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
  }

  .polaroid-tilt-left {
    max-width: 340px;
  }

  .polaroid-tilt-right {
    max-width: 300px;
  }
}

@media (min-width: 640px) {
  .photo-row {
    gap: 2rem;
    margin-top: 0.5rem;
  }

  .polaroid-tilt-left {
    transform: rotate(-3deg) translateY(-3.75rem);
  }

  .polaroid-tilt-right {
    margin-top: 0.75rem;
  }
}

/* ── Sections ── */

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  position: relative;
}

.details {
  border-top: 1px solid var(--ink);
  background: var(--soft);
}

.postcard-stamp {
  position: absolute;
  top: 2.5rem;
  right: 1.25rem;
  width: clamp(68px, 12vw, 88px);
  height: auto;
  display: block;
  transform: rotate(4deg);
  filter: grayscale(100%) contrast(1.08);
  transition: filter 0.4s ease;
}

.postcard-stamp.is-in-view {
  filter: grayscale(0%) contrast(1);
}

@media (hover: hover) {
  .postcard-stamp:hover {
    filter: grayscale(0%) contrast(1);
  }
}

.postcard-stamp.stamp-2 {
  width: clamp(92px, 16vw, 118px);
  transform: rotate(-3deg);
}

.section-title {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

/* ── Event cards ── */

.events-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.event-card,
.hotel-card {
  border: 1px solid var(--ink);
  padding: 1.5rem;
  background: var(--paper);
}

.event-card h3,
.hotel-card h3 {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.event-card p,
.hotel-card p {
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.85;
}

.event-date {
  font-weight: 600;
}

.event-time {
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.85;
}

.venue-name,
.venue-desc,
.venue-address,
.travel-card p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.55;
}

.venue-name {
  font-weight: 600;
  font-style: italic;
  margin-top: 0.75rem;
}

.venue-desc {
  font-style: italic;
  color: var(--muted);
  margin-top: 0.35rem;
}

.venue-address {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

.link-inline {
  margin-bottom: 0.75rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.travel-card {
  border: 1px solid var(--ink);
  padding: 1.5rem;
  background: var(--paper);
  margin-bottom: 1.5rem;
}

.travel-card h3 {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.travel-card p {
  margin-bottom: 0.75rem;
  max-width: 40rem;
}

.travel-card strong {
  font-weight: 600;
}

.hotel-photo {
  margin: 0 0 1.25rem;
  border: 1px solid var(--ink);
  overflow: hidden;
  line-height: 0;
}

.hotel-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.hotel-photo.is-in-view img {
  filter: grayscale(0%);
}

@media (hover: hover) {
  .hotel-photo:hover img {
    filter: grayscale(0%);
  }
}

.dress-code {
  margin-top: 0.75rem;
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.9rem, 2vw, 1rem) !important;
  letter-spacing: 0.06em !important;
  text-transform: none !important;
}

.hotel-card p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 36rem;
}

.link {
  display: inline-block;
  color: var(--ink);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.link:hover {
  opacity: 0.55;
}

/* ── Santa Fe recs ── */

.santa-fe {
  border-top: 1px solid var(--ink);
}

.grid.two-col {
  display: grid;
  gap: 3rem;
}

@media (min-width: 640px) {
  .grid.two-col {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.subsection-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
}

.rec-intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0.25rem 0 0;
}

.rec-intro a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.rec-intro a:hover {
  opacity: 0.55;
}

.rec-list {
  list-style: none;
}

.rec-list li {
  margin-bottom: 1.25rem;
}

.rec-list strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.rec-list span {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ── Footer ── */

footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3.5rem;
  border-top: 1px solid var(--ink);
}

.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  margin-bottom: 0.15rem;
}

.mobile-cat-peek {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 9998;
  pointer-events: none;
  transform: translateX(-50%) translateY(105%);
  transition: transform 0.5s cubic-bezier(0.34, 1.15, 0.64, 1);
  filter: drop-shadow(0 1px 0 var(--ink));
}

.mobile-cat-peek.is-visible {
  transform: translateX(-50%) translateY(8%);
}

.mobile-cat-peek img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(42vw, 180px);
  max-height: 200px;
  object-fit: contain;
}

.mobile-cat-peek.is-billy img {
  max-width: min(36vw, 150px);
  max-height: 240px;
}

.footer-cats {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  background: none;
  border: none;
  padding: 0.15rem 0;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
  .footer-cats {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(85, 85, 85, 0.35);
    text-underline-offset: 3px;
  }

  .footer-cats:active {
    opacity: 0.65;
  }
}

@media (hover: hover) {
  .footer-cats {
    cursor: default;
    pointer-events: none;
  }

  .mobile-cat-peek {
    display: none;
  }
}

.footer-date,
.footer-credit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--muted);
}

.footer-date {
  font-size: 0.9rem;
}

.footer-credit {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
}
