@font-face {
  font-family: "Bickham Script One";
  src: url("assets/fonts/BickhamScriptOne.woff") format("woff");
  font-display: swap;
}

:root {
  --sand-50: #fbf7f1;
  --sand-100: #f4ede3;
  --sand-200: #e7dccf;
  --stone-300: #ccb8a3;
  --stone-500: #8e7764;
  --ink-700: #5d4d41;
  --ink-900: #2f241d;
  --sea-100: #dce6e8;
  --sea-300: #9bb4b8;
  --sea-500: #667f86;
  --line: rgba(76, 59, 46, 0.12);
  --card: rgba(255, 252, 247, 0.72);
  --card-strong: rgba(255, 250, 245, 0.84);
  --shadow-soft: 0 18px 48px rgba(53, 38, 28, 0.1);
  --shadow-card: 0 28px 70px rgba(53, 38, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink-900);
  background: linear-gradient(180deg, #faf5ee 0%, #f3ece2 100%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fffaf4;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus-visible {
  top: 16px;
}

.page-shell {
  position: relative;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(250, 245, 238, 0.42), rgba(243, 236, 226, 0.62)),
    url("assets/images/sea-stones.jpg") center/cover;
  transform: scale(1.04);
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 30%),
    radial-gradient(circle at right 18%, rgba(157, 183, 188, 0.16), transparent 22%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 28px;
  display: grid;
  align-items: center;
}

.hero__backdrop {
  position: absolute;
  inset: 20px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background:
    linear-gradient(rgba(27, 24, 21, 0.14), rgba(27, 24, 21, 0.34)),
    url("assets/images/hero-sea.jpg") center/cover;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 240, 0.04) 8%, rgba(29, 22, 18, 0.38) 100%),
    radial-gradient(circle at 50% 25%, rgba(240, 220, 200, 0.18), transparent 36%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
  color: #fff7f0;
}

.eyebrow,
.section-kicker,
.info-card__label,
.iban-box__label,
.detail-list__label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.hero h1 {
  margin-top: 14px;
  font-family: "Bickham Script One", "Bodoni Moda", serif;
  font-size: clamp(5.8rem, 12vw, 10.6rem);
  line-height: 1;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero h1 span {
  font-style: inherit;
  font-weight: inherit;
}

.hero__surname {
  margin: 14px 0 0;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 247, 240, 0.78);
}

.hero__lead {
  width: min(620px, 100%);
  margin: 26px auto 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.85;
  color: rgba(255, 247, 240, 0.9);
  text-wrap: balance;
}

.hero__date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 248, 240, 0.2);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.1);
  font-size: 0.92rem;
  color: rgba(255, 247, 240, 0.92);
  backdrop-filter: blur(8px);
}

.hero__date::before,
.hero__date::after {
  content: "";
  width: 20px;
  height: 1px;
  background: rgba(255, 247, 240, 0.45);
}

.content {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 12px 0 88px;
}

.section {
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.gift-card h2 {
  margin-top: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.97;
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p,
.gift-card__copy,
.info-card p,
.timeline-item p,
.footer-note {
  color: var(--ink-700);
  line-height: 1.8;
}

.section-heading__lead {
  margin-top: 14px;
  max-width: 38rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.info-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  background: var(--card-strong);
  border: 1px solid rgba(76, 59, 46, 0.08);
}

.info-card--highlight {
  background:
    linear-gradient(135deg, rgba(179, 139, 111, 0.14), rgba(255, 250, 245, 0.74)),
    var(--card-strong);
}

.info-card__media {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 36px rgba(53, 38, 28, 0.12);
}

.info-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 450ms ease, filter 450ms ease;
}

.info-card:hover .info-card__media img {
  transform: scale(1.03);
  filter: saturate(0.98) contrast(1.04);
}

.info-card h3,
.timeline-item h3 {
  font-size: 2.15rem;
  line-height: 0.98;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list__row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: start;
}

.detail-list__label {
  color: var(--stone-500);
}

.detail-list__value {
  color: var(--ink-900);
  line-height: 1.65;
}

.detail-list__value--contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-link {
  text-decoration: none;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  color: #1f8f52;
  transition: transform 180ms ease, background-color 180ms ease;
}

.whatsapp-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(37, 211, 102, 0.2);
}

.info-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(47, 36, 29, 0.18);
  font-weight: 600;
}

.text-link--push-right {
  margin-left: auto;
}

.section--timeline {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.68), rgba(255, 250, 245, 0.76)),
    rgba(255, 252, 247, 0.68);
}

.timeline {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid rgba(47, 36, 29, 0.1);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-item__time {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.15rem;
  color: var(--sea-500);
}

.section--gift {
  background:
    radial-gradient(circle at top right, rgba(163, 192, 198, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.76), rgba(255, 248, 242, 0.84));
}

.section--photos {
  background:
    radial-gradient(circle at top left, rgba(155, 180, 184, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.76), rgba(247, 243, 237, 0.84));
}

.section--contacts {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.72), rgba(252, 247, 241, 0.82)),
    rgba(255, 252, 247, 0.72);
}

.intro-grid--contacts .info-card {
  min-height: 100%;
}

.gift-card {
  max-width: 760px;
}

.gift-card h2 {
  margin-top: 8px;
}

.iban-box {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid rgba(76, 59, 46, 0.08);
}

.iban-box__value {
  margin: 10px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  letter-spacing: 0.11em;
  line-height: 1.8;
  color: var(--ink-900);
  word-break: break-word;
}

.iban-box__value--compact {
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff9f4;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.copy-button--link {
  text-decoration: none;
}

.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
  background: #46362b;
  box-shadow: 0 10px 18px rgba(53, 38, 28, 0.16);
}

.copy-button.is-copied {
  background: #587068;
}

.iban-box__note {
  margin: 14px 0 0;
  color: var(--ink-700);
  line-height: 1.7;
}

.footer-note {
  margin: 34px auto 0;
  text-align: center;
  font-family: "Bickham Script One", "Cormorant Garamond", serif;
  font-size: 4.00rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-900);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(76, 59, 46, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.88);
  color: var(--ink-900);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease,
    background-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(255, 248, 242, 0.96);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 900ms cubic-bezier(0.2, 1, 0.22, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 140ms;
}

.reveal-delay-2 {
  animation-delay: 280ms;
}

.reveal-delay-3 {
  animation-delay: 420ms;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(88, 112, 104, 0.7);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero__content,
  .content {
    width: min(100%, calc(100% - 24px));
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell::before {
    background:
      linear-gradient(rgba(250, 245, 238, 0.5), rgba(243, 236, 226, 0.7)),
      url("assets/images/sea-stones.jpg") center/cover;
  }

  .hero {
    min-height: 92svh;
    padding: max(14px, env(safe-area-inset-top)) 14px 8px;
  }

  .hero__backdrop {
    inset: 0;
    border-radius: 0 0 28px 28px;
  }

  .hero__content {
    width: 100%;
    padding: 0 10px 18px;
  }

  .hero h1 {
    font-size: clamp(5.4rem, 17vw, 7.4rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
  }

  .hero__surname {
    font-size: 0.84rem;
    letter-spacing: 0.14em;
  }

  .hero__lead {
    margin-top: 18px;
    max-width: 26rem;
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .hero__date {
    margin-top: 24px;
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .hero__date::before,
  .hero__date::after {
    width: 12px;
  }

  .content {
    width: min(100%, calc(100% - 20px));
    padding: 10px 0 52px;
  }

  .section {
    margin-top: 16px;
    padding: 22px 18px;
    border-radius: 24px;
    background: rgba(255, 251, 246, 0.8);
  }

  .section-heading h2,
  .gift-card h2 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 0.98;
  }

  .section-heading__lead {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .eyebrow,
  .section-kicker,
  .info-card__label,
  .iban-box__label,
  .detail-list__label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .intro-grid {
    gap: 14px;
    margin-top: 22px;
  }

  .info-card {
    padding: 18px;
    gap: 14px;
    border-radius: 20px;
  }

  .info-card__media {
    border-radius: 16px;
    aspect-ratio: 1.18 / 1;
  }

  .info-card h3,
  .timeline-item h3 {
    font-size: 1.8rem;
  }

  .detail-list__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .timeline {
    margin-top: 22px;
    gap: 12px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 16px;
    border: 1px solid rgba(47, 36, 29, 0.08);
    border-radius: 20px;
    background: rgba(255, 252, 248, 0.72);
  }

  .timeline-item:first-child {
    border-top: 1px solid rgba(47, 36, 29, 0.08);
  }

  .timeline-item__time {
    font-size: 1.7rem;
  }

  .iban-box {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .copy-button {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    min-height: 48px;
    padding: 0 14px;
  }

  .footer-note {
    font-size: 2rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(4.6rem, 16vw, 6.2rem);
  }

  .section {
    padding: 20px 16px;
  }

  .iban-box__value {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .footer-note {
    font-size: 1.8rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .copy-button,
  .info-card__media img,
  .back-to-top {
    transition: none;
  }
}
