:root {
  --bg: #f7f1ea;
  --paper: #fffaf5;
  --ink: #2b2420;
  --muted: #766b62;
  --line: rgba(43, 36, 32, 0.16);
  --accent: #9b7d63;
  --accent-dark: #5d4738;
  --radius: 28px;
  --shadow: 0 22px 70px rgba(49, 36, 26, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.8), transparent 34rem),
    linear-gradient(180deg, #efe3d6 0%, var(--bg) 40%, #eee0d1 100%);
  font-family: Inter, system-ui, sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.45;
  filter: blur(16px);
}

body::before {
  left: -10rem;
  bottom: 4%;
  background: rgba(155, 125, 99, 0.10);
}

body::after {
  right: -11rem;
  top: 5%;
  background: rgba(255, 255, 255, 0.35);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 22px 16px 50px;
}

.section {
  position: relative;
  z-index: 1;
  margin: 18px 0;
  padding: 34px 24px;
  background: rgba(255, 250, 245, .84);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  text-align: center;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 12px;
  border: 1px solid rgba(155, 125, 99, .16);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}

.section > * {
  position: relative;
  z-index: 2;
}

h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: .95;
  margin: 0;
  font-weight: 600;
}

h1 {
  margin-top: 22px;
  font-size: clamp(58px, 16vw, 96px);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(36px, 10vw, 54px);
  letter-spacing: -0.035em;
}

p {
  font-size: 15px;
  line-height: 1.75;
  margin: 16px auto 0;
  max-width: 390px;
}

.eyebrow,
.section-label {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero__frame {
  width: min(78vw, 350px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 34px 34px;
  background: rgba(255,255,255,.55);
}

.hero__frame img,
.photo-card img,
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__frame img {
  border-radius: 999px 999px 26px 26px;
}

.hero__subtitle {
  max-width: 260px;
  font-size: 14px;
  color: var(--muted);
}

.ornament {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 28px;
}

.muted,
.hint {
  color: var(--muted);
  font-size: 14px;
}

.music-btn,
.link-btn,
.submit-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 30px rgba(93, 71, 56, .22);
  font: 600 14px Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.photo-card {
  margin-top: 22px;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.timeline {
  position: relative;
  margin: 20px auto 0;
  max-width: 340px;
  text-align: left;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 26px;
  align-items: start;
  padding: 14px 0;
}

.timeline__item span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-dark);
}

.timeline__item p {
  margin: 2px 0 0;
  line-height: 1.4;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.gallery-strip img {
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.deadline {
  font-weight: 500;
}

.form {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  text-align: left;
}

.form label,
.form legend {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  margin-top: 8px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.75);
  font: 15px Inter, sans-serif;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(80, 65, 50, 0.55);
}

fieldset {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

fieldset label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 400;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(80, 65, 50, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  background: rgba(255, 255, 255, 0.7);
  color: #2e2a27;
  outline: none;
  margin-top: 8px;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}

.palette span {
  width: 42px;
  height: 42px;
  background: var(--c);
  border: 2px solid rgba(255,255,255,.78);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.countdown-grid div {
  padding: 14px 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.56);
}

.countdown-grid strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.footer { margin-bottom: 0; }

.qr-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-box img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 390px) {
  .page { padding-left: 10px; padding-right: 10px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .countdown-grid { gap: 6px; }
  .countdown-grid strong { font-size: 28px; }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
