:root {
  --color-bg: #1a1a1e;
  --color-border: #333338;
  --color-border-active: #e4e4e8;
  --color-text: #e4e4e8;
  --color-text-muted: #6a6a72;
  --color-error: #ef6b6b;
  --font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.app {
  width: min(100% - 32px, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo {
  flex: 0 0 auto;
}

.header__logo-text {
  font-size: 1.18rem;
  font-weight: 820;
  line-height: 1;
}

.header__sub {
  margin: 12px 0 0;
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.divider {
  height: 1px;
  margin: 32px 0;
  background: var(--color-border);
}

.upload {
  width: 100%;
  min-height: 242px;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  background: transparent;
  color: var(--color-text);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.upload:hover,
.upload:focus-visible,
.upload.is-dragging {
  border-color: var(--color-border-active);
  background: rgba(255, 255, 255, 0.018);
}

.upload.is-processing {
  pointer-events: none;
  opacity: 0.72;
}

.upload__plus {
  position: relative;
  width: 28px;
  height: 28px;
}

.upload__plus::before,
.upload__plus::after {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  width: 26px;
  height: 1.5px;
  background: var(--color-text-muted);
  transform: translate(-50%, -50%);
}

.upload__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.upload__text {
  font-size: 0.95rem;
}

.upload__hint,
.status {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.status {
  margin: 34px 0 0;
  line-height: 1.6;
}

.status.is-error {
  color: var(--color-error);
}

@media (max-width: 560px) {
  .app {
    width: min(100% - 24px, 480px);
    justify-content: start;
    padding-top: 32px;
  }

  .upload {
    min-height: 218px;
  }
}
