* {
  box-sizing: border-box;
}

:root {
  --sage: #7c9473;
  --sage-deep: #55684a;
  --cream: #fdfaf6;
  --tan: #f1e9dd;
  --blush: #f6dde5;
  --blush-deep: #d98fa6;
  --ink: #3f3a34;
  --muted: #8a7f74;
}

body {
  margin: 0;
  font-family: 'Marcellus', serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hidden {
  display: none !important;
}

/* --- Gate --- */
#gate {
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 60%);
}

.card {
  text-align: center;
  max-width: 400px;
}

.card h1 {
  color: var(--sage-deep);
}

.subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

#gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="password"] {
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Marcellus', serif;
  border: 1px solid #ddd0bb;
  border-radius: 30px;
  text-align: center;
  background: #fff;
}

input[type="password"]:focus {
  outline: none;
  border-color: var(--sage);
}

button {
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Marcellus', serif;
  background: var(--sage-deep);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

button:hover {
  background: var(--sage);
}

.error {
  color: #b3261e;
  margin-top: 12px;
}

/* --- Content --- */
#content {
  flex-direction: column;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 24px;
}

.script-label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--blush-deep);
  margin-bottom: 10px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 3rem;
  margin: 0 0 10px;
  color: var(--sage-deep);
}

.date-line {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-blurb {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sage-deep);
  max-width: 460px;
  margin: 20px auto 8px;
  line-height: 1.6;
}

.divider {
  width: 50px;
  height: 2px;
  background: var(--blush-deep);
  border-radius: 2px;
  margin: 28px auto;
}

#details h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--sage-deep);
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--blush-deep);
}

.day-block {
  margin-bottom: 16px;
}

.day-block h3 {
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--sage-deep);
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  margin-bottom: 4px;
}

.schedule-list .time {
  color: var(--sage);
  font-weight: bold;
  margin-right: 8px;
}

/* --- Photo interstitials --- */
.photo-banner {
  margin: 36px 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px -14px rgba(217, 143, 166, 0.4);
}

.photo-banner img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--blush);
}

/* Candid photos get cropped to a consistent, gallery-like banner height
   instead of rendering at their full (sometimes very tall) natural size. */
.photo-banner.crop img {
  max-height: 520px;
  object-fit: cover;
  object-position: center 25%;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 36px 0;
}

.photo-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: var(--blush);
  box-shadow: 0 8px 20px -10px rgba(217, 143, 166, 0.4);
}

/* --- Info cards --- */
.info-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  margin: 24px 0;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.info-card h2 {
  margin-top: 0 !important;
}

.info-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #5a5348;
}

.hotel-facts {
  background: var(--tan);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 18px 0;
}

.hotel-facts p {
  margin: 0;
}

.hotel-facts p + p {
  margin-top: 8px;
}

.hotel-facts strong {
  color: var(--sage-deep);
}

.deadline {
  display: inline-block;
  background: var(--blush);
  color: var(--sage-deep);
  font-weight: 500;
  border-radius: 14px;
  padding: 10px 18px;
  margin: 6px 0 2px;
}

.info-card .note {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-top: 10px;
}

.rsvp-card {
  background: var(--blush);
  border-radius: 20px;
  padding: 32px;
  margin: 40px 0 8px;
}

.rsvp-card h2 {
  color: var(--sage-deep) !important;
}

.rsvp-card p {
  color: #5a5348;
}

.rsvp-card .deadline {
  background: #fff;
}

.rsvp-card a {
  display: inline-block;
  margin-top: 14px;
  background: var(--sage-deep);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Marcellus', serif;
}
