:root {
  --bg-0: #fdf8ee;
  --bg-1: #fffef8;
  --card: rgba(255, 255, 255, 0.88);
  --text: #1e2430;
  --subtext: #5b6676;
  --line: #e9dece;
  --brand: #d4523f;
  --brand-soft: #ffefe7;
  --naver: #03c75a;
  --kakao: #fee500;
  --tmap: #0f7dff;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(35, 24, 7, 0.12);
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 100% -20%, #ffe1b8 0%, transparent 35%),
    radial-gradient(circle at -10% 25%, #ffd6cf 0%, transparent 35%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  font-family: 'SUIT Variable', 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  line-height: 1.55;
}

.page {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px 14px 80px;
}

.card {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--subtext);
}

.hero {
  text-align: center;
  padding: 28px 20px;
}

.hero-title {
  margin: 8px 0;
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.1;
}

.hero-title span {
  color: var(--brand);
}

.hero-subtitle {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.hero-parents {
  margin: 12px 0 0;
  color: var(--subtext);
  font-size: 14px;
}

.summary-item h2,
.section-header h2 {
  margin: 0;
  font-size: 21px;
}

.summary-item p,
.section-header p {
  margin: 4px 0 0;
  color: var(--subtext);
}

.section-header {
  margin-bottom: 14px;
}

.chips {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--brand-soft);
  color: #7e281e;
  font-size: 13px;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-cell {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.calendar-cell.weekday {
  min-height: 32px;
  background: #fff8ef;
  color: var(--subtext);
  font-size: 12px;
  font-weight: 700;
}

.calendar-cell.empty {
  background: rgba(255, 255, 255, 0.35);
}

.calendar-cell.event-day {
  background: linear-gradient(130deg, #d4523f, #e57b30);
  color: #fff;
  border-color: transparent;
  font-weight: 800;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.count-item {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  min-height: 90px;
  gap: 4px;
}

.count-item span {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 800;
}

.count-item small {
  color: var(--subtext);
}

.map {
  width: 100%;
  min-height: 240px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #f2efe7;
}

.map-fallback {
  margin-bottom: 10px;
  color: #a23f36;
  font-size: 14px;
}

.address {
  margin: 10px 0 0;
  color: var(--subtext);
}

.button-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button,
.button:visited {
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.button-naver {
  background: var(--naver);
}

.button-kakao {
  background: var(--kakao);
  color: #3f3000;
}

.button-tmap {
  background: var(--tmap);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gallery-item {
  border: 0;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f6f6;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.transfer-cards {
  display: grid;
  gap: 10px;
}

.transfer-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #fff;
}

.transfer-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.account {
  margin: 0;
  color: var(--subtext);
  word-break: keep-all;
}

.guestbook-form {
  display: grid;
  gap: 10px;
}

.guestbook-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
}

.form-message {
  margin: 4px 0 0;
  min-height: 20px;
  font-size: 13px;
  color: var(--subtext);
}

.guestbook-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.guestbook-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.guestbook-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--subtext);
}

.guestbook-message {
  margin: 8px 0;
  line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
}

.guestbook-actions {
  display: flex;
  gap: 8px;
}

.guestbook-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 6px 9px;
  font-size: 12px;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.92);
  z-index: 1000;
  display: grid;
  place-items: center;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  padding: 20px 10px;
  animation: fadeIn 140ms ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

.lightbox-nav {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  height: 100%;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: revealCard 420ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 60ms;
}

.reveal:nth-child(3) {
  animation-delay: 100ms;
}

.reveal:nth-child(4) {
  animation-delay: 140ms;
}

.reveal:nth-child(5) {
  animation-delay: 180ms;
}

.reveal:nth-child(6) {
  animation-delay: 220ms;
}

.reveal:nth-child(7) {
  animation-delay: 260ms;
}

.reveal:nth-child(8) {
  animation-delay: 300ms;
}

.reveal:nth-child(9) {
  animation-delay: 340ms;
}

@keyframes revealCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 720px) {
  .page {
    padding: 26px 24px 90px;
  }

  .card {
    padding: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .transfer-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
