/* Rebecca & Sam — rebbyandsam.com */

@font-face {
  font-family: 'Boho';
  src: url('../fonts/BohemianSoul.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Cereal';
  src: url('../fonts/Cereal-Book.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cereal';
  src: url('../fonts/Cereal-Medium.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --sage: #a3baa0;
  --sage-deep: #8ba888;
  --forest: #14392a;
  --forest-soft: #2c5744;
  --cream: #fbf3e2;
  --cream-warm: #f6ead0;
  --rule: rgba(20, 57, 42, 0.4);
  --card: #fffdf4;
  --card-border: rgba(20, 57, 42, 0.35);
  --shadow: 0 18px 45px rgba(20, 57, 42, 0.18);
  --shadow-soft: 0 10px 30px rgba(20, 57, 42, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cereal', 'Helvetica Neue', sans-serif;
  background: var(--cream);
  color: var(--forest);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.footer { margin-top: auto; }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: 'Boho', Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
}

.eyebrow {
  font-family: 'Cereal', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest-soft);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding: 0.9rem 2.2rem;
  background: var(--forest);
  color: var(--cream);
}
.nav-logo img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  font-family: 'Boho', Georgia, serif;
  font-size: 1.15rem;
  color: var(--cream);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  /* the display font's decorative st-swash reads as a glitch at small sizes */
  font-feature-settings: 'liga' 0, 'dlig' 0, 'calt' 0;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--cream); border-bottom-width: 3px; }
.nav-links a.btn { border: none; }
.nav .btn {
  background: var(--cream);
  color: var(--forest);
  font-family: 'Cereal', sans-serif;
  border-radius: 6px;
  border: 1px solid rgba(20, 57, 42, 0.25);
}
.nav .btn:hover { background: var(--cream-warm); }

.btn {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--forest-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.nav .btn { padding: 0.6rem 1.5rem; }

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--forest);
  color: var(--forest);
  padding: calc(0.85rem - 2px) calc(2rem - 2px);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
}

.nav-rsvp-mobile { display: none; }
@media (max-width: 860px) {
  .nav-rsvp-mobile {
    display: inline-block;
    margin-left: auto;
    background: var(--cream);
    color: var(--forest);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.7rem;
  color: var(--cream);
  line-height: 1;
  padding: 0.7rem;
  margin: -0.7rem;
}

@media (max-width: 860px) {
  .nav { justify-content: space-between; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--forest);
    padding: 1.6rem 2rem 2rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero (home) ---------- */
.hero {
  text-align: center;
  padding: 2rem 1.5rem 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 540px) 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 1500px;
  margin: 0 auto;
}
.hero-side {
  font-family: 'Boho', Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  text-transform: uppercase;
  line-height: 1.25;
  animation: rise 0.9s 0.15s ease both;
}
.hero-wordmark {
  width: 100%;
  animation: rise 0.9s ease both;
  position: relative;
  z-index: 1;
}
.hero-stage {
  position: relative;
  z-index: 2;
  margin-top: clamp(-120px, -8vw, -40px);
  animation: rise 0.9s 0.3s ease both;
}
.hero-illustration {
  width: min(360px, 92%);
  margin: 0 auto -6px;
  position: relative;
  z-index: 2;
}
.wave-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 1;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.wave-marquee text {
  font-family: 'Boho', Georgia, serif;
  font-size: 54px;
  fill: var(--forest);
}

@media (max-width: 820px) {
  .hero-grid { display: flex; flex-direction: column; gap: 0.4rem; }
  .hero-grid .hero-side br { display: none; }
  .hero-stage { margin-top: 0.5rem; }
}
@media (max-width: 600px) {
  /* flow the ribbon below the illustration instead of colliding with it */
  .wave-marquee { position: static; margin-top: -4px; }
  .wave-marquee text { font-size: 96px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 5vw, 3.2rem);
  padding: 1.6rem 1.5rem 2.6rem;
}
.countdown .unit { text-align: center; }
.countdown .num {
  font-family: 'Boho', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1;
}
.countdown .lbl {
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: 3rem 1.5rem 5rem; }
.section.sage { background: var(--sage); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-head h1, .section-head h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.section-head .eyebrow { margin-bottom: 0.8rem; }
.section-head p.lede { max-width: 620px; margin: 1rem auto 0; }

/* Thin-rule label — the original site's date banners & section dividers */
.rule-label {
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0;
  margin: 2.6rem 0 2.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- Event blocks (organic image shapes, centered text) ---------- */
.event-block {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin: 0 0 1.5rem;
}
.event-block .event-text { text-align: center; }
.event-block.flip .event-media { order: -1; }
.event-text h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.event-text .when {
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.event-text .addr { margin-top: 0.3rem; font-size: 0.85rem; }
.event-text .addr a { color: var(--forest-soft); }
.event-text p { margin-top: 1.2rem; font-size: 0.97rem; }
.event-text .wear {
  margin: 1.4rem auto 0;
  max-width: 460px;
  padding: 0.9rem 1.1rem;
  background: rgba(163, 186, 160, 0.3);
  border-left: 3px solid var(--sage-deep);
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: left;
}
.event-text .wear strong {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.event-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.shape-oval { border-radius: 50% / 46%; }
.shape-arch { border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px; }
.shape-leaf { border-radius: 4px 46% 4px 46% / 4px 52% 4px 52%; }
.shape-leaf-r { border-radius: 46% 4px 46% 4px / 52% 4px 52% 4px; }

@media (max-width: 760px) {
  .event-block { grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 2.5rem; }
  .event-block .event-media { order: -1; max-width: 420px; margin: 0 auto; width: 88%; }
}

/* ---------- Circle cards (Stay hotels, Travel venues, Explore spots) ---------- */
.circle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 3rem 2.2rem;
}
.circle-grid.four { max-width: 1120px; margin: 0 auto; }
.circle-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 1.7rem 1.6rem 2rem;
  box-shadow: var(--shadow-soft);
}
.circle-card img { width: 100%; }
.circle-card .btn { margin-top: auto; }
.circle-card p { margin-bottom: 1.2rem; }
.circle-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  transition: transform 0.25s ease;
}
.circle-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  font-feature-settings: 'liga' 0, 'dlig' 0, 'calt' 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(163, 186, 160, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}
/* only the first tag is a bubble; the rest are plain check-marked notes */
.tag:not(:first-child) {
  background: none;
  padding: 0.3rem 0;
  font-size: 0.72rem;
}
.tag:not(:first-child)::before { content: '\2713\00a0\00a0'; }
.circle-card p { font-size: 0.93rem; }
.circle-card .btn { padding: 0.6rem 1.7rem; }

/* circle card as a modal-launcher button — keeps the full card treatment */
button.circle-card {
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.circle-card:hover img { transform: scale(1.03); }
button.circle-card .hint {
  display: inline-block;
  margin-top: auto;
  background: var(--forest);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 1.7rem;
  border-radius: 999px;
}
button.circle-card:hover .hint { background: var(--forest-soft); }

/* ---------- Travel columns ---------- */
.travel-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  max-width: 1000px;
  margin: 0 auto;
}
.travel-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-soft);
}
.travel-card h2 {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 1.1rem;
  font-feature-settings: 'liga' 0, 'dlig' 0, 'calt' 0;
}
.travel-card p { margin-bottom: 0.9rem; font-size: 0.96rem; }
.travel-card p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .travel-cols { grid-template-columns: 1fr; }
}

.fine {
  padding: 0.9rem 1.1rem;
  background: rgba(163, 186, 160, 0.3);
  border-left: 3px solid var(--sage-deep);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 57, 42, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative;
  background: var(--cream);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.4rem 2.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: rise 0.3s ease both;
}
.modal h3 {
  font-size: 1.9rem;
  margin: 0.3rem 0 0.2rem;
  font-feature-settings: 'liga' 0, 'dlig' 0, 'calt' 0;
}
.modal .addr { font-weight: 600; font-size: 0.94rem; margin-bottom: 1.1rem; }
.modal .addr a { color: var(--forest-soft); }
.modal-list {
  list-style: none;
  margin-bottom: 1.4rem;
}
.modal-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(20, 57, 42, 0.12);
  font-size: 0.95rem;
}
.modal-list li:last-child { border-bottom: none; }
.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--forest);
  opacity: 0.6;
}
.modal-close:hover { opacity: 1; }
@media (max-width: 540px) {
  .modal { padding: 1.8rem 1.5rem; }
}

/* ---------- Gallery ---------- */
.gallery {
  columns: 4;
  column-gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}
.gallery img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery img:hover { transform: scale(1.015); box-shadow: var(--shadow); }
@media (max-width: 1000px) { .gallery { columns: 3; } }
@media (max-width: 760px) { .gallery { columns: 2; column-gap: 12px; } .gallery img { margin-bottom: 12px; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 57, 42, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox button {
  position: absolute;
  background: rgba(20, 57, 42, 0.55);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.lightbox .close { top: 1rem; right: 1.4rem; }
.lightbox .prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 0.6rem; top: 50%; transform: translateY(-50%); }

/* ---------- Centered simple pages ---------- */
.simple {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 1.5rem;
  width: 100%;
}
.invite-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 3.2rem 2.6rem 3.4rem;
  box-shadow: var(--shadow-soft);
}
.simple .ornament {
  font-size: 1.5rem;
  letter-spacing: 1.6rem;
  padding-left: 1.6rem; /* balance the trailing letter-spacing */
  margin-bottom: 1.6rem;
  color: var(--forest-soft);
}
.simple h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 1.2rem; }
.simple p { margin-bottom: 1rem; }
.simple .btn { margin-top: 1.4rem; }

/* ---------- Photo credits ---------- */
.photo-credits {
  margin-top: 3.5rem;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.65;
}
.photo-credits summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.photo-credits p { max-width: 640px; margin: 0.8rem auto 0; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--forest-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav a:focus-visible, .footer a:focus-visible { outline-color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 3.2rem 1.5rem 2.6rem;
}
.footer .display { font-size: 1.7rem; }
.footer .date {
  margin-top: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
}
.footer nav { margin-top: 1.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.4rem; }
.footer nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.footer nav a:hover { opacity: 1; }
