:root {
    color-scheme: light;
    --bg: #f4f1eb;
    --panel: rgba(255, 255, 255, 0.82);
    --ink: #171412;
    --muted: #746d66;
    --line: rgba(23, 20, 18, 0.12);
    --accent: #ff6a3d;
    --accent-dark: #d94d25;
    --green: #1f8a5b;
    --red: #b33232;
    --shadow: 0 24px 70px rgba(45, 34, 23, 0.14);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 106, 61, 0.22), transparent 34rem),
        linear-gradient(135deg, #f8f3ec 0%, #eee7dd 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background-image: linear-gradient(rgba(23, 20, 18, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 20, 18, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
p {
    margin-top: 0;
}

h1 {
    max-width: 790px;
    margin-bottom: 16px;
    font-size: clamp(2.45rem, 7vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.08em;
}

.intro {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-card,
.panel,
.notice {
    border: 1px solid var(--line);
    border-radius: 32px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card {
    min-width: 190px;
    padding: 24px;
}

.hero-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.hero-label {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 700;
}

.notice {
    margin-bottom: 18px;
    padding: 16px 18px;
    font-weight: 700;
}

.notice-success {
    color: var(--green);
}

.notice-warning {
    color: #9b6214;
}

.notice-error {
    color: var(--red);
}

.panel {
    padding: clamp(20px, 4vw, 34px);
}

.upload-panel {
    margin-bottom: 22px;
}

.section-heading {
    margin-bottom: 22px;
}

.gallery-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.pill {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 800;
}

.upload-form {
    display: grid;
    gap: 16px;
}

.field-label {
    display: grid;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
}

.field-label input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-weight: 700;
    outline: none;
}

.field-label input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.14);
}

.dropzone {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 28px;
    border: 2px dashed rgba(255, 106, 61, 0.45);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 236, 225, 0.72));
    cursor: pointer;
    text-align: center;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dropzone:hover,
.dropzone:focus-within {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.dropzone-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 24px;
    color: white;
    background: var(--ink);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
}

.dropzone-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dropzone-copy,
.file-list {
    display: block;
    max-width: 520px;
    color: var(--muted);
    line-height: 1.6;
}

.file-list {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

.button {
    min-height: 60px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 18px 34px rgba(255, 106, 61, 0.3);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(255, 106, 61, 0.36);
}

.button:disabled:hover,
.button:disabled:focus-visible {
    transform: none;
}

.upload-progress {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
}

.progress-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 20, 18, 0.1);
}

.progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transition: width 180ms ease;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.photo-card {
    position: relative;
    display: block;
    min-height: 250px;
    overflow: hidden;
    border-radius: 28px;
    color: white;
    background: #ddd;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(23, 20, 18, 0.1);
}

.photo-card img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 240ms ease;
}

.photo-card:hover img {
    transform: scale(1.04);
}

.file-preview {
    display: grid;
    min-height: 250px;
    place-items: center;
    padding: 28px;
    color: var(--ink);
    background: linear-gradient(135deg, #fff5ed, #f5dfd1);
    text-align: center;
}

.file-preview span,
.file-preview small {
    color: var(--muted);
    font-weight: 800;
}

.file-preview strong {
    display: block;
    margin: 10px 0;
    font-size: 2.6rem;
    letter-spacing: -0.07em;
}

.photo-meta {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(23, 20, 18, 0.7);
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.photo-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    display: grid;
    min-height: 220px;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 28px;
    color: var(--muted);
    text-align: center;
}

.empty-state span {
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 800;
}

.empty-state p {
    margin: 8px 0 0;
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 22px, 1120px);
        padding: 24px 0;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-width: 0;
    }

    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dropzone {
        min-height: 230px;
    }
}
