:root {
  color-scheme: light;
  --ink: #4b4b4b;
  --deep: #174f49;
  --deep-dark: #103f3a;
  --paper: #ffffff;
  --line: rgba(35, 35, 35, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #1f1f1f;
  color: var(--ink);
  font-family: "Times New Roman", "Batang", "Apple SD Gothic Neo", serif;
}

.upload-page {
  width: min(100%, 640px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 10px 16px;
  background: #1f1f1f;
}

.wedding-card {
  min-height: calc(100vh - 16px);
  padding: clamp(10px, 2vw, 18px) clamp(18px, 5vw, 36px) 34px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
  text-align: center;
}

.poster {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
}

.poster__image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.08));
}

.poster__plate {
  position: absolute;
  left: 10.5%;
  right: 10.5%;
  bottom: 11.8%;
  padding: clamp(18px, 4vw, 28px) 12px clamp(14px, 3vw, 22px);
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(55, 55, 55, 0.12);
  border-bottom: 1px solid rgba(55, 55, 55, 0.12);
  backdrop-filter: blur(2px);
}

h1 {
  margin: 0;
  color: #565656;
  font-size: clamp(32px, 7.5vw, 50px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.12em;
  word-break: keep-all;
}

.poster__date,
.poster__subtitle {
  margin: 0;
  color: #555555;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.poster__date {
  margin-top: clamp(12px, 2.8vw, 20px);
  font-size: clamp(16px, 3.3vw, 24px);
  font-weight: 700;
}

.poster__subtitle {
  margin-top: clamp(14px, 3vw, 22px);
  font-size: clamp(15px, 3.3vw, 24px);
  font-weight: 700;
}

.upload-panel {
  width: min(100%, 420px);
  margin: clamp(18px, 4vw, 28px) auto 0;
}

.upload-panel__today {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 16px);
  margin: 0 0 clamp(18px, 3.6vw, 26px);
  color: #4f4f4f;
  font-size: clamp(24px, 4.8vw, 35px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.upload-panel__today::before,
.upload-panel__today::after {
  content: "";
  flex: 0 0 clamp(28px, 6vw, 42px);
  height: clamp(16px, 3.4vw, 24px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 36'%3E%3Cg fill='none' stroke='%2389a69e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 28c13-12 27-20 47-23'/%3E%3Cpath d='M25 22c-9-1-15-7-17-15 10 1 17 6 20 14' fill='%2389a69e' fill-opacity='.5'/%3E%3Cpath d='M42 13c-7-1-12-5-14-12 8 0 14 4 17 11' fill='%2389a69e' fill-opacity='.55'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.78;
}

.upload-panel__today::after {
  transform: scaleX(-1);
}

.upload-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(68px, 12vw, 86px);
  border: 0;
  border-radius: 7px;
  padding: 15px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.13), transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 30% 70%, rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, #1c5d57 0%, #155149 100%);
  box-shadow:
    0 14px 24px rgba(22, 72, 67, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -8px 16px rgba(0, 0, 0, 0.09);
  color: #ffffff;
  font: inherit;
  font-size: clamp(27px, 5.2vw, 37px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.submit-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.upload-button:hover {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.16), transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 30% 70%, rgba(255, 255, 255, 0.07)),
    linear-gradient(180deg, #216d65 0%, var(--deep-dark) 100%);
}

.upload-button:focus-visible,
.file-picker:focus-within {
  outline: 3px solid #89aaa3;
  outline-offset: 3px;
}

@media (max-width: 430px) {
  .upload-page {
    padding-left: 7px;
    padding-right: 7px;
  }

  .wedding-card {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 28px;
  }

  .poster__plate {
    left: 9%;
    right: 9%;
    bottom: 11.2%;
  }

  .upload-panel {
    width: min(100%, 300px);
  }

  .upload-panel__today {
    font-size: clamp(23px, 6.5vw, 29px);
  }
}
