.order-reference {
    margin: 25px 0;
    padding: 17px;
    background: #1c1a15;
    border: 1px solid var(--line)
}

.order-reference small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .13em
}

.order-reference strong {
    display: block;
    color: var(--gold);
    font: 32px "Cormorant Garamond";
    letter-spacing: .08em;
    margin-top: 5px
}

.modal-close-text {
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    margin-top: 18px;
    text-decoration: underline
}

.success .full {
    margin-top: 3px
}

.account-page {
    max-width: 520px;
    margin: auto;
    padding: 90px 25px 130px
}

.account-intro {
    color: var(--muted);
    line-height: 1.7;
    margin: 25px 0
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    margin: 35px 0 25px
}

.account-tabs button {
    background: transparent;
    padding: 13px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em
}

.account-tabs button.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold)
}

.account-form label {
    margin-bottom: 18px
}

.hidden {
    display: none !important
}

.auth-message {
    color: #e1af67;
    line-height: 1.5
}

.auth-target {
    display: none
}

.account-card {
    background: #1b1a16;
    border: 1px solid var(--line);
    padding: 30px;
    margin: 34px 0
}

.account-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 0
}

.order-reference {
    margin: 25px 0;
    padding: 17px;
    background: #1c1a15;
    border: 1px solid var(--line)
}

.order-reference small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .13em
}

.order-reference strong {
    display: block;
    color: var(--gold);
    font: 32px "Cormorant Garamond";
    letter-spacing: .08em;
    margin-top: 5px
}

.modal-close-text {
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    margin-top: 18px;
    text-decoration: underline
}

.success .full {
    margin-top: 3px
}

.account-page {
    max-width: 520px;
    margin: auto;
    padding: 90px 25px 130px
}

.account-intro {
    color: var(--muted);
    line-height: 1.7;
    margin: 25px 0
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    margin: 35px 0 25px
}

.account-tabs button {
    background: transparent;
    padding: 13px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em
}

.account-tabs button.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold)
}

.account-form label {
    margin-bottom: 18px
}

.hidden {
    display: none !important
}

.auth-message {
    color: #e1af67;
    line-height: 1.5
}

.auth-target {
    display: none
}

.account-card {
    background: #1b1a16;
    border: 1px solid var(--line);
    padding: 30px;
    margin: 34px 0
}

.account-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 0
}

body {
    --ink: #f8f4ec;
    --cream: #181712;
    --muted: #70665d;
    --line: rgba(117, 84, 37, .22);
    background: var(--ink);
    color: var(--cream)
}

body.light {
    --ink: #11110f;
    --cream: #f5f1e8;
    --muted: #a9a297;
    --line: rgba(198, 154, 85, .25)
}

/* Overrides the generic .light button utility only when it is the page theme. */
body.light {
    background: var(--ink);
    color: var(--cream)
}

body.light .announcement {
    color: #17130e
}

.site-header {
    background: color-mix(in srgb, var(--ink) 88%, transparent);
    backdrop-filter: blur(12px)
}

.admin {
    overflow: hidden
}

.admin-metrics {
    min-width: 0
}

.order-row>* {
    min-width: 0
}

.order-row p {
    overflow-wrap: anywhere
}

@media(max-width:760px) {
    .admin {
        padding: 48px 18px
    }

    .admin-metrics {
        margin: 28px 0
    }

    .admin-metrics strong {
        font-size: 42px
    }

    .order-row {
        padding: 22px 0
    }

    .site-header {
        position: sticky;
        top: 0;
        background: var(--ink)
    }
}

.admin-note {
    margin: -20px 0 35px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6
}

.orders-list {
    border-bottom: 1px solid var(--line)
}

/* Theme contrast: the page starts light; the switch enables this dark palette. */
body:not(.light) .promise,
body:not(.light) .cta,
body:not(.light) .editorial {
    color: #f7f2e9
}

body:not(.light) .tracking-card,
body:not(.light) .account-card,
body:not(.light) .admin-metrics div,
body:not(.light) .order-reference {
    background: #fffdf8;
    color: #181712
}

body:not(.light) .tracking-card h2,
body:not(.light) .account-card h2,
body:not(.light) .admin-metrics div strong,
body:not(.light) .order-row h3 {
    color: #181712
}

body.light .tracking-card,
body.light .account-card,
body.light .admin-metrics div,
body.light .order-reference {
    background: #1c1b17;
    color: #f7f2e9
}

.editorial-image {
    background: #181510;
    isolation: isolate
}

.editorial-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.9) contrast(1.05);
    transform: scale(1.02);
    transition: transform .8s ease
}

.editorial-image:hover .editorial-photo {
    transform: scale(1.08)
}

.editorial-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 9, 7, .58), rgba(11, 9, 7, .08) 70%, rgba(11, 9, 7, .36))
}

.editorial-mark {
    position: relative;
    z-index: 1;
    color: #e6bb76;
    font: 500 clamp(42px, 5vw, 76px) "Cormorant Garamond", serif;
    letter-spacing: .16em;
    text-align: center;
    text-shadow: 0 4px 24px #000
}

.editorial-mark small {
    display: block;
    margin-top: 7px;
    font: 600 9px "DM Sans", sans-serif;
    letter-spacing: .45em
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

@media(max-width:760px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .site-header {
        gap: 8px
    }

    .site-header nav {
        display: none
    }

    .site-header .header-actions {
        margin-left: auto;
        gap: 4px
    }

    .site-header .text-button {
        display: inline-flex;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        font-size: 10px
    }

    .site-header .icon-button {
        width: 30px
    }

    .site-header .cart-button {
        padding: 9px 8px;
        font-size: 9px
    }

    .editorial-photo {
        object-position: 54% center
    }
}
