:root {
  --green: #056639;
  --ink: #272525;
  --page-max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: #000;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
}

button,
a {
  font: inherit;
}

.invite {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-bottom: 79px;
}

.header {
  display: flex;
  width: 100%;
  max-width: 1920px;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}

.branch-slot {
  position: relative;
  width: 549px;
  height: 134px;
  flex: 0 0 auto;
}

.branch {
  position: absolute;
  left: 157px;
  top: -207px;
  width: 134px;
  height: 549px;
  transform-origin: center;
}

.branch-left {
  transform: rotate(90deg) scaleY(-1);
}

.branch-right {
  transform: rotate(90deg);
}

.branch img,
.name-mark img,
.mobile-flourish img {
  position: absolute;
  display: block;
}

.branch-a {
  left: 26.82px;
  top: 353.49px;
  width: 64.85px;
  height: 195.58px;
}

.branch-b {
  left: 15.12px;
  top: 208.16px;
  width: 67.79px;
  height: 163.84px;
}

.branch-c {
  left: 0;
  top: 0;
  width: 134.15px;
  height: 248.86px;
}

.header-center {
  flex: 0 0 auto;
}

.name-mark {
  position: relative;
  width: 327px;
  height: 80px;
}

.name-a {
  left: 184.68px;
  top: 15.47px;
  width: 142.41px;
  height: 49.06px;
}

.name-b {
  left: 0;
  top: 0;
  width: 120.93px;
  height: 80px;
}

.name-c {
  left: 138.4px;
  top: 24.64px;
  width: 33.58px;
  height: 30.73px;
}

.mobile-flourish {
  display: none;
}

.content {
  display: flex;
  width: 100%;
  max-width: var(--page-max);
  flex: 1 0 auto;
  align-items: center;
  gap: 64px;
}

.accordion-section {
  display: flex;
  width: 606px;
  flex: 0 0 606px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.accordion-item {
  width: 100%;
}

.accordion-trigger {
  display: flex;
  width: 100%;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  padding: 16px;
  text-align: left;
}

.accordion-title {
  font-family: Caveat, "Comic Sans MS", cursive;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
}

.accordion-icon {
  width: 10px;
  height: 21px;
  flex: 0 0 auto;
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(270deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px;
}

.accordion-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 12px 0 8px;
  font-size: 16px;
  line-height: 1.75;
}

.accordion-content p {
  margin: 0;
}

.accordion-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 200px auto;
  gap: 80px;
  align-items: start;
}

.note {
  font-size: 13px;
  line-height: 1.75;
}

.closing-note {
  margin: 0;
  color: #000;
  font-family: Caveat, "Comic Sans MS", cursive;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
}

.couple {
  width: 770px;
  height: 780px;
  flex: 0 0 770px;
  margin: 0;
}

.couple img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .invite {
    min-height: 0;
    padding-bottom: 24px;
  }

  .header {
    flex-direction: column;
    gap: 0;
    padding: 16px;
  }

  .branch-slot {
    display: none;
  }

  .name-mark {
    margin-bottom: -10px;
  }

  .mobile-flourish {
    position: relative;
    display: block;
    width: 255px;
    height: 71px;
    transform: scaleY(-1);
  }

  .mobile-leaf-a {
    left: 102px;
    top: 0;
    width: 152.75px;
    height: 71.2px;
  }

  .mobile-leaf-b {
    left: 0;
    top: 0;
    width: 152.75px;
    height: 71.2px;
  }

  .content {
    max-width: 430px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 16px 0;
  }

  .couple {
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 770 / 780;
    flex: 0 0 auto;
  }

  .accordion-section {
    order: 2;
    width: 100%;
    flex-basis: auto;
  }

  .accordion-trigger {
    min-height: 66px;
    border-radius: 14px;
  }

  .accordion-title {
    font-size: 28px;
  }

  .closing-note {
    font-size: 28px;
  }

  .accordion-panel-inner {
    padding: 0 16px;
  }

  .accordion-content {
    font-size: 15px;
  }

  .schedule-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .header {
    transform: scale(.84);
    transform-origin: top center;
    margin-bottom: -30px;
  }

  .content {
    max-width: 1200px;
    gap: 42px;
  }

  .accordion-section {
    width: 520px;
    flex-basis: 520px;
  }

  .couple {
    width: 620px;
    height: 628px;
    flex-basis: 620px;
  }
}
