@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --ink: #39342d;
  --muted: #888075;
  --gold: #b18a48;
  --gold-dark: #98723a;
  --paper: #fffefa;
  --line: #e9e1d2;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: #f8f6f1;
  background-image: radial-gradient(ellipse at 50% 0%, #fffefa 0, #f8f6f1 70%);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 20px;
}

.upload-card {
  position: relative;
  width: min(100%, 610px);
  padding: 50px 68px 35px;
  overflow: hidden;
  text-align: center;
  background: var(--paper);
  border: 1px solid rgba(177, 138, 72, .22);
  box-shadow: 0 24px 70px rgba(74, 59, 34, .08), 0 3px 12px rgba(74, 59, 34, .035);
}

.upload-card::before,
.upload-card::after {
  position: absolute;
  right: 16px;
  left: 16px;
  height: 7px;
  content: '';
  border-top: 1px solid rgba(177, 138, 72, .35);
  border-bottom: 1px solid rgba(177, 138, 72, .18);
}
.upload-card::before { top: 15px; }
.upload-card::after { bottom: 15px; }

.wedding-heading { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--gold-dark); }
.eyebrow, .year { font-size: 25px; font-weight: 600; letter-spacing: .2em; }
.namen{font-family:"Georgia", serif; font-size: 35px; font-weight: normal;}

.heart-ornament { display: flex; align-items: center; gap: 14px; width: 170px; margin: 24px auto 14px; color: var(--gold); }
.heart-ornament::before, .heart-ornament::after { height: 1px; flex: 1; content: ''; background: linear-gradient(90deg, transparent, #c8a66e); }
.heart-ornament::after { transform: scaleX(-1); }
.heart-ornament span { font-family: Georgia, serif; font-size: 24px; line-height: 1; }

h1 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(54px, 9vw, 72px); font-weight: 400; line-height: .9; letter-spacing: -.045em; }
h1 em { color: var(--gold-dark); font-weight: 400; }

.flourish { display: flex; align-items: center; justify-content: center; gap: 10px; width: 180px; margin: 24px auto 20px; color: var(--gold); }
.flourish span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #c9aa76); }
.flourish span:last-child { transform: scaleX(-1); }
.flourish b { font-size: 11px; font-weight: 400; }

.intro { margin: 0 auto 28px; color: #716b61; font-size: 14px; line-height: 1.8; }

.drop-zone {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  cursor: pointer;
  background: #fffefa;
  border: 1.5px dashed #c9aa76;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.drop-zone:hover, .drop-zone.dragging { background: #fbf7ed; border-color: var(--gold-dark); }
.drop-zone.dragging { transform: scale(1.01); }
.upload-icon { display: grid; width: 54px; height: 54px; margin-bottom: 13px; place-items: center; color: #fff; background: linear-gradient(145deg, #d1b47f, #a77e3d); border-radius: 50%; box-shadow: 0 5px 14px rgba(160, 120, 57, .22); }
.upload-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.drop-zone strong { color: #51483a; font-size: 14px; font-weight: 600; }
.drop-hint { margin-top: 4px; color: var(--muted); font-size: 12px; }
.drop-zone small { margin-top: 15px; color: #9a9184; font-size: 10px; letter-spacing: .015em; }
.drop-zone small i { padding: 0 3px; color: var(--gold); font-style: normal; }
.drop-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.drop-zone:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }

.selection { min-height: 20px; margin: 8px 0 4px; color: var(--gold-dark); font-size: 12px; }
#submit { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 11px; margin-top: 14px; color: white; background: linear-gradient(105deg, #b99558, #d0b273 52%, #a98343); border: 0; border-radius: 2px; box-shadow: 0 6px 16px rgba(156, 117, 55, .18); font: 600 12px 'DM Sans', 'Segoe UI', sans-serif; letter-spacing: .13em; text-transform: uppercase; transition: filter .2s ease, opacity .2s ease, transform .2s ease; }
#submit:not(:disabled) { cursor: pointer; }
#submit:not(:disabled):hover { filter: brightness(1.04); transform: translateY(-1px); }
#submit:disabled { opacity: .62; }
#submit span { font-size: 18px; font-weight: 400; }

.progress-wrap { margin-top: 16px; color: var(--muted); font-size: 12px; }
.progress-wrap[hidden] { display: none; }
.progress-track { height: 5px; margin-bottom: 8px; overflow: hidden; background: #eee8dd; border-radius: 8px; }
.progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, #aa8244, #d5b779); transition: width .2s ease; }
.result { min-height: 0; margin: 0; font-size: 12px; line-height: 1.6; }
.result:not(:empty) { margin-top: 12px; }
.result.success { color: #55734e; }
.result.error { color: #a3483e; }
.privacy { margin: 22px 0 0; color: #9a9184; font-size: 10px; letter-spacing: .04em; }
.privacy span { margin-right: 5px; color: var(--gold); }

@media (max-width: 560px) {
  .page-shell { padding: 22px 14px; }
  .upload-card { padding: 43px 24px 31px; }
  .upload-card::before, .upload-card::after { right: 10px; left: 10px; }
  .wedding-heading { gap: 6px; }
  .eyebrow, .year { font-size: 8px; letter-spacing: .15em; }
  .couple { font-size: 19px; }
  .intro { font-size: 13px; }
  .drop-zone { min-height: 190px; }
  .desktop-break { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
