:root {
  --cream: #f3efe6;
  --paper: #f7f4ed;
  --stone: #5c5148;
  --ink: #3b332c;
  --sage: #7d8068;
  --sage-dark: #6a6e57;
  --line: #cfc8b8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "freight-big-pro", "Playfair Display", Georgia, serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
}

body * {
  box-sizing: border-box;
}

body main {
  flex: 1 0 auto;
  padding-top: 101px;
  background: var(--cream);
}

body h1,
body h2,
body p,
body figure {
  margin: 0;
}

/* Torn paper edges (same mask as the rest of the site) */

body .Tear {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  background-color: var(--cream);
  -webkit-mask-image: url(../images/ripped-bg-3.png);
  mask-image: url(../images/ripped-bg-3.png);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
}

body .Tear--bottom {
  bottom: -1px;
}

body .Tear--top {
  top: -1px;
  transform: scaleY(-1);
}

body .D2_kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--stone);
}

body .D2_script {
  font-family: "Parisienne", cursive;
  font-weight: 400;
  color: var(--stone);
}

/* ---------- Intro ---------- */

body .D2_intro {
  position: relative;
  text-align: center;
  padding: 72px 24px 64px;
  overflow: hidden;
}

body .D2_flower {
  position: absolute;
  top: 24px;
  width: 180px;
  height: 200px;
  object-fit: cover;
  object-position: 45% 50%;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

body .D2_flower--left {
  left: max(2vw, calc(50% - 560px));
  transform: scaleX(-1);
}

body .D2_flower--right {
  right: max(2vw, calc(50% - 560px));
}

body .D2_intro h1 {
  margin-top: 18px;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
}

body .D2_intro h1 em {
  display: block;
  font-family: "Parisienne", cursive;
  font-style: normal;
  font-size: 1.25em;
  color: var(--stone);
}

body .D2_divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 280px;
  margin: 26px auto;
  color: var(--gold);
}

body .D2_divider::before,
body .D2_divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

body .D2_divider svg {
  width: 16px;
  height: 16px;
}

body .D2_lead {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--stone);
}

/* ---------- Palette band ---------- */

body .D2_palette {
  position: relative;
  background: var(--sage);
  color: #fff;
  padding: 120px 24px;
  text-align: center;
}

body .D2_palette .D2_kicker {
  color: rgba(255, 255, 255, 0.85);
}

body .D2_palette h2 {
  margin-top: 12px;
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

body .D2_palette_text {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

body .D2_palette strong {
  font-weight: 600;
  color: #fff;
}

body .D2_groups {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px min(5vw, 56px);
  margin: 44px auto 0;
}

body .D2_group + .D2_group {
  padding-left: min(5vw, 56px);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

body .D2_group_title {
  margin-bottom: 18px;
  font-family: "Parisienne", cursive;
  font-size: 1.9rem;
  line-height: 1;
}

body .D2_swatches {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  line-height: 1.4;
}

body .D2_swatches li {
  width: 72px;
}

body .D2_swatches span {
  display: block;
  width: 64px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

body .D2_bridesmaids {
  max-width: 560px;
  margin: 44px auto 0;
}

body .D2_bridesmaids img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(40, 40, 30, 0.12));
}

body .D2_palette_note {
  max-width: 520px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Tips inside the looks columns ---------- */

body .D2_tip {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}

body .D2_tip svg {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--sage);
}

body .D2_tip p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--stone);
}

body .D2_tip strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Closing ---------- */

body .D2_closing {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 72px;
  text-align: center;
}

body .D2_closing > p:first-child {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--stone);
}

body .D2_closing .D2_script {
  margin-top: 22px;
  font-size: 2rem;
  line-height: 1.4;
}

/* ---------- Looks ---------- */

body .D2_looks {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px) 1fr;
  align-items: center;
  gap: 40px min(5vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

body .D2_col h2 {
  margin: 14px 0 16px;
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--ink);
}

body .D2_col > p:not([class]) {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--stone);
}

body .D2_col .D2_script {
  max-width: 340px;
  margin-top: 22px;
  font-size: 1.9rem;
  line-height: 1.45;
}

body .D2_col--left {
  text-align: right;
}

body .D2_col--left .D2_script {
  margin-left: auto;
}

/* Arch frame, same shape as the home cards */

body .D2_couple {
  position: relative;
  aspect-ratio: 731 / 1289;
  background: var(--paper);
  border: 1px solid #e6e0d4;
  border-radius: 50% 50% 16px 16px / 29% 29% 16px 16px;
  overflow: hidden;
}

body .D2_couple img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body .D2_flower {
    width: 110px;
    height: 125px;
    top: 10px;
  }

  body .D2_intro {
    padding-top: 96px;
  }

  body .D2_groups {
    flex-direction: column;
    align-items: center;
  }

  body .D2_group + .D2_group {
    padding: 32px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }

  body .D2_swatches {
    max-width: 290px;
    margin: 0 auto;
    gap: 22px 18px;
  }

  body .D2_closing .D2_script {
    font-size: 1.7rem;
  }

  body .D2_palette {
    padding: 100px 24px;
  }

  body .D2_looks {
    grid-template-columns: 1fr;
    max-width: 480px;
    text-align: center;
    gap: 44px;
    padding: 56px 24px 80px;
  }

  body .D2_couple {
    width: min(78%, 300px);
    margin: 0 auto;
  }

  body .D2_col--left {
    text-align: center;
  }
}

main {
  flex: 1 0 auto;
  padding-top: 101px;
  background: var(--cream);
}

h1,
h2,
p {
  margin: 0;
}

/* Torn paper edges */
.Tear {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  -webkit-mask-image: url(../images/ripped-bg-3.png);
  mask-image: url(../images/ripped-bg-3.png);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.Tear--bottom {
  bottom: -1px;
  background-color: var(--cream);
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
}

.Tear--top {
  top: -1px;
  background-color: var(--cream);
  transform: scaleY(-1);
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
}

.DressSection_kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  color: var(--stone);
  margin-bottom: 14px;
}

/* Hero */
.DressHero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: clamp(560px, 70vh, 720px);
  background-color: var(--cream);
  background-image: url(../images/ensaio/1.jpg);
  background-repeat: no-repeat;
  /* photo stretches to just under the text, never shorter than the hero */
  background-size: max(calc(100% - min(8vw, 120px) - 380px), 480px) auto;
  background-position: 0 45%;
  overflow: hidden;
}

.DressHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    var(--cream) 0%,
    var(--cream) calc(min(8vw, 120px) + 420px),
    rgba(243, 239, 230, 0) calc(min(8vw, 120px) + 640px)
  );
}

.DressHero_text {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  margin-right: min(8vw, 120px);
  padding: 48px 0 110px;
}

.DressHero_kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--stone);
  margin-bottom: 16px;
}

.DressHero_text h1 {
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  line-height: 1.1;
  color: var(--ink);
}

.DressHero_text h1 em {
  display: block;
  font-family: "Parisienne", cursive;
  font-style: normal;
  font-size: 1.15em;
  color: var(--stone);
}

.DressHero_text > p:not([class]) {
  margin-top: 22px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--stone);
}

.DressHero_note {
  margin-top: 22px;
  font-family: "Parisienne", cursive;
  font-size: 1.6rem;
  color: var(--stone);
}

.DressHero_note span {
  display: block;
  margin-top: 6px;
  font-family: "freight-big-pro", serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* Palette */
.DressPalette {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  align-items: center;
  gap: 40px min(6vw, 80px);
  padding: 40px min(8vw, 120px) 56px;
}

.DressPalette_intro h2,
.DressTips_title h2 {
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--ink);
}

.DressPalette_intro > p:last-child {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--stone);
}

/* This section tells guests what NOT to wear, so it is made to stand out */
.DressPalette_intro .DressSection_kicker {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #b7862f;
  margin-bottom: 18px;
}

.DressPalette_intro h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
}

.DressPalette_intro > p:last-child {
  margin-top: 20px;
  font-size: 1.25rem;
}

.DressPalette_swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--stone);
}

.DressPalette_swatches span {
  display: block;
  width: 56px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(92, 81, 72, 0.25);
}

/* Tablet landscape: 8 in a row gets too tight */
@media (min-width: 901px) and (max-width: 1200px) {
  .DressPalette_swatches {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 14px;
  }
}

/* Aviso que vem antes da seção "Cores do cortejo" */
.DressPalette_note {
  max-width: 640px;
  margin: -43px auto 0;
  padding: 0 24px;
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--stone);
}

/* Shown only on mobile (see media query) */
.DressPalette_bridesmaids {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 472px;
  margin: 8px auto 0;
}

.DressPalette_bridesmaids img {
  display: block;
  width: 100%;
  height: auto;
}

/* Short outfit tags in the looks columns */
.D2_chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.D2_col--left .D2_chips {
  justify-content: flex-end;
}

.D2_chips li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}

/* Looks */
.DressLooks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 24px min(8vw, 120px) 96px;
}

.DressLooks_col {
  padding: 0 min(3vw, 40px);
}

.DressLooks_col:first-child {
  border-right: 1px solid var(--line);
}

.DressLooks_text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--stone);
  max-width: 420px;
}

.DressLooks_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 26px 0 22px;
}

.DressLooks_grid figure {
  margin: 0;
  aspect-ratio: 3 / 5;
  border-radius: 80px 80px 10px 10px / 60px 60px 10px 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #e4dccb, #d8cfbd);
}

.DressLooks_grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.DressLooks_quote {
  max-width: 380px;
  font-family: "Parisienne", cursive;
  font-size: 1.55rem;
  line-height: 1.5;
  color: var(--stone);
}

/* Tips band */
.DressTips {
  position: relative;
  background: #e6e7dc;
  color: var(--ink);
  padding: 110px min(8vw, 120px);
}

.DressTips_inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  align-items: center;
  gap: 32px min(5vw, 64px);
}

.DressTips_title .DressSection_kicker,
.DressTips_title h2 {
  color: var(--ink);
}

.DressTips_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.DressTips_list li {
  padding: 0 8px;
  border-left: 1px solid rgba(92, 81, 72, 0.2);
}

.DressTips_list li:first-child {
  border-left: 0;
}

.DressTips_list svg {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--sage-dark);
}

.DressTips_list p {
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .DressPalette {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 24px 56px;
    text-align: center;
  }

  .DressPalette_swatches {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 10px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 22px 14px;
    background: var(--paper);
    border: 1px solid #e6e0d4;
    border-radius: 16px;
  }

  .DressPalette_swatches span {
    max-width: 36px;
    margin-bottom: 8px;
  }

  .DressPalette_bridesmaids {
    display: block;
    width: min(85%, 360px);
    margin-top: 0;
  }

  .DressLooks {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 0 24px 72px;
  }

  .DressLooks_col {
    padding: 0;
  }

  .DressLooks_col:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 48px;
  }

  .DressTips {
    padding: 100px 24px;
  }

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

  .DressTips_list {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
  }

  .DressTips_list li:nth-child(odd) {
    border-left: 0;
  }

  .D2_chips,
  .D2_col--left .D2_chips {
    justify-content: center;
  }
}

/* Line-art flower beside the headline */
.DressHero_flower {
  position: absolute;
  top: 18px;
  right: -110px;
  width: 190px;
  height: 210px;
  object-fit: cover;
  object-position: 45% 50%;
  mix-blend-mode: multiply;
  opacity: 0.6;
  pointer-events: none;
}

/* Tablet: same side-by-side banner as desktop; keep the rose on screen */
@media (min-width: 601px) and (max-width: 900px) {
  /* couple is centred in this photo, so give it the left half */
  .DressHero {
    background-size: auto 125%;
    background-position: -60px 40%;
  }

  .DressHero::before {
    background: linear-gradient(
      270deg,
      var(--cream) 0%,
      var(--cream) 46%,
      rgba(243, 239, 230, 0) 66%
    );
  }

  .DressHero_text {
    width: 52%;
    margin-right: 32px;
  }

  .DressHero_flower {
    right: -40px;
    width: 140px;
    height: 155px;
  }
}

/* Phone: photo on the left, text beside it (same idea as desktop) */
@media (max-width: 600px) {
  .DressHero {
    align-items: center;
    justify-content: flex-end;
    min-height: 540px;
    background-size: auto 100%;
    background-position: -115px 50%;
  }

  .DressHero::before {
    background: linear-gradient(
      270deg,
      var(--cream) 0%,
      var(--cream) 46%,
      rgba(243, 239, 230, 0) 70%
    );
  }

  .DressHero_text {
    width: 56%;
    margin-right: 16px;
    padding: 64px 0 96px;
  }

  .DressHero_kicker {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    margin-bottom: 10px;
  }

  .DressHero_text h1 {
    font-size: 1.75rem;
  }

  .DressHero_text > p:not([class]) {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .DressHero_note {
    margin-top: 14px;
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .DressHero_flower {
    top: auto;
    bottom: 44px;
    transform: rotate(28deg);
    transform-origin: left bottom;
    right: 24px;
    width: 80px;
    height: 90px;
  }
}
