:root{color-scheme:light;--paper:#fff;--cream:#fff;--gold:#676767;--dark:#171717;--soft:#575757;--line:#dedede;--light:#f3f3f3}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--dark);font:16px/1.55 system-ui,sans-serif}a{color:inherit;text-underline-offset:4px}a:focus-visible,button:focus-visible{outline:3px solid #585858;outline-offset:3px}button,.button{display:inline-flex;align-items:center;justify-content:center;padding:10px 17px;border:1px solid var(--dark);border-radius:4px;background:var(--dark);color:white;font:inherit;text-decoration:none;cursor:pointer}button:hover,.button:hover{background:#333}.top,footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px max(4vw,20px);background:var(--cream);border-block-end:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font:700 17px/1 Georgia,serif;letter-spacing:-.02em}main{max-width:1440px;margin:auto;padding:0 max(4vw,18px) 56px}.masthead{margin:20px 0 28px;padding:clamp(24px,7vw,78px);border:1px solid var(--line);background:#fff;border-radius:12px}.eyebrow{letter-spacing:.18em;text-transform:uppercase;font-size:.8rem;font-weight:700;color:#575757}h1,h2,h3{margin:0 0 .55em;line-height:1.15}h1,h2{font-family:Georgia,serif}h1{font-size:clamp(2rem,5vw,4rem)}h2{font-size:1.5rem}.catalog{display:grid;grid-template-columns:minmax(155px,210px) minmax(0,1fr);gap:28px;scroll-margin-top:16px}aside{padding:14px 0}.categories{display:grid;gap:4px}.categories a{padding:8px 12px;text-decoration:none;border-radius:4px;color:var(--soft)}.categories a[aria-current=true],.categories a:hover{background:var(--light);color:var(--dark)}.collection-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:12px 0}.collection-heading span,small{color:var(--soft)}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr));gap:14px}.card,.box{overflow:hidden;border:1px solid var(--line);background:var(--cream);border-radius:9px}.card{text-decoration:none}.card:hover{border-color:var(--gold)}.card>img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#fff}.card>div,.box{padding:16px}.card h3{font-size:1rem;margin:.45em 0}.price{font-weight:700;color:#171717;margin:.35em 0}.back{display:inline-block;margin:20px 0}.detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:25px;align-items:start}.hero-image{display:block}.hero-image img{display:block;width:100%;max-height:620px;object-fit:contain;background:#fff;border-radius:8px}.thumbs{display:flex;gap:8px;overflow:auto;margin:10px 0 18px;padding:3px}.thumbs button{padding:0;background:var(--cream);border:1px solid var(--line);flex:none}.thumbs button[aria-pressed=true]{border:2px solid var(--gold)}.thumbs img{width:65px;height:65px;display:block;object-fit:cover}video{display:block;width:100%;background:#181818;max-height:480px}.description{padding:clamp(18px,4vw,38px)}.description h1{font-size:clamp(2rem,4vw,3.4rem);overflow-wrap:anywhere}.description .price{font-size:1.35rem;margin-bottom:1em}.copy{white-space:pre-line;overflow-wrap:anywhere}.notice{background:var(--light);padding:10px 12px;border-radius:4px}.admin{max-width:780px;margin:30px auto}.admin h1{font-size:2.5rem}.form{display:grid;gap:14px;margin:15px 0}.form label{display:grid;gap:5px;font-weight:600}.form .check{display:flex;align-items:center}.form input:not([type=checkbox]),select,textarea{width:100%;font:inherit;color:inherit;background:white;border:1px solid var(--line);border-radius:4px;padding:8px}.form button{justify-self:start}.tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inventory{list-style:none;margin:0;padding:0}.inventory li{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid var(--line)}.inventory small{display:block}.inventory li:last-child{border:0}footer{border-block-start:1px solid var(--line);border-block-end:0;flex-wrap:wrap}
@media(max-width:680px){.catalog,.detail{grid-template-columns:minmax(0,1fr);gap:10px}.categories{display:flex;overflow:auto;white-space:nowrap;padding:3px}.catalog aside{padding:0}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.card>div{padding:9px}.top>a:last-child{font-size:.85rem}.description{grid-row:1}.inventory li{align-items:flex-start}}
.catalog>*{min-width:0}.card h3{overflow-wrap:anywhere}

.photo-preview {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    overflow: visible;
}
.photo-preview::backdrop { background: rgb(0 0 0 / 72%); }
.photo-preview img {
    display: block;
    width: var(--preview-width, auto);
    height: var(--preview-height, auto);
    max-width: 96vw;
    max-height: 94vh;
    max-height: 94dvh;
    object-fit: contain;
    border-radius: 9px;
}
.photo-preview-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--dark);
    background: var(--cream);
    font-size: 26px;
    line-height: 1;
}
.photo-preview-close:hover { background: var(--light); }
.hero-image { cursor: zoom-in; }
body:has(.photo-preview[open]) { overflow: hidden; }

.photo-preview-viewport { border-radius: 9px; }
@media (max-width: 680px) {
    .photo-preview-viewport {
        overflow: auto;
        max-width: 96vw;
        max-height: 94vh;
        max-height: 94dvh;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }
    .photo-preview img {
        max-width: none;
        max-height: none;
    }
}
.masthead p { margin: 0; color: var(--soft); }

/* Catalog homepage */
.catalog-home {
    --catalog-accent: #49332b;
    background: #f6f1eb;
}

.catalog-home .top {
    padding-inline: max(20px, calc((100% - 1280px) / 2));
    border-color: #e7dbce;
}

.catalog-home main {
    max-width: 1320px;
    padding-inline: 20px;
}

.catalog-home .masthead {
    margin: 18px 0 22px;
    padding: clamp(18px, 3vw, 36px);
    border-color: #e1cdb6;
    background: linear-gradient(105deg, #f0ddc5, #faf1e7);
    color: var(--catalog-accent);
}

.catalog-home .masthead h1 {
    margin-bottom: 8px;
    font-size: clamp(1.85rem, 4vw, 3.3rem);
}

.catalog-home .catalog aside {
    align-self: start;
    padding: 14px;
    border: 1px solid #e6d8ca;
    border-radius: 12px;
    background: #eee5da;
}

.catalog-home .categories { gap: 7px; }

.catalog-home .categories a {
    border: 1px solid #dacbbd;
    border-radius: 8px;
    background: #fffaf4;
    color: #49382e;
}

.catalog-home .categories a:hover { background: #f8eddf; }

.catalog-home .categories a[aria-current="true"] {
    border-color: var(--catalog-accent);
    background: var(--catalog-accent);
    color: #fff;
    font-weight: 650;
}

.catalog-home .collection-heading { padding-top: 2px; }

.catalog-home .card {
    border-color: #e5d9cd;
    background: #fff;
    box-shadow: 0 2px 7px rgb(70 43 25 / 6%);
}

.catalog-home .card:hover { border-color: #9b7860; }

.catalog-home .card > img {
    padding: 8px;
    background: #f2ece5;
}

.catalog-home .card > div { border-top: 1px solid #f0e6dc; }
.catalog-home .card .price { color: var(--catalog-accent); }

@media (max-width: 680px) {
    .catalog-home main { padding-inline: 12px; }
    .catalog-home .masthead { margin: 12px 0; }
    .catalog-home .catalog aside { padding: 10px; }
    .catalog-home .categories { padding-block: 4px 6px; }
    .catalog-home .categories a { flex: none; }
}

/* Product detail */
.detail .description .price {
    display: table;
    max-width: 100%;
    margin: 12px 0 20px;
    padding: 8px 16px;
    border: 1px solid #e1cdb6;
    border-radius: 8px;
    background: #f4e7d7;
    color: #49332b;
    overflow-wrap: anywhere;
}

.detail .description .copy {
    margin: 0;
    padding: clamp(14px, 3vw, 22px);
    border: 1px solid #d9c8b8;
    border-radius: 10px;
    background: #fff;
}

.detail .description > .button { margin-top: 16px; }

/* Static rain ornament on the catalog banner. */
.catalog-home .masthead {
    position: relative;
    padding-inline-end: calc(clamp(18px, 3vw, 36px) + min(25%, 235px));
}

.rain-drops {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: clamp(14px, 3vw, 34px);
    width: min(24%, 205px);
    height: 76px;
    pointer-events: none;
}

.rain-drops i {
    --size: 9px;
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 25% 65% 65% 65%;
    background: linear-gradient(145deg, #fff9 15%, #b699794d 100%);
    box-shadow: inset 0 0 0 1px #a785622e, 0 1px 2px #8b705022;
    transform: rotate(25deg);
}

.rain-drops i:nth-child(1) { --x: 8%; --y: 46%; }
.rain-drops i:nth-child(2) { --x: 29%; --y: 22%; --size: 13px; }
.rain-drops i:nth-child(3) { --x: 45%; --y: 70%; --size: 7px; }
.rain-drops i:nth-child(4) { --x: 72%; --y: 42%; --size: 15px; }
.rain-drops i:nth-child(5) { --x: 88%; --y: 7%; --size: 11px; }
.rain-drops i:nth-child(6) { --x: 0%; --y: 6%; --size: 6px; }
.rain-drops i:nth-child(7) { --x: 21%; --y: 84%; }
.rain-drops i:nth-child(8) { --x: 55%; --y: 8%; --size: 7px; }
.rain-drops i:nth-child(9) { --x: 67%; --y: 84%; --size: 8px; }
.rain-drops i:nth-child(10) { --x: 94%; --y: 67%; --size: 7px; }

@media (max-width: 680px) {
    .catalog-home .masthead { padding-inline-end: 70px; }
    .rain-drops { width: 49px; height: 41px; inset-inline-end: 12px; inset-block-start: 12px; }
    .rain-drops i { width: calc(var(--size) * .65); height: calc(var(--size) * .65); }
    .rain-drops i:nth-child(n+6) { display: none; }
}
