:root {
  --bg: #fff8ef;
  --paper: #fffdfa;
  --ink: #2f2821;
  --muted: #746f69;
  --accent: #b88a54;
  --accent-dark: #8d6639;
  --peach: #f6b897;
  --pink: #e9b7c8;
  --blue: #b9d6df;
  --leaf: #8fa77b;
  --line: rgba(47, 40, 33, 0.12);
  --shadow: 0 18px 48px rgba(67, 49, 34, 0.12);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255,248,239,0.95), rgba(247,251,249,0.9)),
    var(--bg);
  color: var(--ink);
}
.hero {
  min-height: 94svh;
  display: grid;
  place-items: center;
  padding: 34px 20px 54px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.12), rgba(255, 248, 239, 0.66)),
    url("/assets/watercolor-hero.png") center / cover no-repeat,
    linear-gradient(145deg, #fff8ef, #edf5f6);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -18%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.72) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(184,138,84,0.20) 0 1px, transparent 2px),
    radial-gradient(circle at 20% 30%, rgba(185,214,223,0.3), transparent 26%),
    radial-gradient(circle at 78% 24%, rgba(233,183,200,0.28), transparent 30%);
  background-size: 58px 58px, 92px 92px, 100% 100%, 100% 100%;
  opacity: 0.62;
  transform: rotate(-8deg);
  animation: floatWash 18s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  text-align: center;
  padding: 38px 22px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 32px;
  background: rgba(255, 253, 250, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 800;
}
.eyebrow.compact { margin-bottom: 6px; }
h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}
h1 { font-size: clamp(44px, 11vw, 78px); line-height: 0.98; }
h2 { font-size: clamp(30px, 7vw, 44px); line-height: 1.05; }
.date { margin: 18px 0 0; color: var(--accent-dark); font-weight: 700; }
.lead, p { color: var(--muted); line-height: 1.65; }
.lead { margin: 22px auto 28px; max-width: 540px; }
.primary-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.primary-button {
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(135deg, var(--accent), #c99d63);
  color: white;
  box-shadow: 0 10px 30px rgba(184, 138, 84, 0.28);
}
.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--accent-dark);
}
.primary-button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary-button.full { width: 100%; }
.intro, .upload-section, .gallery-section, .thanks { padding: 28px 16px; }
.intro { margin-top: -18px; position: relative; z-index: 2; }
.card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
}
.card.soft { background: rgba(255, 250, 244, 0.82); }
.center { text-align: center; }
.notice, .public-help {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246,184,151,0.18), rgba(185,214,223,0.2));
  color: var(--ink);
  line-height: 1.55;
}
.notice.muted { background: rgba(143, 167, 123, 0.12); color: var(--muted); }
.small-text { font-size: 14px; color: var(--muted); }
.upload-form { display: grid; gap: 16px; margin-top: 22px; }
label { display: grid; gap: 8px; font-weight: 800; }
label span { font-weight: 500; color: var(--muted); font-size: 13px; }
input[type="text"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
}
input[type="text"] { min-height: 52px; }
textarea { resize: vertical; min-height: 88px; }
.file-picker {
  min-height: 150px;
  place-items: center;
  text-align: center;
  padding: 22px;
  border: 1.5px dashed rgba(184, 138, 84, 0.55);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(233,183,200,0.16), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(185,214,223,0.2), transparent 34%),
    rgba(255,255,255,0.76);
  cursor: pointer;
}
.file-picker input { display: none; }
.file-picker__title { font-size: 20px; color: var(--ink); font-weight: 900; }
.file-picker__text { max-width: 420px; }
.check-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 500;
  color: var(--muted);
}
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; }
.file-list { margin-top: 18px; display: grid; gap: 12px; }
.file-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 12px;
}
.preview-shell {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  background: rgba(47,40,33,0.06);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.preview-shell img, .preview-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
  font-size: 14px;
}
.file-name { font-weight: 800; word-break: break-word; }
.file-size { white-space: nowrap; color: var(--muted); }
.remove-file {
  justify-self: start;
  margin-top: 8px;
  border: 1px solid rgba(184, 138, 84, 0.24);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.9);
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
}
.remove-file:hover { background: rgba(246, 184, 151, 0.18); }
.public-choice {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
  font-weight: 600;
}
.public-choice input { width: 18px; height: 18px; }
.progress {
  height: 9px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 40, 33, 0.08);
}
.progress > div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--blue), var(--accent));
  transition: width 0.2s ease;
}
.file-state { margin-top: 8px; color: var(--muted); font-size: 13px; }
.status-box, .gallery-status {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  line-height: 1.55;
  background: rgba(47, 40, 33, 0.06);
}
.status-box.success { background: rgba(50, 130, 82, 0.12); color: #20523a; }
.status-box.error { background: rgba(176, 54, 54, 0.12); color: #7a2222; }
.status-box.warn { background: rgba(184, 138, 84, 0.14); color: #704e26; }
.section-title-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.gallery-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(47,40,33,0.06);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 8px 8px;
  font-size: 11px;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,0.58));
}
@media (max-width: 560px) {
  .card { padding: 22px; border-radius: 24px; }
  .hero__content { padding: 34px 18px; }
  .hero { min-height: 92svh; }
  .file-item { grid-template-columns: 78px 1fr; }
  .preview-shell { width: 78px; height: 78px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title-row { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .progress > div { transition: none; }
}

@keyframes floatWash {
  from { transform: rotate(-8deg) translate3d(-8px, -5px, 0) scale(1); }
  to { transform: rotate(-6deg) translate3d(10px, 8px, 0) scale(1.025); }
}
