/* Usnje Zvezda - design system. Collage cut-out: torn paper, tape, cutouts. */
:root{
  --emerald:#0e3a2d;
  --emerald-deep:#082019;
  --ink:#0e1912;
  --gold:#c9a24a;
  --gold-light:#e8cf8f;
  --paper:#f6f1e4;
  --paper-dim:#ece3cc;
  --cream:#fffaf0;
  --red:#8a2b1f;
  --ff-display:"Iowan Old Style","Palatino Linotype",Georgia,"Times New Roman",serif;
  --ff-body:"Segoe UI","Avenir Next",Helvetica,Arial,sans-serif;
  --ff-mono:"Consolas","SF Mono",Menlo,monospace;
  --radius:4px;
  --shadow-paper:0 6px 0 -2px rgba(0,0,0,.06),0 18px 30px -16px rgba(0,0,0,.4);
  --maxw:1180px;
}
*{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--ff-body);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--ff-display);margin:0 0 .5em;line-height:1.1}
p{margin:0 0 1em}
ul{margin:0;padding:0}
button{font-family:inherit;cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:-999px;top:0;background:var(--gold);color:var(--ink);padding:.5em 1em;z-index:999}
.skip-link:focus{left:0}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.icon{width:1.3em;height:1.3em;stroke:currentColor}
.icon-sm{width:1em;height:1em;vertical-align:-.15em}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}

/* ===== layout helpers ===== */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:860px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}
.mt-0{margin-top:0}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:1rem}.mb-2{margin-bottom:2rem}.mb-3{margin-bottom:3rem}
.section{padding:clamp(3rem,6vw,6rem) 0;position:relative}
.text-center{text-align:center}
.eyebrow{font-family:var(--ff-mono);text-transform:uppercase;letter-spacing:.14em;font-size:.78rem;color:var(--gold);display:inline-block;margin-bottom:.6em}

/* ===== reveal ===== */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease}
.reveal.in-view{opacity:1;transform:none}
.reveal-clip{clip-path:inset(0 0 100% 0);transition:clip-path .8s ease}
.reveal-clip.in-view{clip-path:inset(0 0 0% 0)}

/* ===== header ===== */
.site-header{position:sticky;top:0;z-index:100;background:var(--paper);border-bottom:3px solid var(--ink);box-shadow:0 2px 0 var(--gold)}
.header-inner{max-width:var(--maxw);margin:0 auto;padding:.7rem 24px;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.brand{display:flex;align-items:center;gap:.6rem;flex:0 0 auto}
.brand-mark{width:36px;height:36px;aspect-ratio:1/1}
.brand-word{font-family:var(--ff-display);font-size:1.3rem;font-weight:700}
.brand-word em{color:var(--gold);font-style:normal}
.main-nav{display:flex;align-items:center;gap:1.6rem;flex:1;justify-content:flex-end}
.nav-list{display:flex;gap:1.4rem;list-style:none;flex-wrap:wrap}
.nav-list a{font-size:.95rem;font-weight:600;position:relative;padding:.2em 0}
.nav-list a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;background:var(--gold);transition:width .25s ease}
.nav-list a:hover::after,.nav-list a.is-active::after{width:100%}
.nav-list a.is-active{color:var(--emerald)}
.cart-link{position:relative;display:flex;align-items:center}
.cart-count{position:absolute;top:-8px;right:-10px;background:var(--red);color:#fff;font-size:.68rem;font-weight:700;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center}
.cart-count.bump{animation:bump .35s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.5)}100%{transform:scale(1)}}
.nav-toggle{display:none;background:none;border:none;padding:.3rem;position:relative;width:32px;height:32px}
.nav-toggle .icon-shut{display:none}
.nav-toggle[aria-expanded="true"] .icon-open{display:none}
.nav-toggle[aria-expanded="true"] .icon-shut{display:block}
.nav-toggle .icon{position:absolute;top:4px;left:4px}

@media (max-width:860px){
  .nav-toggle{display:block;order:3}
  .main-nav{position:fixed;inset:0 0 0 30%;top:0;background:var(--emerald-deep);color:var(--cream);flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:5rem 1.5rem;gap:2rem;transform:translateX(100%);visibility:hidden;transition:transform .35s ease;z-index:200}
  .main-nav.is-open{transform:translateX(0);visibility:visible}
  .nav-list{flex-direction:column;gap:1.2rem}
  .nav-list a{color:var(--cream)}
  .cart-link{color:var(--cream)}
}

/* ===== buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;padding:.75em 1.6em;border-radius:var(--radius);font-weight:700;font-size:.95rem;border:2px solid transparent;position:relative;overflow:hidden;isolation:isolate}
.btn-gold{background:var(--gold);color:var(--ink)}
.btn-dark{background:var(--ink);color:var(--paper)}
.btn-outline{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn-ghost{background:transparent;color:var(--cream);border-color:rgba(255,255,255,.5)}
.btn-sweep::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--emerald);z-index:-1;transition:left .3s ease}
.btn-sweep:hover::before{left:0}
.btn-sweep.btn-gold:hover{color:var(--cream)}
.btn-sweep.btn-outline:hover{color:var(--cream)}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn-block{width:100%}

/* ===== hero / tabs ===== */
.hero{position:relative;padding:clamp(3rem,8vw,7rem) 0 clamp(2rem,6vw,4rem);overflow:hidden;background:var(--emerald);color:var(--cream)}
.hero-grain{position:absolute;inset:0;width:100%;height:100%;opacity:.12;pointer-events:none}
.hero-inner{max-width:var(--maxw);margin:0 auto;padding:0 24px;position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center}
@media (max-width:860px){.hero-inner{grid-template-columns:1fr}}
.hero-title{font-size:clamp(2.6rem,7vw,5rem);margin-bottom:.4em}
.stagger-word{display:inline-block;opacity:0;transform:translateY(.6em);transition:opacity .5s ease, transform .5s ease}
.is-ready .stagger-word{opacity:1;transform:none}
.hero-sub{max-width:34ch;font-size:1.1rem;color:var(--gold-light)}
.hero-art{position:relative}
.hero-tabs{display:flex;gap:.6rem;margin-bottom:1.2rem;flex-wrap:wrap}
.hero-tab{background:transparent;border:2px solid var(--gold);color:var(--gold-light);padding:.5em 1.1em;border-radius:999px;font-size:.85rem;font-weight:700}
.hero-tab.is-active{background:var(--gold);color:var(--ink)}
.hero-figure{position:relative;aspect-ratio:4/5;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-paper)}
.hero-figure img{width:100%;height:100%;object-fit:cover;display:none}
.hero-figure img.is-active{display:block}
.hero-tape{position:absolute;width:90px;height:34px;background:rgba(201,162,74,.85);top:-14px;left:20px;transform:rotate(-6deg);box-shadow:0 3px 6px rgba(0,0,0,.3)}

/* ===== torn paper divider ===== */
.tear-top,.tear-bottom{position:relative}
.tear-divider{width:100%;height:40px;display:block}
.footer-tear{width:100%;height:40px}

/* ===== cards ===== */
.card{background:var(--cream);border:1px solid rgba(0,0,0,.08);border-radius:var(--radius);box-shadow:var(--shadow-paper);transition:transform .25s ease}
.card:hover{transform:translateY(-6px)}
.product-card{display:flex;flex-direction:column;overflow:hidden}
.product-card .thumb{aspect-ratio:4/3;overflow:hidden}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.product-card:hover .thumb img{transform:scale(1.08)}
.product-card .body{padding:1.2rem 1.2rem 1.4rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.product-card .price{font-weight:700;color:var(--emerald);font-size:1.15rem;margin-top:auto}
.product-strip{display:flex;gap:1.2rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:1rem}
.product-strip .product-card{min-width:260px;scroll-snap-align:start}
@media (min-width:860px){.product-strip{overflow:visible;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}

/* ===== feature: Studio Vtisov (monogram studio) ===== */
.studio{background:var(--ink);color:var(--paper);border-radius:var(--radius);padding:clamp(1.5rem,4vw,3rem);position:relative;overflow:hidden}
.studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:center}
@media (max-width:860px){.studio-grid{grid-template-columns:1fr}}
.studio-controls label{display:block;font-size:.85rem;margin-bottom:.3rem;color:var(--gold-light)}
.studio-controls input[type="text"]{width:100%;padding:.6em .8em;font-size:1.1rem;border:2px solid var(--gold);background:transparent;color:var(--paper);border-radius:var(--radius);margin-bottom:1.2rem}
.swatches{display:flex;gap:.6rem;margin-bottom:1.4rem}
.swatch{width:34px;height:34px;border-radius:50%;border:2px solid var(--paper);cursor:pointer}
.swatch.is-active{outline:3px solid var(--gold)}
.studio-preview{aspect-ratio:1/1;border:2px dashed var(--gold);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;background:var(--emerald-deep);position:relative}
.studio-stamp{font-family:var(--ff-display);font-weight:700;font-size:clamp(2rem,8vw,3.6rem);letter-spacing:.08em}

/* ===== page hero (inner pages) ===== */
.page-hero{background:var(--emerald);color:var(--cream);padding:clamp(2.5rem,6vw,4.5rem) 0 clamp(2rem,4vw,3rem);position:relative}
.page-hero h1{font-size:clamp(2.2rem,5vw,3.2rem)}
.page-hero p{color:var(--gold-light);max-width:60ch}

/* ===== breadcrumbs ===== */
.breadcrumbs{font-family:var(--ff-mono);font-size:.82rem;color:var(--gold-light);display:flex;gap:.4em;flex-wrap:wrap}
.breadcrumbs a{text-decoration:underline}
.breadcrumbs span{opacity:.6}

/* ===== prose / legal ===== */
.prose{max-width:72ch;margin:0 auto}
.prose h2{margin-top:2em;font-size:1.5rem}
.prose h3{margin-top:1.4em;font-size:1.15rem}
.prose p,.prose li{color:#2a2a24}
.prose ul,.prose ol{padding-left:1.4em;margin-bottom:1em}
.legal-toc{background:var(--paper-dim);border-radius:var(--radius);padding:1.2rem 1.4rem;margin-bottom:2rem}
.legal-toc h2{font-size:1rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.6em}
.legal-toc ol{padding-left:1.2em}
.legal-toc a{text-decoration:underline}

/* ===== notice ===== */
.notice{border-left:4px solid var(--gold);background:var(--paper-dim);padding:1rem 1.2rem;border-radius:var(--radius);margin:1.5rem 0}
.notice.notice-error{border-color:var(--red);background:#fbeae7}
.notice.notice-success{border-color:var(--emerald);background:#e6f0ea}

/* ===== forms ===== */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:.35rem}
.field.full{grid-column:1/-1}
.field label{font-weight:600;font-size:.9rem}
.field input,.field select,.field textarea{padding:.7em .9em;border:2px solid #d8cfb3;border-radius:var(--radius);background:var(--cream);font-family:inherit;font-size:1rem;accent-color:var(--emerald)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--emerald)}
.field-error{color:var(--red);font-size:.82rem;min-height:1.1em}
.honeypot{position:absolute !important;left:-9999px !important;width:1px;height:1px;opacity:0}
.form-msg{font-weight:600;opacity:0;transition:opacity .2s ease}
.form-msg:not(:empty){min-height:1.4em}
.form-msg.show{opacity:1}
.form-msg.success{color:var(--emerald)}
.form-msg.error{color:var(--red)}
.field-row{display:flex;gap:.6rem}
.field-row input{flex:1}

/* ===== product detail ===== */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
@media (max-width:860px){.product-detail{grid-template-columns:1fr}}
.product-detail .gallery{aspect-ratio:4/3;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-paper)}
.product-detail .gallery img{width:100%;height:100%;object-fit:cover}
.product-detail .price-tag{font-size:1.8rem;font-weight:700;color:var(--emerald);margin:.4em 0}
.qty-stepper{display:flex;align-items:center;border:2px solid var(--ink);border-radius:var(--radius);width:fit-content}
.qty-stepper button{background:none;border:none;width:40px;height:40px;font-size:1.2rem}
.qty-stepper input{width:48px;text-align:center;border:none;background:none;font-size:1rem}

/* ===== cart / checkout ===== */
.cart-table{width:100%;border-collapse:collapse}
.cart-table th{text-align:left;font-family:var(--ff-mono);font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid var(--ink);padding:.6em}
.cart-table td{padding:.9em .6em;border-bottom:1px solid #e2d8bd;vertical-align:middle}
.cart-table .item-thumb{width:60px;height:60px;border-radius:var(--radius);overflow:hidden}
.cart-table .item-thumb img{width:100%;height:100%;object-fit:cover}
.cart-summary{background:var(--paper-dim);border-radius:var(--radius);padding:1.5rem;max-width:380px;margin-left:auto}
.cart-summary .row{display:flex;justify-content:space-between;margin-bottom:.6em}
.cart-summary .row.total{font-weight:700;font-size:1.2rem;border-top:2px solid var(--ink);padding-top:.6em;margin-top:.6em}
.cart-empty{text-align:center;padding:3rem 0;color:#6a6657}

/* ===== contact layout ===== */
.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
@media (max-width:860px){.contact-layout{grid-template-columns:1fr}}
.contact-info ul{list-style:none;display:flex;flex-direction:column;gap:1rem}
.contact-info li{display:flex;gap:.7em;align-items:flex-start}

/* ===== faq ===== */
.faq{display:flex;flex-direction:column;gap:.8rem;max-width:72ch}
.faq-item{background:var(--cream);border:1px solid #e2d8bd;border-radius:var(--radius);padding:.3rem 1.2rem}
.faq-item summary{cursor:pointer;font-weight:700;padding:.9em 0;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq-item summary::after{content:"+";font-size:1.4rem;color:var(--gold)}
.faq-item[open] summary::after{content:"\2212"}
.faq-item p{padding-bottom:1em;color:#2a2a24}

/* ===== badges / ornaments ===== */
.badge-seal{width:90px;height:90px}
.ornament-line{width:100%;height:16px}

/* ===== cookie banner ===== */
.cookie-banner{position:fixed;left:0;right:0;bottom:-200px;background:var(--emerald-deep);color:var(--cream);padding:1.2rem 1.5rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;z-index:500;transition:bottom .4s ease;box-shadow:0 -4px 20px rgba(0,0,0,.3)}
.cookie-banner.show{bottom:0}
.cookie-banner a{text-decoration:underline;color:var(--gold-light)}
.cookie-actions{display:flex;gap:.8rem;flex:0 0 auto}

/* ===== footer ===== */
.site-footer{background:var(--ink);color:var(--paper);position:relative;padding-top:10px}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:2rem 24px 1rem;display:grid;grid-template-columns:1.2fr 2fr 1.3fr;gap:2.5rem}
@media (max-width:860px){.footer-inner{grid-template-columns:1fr}}
.footer-brand{display:flex;gap:.7rem}
.footer-brand span{color:#a9a08a;font-size:.9rem}
.footer-nav{display:flex;gap:2.5rem}
@media (max-width:480px){.footer-nav{flex-direction:column;gap:1.2rem}}
.footer-col h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--gold);margin-bottom:.8em}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.5em}
.footer-col a:hover{text-decoration:underline}
.footer-news h3{font-size:.95rem;margin-bottom:.4em}
.footer-news p{color:#a9a08a;font-size:.88rem}
.footer-mail{display:flex;gap:.4em;align-items:center;margin-top:.6em}
.footer-bottom{text-align:center;padding:1rem 0 1.6rem;color:#817a65;font-size:.82rem}

/* ===== 404 ===== */
.error-404{text-align:center;padding:clamp(4rem,10vw,7rem) 0}
.error-404 .code{font-size:clamp(5rem,18vw,10rem);font-family:var(--ff-display);color:var(--gold);line-height:1}

/* COMPONENTS: .wrap - max-width content wrapper
COMPONENTS: .grid/.grid-2/.grid-3/.grid-4 - responsive grid helpers
COMPONENTS: .section - vertical section spacing
COMPONENTS: .eyebrow - small uppercase label above headings
COMPONENTS: .reveal/.reveal-clip - scroll-reveal animation hooks, add .in-view via JS
COMPONENTS: .site-header/.header-inner/.main-nav/.nav-list/.nav-toggle - site header & nav
COMPONENTS: .cart-link/.cart-count - header cart icon and live count
COMPONENTS: .btn/.btn-gold/.btn-dark/.btn-outline/.btn-ghost/.btn-sweep/.btn-block - button variants
COMPONENTS: .hero/.hero-inner/.hero-title/.stagger-word/.hero-sub/.hero-tabs/.hero-tab/.hero-figure/.hero-art/.hero-tape - home hero with tabbed mood switch
COMPONENTS: .tear-divider/.footer-tear - torn paper SVG dividers
COMPONENTS: .card/.product-card/.product-strip - catalog product cards and scroll-snap strip
COMPONENTS: .studio/.studio-grid/.studio-controls/.swatches/.swatch/.studio-preview/.studio-stamp - Studio Vtisov monogram feature
COMPONENTS: .page-hero - inner page header band
COMPONENTS: .breadcrumbs - breadcrumb trail
COMPONENTS: .prose - readable long-form legal/text content
COMPONENTS: .legal-toc - table of contents box for legal pages
COMPONENTS: .notice/.notice-error/.notice-success - callout boxes
COMPONENTS: .form-grid/.field/.field-error/.field-row/.honeypot/.form-msg - form layout and validation
COMPONENTS: .product-detail/.qty-stepper - single product page layout
COMPONENTS: .cart-table/.cart-summary/.cart-empty - cart and checkout
COMPONENTS: .contact-layout/.contact-info - contact page layout
COMPONENTS: .faq/.faq-item - FAQ accordion (details/summary)
COMPONENTS: .badge-seal/.ornament-line - decorative bespoke SVGs
COMPONENTS: .cookie-banner/.cookie-actions - cookie consent banner
COMPONENTS: .site-footer/.footer-inner/.footer-nav/.footer-col/.footer-news - site footer
COMPONENTS: .error-404 - 404 page layout
*/

/* ===== newsletter form ===== */
.newsletter-form{display:flex;flex-direction:column;gap:1rem}

/* ===== product form ===== */
.product-form{display:flex;flex-direction:column;gap:1.2rem}

/* ===== quantity buttons ===== */
.qty-btn{background:none;border:none;width:40px;height:40px;font-size:1.2rem;display:flex;align-items:center;justify-content:center;color:var(--ink)}

/* ===== cart quantity input ===== */
.cart-qty{width:60px;text-align:center;border:2px solid #d8cfb3;border-radius:var(--radius);background:var(--cream);padding:.5em .4em;font-size:1rem}
.cart-qty:focus{border-color:var(--emerald)}

/* wg-contrast-autofix */
#main section.section.wrap span.eyebrow.reveal { color: #111111 !important; }
#studio div.wrap span.eyebrow.reveal { color: #111111 !important; }
section.section.wrap div.grid.grid-2 div.reveal.in-view span.eyebrow { color: #111111 !important; }
