/* Med Kapka - Sketchbook style design system */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: clip; }

:root{
  --ink:#2c2750;
  --indigo:#3a3560;
  --ochre:#d98f1f;
  --ochre-light:#f2b84b;
  --linen:#f6ecd9;
  --linen-dark:#ead9b4;
  --paper:#fffaf0;
  --error:#a33a2e;
  --ok:#3e6b3a;
  --radius:14px;
  --shadow:0 10px 24px -14px rgba(44,39,80,.45);
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--paper);
  background-image:
    linear-gradient(90deg, rgba(44,39,80,.05) 1px, transparent 1px),
    linear-gradient(rgba(44,39,80,.05) 1px, transparent 1px);
  background-size:28px 28px;
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
}
img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.1;margin:0 0 .5em;}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px;}
.icon{width:20px;height:20px;}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
.skip-link{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:.5em 1em;z-index:200;}
.skip-link:focus{left:8px;top:8px;}
:focus-visible{outline:3px solid var(--ochre);outline-offset:2px;}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:100;background:var(--paper);border-bottom:2px solid var(--ink);}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:12px 20px;}
.logo{display:block;}
.logo__mark{width:150px;height:auto;aspect-ratio:170/46;}
.nav{display:flex;align-items:center;gap:1.1rem;flex-wrap:wrap;}
.nav a{text-decoration:none;font-size:.95rem;position:relative;padding:4px 2px;}
.nav a:not(.nav-cart)::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;background:var(--ochre);transition:width .25s ease;}
.nav a:not(.nav-cart):hover::after,.nav a.is-active::after{width:100%;}
.nav-cart{display:flex;align-items:center;gap:.4em;background:var(--ink);color:var(--paper);padding:.45em .8em;border-radius:999px;}
.cart-badge{background:var(--ochre);color:var(--ink);border-radius:999px;min-width:1.4em;text-align:center;font-size:.8em;padding:0 .3em;font-weight:700;}
.cart-badge.bump{animation:bump .35s ease;}
@keyframes bump{0%{transform:scale(1);}40%{transform:scale(1.4);}100%{transform:scale(1);}}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;padding:8px;cursor:pointer;min-height:44px;min-width:44px;}
.nav-toggle span{width:24px;height:2px;background:var(--ink);display:block;}

@media (max-width:860px){
  .nav-toggle{display:flex;}
  .nav{
    position:fixed;inset:0 0 0 auto;width:min(80vw,320px);height:100vh;
    background:var(--indigo);color:var(--linen);flex-direction:column;align-items:flex-start;
    padding:90px 28px;gap:1.4rem;
    transform:translateX(100%);visibility:hidden;transition:transform .3s ease, visibility .3s;
  }
  .nav.is-open{transform:translateX(0);visibility:visible;}
  .nav a{color:var(--linen);font-size:1.1rem;}
  .nav-cart{background:var(--ochre);color:var(--ink);}
}

/* ---------- buttons ---------- */
.btn{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:var(--font-body);font-weight:700;font-size:.95rem;
  padding:.8em 1.5em;border-radius:999px;border:2px solid var(--ink);
  background:var(--ochre);color:var(--ink);cursor:pointer;text-decoration:none;
  min-height:44px;overflow:hidden;z-index:0;isolation:isolate;
}
.btn span, .btn svg{position:relative;z-index:1;}
.btn::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--ink);transition:left .3s ease;z-index:0;}
.btn:hover::before{left:0;}
.btn:hover{color:var(--paper);}
.btn--ghost{background:transparent;}
.btn--ghost-dark{background:transparent;border-color:var(--linen);color:var(--linen);}
.btn--ghost-dark::before{background:var(--linen);}
.btn--ghost-dark:hover{color:var(--ink);}
.btn--dark{background:var(--ink);color:var(--paper);}
.btn--dark::before{background:var(--ochre);}
.btn--dark:hover{color:var(--ink);}
.btn--small{padding:.55em 1.1em;font-size:.85rem;min-height:40px;}
.btn--block{width:100%;}
.btn[disabled]{opacity:.6;cursor:not-allowed;}

/* ---------- reveal / motion ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease, transform .6s ease;}
.reveal.in-view{opacity:1;transform:none;}
.reveal-stagger > *{transition-delay:calc(var(--i,0) * 80ms);}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none;transition:none;}}

/* ---------- hero / ticker ---------- */
.ticker{overflow:hidden;white-space:nowrap;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);background:var(--linen);padding:.6em 0;}
.ticker-inner{display:inline-flex;gap:1.5rem;font-family:var(--font-mono);font-size:.85rem;letter-spacing:.04em;animation:ticker 22s linear infinite;}
.ticker-inner span{white-space:nowrap;}
.ticker-dot{color:var(--ochre);}
@keyframes ticker{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@media (prefers-reduced-motion: reduce){.ticker-inner{animation:none;}}

.grain{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;opacity:.05;z-index:1;mix-blend-mode:multiply;}

/* ---------- page hero (inner pages) ---------- */
.page-hero{padding:4.5rem 0 3rem;border-bottom:2px solid var(--ink);background:var(--linen);position:relative;overflow:hidden;}
.page-hero h1{font-size:clamp(2rem,5vw,3.2rem);}
.page-hero p{max-width:40em;font-size:1.1rem;}
.breadcrumbs{font-family:var(--font-mono);font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:1rem;}
.breadcrumbs a{text-decoration:underline;}

/* ---------- sections / headline ---------- */
.section{padding:4rem 0;}
.section--tight{padding:2.5rem 0;}
.section-head{display:flex;align-items:baseline;gap:1rem;margin-bottom:2rem;flex-wrap:wrap;}
.section-num{font-family:var(--font-mono);font-size:.9rem;color:var(--ochre);border:1.5px solid var(--ochre);border-radius:999px;padding:.2em .7em;}
.display{font-size:clamp(2.4rem,7vw,5.2rem);letter-spacing:-.01em;}

.grid{display:grid;gap:1.5rem;}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.flow > * + *{margin-top:1rem;}
.gap-sm{gap:.75rem;}
.gap-lg{gap:2.5rem;}
.mt-0{margin-top:0;}
.muted{color:#6b6440;}

/* ---------- product strip / cards ---------- */
.strip{display:flex;gap:1.25rem;overflow-x:auto;scroll-snap-type:x mandatory;padding:.5rem .2rem 1.5rem;}
.strip .product-card{flex:0 0 260px;scroll-snap-align:start;}
.product-card{
  background:var(--paper);border:2px solid var(--ink);border-radius:var(--radius);
  overflow:hidden;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;
  box-shadow:var(--shadow);transition:transform .25s ease;
}
.product-card:hover{transform:translateY(-6px);}
.product-card__media{aspect-ratio:4/3;overflow:hidden;background:var(--linen);}
.product-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease;}
.product-card:hover .product-card__media img{transform:scale(1.08);}
.product-card__body{padding:1rem 1.1rem 1.3rem;display:flex;flex-direction:column;gap:.4rem;flex:1;}
.product-card__price{font-family:var(--font-mono);font-weight:700;color:var(--ochre);margin-top:auto;}

/* ---------- compass (signature feature) ---------- */
.compass{background:var(--indigo);color:var(--linen);border-radius:var(--radius);padding:2.5rem;position:relative;overflow:hidden;}
.compass h2{color:var(--linen);}
.compass-options{display:flex;gap:.75rem;flex-wrap:wrap;margin:1.5rem 0;}
.compass-options button{
  font-family:var(--font-body);font-weight:700;border:2px solid var(--linen);background:transparent;color:var(--linen);
  padding:.7em 1.3em;border-radius:999px;cursor:pointer;min-height:44px;
}
.compass-options button.is-active, .compass-options button:hover{background:var(--ochre);color:var(--ink);border-color:var(--ochre);}
.compass-results{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-top:1rem;}
.compass-card{display:flex;flex-direction:column;gap:.3rem;background:var(--paper);color:var(--ink);padding:1rem 1.2rem;border-radius:10px;text-decoration:none;}
.compass-price{font-family:var(--font-mono);color:var(--ochre);font-weight:700;}

/* ---------- dividers / ornaments ---------- */
.divider{width:100%;height:30px;display:block;}

/* ---------- forms ---------- */
.form-grid{display:grid;gap:1.2rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.field{display:flex;flex-direction:column;gap:.4rem;}
.field--full{grid-column:1/-1;}
.field label{font-weight:700;font-size:.9rem;}
.field input,.field select,.field textarea{
  font:inherit;padding:.7em .9em;border:2px solid var(--ink);border-radius:8px;background:var(--paper);accent-color:var(--ochre);min-height:44px;
}
.field textarea{min-height:120px;resize:vertical;}
.field-error{color:var(--error);font-size:.85rem;min-height:1.2em;}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.notice{padding:1em 1.2em;border-radius:10px;border:2px solid var(--ink);}
.notice--ok{background:#e6efe1;border-color:var(--ok);color:var(--ok);}
.notice--error{background:#f6e3df;border-color:var(--error);color:var(--error);}
.form-status{min-height:1.4em;font-size:.9rem;}

/* ---------- newsletter / footer ---------- */
.site-footer{background:var(--indigo);color:var(--linen);margin-top:4rem;}
.site-footer a{text-decoration:none;}
.site-footer__grid{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:2rem;padding:3.5rem 20px 2rem;}
.footer-mark{width:28px;height:28px;}
.footer-brand{display:flex;flex-direction:column;gap:.6rem;}
.footer-links{display:flex;flex-direction:column;gap:.55rem;}
.footer-links a:hover{text-decoration:underline;}
.footer-newsletter{display:flex;flex-direction:column;gap:.6rem;}
.newsletter-form{display:flex;gap:.5rem;position:relative;flex-wrap:wrap;}
.newsletter-form input[type=email]{flex:1;min-width:140px;padding:.7em .9em;border-radius:8px;border:2px solid var(--linen);background:transparent;color:var(--linen);min-height:44px;}
.newsletter-form input[type=email]::placeholder{color:#cfc7a3;}
.footer-mail{display:flex;align-items:center;gap:.4em;}
.footer-bottom{padding:1.2rem 20px 2rem;border-top:1px solid rgba(246,236,217,.25);font-size:.85rem;}
@media (max-width:760px){.site-footer__grid{grid-template-columns:1fr;}}

/* ---------- cookie banner ---------- */
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:150;background:var(--indigo);color:var(--linen);border-top:3px solid var(--ochre);}
.cookie-banner__inner{max-width:1180px;margin:0 auto;padding:1.2rem 20px;display:flex;gap:1.5rem;flex-wrap:wrap;align-items:center;justify-content:space-between;}
.cookie-banner a{text-decoration:underline;}
.cookie-banner__actions{display:flex;gap:.6rem;flex-wrap:wrap;}

/* ---------- long-form legal text ---------- */
.prose{max-width:38em;}
.prose h2{margin-top:2em;}
.prose p,.prose li{font-size:1.02rem;}
.legal-toc{border:2px solid var(--ink);border-radius:var(--radius);padding:1.2rem 1.5rem;background:var(--linen);max-width:28em;}
.legal-toc ol{margin:0;padding-left:1.2em;}

/* ---------- faq ---------- */
.faq{display:flex;flex-direction:column;gap:.9rem;max-width:42em;}
.faq-item{border:2px solid var(--ink);border-radius:10px;padding:.2rem 1.2rem;background:var(--paper);}
.faq-item summary{cursor:pointer;font-weight:700;padding:1em 0;list-style:none;display:flex;justify-content:space-between;gap:1em;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+";font-size:1.4em;color:var(--ochre);}
.faq-item[open] summary::after{content:"−";}
.faq-item p{margin:0 0 1em;}

/* ---------- product detail / cart ---------- */
.product-detail{display:grid;gap:2.5rem;grid-template-columns:1fr 1fr;align-items:start;}
.product-detail__media{border:2px solid var(--ink);border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3;}
.product-detail__media img{width:100%;height:100%;object-fit:cover;}
.product-detail__price{font-family:var(--font-mono);font-size:1.8rem;color:var(--ochre);font-weight:700;}
@media (max-width:760px){.product-detail{grid-template-columns:1fr;}}

.cart-table{width:100%;border-collapse:collapse;}
.cart-table th,.cart-table td{text-align:left;padding:.9em .6em;border-bottom:1.5px solid var(--linen-dark);}
.cart-table img{width:56px;height:56px;object-fit:cover;border-radius:8px;}
.cart-summary{border:2px solid var(--ink);border-radius:var(--radius);padding:1.5rem;background:var(--linen);max-width:24em;}
.cart-summary dl{display:flex;justify-content:space-between;margin:0 0 .6em;}

.contact-layout{display:grid;gap:2.5rem;grid-template-columns:1.1fr .9fr;}
@media (max-width:760px){.contact-layout{grid-template-columns:1fr;}}
.contact-info{display:flex;flex-direction:column;gap:1.2rem;}
.contact-info li{display:flex;gap:.6em;align-items:flex-start;}

/* ---------- 404 ---------- */
.error-page{text-align:center;padding:5rem 0;}
.error-page .display{color:var(--ochre);}

/* COMPONENTS: .class - what it is
.wrap - centered max-width container
.site-header / .site-header__inner - sticky top header bar
.logo / .logo__mark - site logo link and inline SVG mark+wordmark
.nav / .nav-cart / .cart-badge - main navigation and cart link with live count badge
.nav-toggle - mobile hamburger button
.btn / .btn--ghost / .btn--ghost-dark / .btn--dark / .btn--small / .btn--block - button variants with fill-sweep hover
.reveal / .in-view / .reveal-stagger - scroll reveal animation hooks
.ticker / .ticker-inner / .ticker-dot - hero product-name ticker
.grain - fixed full-viewport grain/texture overlay
.page-hero - hero band for inner pages
.breadcrumbs - small uppercase breadcrumb trail
.section / .section--tight / .section-head / .section-num - page section wrapper and numbered heading
.display - oversized fluid display headline
.grid / .grid--2 / .grid--3 - responsive grid helpers
.flow - vertical rhythm spacing helper
.gap-sm / .gap-lg / .mt-0 / .muted - small utility helpers
.strip - horizontal scroll-snap product strip
.product-card / .product-card__media / .product-card__body / .product-card__price - catalog/home product card
.compass / .compass-options / .compass-results / .compass-card / .compass-price - Medový kompas signature feature
.divider - decorative SVG divider block
.form-grid / .field / .field--full / .field-error / .hp - form layout, field group, error text, honeypot
.notice / .notice--ok / .notice--error - inline status/alert box
.form-status - live region for form submit feedback
.site-footer / .site-footer__grid / .footer-brand / .footer-links / .footer-newsletter / .footer-mail / .footer-bottom - footer layout
.cookie-banner / .cookie-banner__inner / .cookie-banner__actions - cookie consent banner
.prose - readable long-form legal text column
.legal-toc - table of contents box for legal pages
.faq / .faq-item - details/summary FAQ accordion
.product-detail / .product-detail__media / .product-detail__price - single product page layout
.cart-table / .cart-summary - cart/checkout table and summary box
.contact-layout / .contact-info - contact page layout
.error-page - 404 page layout
*/

/* wg-contrast-autofix */
section.section.wrap div.compass.reveal div.compass-results p.muted { color: #ffffff !important; }
