:root {
  --bg: #f7f2ed;
  --paper: #fffdf9;
  --soft: #efe5dc;
  --text: #2f2926;
  --muted: #8d7f76;
  --line: #dfd2c8;
  --accent: #8f5f65;
  --max: 720px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #e9e4df;
  color: var(--text);
  font-family: Pretendard, Arial, sans-serif;
}
main {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.07);
}
.section {
  padding: 82px 24px;
  text-align: center;
}
.hero {
  padding: 0;
  position: relative;
  min-height: 100svh;
}
.hero-photo {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 12vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.28)),
    url("./images/hero.webp") center 35% / cover no-repeat;
  position: relative;
  overflow: hidden;
}
/* .hero-photo::after {
  content: "대표 웨딩사진";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  letter-spacing: 0.3em;
} */
.hero-copy {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.24);
}
.eyebrow,
.section-kicker {
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
}
.hero h1,
.section h2 {
  font-family: "Noto Serif KR", serif;
  font-weight: 500;
}
.hero h1 {
  font-size: 38px;
  margin: 12px 0 8px;
}
.hero h1 span {
  font-size: 20px;
  margin: 0 8px;
}
.subtitle {
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
}
.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}
.paper {
  background: var(--paper);
}
.soft {
  background: var(--soft);
}
.section-kicker {
  color: var(--accent);
  margin: 0 0 18px;
}
.section h2 {
  font-size: 28px;
  line-height: 1.55;
  margin: 0 0 28px;
}
.body-copy {
  font-family: "Noto Serif KR", serif;
  font-size: 16px;
  line-height: 2;
  color: #5d524c;
}
.names {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}
.names div:not(.heart) {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.names span {
  font-size: 11px;
  color: var(--muted);
}
.names strong {
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
}
.heart {
  color: var(--accent);
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 12px;
}
.countdown div {
  min-width: 78px;
  padding: 16px 10px;
  border: 1px solid rgba(77, 55, 45, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}
.countdown strong {
  display: block;
  font-size: 28px;
}
.countdown span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.d-day {
  color: var(--accent);
  font-weight: 600;
}
.timeline {
  display: grid;
  gap: 14px;
  max-width: 430px;
  margin: 0 auto;
  text-align: left;
}
.timeline-item {
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 18px;
}
.timeline-item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.timeline-item p {
  margin: 6px 0 0;
}
.gallery-section {
  background: #f4eee8;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #ded4cc;
}
.gallery-item.portrait {
  aspect-ratio: 2 / 3;
}
.gallery-item.landscape {
  aspect-ratio: 3 / 2;
}
.gallery-item.wide {
  grid-column: 1 / -1;
}
.gallery-item.centered {
  grid-column: 1 / -1;
  width: 72%;
  justify-self: center;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 사진별로 얼굴/구도가 잘 보이도록 위치를 미세 조정 */
.gallery-item:nth-child(1) img {
  object-position: center 45%;
}
.gallery-item:nth-child(2) img {
  object-position: center 45%;
}
.gallery-item:nth-child(3) img {
  object-position: center 45%;
}
.gallery-item:nth-child(4) img {
  object-position: center 50%;
}
.gallery-item:nth-child(5) img {
  object-position: center 42%;
}
.gallery-item:nth-child(6) img {
  object-position: center 42%;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 16px;
}
.location-card,
.form-card,
.account-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(75, 55, 45, 0.08);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(71, 47, 36, 0.04);
}
.location-card p {
  color: var(--muted);
}
.map-placeholder {
  height: 220px;
  border-radius: 14px;
  background: repeating-linear-gradient(
    45deg,
    #e8dfd7,
    #e8dfd7 10px,
    #efe8e2 10px,
    #efe8e2 20px
  );
  display: grid;
  place-items: center;
  color: #99877c;
  letter-spacing: 0.2em;
  margin: 18px 0;
}
#map {
  width: 100%;
  height: 220px;
  border-radius: 16px;
}
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn,
.primary {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.primary {
  width: 100%;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  margin-top: 8px;
}
.form-card {
  text-align: left;
  display: grid;
  gap: 14px;
}
.form-card label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #5f5149;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 12px;
  background: #fff;
  font: inherit;
  color: var(--text);
}
textarea {
  min-height: 96px;
  resize: vertical;
}
.form-status {
  margin: 0;
  min-height: 18px;
  font-size: 12px;
  color: var(--accent);
  text-align: center;
}
.guestbook-list {
  max-width: 520px;
  margin: 18px auto 0;
  display: grid;
  gap: 10px;
}
.guestbook-item {
  text-align: left;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 14px 16px;
}
.guestbook-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.guestbook-item p {
  margin: 0;
  color: #66574f;
  line-height: 1.55;
}
.account-card {
  display: grid;
  gap: 12px;
  text-align: left;
}
.account-card div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}
.account-card span {
  font-size: 11px;
  color: var(--muted);
}
.account-card strong {
  font-size: 13px;
}
.copy-btn {
  border: 0;
  background: #eee3dc;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.ending {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: #3c3431;
  color: #fff;
}
.ending p {
  font-family: "Noto Serif KR", serif;
  font-size: 22px;
  margin: 0;
}
.ending strong {
  font-size: 12px;
  letter-spacing: 0.2em;
}
.ending small {
  opacity: 0.55;
  letter-spacing: 0.2em;
  margin-top: 14px;
}
.bottom-nav {
  position: fixed;
  z-index: 20;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 620px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(35, 30, 28, 0.86);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.bottom-nav button {
  border: 0;
  background: transparent;
  color: #fff;
  opacity: 0.9;
  padding: 10px 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
@media (max-width: 430px) {
  .section {
    padding: 70px 20px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .section h2 {
    font-size: 25px;
  }
  .countdown div {
    min-width: 70px;
  }
  .gallery {
    gap: 6px;
  }
  .gallery-item.centered {
    width: 78%;
  }
  .account-card div {
    grid-template-columns: 1fr auto;
  }
  .account-card span {
    grid-column: 1/-1;
  }
  .account-card strong {
    font-size: 12px;
  }
}
.share-section {
  padding: 36px 20px 110px;
  text-align: center;
}

.share-title {
  margin-bottom: 14px;
  font-size: 14px;
  color: #777;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.share-buttons button {
  flex: 1;
  max-width: 180px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

#kakaoShareBtn {
  background: #fee500;
  color: #191919;
}

#copyLinkBtn {
  background: #f2f2f2;
  color: #333;
}
