:root {
  --ink: #14131b;
  --paper: #eeece2;
  --brass: #d79b3f;
  --brass-light: #e7ac5a;
  --teal: #8fb0a8;
  --stamp: #b23b2e;
  --stamp-light: #c74d3f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

.stage {
  display: flex;
}

@media (max-width: 760px) {
  .stage { flex-direction: column; }
}

.info {
  flex: 1;
  min-width: 0;
  padding: 8px 40px 56px;
  display: flex;
  align-items: flex-start;
  border-right: 1px solid rgba(238, 236, 226, 0.14);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.info-top {
  min-width: 0;
  width: 100%;
}

@media (max-width: 760px) {
  .info {
    border-right: none;
    padding: 48px 28px;
    position: static;
    height: auto;
    overflow-y: visible;
  }
}

.dkm-logo {
  display: block;
  width: 148px;
  margin: 0 auto 8px;
}

.eyebrow {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  color: var(--paper);
  line-height: 1.5;
  margin: 0 0 24px;
}

.name {
  font-family: "Anton", "Futura", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 9vw, 4rem);
  line-height: 1;
  margin: 0 0 14px;
  color: var(--brass-light);
}

.name .name-line {
  display: block;
  white-space: nowrap;
}

.name .name-line:first-child {
  margin-bottom: 0.15em;
}

.name-emphasis {
  font-style: italic;
  color: var(--brass);
}

.student-of .name-emphasis,
.family-of .name-emphasis {
  margin-left: 0.3em;
}

.student-of {
  font-style: italic;
  font-size: 1rem;
  color: var(--paper);
  margin: 0 0 6px;
}

.family-of {
  font-style: italic;
  font-size: 1rem;
  color: var(--paper);
  line-height: 1.5;
  margin: 0 0 24px;
}

.rule {
  width: 64px;
  height: 3px;
  background: var(--brass);
  margin: 0 0 22px;
}

.event-type {
  font-style: italic;
  font-size: 1.35rem;
  margin: 0 0 28px;
  opacity: 0.92;
}

.presence-of {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--paper);
  margin: 0 0 30px;
  max-width: 380px;
  padding-left: 16px;
  border-left: 2px solid var(--brass);
}


.details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.details .row { display: flex; gap: 14px; }

.details .row > span:last-child {
  min-width: 0;
  flex: 1;
}

.time-divider {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--brass);
  margin: 0 10px;
  vertical-align: middle;
}

.venue-address {
  font-size: 0.92rem;
  color: var(--paper);
}

.venue-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.venue-link:hover { color: var(--brass-light); }

.details .k {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  min-width: 72px;
  padding-top: 4px;
}

.compliments-line {
  font-size: 1rem;
  color: var(--paper);
  margin: 0 0 4px;
}

.compliments-names {
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
  margin: 0 0 28px;
}

.rsvp-btn {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 16px 40px;
  background: var(--brass);
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rsvp-btn:hover { background: var(--brass-light); }

.dinner-note {
  font-size: 0.85rem;
  color: var(--paper);
  opacity: 0.85;
  margin: 14px 0 0;
}

.dinner-icon {
  color: var(--brass);
  vertical-align: -3px;
  margin-right: 6px;
}

.photo-side {
  position: relative;
  flex: 0 0 52%;
  align-self: flex-start;
  width: 52%;
  height: auto;
  aspect-ratio: 4859 / 7289;
  background:
    radial-gradient(circle at 30% 20%, rgba(215, 155, 63, 0.25), transparent 55%),
    linear-gradient(160deg, #2a2833 0%, #14131b 70%);
  display: flex;
  align-items: flex-end;
}

@media (max-width: 760px) {
  .photo-side { flex: 0 0 auto; width: 100%; }
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.date-stamp {
  position: relative;
  z-index: 2;
  padding: 36px;
}

.date-stamp .aug {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  color: var(--stamp);
  display: block;
}

.date-stamp .num {
  font-family: "Anton", "Futura", "Arial Narrow", sans-serif;
  font-size: clamp(4rem, 13vw, 7.5rem);
  line-height: 0.85;
  color: var(--paper);
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  display: block;
}

.date-stamp .time {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--paper);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  display: block;
  margin-top: 4px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 13, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 34px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.modal-card h3 {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  margin: 0 0 26px;
}

#rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-label {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--teal);
  margin-bottom: -10px;
}

#rsvp-form input[type="text"],
#rsvp-form input[type="email"],
#rsvp-form input[type="number"],
#rsvp-form textarea {
  font-family: Georgia, serif;
  font-size: 1rem;
  padding: 11px 4px;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

#rsvp-form input:focus,
#rsvp-form textarea:focus {
  outline: none;
  border-color: var(--stamp);
}

.rsvp-existing {
  background: rgba(143, 176, 168, 0.15);
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  padding: 14px 16px;
  margin-top: -4px;
}

.existing-line {
  font-size: 0.92rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.existing-change-btn {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
}

.existing-change-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

#rsvp-fields-rest {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.segmented {
  display: flex;
  border: 2px solid var(--ink);
}

.segmented label {
  flex: 1;
  text-align: center;
  padding: 11px 6px;
  cursor: pointer;
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.segmented input { display: none; }

.segmented label.active {
  background: var(--ink);
  color: var(--paper);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-btn {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 15px;
  background: var(--stamp);
  color: var(--paper);
  border: none;
  cursor: pointer;
  margin-top: 6px;
}

.submit-btn:hover { background: var(--stamp-light); }

#rsvp-success h3 {
  font-family: "Oswald", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  margin: 0 0 12px;
}

#rsvp-success p { font-size: 1.05rem; }
