:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #2d2926;
  --muted: #746c64;
  --line: #e7e0d7;
  --soft: #f4eee6;
  --accent: #8b5f4d;
  --accent-strong: #6f4333;
  --white: #fff;
  --shadow: 0 16px 48px rgb(69 48 36 / 14%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #eee8df;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-serif, "Apple SD Gothic Neo", "Noto Serif KR", "Times New Roman", serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.page-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 60px rgb(48 37 30 / 12%);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__shade {
  background: linear-gradient(180deg, rgb(22 19 17 / 8%), rgb(22 19 17 / 12%) 42%, rgb(22 19 17 / 58%));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 28px max(36px, env(safe-area-inset-bottom));
  color: var(--white);
  text-shadow: 0 2px 18px rgb(0 0 0 / 34%);
}

.hero__date,
.hero__venue {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.hero h1 {
  margin: 12px 0;
  font-size: clamp(42px, 13vw, 60px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: 0;
}

.section {
  padding: 54px 26px;
  border-top: 1px solid var(--line);
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro {
  text-align: center;
}

.message {
  display: grid;
  gap: 10px;
  color: #3b352f;
  font-size: 18px;
  line-height: 1.9;
}

.message p,
.families p,
.timeline p,
.venue p {
  margin: 0;
}

.families {
  margin-top: 34px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

h2 {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 520;
  letter-spacing: 0;
}

.timeline,
.venue,
.rsvp {
  background: var(--soft);
}

.timeline p,
.venue p {
  color: var(--muted);
  line-height: 1.75;
}

.address {
  margin-top: 10px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.button,
.contact-grid a,
.section-toggle {
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.button--ghost {
  background: transparent;
  color: var(--accent-strong);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-grid a {
  background: var(--white);
  color: var(--accent-strong);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgb(65 46 34 / 8%);
}

.section-toggle {
  width: 100%;
  justify-content: space-between;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.account-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.account-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-item p {
  margin: 0 0 8px;
}

.account-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.gallery-track img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}

.rsvp-form {
  display: grid;
  gap: 14px;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 650;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  font-size: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(88vw, 360px);
  padding: 13px 16px;
  border-radius: 8px;
  background: rgb(40 33 28 / 92%);
  color: var(--white);
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 24%);
}

@media (min-width: 720px) {
  body {
    padding: 24px 0;
  }

  .page-shell {
    border-radius: 8px;
    overflow: hidden;
  }
}
