:root {
  --bg: #f5f1ea;
  --bg-card: #fbf8f3;
  --ink: #1a1a1a;
  --ink-soft: #4a4744;
  --ink-faded: #8b8680;
  --accent: #9b8462;
  --accent-soft: rgba(155, 132, 98, 0.15);
  --line: rgba(26, 26, 26, 0.12);
  --line-soft: rgba(26, 26, 26, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.06);
  --radius: 2px;

  --ff-display: 'Tenor Sans', 'Cormorant Garamond', serif;
  --ff-body: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(155, 132, 98, 0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(155, 132, 98, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.botanical {
  position: fixed;
  width: 120px;
  height: 240px;
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}
.botanical--top-left { top: -40px; left: -30px; transform: rotate(-15deg); }
.botanical--bottom-right { bottom: -40px; right: -30px; transform: rotate(165deg); }

@media (max-width: 640px) {
  .botanical { width: 80px; height: 160px; opacity: 0.25; }
}

.page { max-width: 560px; margin: 0 auto; padding: 3rem 1.5rem 2rem; position: relative; z-index: 2; }

.hero { text-align: center; margin-bottom: 3rem; animation: fadeUp 0.8s ease-out; }

.monogram {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 160px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.monogram__arch { position: absolute; inset: 0; width: 100%; height: 100%; }
.monogram__leaf { position: absolute; top: 5px; right: -10px; width: 60px; height: 60px; }
.monogram__letters {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.3rem;
}
.monogram__letter {
  font-family: var(--ff-display);
  font-size: 2.2rem; font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.05em; line-height: 1;
}
.monogram__divider { width: 28px; height: 1px; background: var(--accent); opacity: 0.6; }

.hero__date {
  font-family: var(--ff-display);
  font-size: 0.85rem; letter-spacing: 0.4em;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero__couple {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  gap: 0.6em; flex-wrap: wrap;
}
.hero__couple em {
  font-family: var(--ff-body); font-style: italic;
  font-size: 0.7em; font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.02em; padding: 0 0.4em;
  position: relative;
}
.hero__couple em::before, .hero__couple em::after {
  content: '·'; margin: 0 0.4em; color: var(--ink-faded);
}

.hero__subtitle { font-style: italic; font-size: 1.1rem; color: var(--ink-soft); letter-spacing: 0.01em; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.card__intro {
  text-align: center; font-style: italic;
  font-size: 1.05rem; color: var(--ink-soft);
  margin-bottom: 2.5rem; line-height: 1.7;
}

.field { margin-bottom: 1.5rem; }
.field__label {
  display: block;
  font-family: var(--ff-display);
  font-size: 0.78rem; letter-spacing: 0.25em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.field__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  font-family: var(--ff-body); font-size: 1.2rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.field__input::placeholder { color: var(--ink-faded); font-style: italic; }
.field__input:focus { border-bottom-color: var(--accent); }

.dropzone {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.8rem; padding: 2rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.3);
  text-align: center;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone__icon { width: 36px; height: 36px; color: var(--accent); stroke-width: 1; }
.dropzone__title {
  font-family: var(--ff-display); font-size: 1rem;
  letter-spacing: 0.15em; color: var(--ink);
  text-transform: uppercase;
}
.dropzone__hint { font-style: italic; font-size: 0.95rem; color: var(--ink-faded); }

.filelist { list-style: none; margin: 1.5rem 0; }
.filelist__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem; align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease-out;
}
.filelist__item:last-child { border-bottom: none; }
.filelist__preview {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0; overflow: hidden;
}
.filelist__preview img, .filelist__preview video {
  width: 100%; height: 100%; object-fit: cover;
}
.filelist__preview svg { width: 20px; height: 20px; }
.filelist__info { min-width: 0; }
.filelist__name {
  font-style: italic; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.filelist__meta {
  font-size: 0.82rem; color: var(--ink-faded);
  font-family: var(--ff-display); letter-spacing: 0.1em;
}
.filelist__progress {
  width: 80px; height: 2px;
  background: var(--line); border-radius: 2px;
  overflow: hidden; position: relative;
}
.filelist__progress-bar {
  position: absolute; inset: 0;
  background: var(--accent);
  width: 0%; transition: width 0.3s;
}
.filelist__item.is-done .filelist__progress-bar { background: #6b8e6b; width: 100% !important; }
.filelist__item.is-error .filelist__progress-bar { background: #a85c5c; width: 100% !important; }
.filelist__remove {
  background: none; border: none; cursor: pointer;
  color: var(--ink-faded);
  padding: 0.2rem; display: flex;
  font-size: 1.2rem; line-height: 1;
  transition: color 0.2s;
}
.filelist__remove:hover { color: var(--ink); }
.filelist__item.is-uploading .filelist__remove, .filelist__item.is-done .filelist__remove { display: none; }

.btn {
  width: 100%; padding: 1rem 2rem;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: 0.85rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.btn:not(:disabled):hover { background: var(--accent); letter-spacing: 0.4em; }
.btn:disabled { background: var(--ink-faded); cursor: not-allowed; opacity: 0.6; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); margin-top: 1.5rem;
}
.btn--ghost:not(:disabled):hover { background: var(--ink); color: var(--bg); }
.btn.is-loading .btn__label { opacity: 0.6; }
.btn.is-loading::after {
  content: '';
  position: absolute; top: 50%; right: 1.5rem;
  width: 12px; height: 12px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}

.success { text-align: center; padding: 1rem 0; animation: fadeUp 0.5s ease-out; }
.success svg { width: 48px; height: 48px; color: var(--accent); margin-bottom: 1rem; stroke-width: 1; }
.success h2 {
  font-family: var(--ff-display); font-size: 1.5rem; font-weight: 400;
  letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.success p { font-style: italic; color: var(--ink-soft); font-size: 1.05rem; }

.footer {
  text-align: center; margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--ink-faded);
  font-style: italic; letter-spacing: 0.05em;
}
.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.heart { display: inline-block; color: #c44545; font-size: 1em; margin: 0 0.15em; font-style: normal; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

@media (max-width: 480px) {
  .page { padding: 2rem 1rem 1.5rem; }
  .card { padding: 2rem 1.25rem; }
  .hero__couple { gap: 0.4em; flex-direction: column; }
  .hero__couple em { font-size: 0.6em; }
}
