:root{
  --bg1:#faf6f6;
  --bg2:#f0f2f5;
  --ink:#1c1c1c;
  --muted:#555;
  --accent:#6f2e2e;
  --card:#fff;
  --border:#e6e6e6;
  --radius:14px;

  --container: 700px;

  --font-script: Aquarelle, ui-serif, Georgia, "Times New Roman", serif;
  --font-display: "Scarlet Bradley.regular", Aquarelle, ui-serif, Georgia, "Times New Roman", serif;
  --font-couple: "Katty Diona", "Belinda Avenue", Signora, cursive;
  --font-sans: Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans";
  --font-body: PlayfairDisplay, ui-serif, Georgia, "Times New Roman", serif;
  --font-ui: OpenSans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans";
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: var(--font-body);
  color:var(--ink);
  background:linear-gradient(180deg,var(--bg2),var(--bg1));
}

.page{min-height:100%}

.shell{
  width: min(var(--container), calc(100% - 24px));
  margin: 14px auto 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.hero{
  position:relative;
  padding: 0;
  color:var(--accent);
}

.heroCard{
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow:hidden;
  border:0;
  background: transparent;
  box-shadow: none;
}

.hero__frame{
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow:hidden;
  border:0;
  background: transparent;
  box-shadow: none;
}

.hero__bg{
  height: 66vh;
  min-height: 650px;
  max-height: 820px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.25)),
    url("./images/hero.jpg") top/cover no-repeat;
}

.hero__content{
  position:absolute;
  inset: 14px 0 auto 0;
  margin: 0 auto;
  width: min(var(--container), calc(100% - 48px));
  text-align:center;
  pointer-events:none;
}

.hero__kicker{
  margin: 230px 0 0;
  font-size: 40px;
  letter-spacing: .3px;
  font-family: var(--font-script);
  transform: rotate(-12deg);
}

.hero__names{
  margin: 120px 0 0;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:center;
  gap:10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 30px;
  font-family: var(--font-sans);
}

@media (max-width: 576px){
  .hero__names{
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.05;
  }

  .hero__names > span{
    display: block;
  }

  .hero__amp{
    margin: 0;
    font-size: 1.05em;
  }
}

.hero__amp{
  font-weight: 500;
  font-size: .9em;
}

.hero__date{
  margin: 18px 0 0;
  font-size: 25px;
  letter-spacing: .6px;
  font-family: var(--font-sans);
}

.hero__subtitle{
  margin: 20px 0 0;
  color:var(--accent);
  font-size: 30px;
  font-family: var(--font-script);
  font-style: italic;
}

.countdownbar{
  width: 100%;
  margin: 0;
  background: #fff;
  border:0;
  border-radius: 0;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow:hidden;
}

.countdownbar__item{
  padding: 14px 10px;
  padding-top: 26px;
  text-align:center;
}

.countdownbar__item + .countdownbar__item{
  border-left: 1px solid rgba(0,0,0,.06);
}

.countdownbar__num{
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  font-family: var(--font-sans);
}

.countdownbar__label{
  margin-top: 4px;
  font-size: 15px;
  color: var(--accent);
  font-family: var(--font-sans);
}

.audio{
  position:absolute;
  top:10px;
  right:10px;
  width:30px;
  height:30px;
  border-radius:999px;
  border:0;
  background: rgba(165,165,165,0.2);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 1000;
  padding:0;
  outline:none;
  -webkit-tap-highlight-color: transparent;
}

.audio__icon{
  display:block;
  width:100%;
  height:100%;
  background:#000;
}

.audio__cancel{
  position:absolute;
  inset:0;
  border-radius:999px;
  overflow:hidden;
  display:block;
  padding-top: 15px;
  opacity: 1;
  transition: opacity .2s ease;
  pointer-events:none;
}

.audio__line{
  display:block;
  transform: rotate(45deg);
  width:100%;
  height:1px;
  background:#fff;
}

.audio[aria-pressed="true"] .audio__cancel{
  opacity: 0;
}

.audio[aria-pressed="true"]{
  animation: spin 5s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){
  .audio[aria-pressed="true"]{animation:none}
}

.card{
  width: 100%;
  margin: 0;
  background:transparent;
  border:0;
  border-radius: 0;
  box-shadow: none;
  overflow:hidden;
}

.section{
  padding: 26px 22px;
  border-top:0;
}
.section[aria-label="Lời mời"]{
  padding-top: 0;
}
.section:first-child{border-top:0}
.section__title{
  margin:0 0 14px;
  text-align:center;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: .4px;
  font-weight: 700;
}

.center{text-align:center}
.subtle{color:var(--muted)}
.lead{margin-top: 12px}
.small{font-size: 12px}

.inviteText{
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.4;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
}

.couple{
  margin: 25px 0 6px;
  text-align: center;
  color: var(--ink);
}

.couple__name{
  font-family: var(--font-body);
  font-size: clamp(44px, 8vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: .2px;
}

.couple__amp{
  margin: 4px 0;
  font-family: var(--font-body);
  font-size: clamp(30px, 6.2vw, 44px);
  line-height: 1;
  font-weight: 700;
}

.timeKicker{
  margin: 6px 0 10px;
  font-size: 18px;
  color: var(--ink);
  font-family: var(--font-body);
}

.timeBlock{
  text-align: center;
  color: var(--ink);
  padding: 12px 0 6px;
  border-top: 1px solid rgba(111,46,46,.70);
}

.timeBlock__main{
  font-family: var(--font-sans);
  font-size: 34px;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-weight: 700;
}

.timeBlock__date{
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 32px;
  letter-spacing: .8px;
  font-weight: 700;
}

.lunar{
  margin: 12px 0 0;
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
}


.savephotos{
  position:relative;
  height: clamp(170px, 26vw, 240px);
  margin: 4px auto 10px;
  isolation: isolate;
}

.savephotos__left{
  position:absolute;
  left: 14px;
  top: 0;
  width: clamp(210px, 34vw, 300px);
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 18px;
  border: 8px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.savephotos__right{
  position:absolute;
  right: 14px;
  top: clamp(22px, 4vw, 46px);
  width: clamp(240px, 38vw, 340px);
  height: clamp(130px, 18vw, 190px);
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 18px;
  border: 8px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

@media (max-width: 420px){
  .savephotos{
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 8px;
    margin: 6px auto 12px;
  }

  .savephotos__left,
  .savephotos__right{
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: 210px;
    border-width: 6px;
  }

  .savephotos__right{
    height: 180px;
  }
}

.saveTitle{
  text-align:center;
  margin: 30px 0 10px;
  line-height: 1;
}

.saveTitle__big{
  font-size: 62px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  font-family: var(--font-display);
}

.saveTitle__big--right{
  margin-top: 2px;
}

.saveTitle__mid{
  font-size: 32px;
  margin: 4px 0;
  font-family: var(--font-display);
  color: var(--accent);
}

.parents{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items:start;
  margin-top: 12px;
}

.parents__divider{
  width: 2px;
  background: rgba(111,46,46,.55);
  height: 96px;
  margin-top: 12px;
}

.parents__head{
  font-weight: 800;
  text-align:center;
}

.parents__text{
  margin-top: 8px;
  text-align:center;
  line-height:1.7;
}

.names{
  text-align:center;
  font-size: 28px;
  margin: 10px 0 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  color: var(--accent);
}
.names__amp{margin:0 6px; opacity:.9}

.bg-calendar{
  border:1px solid var(--border);
  border-radius: 12px;
  overflow:hidden;
  margin-top: 14px;
  background:
    url("./images/bg-calendar.png") center/cover no-repeat;
}

.calendar__header{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.72);
  color:var(--accent);
  font-weight: 700;
}
.calendar__header > span:first-child{
  font-weight: 800;
  font-size: 20px;
}
.calendar__hint{font-weight:500; opacity:.8; font-size: 12px; font-family: var(--font-ui)}
.calendar__grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  padding: 20px;
  background: transparent;
}
.cal__dow{
  font-size: 15px;
  color: var(--muted);
  text-align:center;
}
.cal__cell{
  height: 42px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  font-size: 17px;
  font-weight: 500;
}
.cal__cell--empty{border-color:transparent; background:transparent}
.cal__cell--marked{
  position:relative;
  border-color: rgba(111,46,46,.25);
  background: rgba(111,46,46,.06);
  font-weight: 800;
  color: var(--accent);
  font-size: 27px;
}
.cal__cell--marked::after{
  content:"";
  position:absolute;
  width: 35px;
  height: 35px;
  right: -7px;
  top: -15px;
  background: url("./images/calen_heart_1.png") center/contain no-repeat;
}

@media (max-width: 576px){
  .calendar__grid{
    gap: 5px;
    padding: 12px;
    padding-bottom: 25px;
  }

  .cal__cell{
    height: 38px;
    font-size: 16px;
  }

  .cal__cell--marked{
    font-size: 22px;
  }
  .cal__cell--marked::after{
    width: 25px;
    height: 30px;
    top: -7px;
    right: -5px;
  }
}

.map{margin-top: 12px; border-radius: 12px; overflow:hidden; border:1px solid var(--border)}
.map iframe{width:100%; height: 280px; border:0; display:block}

@media (min-width: 520px){
  .map iframe{height: 340px}
}

.profiles{display:grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px}
@media (min-width: 640px){ .profiles{grid-template-columns: 1fr 1fr} }

.profile{
  border:1px solid var(--border);
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
}
.profile__photo{height: 220px; background: #eee center/cover no-repeat}
@media (min-width: 640px){
  .profile__photo{height: 260px}
}
.profile__photo--bride{background-image:url("./images/bride.jpg")}
.profile__photo--groom{background-image:url("./images/groom.jpg")}
.profile__meta{padding: 12px 12px 14px; text-align:center}
.profile__role{color: var(--accent); font-weight:700}
.profile__name{font-size: 18px; margin-top: 4px; font-weight:800}
.profile__dob{font-size: 20px; margin-top: 4px; color: var(--muted)}

.section[aria-label="Timeline"]{
  background:
    linear-gradient(180deg, rgba(240,240,240,.92), rgba(240,240,240,.92)),
    url("./images/timeline_bg.jpg") center/cover no-repeat;
}

.timelineTitle{
  font-size: 44px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .9;
}

.timelineStrip{
  position: relative;
  margin: 4px auto 0;
  padding: 12px 6px 4px;
}

.timelineStrip::before{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 56px;
  height: 2px;
  background: rgba(111,46,46,.70);
}

.timelineStrip__items{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.timelineStrip__item{
  width: 25%;
  min-width: 0;
  text-align: center;
  position: relative;
}

.timelineStrip__icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  background: center/contain no-repeat;
}
.timelineStrip__icon--car{background-image:url("./images/tl_icon_car.png")}
.timelineStrip__icon--people{background-image:url("./images/tl_icon_people.png")}
.timelineStrip__icon--rings{background-image:url("./images/tl_icon_rings.png")}
.timelineStrip__icon--party{background-image:url("./images/tl_icon_party.png")}

.timelineStrip__heart{
  width: 18px;
  height: 18px;
  margin: 0 auto 8px;
  background: url("./images/calen_heart_1.png") center/contain no-repeat;
  position: relative;
  z-index: 1;
}

.timelineStrip__time{
  font-weight: 800;
  color: var(--ink);
  margin-top: 0;
}

.timelineStrip__label{
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink);
}


.gift{
  max-width: 520px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 12px;
  border:1px solid rgba(111,46,46,.25);
  background: linear-gradient(180deg, rgba(111,46,46,.05), rgba(111,46,46,.02));
  text-align:center;
}
.gift__title{font-weight:800}
.gift__line{height:1px; background: rgba(111,46,46,.25); margin: 10px auto; width: 60%}
.gift__account{font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 13px}


.footer{padding: 18px 16px 26px; border-top:1px solid var(--border)}
.thanks{margin:0; text-align:center; font-size: 28px; color: var(--accent); font-family: ui-serif, Georgia, "Times New Roman", serif}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-width: min(520px, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.82);
  color:#fff;
  font-size: 13px;
  opacity: 0;
  pointer-events:none;
  transition: opacity .2s ease;
  z-index: 20;
}
.toast.show{opacity: 1}
