:root {
  --bs-body-font-family: "Source Sans 3", "Segoe UI", sans-serif;
  --bs-body-color: #3d3832;
  --bs-body-bg: #f3efe6;
  --bs-primary: #1e4d56;
  --bs-primary-rgb: 30, 77, 86;
  --bs-link-color: #1e4d56;
  --bs-link-hover-color: #163a41;
  --bs-link-color-rgb: 30, 77, 86;
  --bs-link-hover-color-rgb: 22, 58, 65;
  --bs-border-radius: 0.35rem;
  --sand: #f3efe6;
  --ink: #3d3832;
  --sea: #1e4d56;
  --sea-deep: #163a41;
  --champagne: #c4a574;
  --bronze: #6b5430;
  --line: rgba(61, 56, 50, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(ellipse 78% 46% at 50% -6%, rgba(196, 165, 116, 0.28), transparent 62%),
    linear-gradient(180deg, #f8f4ec 0%, #f3efe6 32%, #ebe4d6 100%);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1080;
  padding: 0.5rem 0.8rem;
  background: var(--sea);
  color: var(--sand);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.invite {
  padding: 2.75rem 0 1.75rem;
  text-align: center;
}

.invite-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.4rem 1.15rem 2rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(196, 165, 116, 0.55);
  box-shadow:
    0 0 0 7px rgba(246, 241, 230, 0.92),
    0 0 0 8px rgba(107, 84, 48, 0.28),
    0 18px 36px rgba(61, 56, 50, 0.05);
}

.seal {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 8px 14px rgba(61, 56, 50, 0.06));
}

.seal span {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  color: var(--sea);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
  background: #faf6ee;
}

.seal span + span {
  margin-left: -1px;
}

h1 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 460;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1 .amp {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 460;
  font-size: 0.42em;
  color: var(--bronze);
}

.rule {
  width: 7.5rem;
  height: 0;
  margin: 1.35rem auto 1.15rem;
  border-top: 1px solid var(--bronze);
  box-shadow: 0 4px 0 -3px var(--bronze);
}

.dedication {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 460;
  line-height: 1.35;
}

.when {
  margin: 0.9rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 460;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--sea);
}

.voice {
  max-width: 32rem;
  margin: 1.5rem auto 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 460;
  font-size: 1.2rem;
  line-height: 1.45;
}

.band {
  padding: 3.25rem 0;
  scroll-margin-top: 4.75rem;
}

.lead-quiet {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-weight: 460;
  font-size: 1.28rem;
  line-height: 1.45;
}

.callout {
  margin: 0 auto 1.75rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(196, 165, 116, 0.45);
  border-left: 3px solid var(--champagne);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(247, 241, 230, 0.72));
  box-shadow: 0 14px 32px rgba(61, 56, 50, 0.05);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-title {
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--sea);
}

.callout-title i {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.45rem;
  border: 1px solid rgba(196, 165, 116, 0.9);
  border-radius: 50%;
  font-size: 0.72rem;
  vertical-align: -0.2rem;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0;
}

.btn-primary {
  --bs-btn-bg: #1e4d56;
  --bs-btn-border-color: #1e4d56;
  --bs-btn-color: #f3efe6;
  --bs-btn-hover-bg: #163a41;
  --bs-btn-hover-border-color: #163a41;
  --bs-btn-hover-color: #f3efe6;
  --bs-btn-active-bg: #122f35;
  --bs-btn-active-border-color: #122f35;
  --bs-btn-active-color: #f3efe6;
  --bs-btn-focus-shadow-rgb: 30, 77, 86;
  min-height: 3rem;
  padding-inline: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(30, 77, 86, 0.16);
}

.btn-primary i {
  margin-right: 0.45rem;
}

a {
  color: var(--sea);
}

a:hover {
  color: var(--sea-deep);
}

.horizon {
  width: min(9rem, 36%);
  height: 1px;
  margin: 0 auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}

.jumps {
  position: sticky;
  top: 0;
  z-index: 1020;
  isolation: isolate;
  padding: 0.35rem 0 0.15rem;
  text-align: center;
  background-color: #f6f1e6;
  border-bottom: 1px solid rgba(196, 165, 116, 0.45);
}

.jumps .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 36rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.jumps a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.45rem 0.4rem 0.7rem;
  text-align: center;
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-weight: 460;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  line-height: 1.15;
  color: var(--ink);
  background-color: #f6f1e6;
}

.jumps a:hover {
  color: var(--sea);
  text-decoration: none;
}

.jumps a.is-on {
  color: var(--sea);
  background-color: #f6f1e6;
}

.jumps a.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.4rem;
  width: 1.7rem;
  height: 1px;
  transform: translateX(-50%);
  background: var(--bronze);
  box-shadow: 0 3px 0 -2px var(--bronze);
}

h2 {
  margin: 0 0 1.35rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 460;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  text-align: center;
}

h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 0.75rem auto 0;
  background: var(--bronze);
  box-shadow: 0 4px 0 -3px var(--bronze);
}

.section-note {
  max-width: 36rem;
  margin: -0.4rem auto 1.5rem;
  text-align: center;
}

.quiet {
  position: relative;
  height: 100%;
  padding: 1.5rem 1.25rem 1.3rem;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 241, 230, 0.55));
  border: 1px solid rgba(196, 165, 116, 0.4);
  box-shadow: 0 12px 28px rgba(61, 56, 50, 0.045);
}

.quiet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.quiet i {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(196, 165, 116, 0.9);
  border-radius: 50%;
  color: var(--sea);
  font-size: 0.95rem;
  background: #faf6ee;
  box-shadow: 0 0 0 4px rgba(250, 246, 238, 0.95), 0 0 0 5px rgba(196, 165, 116, 0.55);
}

.num {
  margin: 0 0 0.2rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--bronze);
}

#momente .quiet {
  text-align: center;
}

#momente .quiet i {
  margin-inline: auto;
}

#dupa .container {
  padding-top: 2.5rem;
  padding-bottom: 2.35rem;
  background: rgba(255, 252, 247, 0.7);
  border: 1px solid rgba(196, 165, 116, 0.45);
  box-shadow: 0 16px 34px rgba(61, 56, 50, 0.045);
}

.quiet h3 {
  margin-bottom: 0.4rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
}

.quiet p {
  margin: 0;
}

.private {
  margin-top: 1.5rem;
}

.thanks {
  max-width: 28rem;
  margin: 2.15rem auto 0;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 460;
  font-size: 1.28rem;
  line-height: 1.45;
}

.sign {
  margin: 1.15rem 0 0;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 460;
}

.sign::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 0 auto 1rem;
  background: var(--bronze);
}

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background-color: #f6f1e6;
  border-top: 1px solid rgba(107, 84, 48, 0.22);
}

.dock p {
  margin: 0 0 0.45rem;
  text-align: center;
  font-size: 0.92rem;
}

body {
  padding-bottom: 7rem;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 5.5rem;
  }

  .dock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.75rem 1.5rem;
  }

  .dock p {
    margin: 0;
  }

  .dock .btn {
    width: auto !important;
  }

  .invite {
    padding-top: 3.5rem;
  }

  .invite-card {
    padding: 3rem 2.5rem 2.5rem;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0.65rem;
    border: 1px solid rgba(107, 84, 48, 0.38);
    pointer-events: none;
    z-index: 1040;
  }

  .w-md-auto {
    width: auto !important;
  }
}

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