:root {
  --paper: #f9f3ea;
  --paper-deep: #f0e2d1;
  --wine: #7f2f29;
  --wine-deep: #4d1815;
  --wine-soft: #b56a5b;
  --line: rgba(127, 47, 41, 0.16);
  --shadow: 0 20px 50px rgba(63, 24, 21, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", serif;
  color: var(--wine-deep);
  background:
    radial-gradient(circle at top, rgba(181, 106, 91, 0.16), transparent 30%),
    linear-gradient(180deg, #fcf8f2 0%, #f6eee4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    radial-gradient(circle at 1px 1px, rgba(110, 34, 31, 0.05) 1px, transparent 0);
  background-size: auto, 18px 18px;
  opacity: 0.55;
}

.uploads-page {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.uploads-hero,
.uploads-card {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.uploads-hero {
  padding: 2rem 2rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.uploads-eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wine-soft);
  font-size: 0.9rem;
}

.uploads-hero h1 {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.08;
}

.uploads-intro {
  width: min(680px, 100%);
  margin: 1rem auto 0;
  font-size: 1.28rem;
  line-height: 1.65;
}

.uploads-card {
  padding: 2rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 1rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(127, 47, 41, 0.18);
  border-radius: 16px;
  background: #fffdf9;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--wine-deep);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.dropzone {
  margin-top: 1.2rem;
  border: 1.5px dashed rgba(127, 47, 41, 0.32);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94)),
    linear-gradient(180deg, #fffaf4, #f7eee2);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  transform: translateY(-1px);
  border-color: rgba(127, 47, 41, 0.52);
  box-shadow: 0 16px 30px rgba(63, 24, 21, 0.08);
}

.dropzone-title {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: 1.5rem;
}

.dropzone-text,
.dropzone-note {
  margin: 0.65rem 0 0;
}

.dropzone-note {
  color: rgba(77, 24, 21, 0.72);
}

.selected-files {
  margin-top: 1.4rem;
  padding: 1.2rem 1.2rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.selected-files h2 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.selected-files ul,
.upload-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.selected-files li,
.upload-results li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(127, 47, 41, 0.08);
}

.selected-files li:first-child,
.upload-results li:first-child {
  border-top: 0;
}

.uploads-actions {
  margin-top: 1.4rem;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button--solid {
  background: var(--wine);
  color: #fff8f5;
}

.button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.notice {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  font-size: 1.02rem;
}

.notice.success {
  background: rgba(74, 135, 90, 0.12);
  color: #29533a;
}

.notice.error {
  background: rgba(158, 51, 47, 0.1);
  color: #7a221e;
}

.upload-results {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.upload-result--success {
  color: #29533a;
}

.upload-result--error {
  color: #7a221e;
}

@media (max-width: 720px) {
  .uploads-page {
    width: min(100% - 1rem, 100%);
    padding: 1rem 0 2rem;
  }

  .uploads-hero,
  .uploads-card {
    border-radius: 22px;
    padding: 1.3rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .selected-files li,
  .upload-results li {
    flex-direction: column;
    gap: 0.2rem;
  }
}
