:root{color-scheme:dark;--pine:#10362b;--gold:#f6d791;--cream:#fff4da;--wine:#601c29}*{box-sizing:border-box}body{margin:0;background:var(--pine);color:var(--cream);font:1rem/1.5 "Trebuchet MS",Arial,sans-serif}header,main{max-width:1110px;margin:auto;padding:0 clamp(16px,4vw,46px)}header{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #b99c6844}a{color:var(--gold)}header a:first-child{font:bold 1.25rem Georgia;text-decoration:none}header a:last-child{font-size:.9rem}.hero{width:min(100%,620px);margin:clamp(12px,2vw,24px) auto}.hero img{display:block;width:100%;height:auto;border-radius:14px}h1,h2{font-family:Georgia,serif;color:var(--gold);line-height:1.06}h1{font-size:clamp(2.6rem,6vw,5.2rem);margin:.3em 0}h2{font-size:clamp(1.7rem,3vw,2.45rem);margin:0 0 1rem}.button{display:inline-block;color:#392213;background:var(--gold);padding:.8rem 1.35rem;border-radius:8px;font-weight:700;text-decoration:none;border:0;font-size:1rem;cursor:pointer}.button:disabled{opacity:.6;cursor:default}form section{margin:22px 0;padding:clamp(16px,3vw,32px);border:1px solid #ae8d5777;border-radius:16px;background:linear-gradient(125deg,#772636,#451620);scroll-margin-top:12px}.gallery,.styles{display:grid;grid-template-columns:repeat(auto-fill,minmax(142px,1fr));gap:12px}.styles{grid-template-columns:repeat(2,minmax(0,1fr))}.card{border:2px solid transparent;border-radius:9px;overflow:hidden;background:#421723;cursor:pointer;position:relative;color:var(--gold);margin:0}.card img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.card span{display:block;padding:8px 10px;font-weight:bold}.card input{position:absolute;top:9px;left:9px;width:20px;height:20px;margin:0;accent-color:#31533c}.card:has(:checked),.card:focus-within{border-color:var(--gold)}.custom{display:flex;align-items:center;gap:10px;border:1px solid #caab7477;border-radius:8px;padding:12px}.custom strong{margin-left:auto}.row{display:grid;grid-template-columns:2fr 1fr;gap:16px}label{display:block;margin:14px 0;color:var(--gold)}label small{display:block;color:var(--cream)}input:not([type=radio]),select,textarea{display:block;width:100%;padding:.75rem;background:#391820;border:1px solid #bb9565;border-radius:6px;color:var(--cream);font:inherit;margin-top:.35rem}input[type=file]{font-size:.9rem}#thumbs{display:flex;gap:10px;flex-wrap:wrap}#thumbs button{background:#391820;color:var(--cream);border:1px solid #ba976a;border-radius:6px;cursor:pointer}#thumbs img{display:block;width:68px;height:68px;object-fit:cover}.styles small{font-weight:400;line-height:1.25;margin-top:3px}#total{font-weight:bold;color:var(--gold)}[hidden]{display:none!important}@media(max-width:600px){header{min-height:58px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.styles{gap:6px}.styles .card span{padding:5px;font-size:.85rem}.styles small{font-size:.76rem}.row{grid-template-columns:2fr 1fr}.custom{flex-wrap:wrap}.button{min-height:44px}}

.photo-guide{margin:1.5rem 0;color:var(--cream)}
.photo-guide h3{margin:0;color:var(--gold);font:700 1.5rem Georgia,serif}
.photo-guide p{max-width:65ch;margin:.45rem 0 1rem}
.guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.6rem,1.5vw,1rem)}
.guide-grid figure{margin:0}
/* White ink blends into the surrounding cranberry panel wherever the paper is clear. */
.guide-grid img{
  display:block;
  width:100%;
  height:auto;
  filter:grayscale(1) invert(1) contrast(1.65);
  mix-blend-mode:screen;
  clip-path:inset(1.5%);
}
.guide-grid figcaption{padding:.5rem .1rem;font-size:.94rem;line-height:1.4}
.guide-grid strong{display:block;color:var(--gold);margin-bottom:.2rem}
@media(max-width:680px){.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
#pet-actions button,#summary button{background:#481c29;color:var(--cream);border:1px solid #b99461;border-radius:7px;padding:.65rem .9rem;font:inherit;cursor:pointer;min-height:44px}
#summary{padding-inline-start:1.2rem}
#new-pet{max-width:25rem}#new-pet input{margin-bottom:.75rem}#summary li{margin-bottom:.65rem}

#preview-panel{margin-top:1.25rem}#preview-image{display:block;width:min(100%,460px);height:auto;border-radius:12px}#preview-status:empty{display:none}

.photo-upload {
  padding: clamp(14px, 3vw, 24px);
  border: 2px solid var(--gold);
  border-radius: 12px;
  cursor: pointer;
}
.photo-upload strong {
  display: block;
  font: 700 clamp(1.6rem, 4vw, 2.15rem)/1.15 Georgia, serif;
}
.photo-upload small { margin: .35rem 0 .8rem; font-size: 1rem; }
.photo-upload input[type=file] { font-size: 1rem; cursor: pointer; }
.photo-upload input::file-selector-button {
  min-height: 44px;
  margin-right: .75rem;
  padding: .6rem 1rem;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: #391820;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.confirmation{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:center;gap:clamp(1rem,4vw,3rem);margin:2rem auto;padding:clamp(1rem,4vw,3rem);border:1px solid #ae8d5777;border-radius:16px;background:linear-gradient(125deg,#772636,#451620)}
.confirmation img{width:100%;height:auto;border-radius:10px}
.confirmation h1{font-size:clamp(2rem,5vw,3.75rem)}
#order-reference{color:var(--gold);overflow-wrap:anywhere}
@media(max-width:600px){.confirmation{grid-template-columns:1fr}.confirmation img{width:min(100%,230px);justify-self:center}}
.share-shop{margin:1.25rem 0 2rem;text-align:center}
.share-shop button{min-height:44px}
#share-status{display:block;margin-top:.35rem;color:var(--gold)}
.inspect-design{display:block;width:100%;padding:0;border:0;background:none;position:relative;cursor:zoom-in}
.inspect-design::after{content:'⤢';position:absolute;bottom:6px;right:6px;border-radius:50%;background:#30141edd;color:white;font:1.25rem/1.5rem sans-serif;width:1.5rem}
.design-choice{margin:0;cursor:pointer}
#catalog .design-choice input{z-index:1}
#design-view{width:min(calc(100% - 16px),680px);max-height:96dvh;padding:12px;background:var(--wine);color:var(--cream);border:1px solid var(--gold);border-radius:14px}
#design-view::backdrop{background:#071610dd}
body:has(#design-view[open]){overflow:hidden}
.view-bar,.view-zoom{display:flex;align-items:center;gap:.5rem}
.view-bar{justify-content:space-between}
.view-bar h2{font-size:clamp(1.2rem,4vw,1.65rem);margin:0}
.view-bar button{min-height:44px;min-width:44px;cursor:pointer}
.view-bar button:not(.button){background:#471923;color:var(--cream);border:1px solid #bd9e67;border-radius:7px;font:inherit}
.view-zoom button:disabled{opacity:.45}
#view-stage{width:min(100%,calc(96dvh - 148px));aspect-ratio:1;margin:10px auto;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;background:#371620}
.product-face img{display:block;width:100%;height:auto;max-width:none}
.costume-open{width:100%;margin-top:1rem}
#costume-sheet{width:min(740px,calc(100% - 20px));max-height:90dvh;overflow:auto;background:var(--wine);color:var(--gold);border:1px solid var(--gold);border-radius:14px}
#costume-sheet::backdrop{background:#071610dd}
#costume-sheet .view-bar{position:sticky;top:0;background:var(--wine);padding:.5rem 0}
#costume-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(128px,42%),1fr));gap:.6rem;margin-top:.6rem}
#costume-grid button{border:2px solid transparent;border-radius:8px;background:#451620;color:var(--cream);font:inherit;cursor:pointer;padding:.45rem;min-height:44px}
#costume-grid img{display:block;width:100%;border-radius:4px;margin-bottom:.3rem}
#costume-grid button[aria-pressed=true]{border-color:var(--gold)}

.pet-tabs{display:flex;justify-content:center;margin:1rem auto;gap:.4rem}
.pet-tabs a{text-decoration:none;font:700 1.1rem Georgia,serif;color:var(--gold);background:transparent;border:1px solid var(--gold);border-radius:2rem;padding:.65rem 2rem;cursor:pointer}
.pet-tabs [aria-current=page]{background:var(--gold);color:#332114}
body.shop{
 --wallpaper-color:#591a29;
 --wallpaper-tint:rgba(89,26,41,.85);
 background-color:var(--wallpaper-color);
 background-image:linear-gradient(var(--wallpaper-tint),var(--wallpaper-tint)),url('/wallpaper.webp');
 background-size:auto,148px 149px;
 background-repeat:repeat;
}
body.shop[data-species=dog]{
 --wallpaper-color:#12392e;
 --wallpaper-tint:rgba(18,57,46,.85);
}
body[data-species=dog] form section,body[data-species=dog] dialog{background:linear-gradient(125deg,#24523f,#102f26)}
body[data-species=dog] :is(.card,.photo-upload,#pet-actions button,#summary button,select,textarea,input:not([type=radio]),#costume-grid button){background-color:#123b2f}

.hero h1{text-align:center;font-size:clamp(2rem,4vw,3.3rem);margin:.45em 0}
/* Match the physical rim, hanger, branch and bokeh of the Cats collection. */
.product-photo, .product-face, .card .product-photo, .card .product-face{display:block;padding:0}
.product-photo{position:relative;width:100%;aspect-ratio:1;overflow:hidden}
.hero .product-photo{border-radius:14px}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding-block:6px}
header .header-actions a{font:inherit;font-size:.9rem;text-decoration:underline}
#music-toggle{min-width:7rem;min-height:44px;border:1px solid var(--gold);border-radius:8px;background:var(--pine);color:var(--gold);font:inherit;cursor:pointer}
