:root {
  color-scheme: light;
  --ink: #070707;
  --muted: #777777;
  --paper: #ffffff;
  --warm: #fff7ca;
  --button: #c90000;
  --button-dark: #9e0000;
  --line: #d9d9d9;
  --teal: #0d6a70;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #1f1f1f;
  color: var(--ink);
  font-family: "Arial", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

.upload-page {
  width: min(100%, 512px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 4px 9px 8px;
  background: #1f1f1f;
}

.archive-card {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 12px);
  padding: clamp(250px, 52vh, 555px) 18px 28px;
  background:
    linear-gradient(180deg, var(--warm) 0, #fffdf0 14%, var(--paper) 38%, var(--paper) 100%);
  text-align: center;
}

.archive-card__glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 430px;
  z-index: 1;
  height: 190px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 70%);
  pointer-events: none;
}

.archive-card__art {
  position: absolute;
  left: 50%;
  top: clamp(185px, 35vh, 330px);
  z-index: 0;
  width: min(84%, 390px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.08));
}

.archive-card__copy,
.upload-panel {
  position: relative;
  z-index: 2;
}

.archive-card__copy {
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-size: clamp(29px, 7vw, 36px);
  line-height: 1.12;
  font-weight: 900;
  word-break: keep-all;
}

.archive-card__subtitle {
  margin: 8px 0 0;
  font-size: clamp(27px, 6.2vw, 34px);
  line-height: 1.1;
  font-weight: 900;
}

.upload-panel {
  width: min(100%, 270px);
  margin: 60px auto 0;
}

.upload-panel__today {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(27px, 6vw, 33px);
  line-height: 1.12;
  font-weight: 900;
}

.file-picker {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: #333333;
  cursor: pointer;
}

.file-picker__label {
  display: block;
}

.file-picker__label {
  font-size: 15px;
  font-weight: 800;
}

input[type="file"] {
  width: 100%;
  margin-top: 10px;
  color: #3a3a3a;
  font: inherit;
  font-size: 12px;
}

.upload-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 99px;
  border: 2px solid #280000;
  border-radius: 0;
  padding: 14px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 43%),
    linear-gradient(180deg, var(--button) 0%, #ca0000 52%, var(--button-dark) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -16px 24px rgba(90, 0, 0, 0.26);
  color: #ffffff;
  font: inherit;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.upload-button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 43%),
    linear-gradient(180deg, #dc0000 0%, #c60000 50%, #8e0000 100%);
}

.upload-button:focus-visible,
.file-picker:focus-within {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.upload-panel__note {
  margin: 10px auto 0;
  color: #898989;
  font-size: 12px;
  line-height: 1.4;
  word-break: keep-all;
}

@media (min-width: 680px) {
  .upload-page {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .archive-card {
    min-height: 1068px;
    padding-top: 585px;
  }

  .archive-card__art {
    top: 365px;
  }

  .archive-card__glow {
    top: 535px;
  }
}

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

  .archive-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .upload-panel {
    margin-top: 48px;
  }
}
