:root {
  --ivory: #fffdf8;
  --paper: #fbf5ea;
  --cream: #f2e6d4;
  --champagne: #e8cf96;
  --gold: #b78735;
  --terracotta: #b86549;
  --sage: #74836b;
  --ink: #2f2922;
  --muted: #73675b;
  --line: rgba(183, 135, 53, 0.24);
  --shadow: 0 24px 68px rgba(81, 54, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.92)),
    url("./assets/floral-pattern.jpg");
  background-size: 620px auto;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body::selection {
  background: var(--champagne);
  color: var(--ink);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  overflow-wrap: normal;
  word-break: normal;
}

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

h1 {
  max-width: 8ch;
  font-size: clamp(5rem, 11vw, 10.5rem);
}

h2 {
  font-size: clamp(2.8rem, 6.8vw, 7.2rem);
}

h3 {
  font-size: 1.65rem;
  line-height: 1.05;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px clamp(18px, 4vw, 56px);
  color: var(--ivory);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 207, 150, 0.72);
  border-radius: 50%;
  font-family: Italiana, "Cormorant Garamond", serif;
  font-size: 1.18rem;
}

.brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.7vw, 30px);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: 92px clamp(20px, 5vw, 72px) 44px;
  overflow: hidden;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(41, 31, 25, 0.9), rgba(64, 48, 39, 0.64)),
    url("./assets/florence-editorial.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(33, 25, 20, 0.48), rgba(33, 25, 20, 0.08)),
    radial-gradient(circle at 72% 28%, rgba(232, 207, 150, 0.28), transparent 28%);
}

.hero::after {
  content: "Firenze";
  position: absolute;
  right: -0.08em;
  bottom: -0.24em;
  color: rgba(255, 253, 248, 0.075);
  font-family: Italiana, "Cormorant Garamond", serif;
  font-size: clamp(7rem, 17vw, 16rem);
  line-height: 1;
  pointer-events: none;
}

.hero__copy,
.hero__portrait {
  position: relative;
  z-index: 1;
}

.hero__copy {
  align-self: center;
  padding-top: 4vh;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--champagne);
}

.hero__copy p:not(.eyebrow) {
  width: min(610px, 100%);
  margin: 26px 0 0;
  font-size: clamp(1.04rem, 1.65vw, 1.36rem);
  color: rgba(255, 253, 248, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.button--primary {
  border-color: var(--champagne);
  background: var(--champagne);
  color: #332519;
}

.button--ghost {
  color: var(--ivory);
}

.hero__portrait {
  align-self: end;
  max-width: 560px;
  justify-self: end;
  filter: drop-shadow(0 34px 64px rgba(0, 0, 0, 0.36));
}

.hero__portrait img {
  width: 100%;
  height: min(66vh, 680px);
  min-height: 430px;
  object-fit: contain;
  object-position: center bottom;
}

.seal {
  position: absolute;
  left: -42px;
  bottom: 42px;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 207, 150, 0.72);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  color: var(--gold);
  box-shadow: var(--shadow);
}

.seal span {
  font-family: Italiana, "Cormorant Garamond", serif;
  font-size: 2.45rem;
}

.marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px clamp(22px, 5vw, 64px);
  padding: 18px 20px;
  background: var(--ink);
  color: var(--champagne);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
}

.story__text p:last-child,
.flights p,
.place p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
}

.story__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
}

.story__gallery img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border: 1px solid rgba(183, 135, 53, 0.26);
  box-shadow: var(--shadow);
}

.story__gallery .gallery-main {
  height: 520px;
  object-position: center;
}

.facts-section {
  width: 100%;
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  background: rgba(242, 230, 212, 0.9);
  border-block: 1px solid var(--line);
}

.facts-section h2 {
  max-width: 960px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.facts article,
.timeline article,
.flight-list article,
.person {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.facts article {
  min-height: 190px;
  padding: 24px;
}

.facts span,
.person > span,
.timeline time,
.flight-list span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts h3 {
  margin-top: 48px;
}

.facts p,
.timeline p,
.timeline li,
.flight-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 36px;
}

.team {
  position: relative;
}

.team::before {
  content: "bride tribe";
  position: absolute;
  top: 48px;
  right: 0;
  z-index: -1;
  color: rgba(183, 135, 53, 0.08);
  font-family: Italiana, "Cormorant Garamond", serif;
  font-size: clamp(5rem, 13vw, 13rem);
  line-height: 1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.person {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 18px;
  overflow: hidden;
}

.person > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 135, 53, 0.28);
  border-radius: 50%;
  background: var(--paper);
  letter-spacing: 0;
}

.person strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}

.person--photo {
  position: relative;
  min-height: 255px;
  aspect-ratio: 4 / 5;
  display: block;
  padding: 0;
  background: var(--paper);
}

.person--photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 220ms ease;
}

.person--photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(47, 41, 34, 0.74), transparent);
}

.person--photo strong {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: var(--ivory);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.person--photo:hover img {
  transform: scale(1.03);
}

.person--lena img {
  object-position: 62% 35%;
}

.person--klosia img {
  object-position: 50% 25%;
}

.person--olka img {
  object-position: 50% 28%;
}

.person--ewka img {
  object-position: 50% 22%;
}

.person--aga img {
  object-position: 50% 20%;
}

.person--karolina img {
  object-position: 50% 20%;
}

.person--marta img {
  object-position: 50% 20%;
}

.person--kinia img {
  object-position: 50% 22%;
}

.person--placeholder {
  background:
    linear-gradient(rgba(255, 253, 248, 0.84), rgba(255, 253, 248, 0.84)),
    url("./assets/floral-pattern.jpg");
  background-size: 380px auto;
}

.person--bride {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  min-height: 280px;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

.person--bride img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center 16%;
}

.person--bride div {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(47, 41, 34, 0.76), transparent);
}

.person--bride div span {
  display: block;
  margin-bottom: 4px;
  color: var(--champagne);
  font-weight: 900;
}

.person--bride strong {
  color: var(--ivory);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.itinerary {
  width: 100%;
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(rgba(47, 41, 34, 0.84), rgba(47, 41, 34, 0.84)),
    url("./assets/florence-flatlay.jpg");
  background-size: cover;
  background-position: center;
  color: var(--ivory);
}

.itinerary .eyebrow,
.itinerary .timeline time {
  color: var(--champagne);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline article {
  min-height: 520px;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.1);
  border-color: rgba(232, 207, 150, 0.3);
  box-shadow: none;
  backdrop-filter: blur(7px);
}

.timeline p {
  color: rgba(255, 253, 248, 0.82);
}

.timeline ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.96rem;
  line-height: 1.42;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne);
}

.flights {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.flight-list {
  display: grid;
  gap: 14px;
}

.flight-list article {
  padding: 24px;
}

.flight-list strong {
  display: block;
  margin-top: 10px;
  font-size: 1.18rem;
}

.place {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
}

.place > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.place__content {
  display: grid;
  align-content: center;
  padding: clamp(48px, 7vw, 90px);
  background:
    linear-gradient(rgba(47, 41, 34, 0.88), rgba(47, 41, 34, 0.88)),
    url("./assets/floral-pattern.jpg");
  background-size: 500px auto;
}

.place h2 {
  max-width: 560px;
}

.place p {
  color: rgba(255, 253, 248, 0.82);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }

  .hero,
  .story,
  .flights,
  .place {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero__portrait {
    max-width: 520px;
    justify-self: start;
  }

  .hero__portrait img {
    height: 560px;
    min-height: 0;
  }

  .facts,
  .timeline {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .place > img {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 16px;
  }

  .brand strong {
    display: none;
  }

  .nav {
    gap: 10px;
    font-size: 0.66rem;
  }

  .hero {
    min-height: 91svh;
    display: block;
    padding: 106px 16px 34px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.7rem, 17vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.6rem, 15vw, 4.8rem);
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    width: min(198px, 54vw);
  }

  .hero__portrait img {
    height: 315px;
    min-height: 0;
  }

  .seal {
    display: none;
  }

  .hero__portrait {
    position: absolute;
    right: -42px;
    bottom: 22px;
    z-index: 1;
    width: 210px;
    opacity: 0.92;
  }

  .hero__copy {
    z-index: 2;
    width: min(100%, 352px);
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 68px 0;
  }

  .facts-section,
  .itinerary {
    padding-right: 28px;
    padding-left: 28px;
  }

  .flights {
    width: min(100% - 56px, 1180px);
  }

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

  .story__gallery img,
  .story__gallery .gallery-main {
    height: 330px;
  }

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

  .person--bride {
    grid-column: auto;
  }

  .person--bride img {
    height: 310px;
    min-height: 0;
  }

  .marquee {
    justify-content: flex-start;
  }
}
