/* status: DRAFT | phase: 6 | real-device-review: pending */
:root {
  color-scheme: dark;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  background: #090909;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #090909;
}

body {
  color: rgb(255 255 255 / 94%);
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.invitation {
  width: 100%;
  max-width: 390px;
  min-height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #0d0d0d;
}

.figma-first {
  width: 100%;
  background: #fbfdfc;
}

.figma-first img,
.figma-story img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  -webkit-user-drag: none;
  user-select: none;
}

.figma-story {
  width: 100%;
  background: #242424;
}

.wedding-details {
  min-height: 1800px;
  padding:
    90px max(24px, env(safe-area-inset-right))
    calc(44px + env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  background-color: #242424;
  background-image: url("./sample-images/figma-black-texture.17048a15.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 390px auto;
}

.section-number,
footer {
  letter-spacing: 0.16em;
}

.detail-block {
  padding: 72px 0;
  border-top: 1px solid rgb(255 255 255 / 16%);
  text-align: center;
}

.section-number {
  margin: 0 0 18px;
  color: #f8c7ca;
  font-size: 10px;
  font-weight: 600;
}

.detail-block h2 {
  margin: 0 0 42px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.42px;
}

.detail-primary,
.detail-secondary {
  margin: 0;
  letter-spacing: -0.28px;
}

.detail-primary {
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
}

.detail-secondary {
  margin-top: 7px;
  color: rgb(255 255 255 / 58%);
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
}

.text-action {
  margin-top: 16px;
  border: 0;
  color: rgb(255 255 255 / 34%);
  background: transparent;
  font-size: 12px;
}

.map-actions,
.share-actions {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

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

.venue-map {
  position: relative;
  width: 100%;
  height: 260px;
  margin-top: 32px;
  overflow: hidden;
  background: rgb(255 255 255 / 6%);
}

.venue-map > p {
  display: grid;
  min-height: 100%;
  margin: 0;
  place-items: center;
  color: rgb(255 255 255 / 58%);
  font-size: 13px;
}

.map-actions button,
.map-actions a,
.outline-action,
.share-button {
  min-height: 46px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 0;
  color: rgb(255 255 255 / 90%);
  background: transparent;
  font-size: 13px;
  font-weight: 400;
}

.map-actions a {
  display: grid;
  place-items: center;
  text-decoration: none;
}

button:focus-visible,
.map-actions a:focus-visible,
summary:focus-visible {
  outline: 2px solid #f8c7ca;
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.transport-list {
  margin: 48px 0 0;
  text-align: left;
}

.transport-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  padding: 17px 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.transport-list div:last-child {
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.transport-list dt,
.transport-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  letter-spacing: -0.26px;
}

.transport-list dt {
  color: rgb(255 255 255 / 88%);
  font-weight: 500;
}

.transport-list dd {
  color: rgb(255 255 255 / 48%);
  font-weight: 300;
}

.outline-action {
  width: 100%;
  margin-top: 32px;
  cursor: pointer;
}

.account-list {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  text-align: left;
}

.account-list details {
  border: 1px solid rgb(255 255 255 / 18%);
}

.account-list summary {
  padding: 18px;
  color: rgb(255 255 255 / 86%);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.28px;
}

.account-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
  color: rgb(255 255 255 / 44%);
  font-size: 12px;
  font-weight: 300;
}

.account-content button {
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 18%);
  color: inherit;
  background: transparent;
}

.share-actions {
  grid-template-columns: 1fr 1fr;
}

.share-button {
  cursor: pointer;
}

.share-button--kakao {
  border-color: #fee500;
  color: #191919;
  background: #fee500;
}

.share-button:disabled {
  cursor: wait;
}

.share-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #b7d7c0;
  font-size: 12px;
  line-height: 20px;
}

.share-status.is-error {
  color: #ffb7b7;
}

footer {
  padding-top: 70px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  color: rgb(255 255 255 / 34%);
  text-align: center;
  font-size: 9px;
  line-height: 18px;
}

footer p {
  margin: 0;
}

@media (min-width: 560px) {
  .invitation {
    box-shadow: 0 0 42px rgb(0 0 0 / 55%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
