:root {
  color-scheme: light;
  --bg: #f6f1ea;
  --bg-deep: #efe6dd;
  --ink: #2f2a26;
  --muted: #6f645c;
  --accent: #c4876a;
  --accent-deep: #a46a50;
  --card: #fff9f4;
  --line: rgba(47, 42, 38, 0.12);
  --shadow: 0 20px 50px rgba(80, 60, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Gowun Batang", serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fffaf5 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

html[data-invite="false"] [data-location] {
  display: none !important;
}

html[data-invite="false"] [data-invite="true"] {
  display: none !important;
}

html[data-invite="true"] [data-invite="false"] {
  display: none !important;
}

@media (min-width: 820px) {
  body {
    display: flex;
    justify-content: center;
    padding: 32px 0 48px;
  }

  .page {
    width: min(480px, 100%);
    background: radial-gradient(circle at top, #fffaf5 0%, var(--bg) 45%, var(--bg-deep) 100%);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(80, 60, 45, 0.18);
    overflow: hidden;
  }
}

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

.page {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  padding: 0 24px;
  text-align: center;
  background: linear-gradient(150deg, rgba(255, 245, 235, 0.65), rgba(232, 214, 198, 0.65)),
    url("assets/hero-main.jpg") center 40px / cover no-repeat;
}

.bgm {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.bgm__button {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 12px 24px rgba(80, 60, 45, 0.15);
  cursor: pointer;
}

.bgm__status {
  color: var(--muted);
  font-size: 12px;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 60%);
  mix-blend-mode: screen;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  display: grid;
  gap: 18px;
  padding: 48px 32px;
  background: rgba(255, 250, 245, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transform: translateY(-40px);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--muted);
  font-family: "Gowun Dodum", sans-serif;
}

.hero__title {
  font-size: clamp(32px, 5vw, 46px);
  margin: 0;
}

.hero__subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.hero__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.dot {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fffaf5;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(196, 135, 106, 0.3);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(196, 135, 106, 0.35);
}

.button--ghost {
  background: transparent;
  color: var(--accent-deep);
  border-color: rgba(164, 106, 80, 0.4);
  box-shadow: none;
}

.section {
  padding: 0 24px;
  display: grid;
  gap: 28px;
}

.section__header {
  text-align: center;
  display: grid;
  gap: 10px;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  font-family: "Gowun Dodum", sans-serif;
  color: var(--muted);
  margin: 0;
}

.section__title {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
}

.invitation__text {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
  display: grid;
  gap: 12px;
}

.couple {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.couple__card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.couple__role {
  font-family: "Gowun Dodum", sans-serif;
  color: var(--muted);
  margin: 0;
}

.couple__name {
  font-size: 22px;
  margin: 8px 0;
}

.couple__family {
  color: var(--muted);
  margin: 0;
}

.couple__mbti {
  margin: 8px 0 0;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}

.couple__birth {
  margin: 6px 0 0;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.schedule__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.schedule__card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  text-align: center;
}

.label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
}

.value {
  font-size: 16px;
  margin: 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  border: 1px solid var(--line);
}

.countdown__title {
  text-align: center;
  font-family: "Gowun Dodum", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.countdown__item {
  text-align: center;
}

.countdown__value {
  display: block;
  font-size: 24px;
  color: var(--accent-deep);
}

.countdown__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.location__card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.location__place {
  font-size: 20px;
  margin: 0;
}

.location__address {
  color: var(--muted);
  margin: 0;
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location__info {
  display: grid;
  gap: 12px;
}

.story__timeline {
  display: grid;
  gap: 16px;
}

.story__item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
}

.story__date {
  font-family: "Gowun Dodum", sans-serif;
  color: var(--accent-deep);
  margin: 0;
}

.story__title {
  margin: 6px 0 4px;
  font-size: 18px;
}

.story__desc {
  margin: 0;
  color: var(--muted);
}

.gallery__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.gallery__item {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4e6d8, #f9f2ea);
  border: 1px dashed rgba(164, 106, 80, 0.25);
  background-size: cover;
  background-position: center;
}

.gallery__item--1 {
  background-image: url("assets/gallery-1.svg");
}

.gallery__item--2 {
  background-image: url("assets/gallery-2.svg");
}

.gallery__item--3 {
  background-image: url("assets/gallery-3.svg");
}

.gallery__item--4 {
  background-image: url("assets/gallery-4.svg");
}

.gallery__item--5 {
  background-image: url("assets/gallery-5.svg");
}

.gallery__item--6 {
  background-image: url("assets/gallery-6.svg");
}

.gallery__hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-family: "Gowun Dodum", sans-serif;
}

.account__groups {
  display: grid;
  gap: 16px;
}

.account__group {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
}

.account__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account__group-header .label {
  font-size: 14px;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}

.account__toggle {
  border: 1px solid rgba(164, 106, 80, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(80, 60, 45, 0.12);
}

.account__toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(80, 60, 45, 0.18);
}

.account__panel {
  margin-top: 16px;
}

.account__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.account__card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 6px;
}

.account__card .sub {
  margin: 0;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.rsvp {
  text-align: center;
}

.rsvp__text {
  color: var(--muted);
  margin: 0;
}

.rsvp__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--muted);
  font-family: "Gowun Dodum", sans-serif;
}

.footer__top {
  margin-top: 16px;
  display: inline-block;
  font-size: 13px;
  color: var(--accent-deep);
}

@media (max-width: 640px) {
  .hero__content {
    padding: 36px 20px;
  }

  .section {
    gap: 20px;
  }
}
