:root {
    --bg1: #f6f2ea;
    --bg2: #efe7d8;
    --paper: #fbfaf7;

    --ink: #161616;
    --muted: #6f6a61;

    --gold: #b89b5e;
    --forest: #243124;

    --radius: 22px;
    --shadow: 0 30px 90px rgba(25, 20, 12, .14);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg1), var(--bg2));
    overflow-x: hidden;
}

/* Background decor */
.bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg__lineart {
    position: absolute;
    inset: 0;
    background-image: url("assets/pinecone-lineart.png");
    background-repeat: repeat;
    background-size: 720px auto;
    opacity: .12;
    mix-blend-mode: multiply;
    filter: contrast(1.06) brightness(.98);
}

.corner {
    position: absolute;
    width: min(380px, 46vw);
    height: auto;
    opacity: .32;
    mix-blend-mode: multiply;
    filter: saturate(1.15) contrast(1.10) brightness(.99);
}

.corner--tl {
    top: -28px;
    left: -26px;
}

.corner--tr {
    top: -28px;
    right: -26px;
}

.corner--bl {
    bottom: -30px;
    left: -26px;
}

.corner--br {
    bottom: -30px;
    right: -26px;
}

.bg__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1100px 520px at 50% 10%, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(1000px 520px at 50% 100%, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, 0) 55%),
        linear-gradient(90deg, rgba(0, 0, 0, .06) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, .06) 100%);
}

/* Layout */
.wrap {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 4vw, 48px) 16px;
    display: grid;
    place-items: center;
}

.sheet {
    width: min(920px, 100%);
    background: rgba(251, 250, 247, .90);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(184, 155, 94, .25);
    backdrop-filter: blur(8px);
    overflow: hidden;
    position: relative;
}

.sheet::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(184, 155, 94, .15), rgba(184, 155, 94, .55), rgba(184, 155, 94, .15));
}

/* Header */
.mast {
    padding: clamp(26px, 4vw, 46px) clamp(20px, 4vw, 56px) 18px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items: start;
}

.kicker {
    margin: 0 0 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-size: 12px;
}

.names {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    letter-spacing: .01em;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1.02;
    color: rgba(15, 15, 15, .92);
}

.amp {
    color: var(--gold);
    font-weight: 500;
}

.date {
    margin: 10px 0 0;
    color: var(--muted);
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 13px;
}

.rule {
    margin: 18px 0 18px;
    height: 1px;
    width: min(420px, 90%);
    background: linear-gradient(90deg, rgba(184, 155, 94, .65), rgba(0, 0, 0, 0));
}

.title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 34px);
}

.subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
    max-width: 56ch;
}

.mastRight {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
}

.metaCard {
    width: min(280px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(184, 155, 94, .22);
    background: rgba(252, 250, 246, .62);
    box-shadow: 0 14px 36px rgba(25, 20, 12, .08);
    padding: 14px 14px;
}

.metaTitle {
    margin: 0;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 11px;
    color: rgba(36, 49, 36, .85);
}

.metaText {
    margin: 8px 0 10px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 13px;
}

.metaRule {
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 155, 94, .45), rgba(0, 0, 0, 0));
    margin: 10px 0 10px;
}

.metaSmall {
    margin: 0;
    color: rgba(111, 106, 97, .90);
    font-size: 12px;
}

@media (max-width: 760px) {
    .mast {
        grid-template-columns: 1fr;
    }

    .mastRight {
        justify-content: flex-start;
        padding-top: 10px;
    }
}

/* Upload */
.upload {
    padding: 0 clamp(20px, 4vw, 56px) clamp(22px, 4vw, 40px);
}

.uploadTitle {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    color: var(--muted);
    position: relative;
    padding-left: 18px;
}

.uploadTitle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(184, 155, 94, .12);
}

/* Menu card (calm) */
.menuCard {
    position: relative;
    border-radius: 18px;
    padding: 18px;
    background:
        radial-gradient(900px 260px at 25% 0%, rgba(184, 155, 94, .16), transparent 60%),
        linear-gradient(180deg, rgba(246, 242, 234, .94), rgba(239, 231, 216, .76));
    border: 1px solid rgba(184, 155, 94, .22);
    box-shadow: 0 24px 70px rgba(25, 20, 12, .10);
    overflow: hidden;
}

.menuCard::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(111, 106, 97, .22);
    pointer-events: none;
}

.twine {
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(111, 106, 97, .40), rgba(0, 0, 0, 0));
    margin: 2px 0 14px;
    position: relative;
}

.twine::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(184, 155, 94, .10);
}

.field {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.field span {
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--muted);
}

/* Inputs */
.text,
.textArea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(31, 31, 31, .10);
    background: rgba(252, 250, 246, .72);
    padding: 12px 12px;
    font: inherit;
    outline: none;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .55),
        inset 0 -8px 18px rgba(0, 0, 0, .04);
}

.text:focus,
.textArea:focus {
    border-color: rgba(184, 155, 94, .45);
    box-shadow: 0 0 0 4px rgba(184, 155, 94, .14);
}

.textArea {
    min-height: 92px;
    resize: vertical;
}

/* Custom file picker */
.fileRow {
    margin: 6px 0 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(252, 250, 246, .62);
    border: 1px solid rgba(31, 31, 31, .10);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .55),
        inset 0 -10px 18px rgba(0, 0, 0, .03);
}

.fileRow input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.fileBtn {
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(36, 49, 36, .10);
    border: 1px solid rgba(36, 49, 36, .18);
    color: var(--forest);
    font-weight: 800;
    white-space: nowrap;
    transition: transform .08s ease;
}

.fileRow:active .fileBtn {
    transform: scale(.99);
}

.fileText {
    color: var(--muted);
    font-size: 14px;
}

/* Polaroid previews (subtle) */
.polaroids {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}

.polaroid {
    width: 120px;
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, .70);
    border: 1px solid rgba(31, 31, 31, .10);
    box-shadow: 0 14px 30px rgba(25, 20, 12, .08);
    transform: rotate(var(--r, -1deg));
}

.thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(31, 31, 31, .08);
    background: rgba(240, 234, 223, .9);
    display: grid;
    place-items: center;
    font-weight: 900;
    color: rgba(36, 49, 36, .65);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cap {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(31, 31, 31, .60);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Upload button: black satin */
.btn {
    margin-top: 14px;
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 14px 16px;
    color: #fff;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    background:
        radial-gradient(120% 160% at 20% 10%, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(180deg, #2c2c2c, #141414);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    transition: transform .08s ease;
}

.btn:active {
    transform: translateY(1px);
}

.privacy {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    border-radius: 999px;
    padding: 12px 14px;
    font-weight: 800;
    border: 1px solid rgba(184, 155, 94, .22);
    background: rgba(252, 250, 246, .62);
    color: var(--forest);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(25, 20, 12, .06);
}

/* Status text */
.status {
    margin: 10px 0 0;
    text-align: center;
    font-size: 13px;
    min-height: 18px;
    color: rgba(36, 49, 36, .82);
}

.status.error {
    color: rgba(140, 60, 60, .92);
}

/* Sections */
.section {
    padding: 0 clamp(20px, 4vw, 56px) 28px;
    color: var(--muted);
}

.section h3 {
    margin: 18px 0 8px;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--ink);
}

.muted {
    margin: 0 0 10px;
    color: var(--muted);
}

.helpList {
    margin: 8px 0 0;
    padding-left: 18px;
    line-height: 1.7;
}

/* Gallery gate + grid */
.gate {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin: 10px 0 14px;
}

.hint {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
    opacity: .92;
}

.hint.ok {
    color: rgba(36, 49, 36, .85);
}

.hint.error {
    color: rgba(140, 60, 60, .90);
}

.galleryGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.gItem {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(31, 31, 31, .10);
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 14px 30px rgba(25, 20, 12, .08);
    padding: 0;
    cursor: pointer;
}

.gItem img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

@media (max-width: 560px) {
    .actions {
        flex-direction: column;
    }

    .pill {
        width: 100%;
    }

    .galleryGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .polaroid {
        width: 46%;
    }
}

@media (max-width: 420px) {
    .galleryGrid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.lbBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
}

.lbPanel {
    position: relative;
    width: min(980px, calc(100% - 24px));
    margin: 40px auto;
    border-radius: 18px;
    background: rgba(251, 250, 247, .96);
    border: 1px solid rgba(184, 155, 94, .22);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .30);
    overflow: hidden;
}

.lbClose {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(31, 31, 31, .14);
    background: rgba(252, 250, 246, .72);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
}

.lbMedia {
    background: rgba(0, 0, 0, .06);
}

.lbMedia img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lbMeta {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(31, 31, 31, .10);
    background: linear-gradient(180deg, rgba(246, 242, 234, .92), rgba(239, 231, 216, .76));
}

.lbMsg {
    margin: 0;
    color: rgba(31, 31, 31, .72);
    line-height: 1.55;
    font-size: 14px;
}

/* arrows */
.lbNav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(31, 31, 31, .14);
    background: rgba(252, 250, 246, .72);
    cursor: pointer;
    font-size: 26px;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.lbPrev {
    left: 10px;
}

.lbNext {
    right: 10px;
}

@media (max-width: 560px) {
    .lbPanel {
        margin: 18px auto;
    }

    .lbPrev {
        left: 8px;
    }

    .lbNext {
        right: 8px;
    }
}

.seal {
    margin: 14px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: .95;
}

.seal::before,
.seal::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(184, 155, 94, .55), rgba(0, 0, 0, 0));
}

.seal::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(184, 155, 94, .55));
}

.sealDot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(184, 155, 94, .12);
}

.seal {
    margin: 14px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: .95;
}

.seal::before,
.seal::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(184, 155, 94, .55), rgba(0, 0, 0, 0));
}

.seal::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(184, 155, 94, .55));
}

.sealDot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(184, 155, 94, .12);
}

@media (max-width: 760px) {
    .mastRight {
        display: none;
    }
}

@media (max-width: 760px) {
    .mastRight {
        display: none;
    }
}