:root {
  --bg: #efeadf;
  --panel: rgba(243, 238, 228, .82);
  --ink: #737566;
  --ink-dark: #5f6255;
  --olive: #858a76;
  --gold: #b6a46e;
  --shadow: rgba(88, 82, 68, .13);
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: linear-gradient(180deg, #efeadf, #e9e2d8 54%, #ded4c7);
  overflow-x: hidden;
}

body.opening-active {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Mobile opening */

.mobile-opening {
  display: none;
}

/* Menu */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  background: rgba(239, 234, 223, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(182, 164, 110, .12);
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 66px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.brand img {
  position: absolute;
  top: 4px;
  width: 32px;
  height: auto;
  z-index: 2;
}

.brand span {
  margin-top: 20px;
  color: var(--ink-dark);
  font-size: 33px;
  line-height: 1;
}

.nav-left-1,
.nav-left-2,
.nav-right-1,
.nav-right-2 {
  position: absolute;
}

.nav-left-1,
.nav-left-2 {
  left: calc(50% - 250px);
}

.nav-left-2 {
  margin-left: 120px;
}

.nav-right-1,
.nav-right-2 {
  right: calc(50% - 450px);
}

.nav-right-1 {
  margin-right: 250px;
}

.nav-link {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-button,
.main-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--olive);
  color: #f7f1e7;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  box-shadow: 0 8px 18px rgba(92, 96, 82, .22);
  cursor: pointer;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

/* Hero */

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: end center;
  padding: 100px 24px 64px;
  overflow: hidden;
}

.hero picture,
.hero picture img,
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img,
.hero-bg {
  object-fit: cover;
  object-position: center;
  opacity: .95;
}

.hero-title {
  position: absolute;
  left: 50%;
  top: 10%;
  width: clamp(280px, 30vw, 420px);
  transform: translateX(-50%);
  z-index: 3;
  opacity: .96;
  pointer-events: none;
}

.hero-lion {
  position: absolute;
  left: 7%;
  bottom: 12%;
  width: min(18vw, 252px);
  z-index: 2;
  opacity: .96;
  pointer-events: none;
}

.hero-banner-wrap {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: min(34vw, 470px);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.hero-banner {
  width: 100%;
  opacity: .96;
}

.hero-banner-text {
  position: absolute;
  inset: 8% 14% 34%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-dark);
  line-height: 1.45;
}

.hero-banner-text strong {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(12px, 1vw, 15px);
}

.hero-banner-text span {
  font-size: clamp(13px, 1.1vw, 17px);
}

.hero-link {
  position: relative;
  z-index: 4;
  display: inline-flex;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(239, 234, 223, .68);
  color: var(--ink-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

/* Details strip */

.details-strip {
  width: min(1180px, calc(100% - 40px));
  margin: -34px auto 36px;
  position: relative;
  z-index: 5;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  border-radius: 28px;
  background: rgba(239, 234, 223, .82);
  border: 1px solid rgba(182, 164, 110, .14);
  box-shadow: 0 14px 36px rgba(88, 82, 68, .08);
  backdrop-filter: blur(8px);
}

.detail-item {
  min-height: 74px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid rgba(182, 164, 110, .16);
}

.detail-item img {
  width: 36px;
  min-width: 36px;
  object-fit: contain;
}

.detail-item strong {
  display: block;
  color: var(--ink-dark);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-item span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

/* Lamp icon animation */

.lamp-inline {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 52px;
  display: grid;
  place-items: start center;
}

.lamp-inline img {
  width: 36px;
  transform-origin: 50% 0;
  animation: lampSwing 3.2s ease-in-out infinite;
}

.lamp-inline i {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 210, 104, .75);
  filter: blur(10px);
  animation: lampGlow 2.1s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes lampSwing {
  0%,
  100% {
    transform: rotate(-2deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

@keyframes lampGlow {
  0%,
  100% {
    opacity: .35;
    transform: translate(-50%, -50%) scale(.86);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

/* Icon animations */

.gift-wiggle {
  animation: giftWiggle 5.8s ease-in-out infinite;
}

.calendar-anim {
  animation: calendarPulse 6.4s ease-in-out infinite;
}

@keyframes giftWiggle {
  0%,
  88%,
  100% {
    transform: rotate(0) scale(1);
  }

  90% {
    transform: rotate(-7deg) scale(1.03);
  }

  92% {
    transform: rotate(6deg) scale(1.02);
  }

  94% {
    transform: rotate(-4deg) scale(1.01);
  }
}

@keyframes calendarPulse {
  0%,
  78%,
  100% {
    transform: scale(1);
  }

  82% {
    transform: scale(1.08);
  }

  86% {
    transform: scale(1);
  }
}

/* Cards */

.cards-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cards-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.visual-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(182, 164, 110, .14);
  box-shadow: 0 16px 38px rgba(88, 82, 68, .08);
  background-color: var(--panel);
  background-size: cover;
  background-position: center;
}

.card-wardrobe {
  background-image: url("./assets/BG-panel-wardrobe.webp");
}

.card-badger {
  background-image: url("./assets/BG-panel-badger.webp");
}

.card-lamp {
  background-image: url("./assets/BG-panel-lamb-books-teacup.webp");
}

.card-boat {
  background-image: url("./assets/BG-panel-boat.webp");
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(244, 239, 230, .84),
    rgba(244, 239, 230, .56) 55%,
    rgba(244, 239, 230, .20)
  );
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 34px 28px;
}

.card-content.center {
  min-height: 430px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.visual-card h2,
.panel h2 {
  margin: 0 0 22px;
  color: var(--ink-dark);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
}

.line {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.line img {
  width: 28px;
  min-width: 28px;
  margin-top: 4px;
}

.line p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
    text-align: left;
}

.line strong {
  color: var(--ink-dark);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
    text-align: left;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-dark);
  text-decoration: underline;
  cursor: pointer;
}

.center-button,
.upload-row {
  display: flex;
  justify-content: center;
}

.small-crown {
  width: 34px;
  margin-bottom: 18px;
}

blockquote {
  margin: 0;
  color: var(--ink-dark);
  font-size: 19px;
  line-height: 1.65;
  font-style: italic;
}

cite {
  margin-top: 18px;
  font-size: 13px;
}

.visual-card p,
.panel p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.75;
  text-align: center;
}

.outline-button {
  min-height: 42px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  border: 1px solid rgba(133, 138, 118, .46);
  border-radius: 999px;
  background: rgba(239, 234, 223, .48);
  color: var(--ink-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  cursor: pointer;
}

.heart {
  width: 18px;
  margin: 26px auto;
}

.signature {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px !important;
}

/* Panels */

.panel-section {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 44px 34px;
  border-radius: 30px;
  background: rgba(239, 234, 223, .84);
  border: 1px solid rgba(182, 164, 110, .14);
  box-shadow: 0 14px 34px rgba(88, 82, 68, .08);
}

.small-panel {
  width: min(640px, 100%);
  margin: 0 auto;
}

.form {
  width: min(520px, 100%);
  margin: 24px auto 0;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(182, 164, 110, .22);
  border-radius: 18px;
  background: rgba(247, 242, 233, .86);
  color: var(--ink-dark);
  padding: 14px 16px;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.rsvp-lamp-post {
  position: absolute;
  left: 18px;
  bottom: 8px;
  width: 110px;
  opacity: .72;
  z-index: 1;
  pointer-events: none;
}

.hobbit-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  max-width: 260px;
  opacity: .72;
  pointer-events: none;
}

.testimonial-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}

.testimonial-list article {
  padding: 16px;
  border-radius: 16px;
  background: rgba(247, 242, 233, .75);
}

/* Closing */

.closing-scene {
  position: relative;
  min-height: 56vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: 24px;
}

.closing-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}

.closing-scene p {
  position: relative;
  z-index: 2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-dark);
  background: rgba(239, 234, 223, .58);
  padding: 14px 28px;
  border-radius: 999px;
}

/* Footer */

footer {
  padding: 24px;
  text-align: center;
  background: rgba(133, 138, 118, .85);
  color: #f8f4ec;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
}

/* Fireflies */

.fireflies {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}

.firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 226, 130, .95);
  box-shadow:
    0 0 8px rgba(255, 226, 130, .95),
    0 0 20px rgba(255, 206, 88, .58);
}

/* Mobile */

@media (max-width: 760px) {
  .mobile-opening {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #e6ded2;
    overflow: hidden;
  }

  .paper {
    position: absolute;
    left: 0;
    right: 0;
    height: 50.5%;
    background: url("./assets/letter-paper.webp") center / cover no-repeat, #e6ded2;
    will-change: transform, opacity;
  }

  .paper-top {
    top: 0;
  }

  .paper-bottom {
    bottom: 0;
  }

  .curtains {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(116vw, 680px);
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 8px 15px rgba(88, 82, 68, .16));
  }

  .seal {
    position: relative;
    z-index: 3;
    width: min(58vw, 250px);
    aspect-ratio: 1;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    filter: drop-shadow(0 16px 28px rgba(72, 66, 55, .20));
    -webkit-tap-highlight-color: transparent;
  }

  .seal-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .seal-left {
    clip-path: polygon(0 0, 54% 0, 46% 100%, 0 100%);
    opacity: 0;
  }

  .seal-right {
    clip-path: polygon(48% 0, 100% 0, 100% 100%, 42% 100%);
    opacity: 0;
  }

  .topbar {
    height: 72px;
    display: flex;
    justify-content: center;
    padding: 0 14px;
  }

  .nav-link,
  .nav-button {
    display: none;
  }

  .brand {
    left: 50%;
    transform: translateX(-50%);
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 14px;
    border: 0;
    background: transparent;
    color: var(--ink-dark);
    font-size: 28px;
  }

  .mobile-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 90;
    display: none;
    padding: 22px;
    background: rgba(239, 234, 223, .98);
    border-bottom: 1px solid rgba(182, 164, 110, .18);
  }

  .mobile-menu.open {
    display: grid;
    gap: 18px;
  }

  .mobile-menu a {
    color: var(--ink-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 12px;
  }

  .hero {
    min-height: 100svh;
    padding: 86px 16px 36px;
  }

  .hero picture img {
    object-position: center top;
  }

  .hero-title {
    top: 10%;
    width: 86vw;
  }

  .hero-lion,
  .hero-banner-wrap {
    display: none;
  }

  .details-strip {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    margin: 0 auto 26px;
    padding: 18px;
  }

  .detail-item {
    border-right: 0;
    border-bottom: 1px solid rgba(182, 164, 110, .16);
  }

  .detail-item:last-of-type {
    border-bottom: 0;
  }

  .details-strip .main-button {
    width: 100%;
  }

  .cards-grid,
  .cards-grid-three {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 34px;
  }

  .visual-card {
    min-height: 430px;
  }

  .panel-section {
    width: calc(100% - 32px);
    padding: 22px 0 34px;
  }

  .panel {
    padding: 32px 22px;
  }

  .rsvp-lamp-post {
    width: 82px;
    opacity: .35;
  }

  .hobbit-img {
    width: 46%;
    opacity: .38;
  }

  .closing-scene {
    min-height: 46vh;
  }
}

/* Corrigir alinhamento dos tópicos dentro dos cards */
.visual-card .line {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.visual-card .line img {
  width: 28px;
  min-width: 28px;
  margin-top: 4px;
  flex-shrink: 0;
}

.visual-card .line-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visual-card .line-text strong {
  color: var(--ink-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  line-height: 1.2;
}

.visual-card .line-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}