:root {
    color-scheme: light;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

    --background: #f4ede2;
    --surface: rgba(255, 255, 255, 0.96);
    --text: #28231e;
    --muted: #71675d;
    --gold: #9a7131;
    --gold-dark: #795421;
    --gold-light: #ead7b3;
    --green: #276745;
    --danger: #a93a3a;
    --border: rgba(139, 99, 42, 0.19);
    --shadow: 0 28px 80px rgba(75, 54, 30, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.95), transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(216, 190, 149, 0.24), transparent 38%),
        linear-gradient(145deg, #f8f2e9, #eee2d1);
}

button,
input {
    font: inherit;
}

button {
    touch-action: manipulation;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 18px;
}

.card {
    position: relative;
    width: min(100%, 640px);
    overflow: hidden;
    padding: 42px 38px 36px;
    text-align: center;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.card::before,
.card::after {
    position: absolute;
    width: 190px;
    height: 190px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(154, 113, 49, 0.13);
    border-radius: 50%;
}

.card::before {
    top: -118px;
    left: -105px;
}

.card::after {
    right: -112px;
    bottom: -125px;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gold);
}

.ornament span {
    width: 54px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-light));
}

.ornament span:last-child {
    background: linear-gradient(to left, transparent, var(--gold-light));
}

.ornament strong {
    font-size: 18px;
}

.ornament-bottom {
    margin-top: 28px;
}

.camera {
    margin: 22px 0 12px;
    font-size: 48px;
    filter: drop-shadow(0 8px 9px rgba(68, 46, 22, 0.13));
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.22em;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(37px, 8vw, 57px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
}

h1 span {
    display: block;
    margin-top: 7px;
    color: var(--gold-dark);
}

.description {
    max-width: 500px;
    margin: 22px auto 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.upload-form {
    position: relative;
    z-index: 1;
    text-align: left;
}

.field {
    margin-bottom: 19px;
}

.field label,
.field-label {
    display: block;
    margin: 0 0 8px;
    color: #3f3831;
    font-size: 14px;
    font-weight: 750;
}

input[type="text"] {
    width: 100%;
    min-height: 54px;
    padding: 0 17px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

input[type="text"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(154, 113, 49, 0.12);
}

.file-picker {
    display: flex !important;
    align-items: center;
    gap: 15px;
    min-height: 104px;
    margin: 0 !important;
    padding: 18px;
    cursor: pointer;
    background:
        linear-gradient(#fff, #fff) padding-box,
        repeating-linear-gradient(
            135deg,
            rgba(154, 113, 49, 0.36) 0,
            rgba(154, 113, 49, 0.36) 8px,
            transparent 8px,
            transparent 16px
        ) border-box;
    border: 2px dashed transparent;
    border-radius: 19px;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.file-picker:active {
    transform: scale(0.99);
}

.picker-icon {
    flex: 0 0 54px;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #ae8442, #7c5723);
    border-radius: 17px;
    box-shadow: 0 10px 22px rgba(121, 84, 33, 0.2);
    font-size: 30px;
    font-weight: 300;
}

.picker-content {
    display: grid;
    gap: 4px;
}

.picker-content strong {
    color: var(--text);
    font-size: 16px;
}

.picker-content small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.selection-summary {
    margin: 19px 0;
    padding: 16px;
    background: #faf7f2;
    border: 1px solid var(--border);
    border-radius: 17px;
}

.summary-header,
.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.summary-header {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 99, 42, 0.12);
}

.summary-header button {
    padding: 5px 8px;
    color: var(--danger);
    cursor: pointer;
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 750;
}

.file-list {
    display: grid;
    gap: 10px;
    max-height: 210px;
    margin: 12px 0;
    overflow-y: auto;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 0;
}

.file-type {
    flex: 0 0 35px;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    background: #eee4d4;
    border-radius: 10px;
}

.file-details {
    min-width: 0;
}

.file-name {
    display: block;
    overflow: hidden;
    color: #3d3731;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.summary-total {
    padding-top: 12px;
    color: var(--muted);
    border-top: 1px solid rgba(139, 99, 42, 0.12);
    font-size: 13px;
}

.summary-total strong {
    color: var(--text);
}

.form-message {
    margin: 15px 0;
    padding: 13px 15px;
    color: var(--danger);
    background: #fff0f0;
    border: 1px solid #efcaca;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.submit-button {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #a97f3e, #77511d);
    border: 0;
    border-radius: 17px;
    box-shadow: 0 13px 28px rgba(114, 75, 25, 0.22);
    font-size: 16px;
    font-weight: 800;
    transition:
        transform 160ms ease,
        opacity 160ms ease;
}

.submit-button:not(:disabled):active {
    transform: translateY(1px);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
}

.upload-information {
    margin-top: 13px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.upload-information p {
    margin: 3px 0;
}

.privacy-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
    padding: 14px 16px;
    color: #4d5f53;
    text-align: left;
    background: #edf5ef;
    border-radius: 15px;
    font-size: 12px;
    line-height: 1.5;
}

.privacy-note p {
    margin: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

@media (hover: hover) {
    .file-picker:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(85, 58, 26, 0.09);
    }

    .submit-button:not(:disabled):hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 520px) {
    .page {
        display: block;
        padding: 0;
    }

    .card {
        min-height: 100vh;
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
    }

    .camera {
        margin-top: 18px;
        font-size: 42px;
    }

    .description {
        margin-bottom: 25px;
        font-size: 15px;
    }

    .file-picker {
        min-height: 94px;
        padding: 15px;
    }

    .picker-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
}


/* ==========================================================
   MEMORY BOOK V1
   ========================================================== */

.memory-book-section {
    margin-top: 22px;
}

.memory-book-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin: 0 0 16px;

    color: #9b8b77;

    font-size: 12px;
    font-weight: 700;
}

.memory-book-divider span {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            to right,
            transparent,
            #ded1c0
        );
}

.memory-book-divider span:last-child {
    background:
        linear-gradient(
            to left,
            transparent,
            #ded1c0
        );
}

.memory-book-divider strong {
    font-weight: 600;
}

.memory-book-link {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;

    padding: 16px;

    border: 1px solid #dfc9aa;
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #fffaf2,
            #f8ecdb
        );

    color: #51402d;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(102, 72, 32, .08);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.memory-book-link:hover {
    transform: translateY(-1px);

    border-color: #cba873;

    box-shadow:
        0 11px 30px rgba(102, 72, 32, .13);
}

.memory-book-link:active {
    transform: scale(.99);
}

.memory-book-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: grid;
    place-items: center;

    border: 1px solid #e4cfaf;
    border-radius: 14px;

    background: #fff;

    font-size: 23px;
}

.memory-book-content {
    min-width: 0;

    flex: 1;

    text-align: left;
}

.memory-book-content strong {
    display: block;

    margin-bottom: 4px;

    color: #66491f;

    font-size: 15px;
}

.memory-book-content small {
    display: block;

    color: #83715d;

    font-size: 12px;
    line-height: 1.4;
}

.memory-book-arrow {
    flex: 0 0 auto;

    color: #a77c41;

    font-size: 29px;
    line-height: 1;
}

@media (max-width: 430px) {

    .memory-book-link {
        padding: 14px;
        gap: 12px;
    }

    .memory-book-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;
    }

    .memory-book-content strong {
        font-size: 14px;
    }
}

