:root {
  --ink: #222321;
  --muted: #73706a;
  --paper: #fbfaf7;
  --line: #ded8cf;
  --sage: #6f7c67;
  --rose: #b9857b;
  --blue: #d9e5eb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ecefea;
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a.button {
  min-height: 44px;
}

.invite {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 24px 70px rgb(35 36 32 / 14%);
  overflow: hidden;
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-rows: auto minmax(330px, 1fr) auto auto auto;
  align-items: center;
  padding: 18px 20px 40px;
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 62%);
  backdrop-filter: blur(12px);
}

.topbar a {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 32px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.topbar a:focus-visible,
button:focus-visible,
a.button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.hero-art {
  width: calc(100% + 40px);
  margin: 18px -20px 24px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #d9e5eb;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--rose);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Gowun Batang", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  text-align: center;
  font-size: clamp(48px, 17vw, 74px);
  line-height: 0.98;
}

h1 span {
  display: block;
  margin: 13px 0;
  color: var(--muted);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 15px;
  font-weight: 400;
}

.hero-date,
.hero-place {
  text-align: center;
}

.hero-date {
  margin: 28px 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.hero-place {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 56px 24px;
  border-bottom: 1px solid var(--line);
}

.intro {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.intro p {
  margin: 0 auto;
  max-width: 310px;
  font-family: "Gowun Batang", serif;
  font-size: 20px;
  line-height: 1.85;
}

.intro p + p {
  margin-top: 18px;
}

.schedule h2,
.place h2,
.gallery h2,
.contact h2 {
  font-size: 31px;
  line-height: 1.25;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.date-grid div {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px 8px;
  background: var(--white);
  text-align: center;
}

.date-grid strong {
  font-family: Inter, system-ui, sans-serif;
  font-size: 28px;
}

.date-grid span {
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
}

.countdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  background: var(--blue);
}

.countdown span {
  color: #4d5960;
  font-size: 13px;
  font-weight: 700;
}

.countdown strong {
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
}

.calendar {
  background: #f4f6f5;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.calendar-head p {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.calendar-head span {
  color: var(--muted);
  font-size: 14px;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.weekdays span {
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.days span {
  height: 42px;
  display: grid;
  place-items: center;
  color: #494a45;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
}

.days .picked {
  background: var(--sage);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
}

.place p:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.map-tile {
  position: relative;
  height: 220px;
  margin-top: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 72%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 72%) 1px, transparent 1px),
    #dfe7e2;
  background-size: 36px 36px;
}

.pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 7px solid var(--rose);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -60%) rotate(-45deg);
  background: var(--white);
  z-index: 2;
}

.road {
  position: absolute;
  display: block;
  background: rgb(111 124 103 / 35%);
}

.road.one {
  left: -20px;
  top: 64px;
  width: 120%;
  height: 15px;
  transform: rotate(13deg);
}

.road.two {
  left: 118px;
  top: -18px;
  width: 16px;
  height: 300px;
  transform: rotate(29deg);
}

.road.three {
  right: -28px;
  bottom: 48px;
  width: 72%;
  height: 12px;
  transform: rotate(-18deg);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.button,
.contact button {
  display: grid;
  place-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: 700 14px "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.contact button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.72;
}

.gallery {
  background: var(--white);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.photo-grid figure {
  margin: 0;
  aspect-ratio: 1 / 1.22;
  overflow: hidden;
  background: var(--paper);
}

.photo-grid figure:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid figure:nth-child(3),
.photo-grid figure:nth-child(6) {
  aspect-ratio: 1 / 1.42;
}

.photo-grid .art-card {
  aspect-ratio: 1 / 1;
  background: var(--paper);
}

.photo-grid .art-card img {
  object-fit: contain;
  padding: 18px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-list p,
.contact-list strong {
  margin: 0;
}

.contact-list p {
  color: var(--muted);
  font-size: 13px;
}

.contact-list strong {
  font-size: 18px;
}

.contact button {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 86px;
}

footer {
  padding: 38px 24px 48px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

footer p {
  margin: 0 0 6px;
  font-family: "Gowun Batang", serif;
  font-size: 25px;
  font-weight: 700;
}

footer span {
  color: rgb(251 250 247 / 70%);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 40px rgb(0 0 0 / 18%);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 760px) {
  body {
    padding: 28px 0;
  }

  .invite {
    border-radius: 8px;
  }
}

@media (max-width: 360px) {
  .section {
    padding-inline: 18px;
  }

  .date-grid strong {
    font-size: 22px;
  }

  .contact-list article {
    grid-template-columns: 1fr;
  }

  .contact button {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }
}

.contact-list .account-number {
  margin-top: 8px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-list article > div {
  min-width: 0;
}

.contact button {
  grid-row: 1;
}

@media (max-width: 480px) {
  .contact button {
    grid-row: auto;
  }
}
