/* ==========================================================================
   Design Tokens & Resets
   ========================================================================== */
:root {
  --color-dark-red: #85231E;
  --color-red: #C00000;
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F4F3F1;
  --color-text-dark: #222222;
  --color-text-muted: #666666;
  --color-border: #DCDCDC;

  /* Tints derived from the two brand reds — same palette, softer weight */
  --color-tint: rgba(133, 35, 30, 0.05);
  --color-tint-strong: rgba(133, 35, 30, 0.14);
  --color-border-warm: rgba(133, 35, 30, 0.18);

  --font-body: 'Avenir Light', 'Avenir', 'Helvetica Neue', Arial, sans-serif;
  --font-bold: 'Avenir Medium', 'Avenir Next', Arial, sans-serif;
  --font-display: 'Bebas Neue', sans-serif;

  --content-width: 500px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* ==========================================================================
   Ornamental divider — a single motif reused wherever a section needs
   closing, borrowed from stationery rules rather than a generic hairline
   ========================================================================== */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.9rem auto 1.8rem;
}

.ornament::before,
.ornament::after {
  content: "";
  width: 34px;
  height: 1px;
  background-color: var(--color-border-warm);
}

.ornament .diamond {
  width: 6px;
  height: 6px;
  background-color: var(--color-dark-red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ==========================================================================
   Shared icon badge — one consistent line-icon language across sections
   ========================================================================== */
.icon-badge {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-dark-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-dark-red);
}

.icon-badge svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Slide 1: Hero Section
   The photo box is locked to the source photo's own 3:4 ratio, so the
   entire image always displays — no cropping math to get wrong on any
   device. A capped max-height keeps it from getting absurdly tall on
   large desktop screens, where it falls back to a gentle, safe crop.
   ========================================================================== */
.hero-section {
  text-align: center;
  background-color: var(--color-text-dark);
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-text-dark);
}

.hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.85);
}

/* Duotone wash in the brand red */
.hero-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-dark-red);
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

/* Scrim behind the caption so the type stays legible on any part of the photo */
.hero-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 8, 7, 0) 55%,
    rgba(15, 6, 5, 0.9) 100%
  );
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.5rem 1.5rem 2rem;
  color: var(--color-bg-white);
}

.eyebrow {
  font-family: var(--font-bold);
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.6rem;
}

.names-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 13vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--color-bg-white);
}

.names-title .amp {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  padding: 0 0.15em;
}

.sub-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.3rem;
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-info {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.25rem 1.5rem 2.75rem;
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 100vw var(--color-bg-white);
  clip-path: inset(0 -100vw);
}

.date-loc {
  font-family: var(--font-bold);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--color-dark-red);
  margin-bottom: 1.5rem;
}

.hero-details-box {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-border);
}

.event-line {
  font-family: var(--font-bold);
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: var(--color-text-dark);
}

.event-line strong {
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  font-weight: normal;
}

.venue-line {
  font-family: var(--font-bold);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--color-dark-red);
  margin-top: 0.6rem;
}

/* ==========================================================================
   Site Nav — a slim masthead bar above the photo, not a bulky bottom tab
   bar. Sticky to the top so it's always reachable without permanently
   eating into the viewport the way a bottom bar does on a phone.
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  background-color: var(--color-dark-red);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.6rem, 4vw, 2.5rem);
  padding: 0.4rem 0.75rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 1.2px;
  padding: 0.5rem 0;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-bg-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  padding: 0.65rem 2.4rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-pill {
  border-radius: 50px;
}

.btn-primary {
  background-color: var(--color-dark-red);
  color: var(--color-bg-white);
}

.btn-primary:hover {
  background-color: var(--color-red);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-dark-red);
  color: var(--color-dark-red);
}

.btn-outline:hover {
  background-color: var(--color-dark-red);
  color: var(--color-bg-white);
}

.btn-sm {
  font-size: 1rem;
  padding: 0.45rem 1.6rem;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   General Page Layout
   ========================================================================== */
.page-section {
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.light-bg {
  background-color: var(--color-bg-light);
}

.section-container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-header-red {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--color-dark-red);
  letter-spacing: 1.5px;
  text-align: center;
  line-height: 1;
}

.section-subheader {
  font-family: var(--font-bold);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 2.25rem;
}

/* ==========================================================================
   Slide 2: Details list — quiet list with icon badges, no boxed cards
   ========================================================================== */
.details-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.75rem;
}

.detail-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-border);
}

.details-list .detail-item:first-child {
  padding-top: 0;
}

.details-list .detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--color-text-dark);
  margin-bottom: 0.2rem;
}

.detail-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.badge-text {
  font-family: var(--font-bold);
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--color-dark-red) !important;
  margin-top: 0.4rem;
}

/* Feature card — reserved for the one highlighted piece of content per
   section (venue, primary travel point). Sharp corners + a top rule,
   deliberately distinct from the plain list items above. */
.venue-card,
.primary-travel {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-dark-red);
  padding: 2.2rem 1.75rem;
  text-align: center;
  border-radius: 2px;
}

.venue-card .card-label {
  font-family: var(--font-bold);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.venue-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--color-dark-red);
}

.venue-card .sub-venue {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.9rem;
}

.venue-card .address {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Slide 3: Travel
   ========================================================================== */
.primary-travel {
  margin-bottom: 2.5rem;
}

.primary-travel .icon-badge {
  margin: 0 auto 0.9rem;
}

.primary-travel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--color-dark-red);
}

.primary-travel p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 1.2rem;
}

.travel-options {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}

.travel-box {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.travel-options .travel-box:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.box-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.box-header h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.sub-line {
  font-family: var(--font-bold);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
}

.info-text {
  font-size: 0.9rem;
  padding-left: calc(42px + 1rem);
}

.note-text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
  padding-left: calc(42px + 1rem);
}

.destination-note {
  text-align: center;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  max-width: 34ch;
  margin: 0 auto;
}

/* ==========================================================================
   Slide 4: Hotels — quiet list, differentiated only by weight and spacing
   ========================================================================== */
.hotels-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}

.hotel-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.hotels-list .hotel-item:first-child {
  padding-top: 0;
}

.hotels-list .hotel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hotel-item h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--color-dark-red);
}

.hotel-address {
  font-size: 0.85rem;
  color: var(--color-text-dark);
  margin-top: 0.3rem;
}

.hotel-phone {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

.hotel-tag {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* ==========================================================================
   Slide 5: RSVP Form — the second feature moment on the page
   ========================================================================== */
.rsvp-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 2px;
  color: var(--color-dark-red);
  text-align: center;
  line-height: 1;
  margin-top: 0.4rem;
}

.slide-rsvp-form {
  background-color: var(--color-bg-white);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-dark-red);
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-family: var(--font-bold);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.55rem;
  color: var(--color-text-muted);
}

/* Underline-style inputs — reads closer to a printed response card than a
   generic boxed web form, while staying in the same palette */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.1rem;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  border-radius: 0;
  transition: border-color 0.15s ease;
}

.form-field select {
  padding: 0.55rem 0.1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385231E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-size: 16px;
}

.form-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-dark-red);
}

.radio-row {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  font-family: var(--font-bold);
  color: var(--color-text-dark);
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.radio-pill:has(input:checked) {
  border-color: var(--color-dark-red);
  background-color: var(--color-tint);
}

.radio-pill input[type="radio"] {
  accent-color: var(--color-dark-red);
}

.rsvp-footer-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.questions-footer {
  text-align: center;
  font-family: var(--font-bold);
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.questions-footer a {
  color: var(--color-dark-red);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-warm);
}

.form-status {
  margin-bottom: 1.5rem;
  padding: 0.9rem;
  text-align: center;
  font-size: 0.88rem;
  border-radius: 2px;
}

.form-status.success {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.form-status.error {
  background-color: #FFEBEE;
  color: #C62828;
}

.hidden {
  display: none;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 4.5rem 1rem;
  font-family: var(--font-display);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.gray-text {
  color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive refinement
   ========================================================================== */
@media (min-width: 640px) {
  .names-title { font-size: 5rem; }
  .page-section { padding: 5.5rem 1.5rem; }
}

/* Small phones (iPhone SE / Mini and similar ~375px and under) */
@media (max-width: 390px) {
  .hero-caption { padding: 1.75rem 1.25rem 1.5rem; }
  .hero-info { padding: 1.75rem 1.25rem 2.25rem; }
  .names-title { font-size: 2.75rem; }
  .sub-title { font-size: 1.15rem; letter-spacing: 1.5px; }
  .eyebrow { letter-spacing: 2px; }

  .site-nav {
    gap: clamp(0.4rem, 3vw, 0.8rem);
    padding: 0.3rem 0.5rem;
  }

  .site-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    padding: 0.4rem 0;
  }

  .page-section { padding: 3rem 1.25rem; }
  .section-header-red { font-size: 1.8rem; }

  .btn {
    font-size: 1.05rem;
    padding: 0.6rem 1.5rem;
    letter-spacing: 1px;
  }

  .venue-card,
  .primary-travel,
  .slide-rsvp-form {
    padding: 1.75rem 1.25rem;
  }

  .info-text,
  .note-text {
    padding-left: 0;
    margin-top: 0.5rem;
  }
}

/* Never let long tokens (emails, addresses) force a horizontal scrollbar */
.questions-footer,
.hotel-address,
.address {
  overflow-wrap: break-word;
  word-break: break-word;
}
