/* Zemědělka Bio — design system. Linocut print style: ink black + amber, rough carved edges. */

:root {
  --ink: #1c1b19;
  --paper: #f3efe4;
  --smoke: #ddd8cb;
  --smoke-dark: #b9b3a1;
  --amber: #e0962e;
  --amber-dark: #b9741a;
  --white: #fdfbf5;
  --green: #4c5c3f;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", Avenir, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", monospace;
  --radius: 4px;
  --measure: 68ch;
  --shadow-paper: 6px 6px 0 rgba(28,27,25,.12);
}

* { 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(--font-body);
  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(--font-display); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
.icon { display: inline-block; vertical-align: middle; stroke: currentColor; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink);
  padding: .5em 1em; z-index: 200;
}
.skip-link:focus { left: 1em; top: 1em; }

:focus-visible {
  outline: 3px solid var(--amber-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.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)); }
.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}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 1; }
.reveal.in-view { animation: reveal-in .7s cubic-bezier(.22,.9,.3,1) both; }
@keyframes reveal-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(24px); }
  to { opacity: 1; clip-path: inset(0 0 0% 0); transform: translateY(0); }
}
.reveal:nth-child(1){animation-delay:0ms}.reveal:nth-child(2){animation-delay:80ms}
.reveal:nth-child(3){animation-delay:160ms}.reveal:nth-child(4){animation-delay:240ms}
.reveal:nth-child(5){animation-delay:320ms}.reveal:nth-child(6){animation-delay:400ms}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 2px solid var(--ink);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: .8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.logo-word em { color: var(--amber-dark); font-style: normal; }
.main-nav { display: none; gap: 1.6rem; }
.main-nav a { position: relative; font-weight: 600; padding: .3rem 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--amber-dark);
  transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link { position: relative; display: inline-flex; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--amber-dark); color: var(--white);
  font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.burger { background: none; border: none; color: var(--ink); min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }

.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--ink); color: var(--white);
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  display: flex; flex-direction: column; gap: 1.2rem; padding: 5rem 2rem 2rem; z-index: 150;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav a { font-size: 1.1rem; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.burger--close { position: absolute; top: 1.2rem; right: 1.2rem; color: var(--white); }
body.nav-open { overflow: hidden; }

@media (min-width: 880px) {
  .main-nav { display: flex; }
  .burger { display: none; }
  .mobile-nav { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  position: relative; overflow: hidden; isolation: isolate;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .75em 1.5em; font-weight: 700; min-height: 44px;
  background: var(--white); color: var(--ink); transition: color .3s ease, border-color .3s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%; z-index: -1;
  background: var(--ink); transition: left .3s ease;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--white); }
.btn--amber { background: var(--amber); border-color: var(--ink); }
.btn--amber::before { background: var(--ink); }
.btn--amber:hover { color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark::before { background: var(--amber); }
.btn--dark:hover { color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { padding: .5em 1em; min-height: 38px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 2px solid var(--ink); overflow: hidden;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -.02em; margin-bottom: .4em;
}
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 42ch; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.marquee {
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--ink); color: var(--amber); overflow: hidden; white-space: nowrap;
  padding: .7rem 0;
}
.marquee-track {
  display: inline-flex; gap: 2.5rem; animation: marquee 24s linear infinite;
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- oversized number sections ---------- */
.numbered-section { position: relative; border-bottom: 2px solid var(--ink); padding: clamp(2.5rem,6vw,5rem) 0; }
.numbered-section__num {
  font-family: var(--font-display); font-weight: 700; color: var(--smoke-dark);
  font-size: clamp(5rem, 14vw, 11rem); line-height: .8; position: absolute; top: .2rem; right: 1rem; z-index: 0;
  pointer-events: none; -webkit-text-stroke: 5px var(--ink); color: transparent;
}
.numbered-section__inner { position: relative; z-index: 1; }

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-paper); transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 rgba(28,27,25,.16); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--smoke); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 1.2rem; }
.card-badge {
  display: inline-block; background: var(--amber); border: 1px solid var(--ink); font-size: .72rem;
  font-weight: 700; padding: .2em .6em; border-radius: 999px; margin-bottom: .5em;
}

/* ---------- product strip (horizontal scroll on mobile) ---------- */
.product-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
@media (max-width: 640px) {
  .product-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .5rem;
    margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem;
  }
  .product-strip .card { min-width: 72vw; scroll-snap-align: start; }
}
.product-card-price { font-weight: 700; font-size: 1.15rem; margin: .4em 0; }
.product-card-price .unit { font-size: .8rem; color: var(--smoke-dark); font-weight: 400; }

/* ---------- seasonal compass (signature feature) ---------- */
.compass {
  display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 820px) { .compass { grid-template-columns: .9fr 1.1fr; } }
.compass-wheel { position: relative; aspect-ratio: 1/1; max-width: 360px; margin: 0 auto; }
.compass-wheel svg { width: 100%; height: 100%; }
.compass-month {
  cursor: pointer; transition: opacity .2s ease;
}
.compass-month:hover, .compass-month:focus-visible { opacity: .7; }
.compass-month[aria-pressed="true"] { opacity: 1; }
.compass-month text { font-size: 7px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.compass-result { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-paper); }
.compass-result h3 { margin-bottom: .6em; }
.compass-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.compass-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--smoke-dark); padding-bottom: .4rem; }

/* ---------- divider / decorative SVGs ---------- */
.divider { width: 100%; height: 36px; display: block; }
.divider path { fill: none; stroke: var(--ink); stroke-width: 2; }
.pattern-strip { height: 28px; width: 100%; background-repeat: repeat-x; background-size: 56px 28px; }

/* ---------- grain overlay ---------- */
.grain-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1;
  opacity: .05; mix-blend-mode: multiply;
}
.footer-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .06; pointer-events: none; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  border-bottom: 2px solid var(--ink); padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem; background: var(--smoke);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { max-width: 60ch; font-size: 1.1rem; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { display: flex; gap: .5em; flex-wrap: wrap; font-size: .9rem; color: var(--smoke-dark); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--ink); font-weight: 600; }
.breadcrumbs span[aria-current] { color: var(--smoke-dark); }

/* ---------- prose (legal text) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- legal table of contents ---------- */
.legal-toc { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1.1rem; margin-bottom: .5em; }
.legal-toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 640px) { .legal-toc ol { columns: 2; } }
.legal-toc a { font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; }

/* ---------- notice ---------- */
.notice { border: 2px solid var(--ink); border-left: 6px solid var(--amber-dark); background: var(--white); padding: 1rem 1.2rem; border-radius: var(--radius); margin: 1.5rem 0; }
.notice--info { border-left-color: var(--green); }
.notice--error { border-left-color: #a33; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1/-1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  border: 2px solid var(--ink); border-radius: var(--radius); padding: .65em .8em; background: var(--white);
  font: inherit; color: var(--ink); accent-color: var(--amber-dark); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber-dark); outline-offset: 1px; }
.field-error { color: #a33; font-size: .85rem; min-height: 1.2em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.form-msg--ok { color: var(--green); }
.form-msg--error { color: #a33; }

.news-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.news-form input[type="email"] {
  border: 2px solid var(--white); background: transparent; color: var(--white); border-radius: var(--radius);
  padding: .6em .8em; min-height: 44px; flex: 1; min-width: 160px;
}
.news-form input[type="email"]::placeholder { color: var(--smoke); }
.news-form .form-msg { color: var(--amber); flex-basis: 100%; }

/* ---------- product detail ---------- */
.product-detail { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__media { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-paper); }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 2rem; font-weight: 700; margin: .4em 0; }
.product-detail__qty { display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0; }
.product-detail__qty button { width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--white); font-size: 1.2rem; font-weight: 700; border-radius: var(--radius); }
.product-detail__qty input { width: 56px; text-align: center; min-height: 44px; border: 2px solid var(--ink); border-radius: var(--radius); font: inherit; }

/* ---------- cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 2px solid var(--ink); padding: .9rem .6rem; text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--ink); }
.cart-row-main { display: flex; align-items: center; gap: .8rem; }
.cart-remove { background: none; border: none; color: #a33; font-weight: 700; text-decoration: underline; min-height: 44px; }
.cart-summary { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-paper); }
.cart-summary dl { display: flex; justify-content: space-between; margin: .5em 0; }
.cart-summary dt { font-weight: 600; }
.cart-empty { text-align: center; padding: 3rem 1rem; }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info { display: grid; gap: 1.2rem; }
.contact-info__item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info__item .icon { flex: none; color: var(--amber-dark); margin-top: .1em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; max-width: var(--measure); }
.faq-item { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 1rem 1.2rem; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px;
}
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item div { padding: 0 1.2rem 1.1rem; }

/* ---------- badges / seals ---------- */
.seal { width: 72px; height: 72px; color: var(--amber-dark); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page .hero-title { font-size: clamp(4rem, 14vw, 9rem); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 4rem 1.5rem 2rem; position: relative; z-index: 1;
  display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.site-footer .logo-word { color: var(--white); }
.site-footer .logo-word em { color: var(--amber); }
.footer-brand p { color: var(--smoke); max-width: 32ch; }
.footer-mail { display: inline-flex; align-items: center; gap: .5em; color: var(--amber); font-weight: 600; }
.footer-col h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); margin-bottom: .8em; }
.footer-col a { display: block; color: var(--smoke); margin-bottom: .55em; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 1.2rem; font-size: .85rem; color: var(--smoke); }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 640px; margin: 0 auto;
  background: var(--ink); color: var(--white); border: 2px solid var(--amber); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  box-shadow: 8px 8px 0 rgba(0,0,0,.25);
}
.cookie-banner p { margin: 0; color: var(--white); flex: 1 1 240px; }
.cookie-banner a { color: var(--amber); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex: none; }

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.section - vertical page section spacing
.grid / .grid-2 / .grid-3 - responsive grid helpers
.reveal - scroll-reveal element (add .in-view via JS)
.site-header / .header-inner / .main-nav / .mobile-nav / .burger - header & navigation
.logo / .logo-mark / .logo-word - brand logo
.cart-link / .cart-count - header cart icon + badge (bump on add)
.btn / .btn--amber / .btn--dark / .btn--ghost / .btn--block / .btn--sm - button variants with fill-sweep hover
.hero / .hero-grid / .hero-title / .hero-lede / .hero-art / .hero-actions - home hero section
.marquee / .marquee-track - scrolling brand-word strip
.numbered-section / .numbered-section__num / .numbered-section__inner - oversized-number section layout
.card / .card-media / .card-body / .card-badge - generic product/content card
.product-strip - responsive product grid, horizontal scroll-snap on mobile
.product-card-price - price display inside a product card
.compass / .compass-wheel / .compass-month / .compass-result / .compass-list - Sezonní kompas signature feature
.divider / .pattern-strip - decorative SVG section divider / repeating pattern strip
.grain-overlay / .footer-grain - SVG noise texture overlays
.page-hero - inner-page hero banner
.breadcrumbs - breadcrumb trail
.prose - readable long-form legal/text content
.legal-toc - table of contents box for legal pages
.notice / .notice--info / .notice--error - callout box
.form-grid / .field / .field--full / .field-error - form layout system
.hp - visually hidden honeypot input
.form-msg / .form-msg--ok / .form-msg--error - form status message
.news-form - footer newsletter form
.product-detail / .product-detail__media / .product-detail__price / .product-detail__qty - single product page layout
.cart-table / .cart-row-main / .cart-remove / .cart-summary / .cart-empty - cart/checkout page
.contact-layout / .contact-info / .contact-info__item - contact page layout
.faq / .faq-item - FAQ accordion (details/summary)
.seal - decorative certification badge SVG sizing
.error-page - 404 page layout
.site-footer / .footer-inner / .footer-brand / .footer-col / .footer-mail / .footer-bottom - site footer
.cookie-banner / .cookie-actions - cookie consent banner
*/

/* wg-contrast-autofix */
div.card.reveal div.card-body p.product-card-price span.unit { color: #111111 !important; }
#main section.numbered-section span.numbered-section__num { color: var(--ink) !important; }
