:root {
    --ivory: #f4efe6;
    --paper: #fbf7f1;
    --sand: #e7dccb;
    --plaque: #e2c5a7;
    --ink: #2c241c;
    --muted: #6d6258;
    --gold: #8d7040;
    --gold-deep: #6e562c;
    --gold-darker: #57431f;
    --line: rgba(110, 86, 44, 0.28);
    --line-soft: rgba(110, 86, 44, 0.16);
    --danger: #8a3b2c;
    --success: #3f6b45;
    --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", serif;
    --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
    --shadow: 0 24px 60px rgba(74, 52, 28, 0.08);
    --shadow-sm: 0 8px 24px rgba(74, 52, 28, 0.08);
    --radius: 4px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(226, 197, 167, 0.45), transparent 50%),
        var(--ivory);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-darker); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, .footer-mark { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.95; margin: 0.15em 0 0.3em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin: 0 0 0.4em; }
h3 { font-size: 1.9rem; line-height: 1.1; margin: 0.2em 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--plaque); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 50;
    background: var(--ink);
    color: var(--paper);
    padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; color: var(--paper); }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Header */
.site-footer, main { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244, 239, 230, 0.9);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.site-header-inner {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
}
.brand {
    display: block;
    background: var(--plaque);
    width: 128px;
    line-height: 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.brand img { width: 100%; height: auto; }
.nav { position: relative; }
.nav summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    background: var(--paper);
}
.nav summary::-webkit-details-marker { display: none; }
.nav-icon, .nav-icon::before, .nav-icon::after {
    display: block;
    width: 14px;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s var(--ease);
}
.nav-icon { position: relative; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; left: 0; }
.nav-icon::before { top: -4px; }
.nav-icon::after { top: 4px; }
.nav[open] .nav-icon { background: transparent; }
.nav[open] .nav-icon::before { transform: translateY(4px) rotate(45deg); }
.nav[open] .nav-icon::after { transform: translateY(-4px) rotate(-45deg); }
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.6rem;
    margin-top: 0.5rem;
    position: absolute;
    right: 0;
    min-width: 220px;
    z-index: 5;
}
.nav-links a {
    text-decoration: none;
    color: var(--ink);
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius);
    position: relative;
}
.nav-links a:hover { background: rgba(226, 197, 167, 0.35); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--gold-deep); font-weight: 400; }
.bag-link { font-weight: 400; display: inline-flex; align-items: center; gap: 0.45rem; }
.bag-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.75rem;
    line-height: 1;
}
.bag-count.has-items { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--paper); }

main { padding: 1rem 0 4rem; }
.flash, .errors {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--success);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}
.errors { border-color: rgba(138, 59, 44, 0.4); border-left-color: var(--danger); }
.errors p { margin: 0 0 0.3rem; font-weight: 400; color: var(--danger); }
.errors ul { margin: 0; padding-left: 1.1rem; }
.lede { font-size: 1.15rem; max-width: 40rem; color: var(--muted); }
.eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--gold-deep);
    margin: 0;
}
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 1rem; }
.crumbs a { color: var(--muted); }

.section, .hero, .split, .band, .grid-3, .steps, .contact-grid { margin-top: 2.5rem; }
.section { margin-top: clamp(3rem, 7vw, 5.5rem); }
.section > .grid-3, .section > .steps { margin-top: 1.5rem; }

/* Hero */
.hero { display: grid; gap: 2rem; align-items: center; }
.hero-copy p { max-width: 36rem; }
.hero-frame {
    margin: 0;
    background: #fff;
    padding: 0.6rem;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}
.hero-frame img { width: 100%; border-radius: 2px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.button, button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--gold-deep);
    border-radius: var(--radius);
    background: var(--gold-deep);
    color: #fbf7f1;
    text-decoration: none;
    padding: 0.8rem 1.25rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button:hover, button:hover { background: var(--gold-darker); border-color: var(--gold-darker); color: #fbf7f1; box-shadow: var(--shadow-sm); }
.button:active, button:active { transform: translateY(1px); }
.button.ghost, button.ghost { background: transparent; color: var(--gold-deep); }
.button.ghost:hover, button.ghost:hover { background: rgba(226, 197, 167, 0.3); color: var(--gold-darker); }
button.danger { color: var(--danger); border-color: rgba(138, 59, 44, 0.55); }
button.danger:hover { background: rgba(138, 59, 44, 0.08); color: var(--danger); }
button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.button.full, button.full { width: 100%; }
.text-link { text-decoration: none; font-weight: 400; letter-spacing: 0.02em; }
.text-link span { display: inline-block; transition: transform 0.2s var(--ease); }
.text-link:hover span { transform: translateX(3px); }

/* Cards */
.grid-3, .steps, .contact-grid { display: grid; gap: 1.1rem; }
.card, .step, .panel {
    background: rgba(251, 247, 241, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.2rem 1.3rem;
}
.panel + .panel { margin-top: 1rem; }
.product-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.3rem; }
.card-body h2 { font-size: 1.9rem; }
.card-cta { margin: auto 0 0; padding-top: 0.6rem; }
.price { font-family: var(--serif); font-size: 2rem; margin: 0.2rem 0; color: var(--gold-deep); }
.card ul, .panel ul { padding-left: 1.1rem; }
.includes { list-style: none; padding: 0 !important; margin: 0.4rem 0 1rem; display: grid; gap: 0.25rem; }
.includes li { position: relative; padding-left: 1.2rem; font-size: 0.95rem; }
.includes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.45rem;
    height: 0.45rem;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}
.band {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    background: rgba(226, 197, 167, 0.35);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: clamp(3rem, 7vw, 5.5rem);
}
.band img { border-radius: 2px; }
.steps { counter-reset: step; }
.step { min-height: 100%; }
.step strong {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.7rem;
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--gold-deep);
}

/* Forms */
.split { display: grid; gap: 2rem; align-items: start; }
.narrow { max-width: 640px; }
.login { margin: 3rem auto; }
.form-panel { padding: 1.4rem; }
.form-title { font-size: 1.7rem; margin: 1.4rem 0 0.8rem; }
.form-panel > .form-title:first-of-type, .form-panel > input[type="hidden"] + .form-title { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 0 0.95rem; }
.field > span { font-size: 0.85rem; letter-spacing: 0.04em; }
.field .optional { font-style: normal; color: var(--muted); font-size: 0.78rem; margin-left: 0.25rem; }
.field .hint { color: var(--muted); font-size: 0.8rem; }
.field-row { display: grid; gap: 0 1rem; }
.field-qty input { max-width: 8rem; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 0.75rem 0.85rem;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input[type="radio"], input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    margin: 0.2rem 0 0;
    flex: none;
    accent-color: var(--gold-deep);
    cursor: pointer;
}
input:hover, textarea:hover, select:hover { border-color: rgba(110, 86, 44, 0.5); }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(141, 112, 64, 0.18);
}
input[readonly] { background: var(--paper); }
input:user-invalid, textarea:user-invalid { border-color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 0.45rem; padding: 0; }
.choices { display: grid; gap: 0.55rem; margin-bottom: 1.2rem; }
.choice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.choice:hover { border-color: rgba(110, 86, 44, 0.5); }
.choice:has(input:checked) {
    border-color: var(--gold);
    background: #fffaf2;
    box-shadow: inset 0 0 0 1px var(--gold);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice strong { font-weight: 400; }
.choice small { color: var(--muted); display: block; }
.choice > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 1.2rem 0;
    padding: 0.9rem;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    font-size: 0.95rem;
    cursor: pointer;
}
.address-fields[hidden] { display: none; }
.price-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.price-bar p { margin: 0; display: flex; align-items: baseline; gap: 0.6rem; }
.price-bar strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--gold-deep); }

/* Proof */
.collection-photo { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.proof { margin: 0; }
.proof figcaption, .quiet, .fine { color: var(--muted); font-size: 0.92rem; }
.proof figcaption { margin-bottom: 0.5rem; letter-spacing: 0.04em; }
.proof-card {
    background: #f3eadc;
    border: 1px solid rgba(110, 86, 44, 0.35);
    outline: 1px solid rgba(110, 86, 44, 0.18);
    outline-offset: -8px;
    border-radius: 2px;
    padding: 1.8rem 1.4rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.proof-card img { width: 150px; margin: 0 auto 0.4rem; mix-blend-mode: multiply; }
.proof-card h3 { overflow-wrap: anywhere; }
.proof-kicker, .proof-sign { font-family: var(--serif); }
.proof-kicker { font-style: italic; font-size: 1.15rem; margin: 0.4rem 0 0; }
.proof-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.lid-line { text-align: center; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }

/* Totals and summaries */
.totals { margin: 1rem 0; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.45rem 0; }
.totals dt, .totals dd { margin: 0; }
.totals dd { font-variant-numeric: tabular-nums; }
.totals .grand { font-family: var(--serif); font-size: 1.6rem; border-bottom: 0; }
.order-summary h2 { font-size: 1.7rem; }
.order-summary .proof { margin-bottom: 0.6rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; margin: 0.4rem 0 1.4rem; }
.summary-line strong { font-weight: 400; }
.bag-line { display: grid; gap: 1.5rem; margin: 1.2rem 0; }
.bag-line h2 { font-size: 1.9rem; margin-bottom: 0; }
.bag-summary { display: grid; gap: 0.4rem; margin: 1.2rem 0; }
.bag-summary p { margin: 0; }
.bag-summary .button { justify-self: start; margin-top: 0.4rem; }
.pay-actions { display: grid; gap: 0.6rem; margin-top: 1rem; max-width: 420px; }
.note {
    background: rgba(255, 255, 255, 0.55);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.8rem 1rem;
}

/* Admin */
.admin-bar {
    display: flex;
    gap: 1.2rem;
    padding: 0.85rem max(1rem, calc((100% - 1120px) / 2));
    background: var(--ink);
}
.admin-bar a { color: var(--plaque); text-decoration: none; }
.admin-bar a:hover { color: #fff; }
.admin-bar a:last-child { margin-left: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; color: var(--muted); background: rgba(226, 197, 167, 0.25); }
tbody tr:hover { background: #fff; }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    border: 1px solid transparent;
}
.badge-awaiting-quote { background: #f6ead2; color: #7a5a18; border-color: #e6cf9f; }
.badge-pending-payment { background: #eef0f6; color: #3d4a6b; border-color: #cfd5e6; }
.badge-paid { background: #e6f0e5; color: var(--success); border-color: #c2dac0; }
.badge-fulfilled { background: var(--ink); color: var(--paper); }
.badge-cancelled { background: #f3e3df; color: var(--danger); border-color: #e3c3bb; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; margin: 1rem 0 1.4rem; }
.stat {
    display: grid;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow 0.2s var(--ease);
}
.stat:hover { box-shadow: var(--shadow-sm); color: var(--ink); }
.stat-num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.85rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tabs a {
    text-decoration: none;
    color: var(--muted);
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 0.88rem;
}
.tabs a span { opacity: 0.7; margin-left: 0.2rem; }
.tabs a[aria-current="page"] { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--paper); }
.empty { color: var(--muted); }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.order-head h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.copy-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; margin-bottom: 1rem; }
.copy-row .field { flex: 1 1 320px; margin: 0; }
.panel.actions { margin-top: 1rem; }

/* Footer */
.site-footer {
    display: grid;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding: 2rem 0 2.5rem;
    font-size: 0.95rem;
}
.site-footer p { margin: 0.25rem 0; }
.footer-mark { font-size: 1.6rem; margin: 0; }

@media (min-width: 640px) {
    .field-row { grid-template-columns: 1fr 1fr; }
    .field-row-3 { grid-template-columns: 2fr 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
    .brand { width: 150px; }
    .nav summary { display: none; }
    .nav-links {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 0.2rem;
        border: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
        min-width: 0;
    }
    .nav-links a:hover { background: transparent; color: var(--gold-deep); }
    .nav-links a[aria-current="page"]::after {
        content: "";
        position: absolute;
        left: 0.7rem;
        right: 0.7rem;
        bottom: 0.25rem;
        height: 1px;
        background: var(--gold);
    }
    .hero, .split, .band { grid-template-columns: 1.1fr 0.9fr; }
    .bag-line { grid-template-columns: 0.9fr 1.1fr; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(5, 1fr); }
    .contact-grid, .site-footer { grid-template-columns: 1.2fr 1fr 1fr; }
    .proof-sticky, .order-summary { position: sticky; top: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
