* { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
    font-family:"silk-semi";
    src:url("../fonts/Silk_Serif_SemiBold.otf") format("opentype");
}

body {
    background: #ffffff;
    color: #000000;
    font-family: silk-semi, sans-serif !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px 40px;
}

header {
    text-align: center;
    margin-bottom: 48px;
}

header h1 {
    font-size: 2.4rem;
    font-weight: normal;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.05rem;
    color: #333;
    font-style: italic;
}

.divider {
    width: 60px;
    height: 1px;
    background: #000;
    margin: 20px auto;
}

.card {
    width: 100%;
    max-width: 560px;
    border: 1px solid #000;
    padding: 36px 40px;
}

label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

input[type="text"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    padding: 8px 2px;
    font-family: silk-semi, sans-serif !important;
    font-size: 1rem;
    background: transparent;
    color: #000;
    outline: none;
    margin-bottom: 28px;
}

input[type="text"]::placeholder { color: #999; }
input[type="text"]:focus { border-bottom-color: #000; }

.drop-area {
    border: 1px dashed #000;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 24px;
    position: relative;
}

.drop-area:hover { background: #f9f9f9; }
.drop-area.dragover { background: #f0f0f0; }

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

.drop-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.drop-text {
    font-size: 0.95rem;
    color: #333;
    font-style: italic;
}

.drop-hint {
    font-size: 0.78rem;
    color: #888;
    margin-top: 6px;
    letter-spacing: 0.05em;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.preview-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #ccc;
}

.preview-more {
    aspect-ratio: 1;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-family: silk-semi, sans-serif !important;
}

.preview-more span:first-child {
    font-size: 1.3rem;
    font-weight: normal;
    color: #000;
}

.preview-more span:last-child {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
}

button {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    font-family: silk-semi, sans-serif !important;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover:not(:disabled) { background: #333; }
button:disabled { background: #aaa; cursor: not-allowed; }

.progress-wrap {
    margin-top: 20px;
    display: none;
}

.progress-bar-bg {
    height: 2px;
    background: #e0e0e0;
    width: 100%;
}

.progress-bar-fill {
    height: 2px;
    background: #000;
    width: 0%;
    transition: width 0.3s;
}

.progress-label {
    font-size: 0.8rem;
    color: #555;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

.msg {
    margin-top: 20px;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-style: italic;
    display: none;
    text-align: center;
}

.msg.success { border: 1px solid #000; color: #000; }
.msg.error   { border: 1px solid #c00; color: #c00; }

footer {
    margin-top: 48px;
    font-size: 0.78rem;
    color: #aaa;
    letter-spacing: 0.08em;
    text-align: center;
}