@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&display=swap');

:root {
    --background: #ffffff;
    --paper: #fcfcfc;
    --text: #393b32;
    --muted: #77786e;
    --accent: #d8486c;
    --accent-dark: #213ab6;
    --border: #4a95f7;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Nanum Myeongjo", serif;
    line-height: 1.7;
  }
  
  h1, h2, h3, h4, h5, h6, button, input, textarea, select {
    font-family: 'Nanum Myeongjo', serif;
  }

  h1, h2, p {
    margin-top: 0;
  }
  
  h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: normal;
    line-height: 1.1;
  }
  
  h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: normal;
  }
  
  a {
    color: var(--accent-dark);
  }
  
  button, .button {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border: 0;
    border-radius: 3px;
    background: var(--accent);
    color: white;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  
  button:hover, .button:hover {
    background: var(--accent-dark);
  }
  
  input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: white;
    color: var(--text);
    font: inherit;
  }
  
  label {
    display: block;
    margin: 1rem 0 0.35rem;
  }
  
  .hero {
    min-height: 75vh;
    padding: 7rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #eff9ff;
  }
  
  .hero h1 {
    margin-bottom: 1rem;
  }
  
  .ampersand {
    color: var(--accent);
    font-style: italic;
  }
  
  .hero-date {
    margin-bottom: 2rem;
  }
  
  .eyebrow {
    color: var(--accent-dark);
    font: 0.75rem/1.5 Arial, sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  
  .countdown {
    margin-top: 1.5rem;
  }
  
  .section {
    width: min(100% - 2rem, 760px);
    margin: 0 auto;
    padding: 5rem 0;
    text-align: center;
  }
  
  .details {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--border);
  }
  
  .muted, .message {
    color: var(--muted);
  }
  
  .big-number {
    color: var(--accent-dark);
    font-size: 2rem;
  }
  
  footer {
    padding: 2rem 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
  }
  
  .text-button {
    padding: 0.3rem;
    background: transparent;
    color: var(--accent-dark);
    text-decoration: underline;
  }
  
  .login-page {
    min-height: 100vh;
    place-items: center;
    padding: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .login-card, .form-card {
    width: min(100%, 520px);
    margin: 3rem auto;
    padding: clamp(1.5rem, 5vw, 3rem);
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
  }
  
  .login-card {
    text-align: center;
  }
  
  .login-card form {
    text-align: left;
  }
  
  .login-card button, .form-card form button {
    width: 100%;
    margin-top: 1.25rem;
  }
  
  .form-card h1, .form-card > p {
    text-align: center;
  }
  
  .back-link {
    display: inline-block;
    margin-bottom: 2rem;
  }
  
  .dashboard {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
  }
  
  .table-wrap {
    overflow-x: auto;
    margin-top: 2rem;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
  }
  
  th, td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
  }
  
  th {
    background: #e8e9df;
  }
  
  @media (max-width: 600px) {
    .hero {
      min-height: 65vh;
      padding: 4rem 1rem;
    }
  
    .section {
      padding: 3.5rem 0;
    }
  
    .gallery {
      grid-template-columns: 1fr;
    }
  
    .gallery img {
      max-height: 420px;
    }
  
    .dashboard {
      padding: 1rem;
    }
  }

  .password-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  
  .password-wrapper input {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
  }
  
  .password-wrapper .toggle-password {
    position: static !important;
    width: 44px;
    min-width: 44px;
    height: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }



.venue-photos {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  max-width: 500px;
  margin: 24px auto;
}

.venue-photos img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 80%;
  border: 2px solid #d6c7b2;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Stack the photos on narrow screens */
@media (max-width: 520px) {
  .venue-photos {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .venue-photos img {
    height: 240px;
  }
}



/* Scrolling wedding-name conveyor */
.wedding-marquee {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 32px;
  padding: 12px 0;
  background: #fcfcfc;
  color: #4a95f7;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: wedding-scroll 24s linear infinite;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  font-family: 'Nanum Myeongjo', serif;
  font-size: 18px;
}

.marquee-group span:nth-child(even) {
  font-size: 16px;
}

@keyframes wedding-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}



.us-main {
  width: 100%;
  max-width: 520px;
  margin: 24px auto;
}

.us-main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center 65%;
  border: 2px solid #d6c7b2;
  border-radius: 10px;
  box-sizing: border-box;
}



/* Container for decorative side images */
.side-decorations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Shared image styling */
.side-image {
  position: absolute;
  width: 140px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}

/* Position the four images at different heights */
.side-image-1 {
  top: 8%;
  left: 2%;
  transform: rotate(-12deg);
}

.side-image-2 {
  top: 15%;
  right: 2%;
  transform: rotate(10deg);
}

.side-image-3 {
  top: 30%;
  left: 1%;
  transform: rotate(8deg);
}

.side-image-4 {
  top: 30%;
  right: 1%;
  transform: rotate(-10deg);
}

.side-image-5 {
  top: 54%;
  left: 2%;
  transform: rotate(-12deg);
}

.side-image-6 {
  top: 60%;
  right: 2%;
  transform: rotate(10deg);
}

.side-image-7 {
  top: 69%;
  left: 1%;
  transform: rotate(8deg);
}

.side-image-8 {
  top: 91%;
  right: 1%;
  transform: rotate(-10deg);
}

/* Keep the decorations behind the main content */
.main-content {
  position: relative;
  isolation: isolate;
  z-index: 1;
}

/* Smaller images and less clutter on phones */
@media (max-width: 700px) {
  .side-image {
    width: 70px;
    opacity: 0.65;
  }

  .side-image-1,
  .side-image-3,
  .side-image-5,
  .side-image-7
   {
    left: 0;
  }

  .side-image-2,
  .side-image-4,
  .side-image-6,
  .side-image-8
    {
    right: 0;
  }
}

.rsvp-photo {
  width: 100%;
  margin: 0 auto 24px;
  overflow: hidden;
  border-radius: 6px;
}

.rsvp-photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 65%;
  transform: scale(1.15);
}

.form-card {
  position: relative;
  isolation: isolate;
}

.rsvp-side-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: -1;
}

.rsvp-side-image {
  position: absolute;
  width: 130px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}

.rsvp-side-image-1 {
  top: 5%;
  left: -170px;
  transform: rotate(-12deg);
  transform: scale(1.15);
}

.rsvp-side-image-2 {
  top: 28%;
  right: -190px;
  transform: rotate(10deg);
}

.rsvp-side-image-3 {
  top: 55%;
  left: -220px;
  transform: rotate(34deg);
  transform: scale(0.75);
}

.rsvp-side-image-4 {
  top: 78%;
  right: -200px;
  transform: rotate(-10deg);
  transform: scale(1.5);
}

.rsvp-side-image-5 {
  top: 27%;
  left: -170px;
  transform: rotate(-15deg);
  transform: scale(1.15);
}

.rsvp-side-image-6 {
  top: 48%;
  right: -190px;
  transform: rotate(10deg);
}

.rsvp-side-image-7 {
  top: 70%;
  left: -220px;
  transform: rotate(34deg);
  transform: scale(0.75);
}

.rsvp-side-image-8 {
  top: 2%;
  right: -180px;
  transform: rotate(60deg);
  transform: scale(0.5);
}


@media (max-width: 700px) {
  .side-image {
    width: 65px;
    opacity: 0.65;
  }

  .side-image-1,
  .side-image-3 {
    left: -45px;
  }

  .side-image-2,
  .side-image-4 {
    right: -45px;
  }
}
