@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Italiana&display=swap");
/* Container for PNG icons - Backgrounds removed */
.detail-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Removed border-radius and background colors */
  background: transparent !important;
}

/* Remove the color override on the middle item */
.detail-grid article:nth-child(2) .detail-icon {
  background: transparent !important;
}

/* PNG Image Styling */
.detail-icon img {
  width: 100%;        /* Allows your image background to fill the space */
  height: 100%;       
  object-fit: contain;
  display: block;
}
.invitation-photo {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 30px;
  margin-bottom: 30px;
  
  max-width: 70%;
  height: auto;
  width: 400px; /* Adjust size as needed */
  
  /* Removed border-radius and box-shadow to fit transparent PNGs */
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}
:root {
  --ink: #24364b;
  --pink: #eeb7bd;
  --blue: #a9c8d8;
  --cream: #fbf8f1;
  --paper: #fffdf8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

/* Page Width Constraints */
.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 0 6vw;
  background: linear-gradient(
    90deg,
    #f8e4e2 0%,
    #f8e4e2 50%,
    #e5f1f4 50%,
    #e5f1f4 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.27;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}

/* Navigation */
nav {
  position: relative;
  z-index: 3;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(36, 54, 75, 0.12);
}

.brand {
  font-family: "Italiana", serif;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand span,
.footer-mark span {
  margin: 0 5px;
  color: #cf7887;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a:hover {
  opacity: 0.55;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(700px, 90%);
  margin: clamp(50px, 8vh, 100px) auto 60px;
  text-align: center;
}

.eyebrow {
  color: #768496;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 22px 0;
  font-family: "Italiana", serif;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(48px, 6vw, 90px);
}

h1 em {
  color: #b36978;
  font-style: normal;
}

.intro {
  max-width: 550px;
  margin: 30px auto;
  color: #5f6f7f;
  font-size: 15px;
  line-height: 1.8;
}

/* Date Lockup */
.date-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 34px 0;
  color: #718092;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.date-lockup strong {
  padding: 0 16px;
  border-right: 1px solid #abb5be;
  border-left: 1px solid #abb5be;
  color: var(--ink);
  font-family: "Italiana", serif;
  font-size: 35px;
  font-weight: 400;
}

/* Buttons */
.primary {
  min-height: 54px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: 600 11px "DM Sans", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform 0.25s, box-shadow 0.25s;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(36, 54, 75, 0.22);
}

.primary span {
  font-size: 18px;
}

/* Decorative Elements */
.moon {
  position: absolute;
  z-index: 1;
  top: 27%;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #f6f0d6;
  box-shadow: -25px 20px 80px rgba(179, 148, 91, 0.15);
}

.moon::after {
  content: "";
  position: absolute;
  top: -15px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #e5f1f4;
}

.star {
  position: absolute;
  z-index: 1;
  color: #b58d68;
}

.star-one { top: 25%; left: 8%; }
.star-two { top: 48%; left: 12%; font-size: 24px; }
.star-three { right: 10%; bottom: 22%; }

.scroll-note {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 50%;
  color: #788695;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-note span {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  text-align: center;
}

/* Event Details */
.details {
  padding: 80px 4vw;
  background: var(--paper);
  text-align: center;
}

.details h2,
.rsvp h2 {
  font-size: clamp(38px, 5vw, 60px);
}

.detail-grid {
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d9d9d2;
  border-bottom: 1px solid #d9d9d2;
}

.detail-grid article {
  padding: 40px 20px;
}

.detail-grid article + article {
  border-left: 1px solid #d9d9d2;
}

.detail-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3f4;
  color: #8ba9b8;
  font-size: 20px;
}

.detail-grid article:nth-child(2) .detail-icon {
  background: #fae8e7;
  color: #c98791;
}

.detail-grid p {
  color: #8b939a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.detail-grid h3 {
  margin: 15px 0 8px;
  font: 400 20px "Italiana", serif;
}

.detail-grid article > span {
  color: #798590;
  font-size: 13px;
}

/* Celebration Note */
.note-card {
  position: relative;
  width: min(550px, 100%);
  margin: auto;
  padding: 30px;
  border: 1px solid #e0d9cb;
}

.note-card div {
  position: absolute;
  top: -21px;
  left: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6eedf;
  transform: translateX(-50%);
}

.note-card p {
  margin: 8px 0;
  font: 20px "Italiana", serif;
}

.note-card small {
  color: #7f898f;
}

/* RSVP Section */
.rsvp {
  padding: 90px 4vw 35px;
  background: linear-gradient(120deg, #f1d8d8, #e0edf1);
  text-align: center;
}

.rsvp-card > p:not(.eyebrow) {
  margin: 20px 0 28px;
  color: #6e7b87;
}

.footer-mark {
  margin-top: 80px;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* RSVP Modal */
.modal-backdrop {
  position: fixed;
  z-index: 10;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(26, 40, 56, 0.55);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  padding: 35px;
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  border: 0;
  background: none;
  color: #77818b;
  cursor: pointer;
  font-size: 28px;
}

.modal h2 {
  margin: 10px 0 20px;
  font-size: 38px;
}

.modal form > label {
  display: block;
  margin: 14px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.modal input:not([type="radio"]) {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #d9d9d2;
  outline: none;
  background: #fff;
  font: 14px "DM Sans", sans-serif;
}

.modal fieldset {
  padding: 10px 0 18px;
  border: 0;
  text-align: left;
}

.modal legend {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal fieldset label {
  display: block;
  margin: 8px 0;
  color: #62717f;
  font-size: 14px;
}

.modal .primary {
  width: 100%;
}

/* Media Queries */
@media (max-width: 720px) {
  .hero { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid article + article {
    border-top: 1px solid #d9d9d2;
    border-left: 0;
  }
}
