/* Dielňa & Káva — site theme. Shared sales layer lives in sales.css (do not edit that one). */
:root {
  --cream: #fbf5ec;
  --paper: #f3e6d4;
  --card: #fffaf3;
  --terra: #b5502f;
  --terra-ink: #933d1f;
  --espresso: #2b1a12;
  --roast: #4a3024;
  --clay: #e9b896;
  --mustard: #e4a83c;
  --muted: #6b5446;
  --line: #dfcdb6;
  --radius: 18px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--espresso); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; font-variation-settings: "SOFT" 100, "WONK" 1; }
h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
em.hand { font-style: italic; color: var(--terra); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: var(--cream); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 28px; } }

/* ---------- Header ---------- */
.site-header { position: relative; background: var(--cream); border-bottom: 2px solid var(--espresso); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--espresso); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1; white-space: nowrap; }
.brand svg { flex: none; }
.brand .amp { color: var(--terra); font-style: italic; font-weight: 500; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.btn.header-cta { display: none; white-space: nowrap; }
@media (min-width: 700px) { .btn.header-cta { display: inline-flex; } }
@media (max-width: 380px) { .brand { font-size: 1.22rem; gap: 8px; } .brand svg { width: 30px; height: 30px; } }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; color: var(--espresso); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 7px 12px; border-radius: 999px; }
.nav-list a:hover { background: var(--paper); }
.nav-list a[aria-current="page"] { background: var(--espresso); color: var(--cream); }

.nav-desktop { display: none; border-top: 1px dashed var(--line); }
.nav-desktop .nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; padding-block: 8px; }
.nav-mobile summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 9px 14px; border: 2px solid var(--espresso); border-radius: 999px; background: var(--card); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .bars { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.nav-mobile summary .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.nav-mobile[open] summary { background: var(--espresso); color: var(--cream); }
.nav-mobile .nav-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 14px 16px 18px; background: var(--card); border-bottom: 2px solid var(--espresso); box-shadow: 0 14px 24px rgb(43 26 18 / 0.15); }
.nav-mobile .nav-list a { padding: 10px 12px; }
@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 2px solid var(--espresso); border-radius: 999px; background: var(--terra); color: #fff; font: 700 1rem/1.2 var(--body); text-decoration: none; box-shadow: 3px 3px 0 var(--espresso); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--espresso); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--espresso); }
.btn-ghost { background: var(--card); color: var(--espresso); }
.btn-small { padding: 8px 16px; font-size: 0.93rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
@media (min-width: 900px) { .section { padding-block: 80px; } }
.section-paper { background: var(--paper); }
.section-dark { background: var(--espresso); color: var(--cream); }
.section-dark a { color: var(--clay); }
.kicker { display: inline-block; font: 700 0.8rem/1.35 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 14px; }
.section-dark .kicker { color: var(--mustard); }
.lede { font-size: 1.2rem; color: var(--roast); max-width: 60ch; }
.section-dark .lede { color: #ead9c6; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Page title band for inner pages */
.page-head { padding-block: 44px 36px; background: var(--paper); border-bottom: 2px solid var(--espresso); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--clay); opacity: 0.55; z-index: 0; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: 0.25em; }
.page-head p { margin: 0; max-width: 60ch; font-size: 1.15rem; color: var(--roast); }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } .hero { padding-block: 64px 88px; } }
.hero h1 em { color: var(--terra); font-style: italic; font-weight: 500; }
.arch { position: relative; margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 22px 22px; border: 3px solid var(--espresso); box-shadow: 10px 10px 0 var(--terra); }
.sticker { position: absolute; left: -6px; bottom: 26px; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 14px; background: var(--mustard); color: var(--espresso); border: 2px solid var(--espresso); font: 700 0.82rem/1.15 var(--display); transform: rotate(-12deg); }
@media (min-width: 860px) { .sticker { left: -40px; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { display: grid; gap: 32px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
.card { position: relative; background: var(--card); border: 2px solid var(--espresso); border-radius: var(--radius); padding: 22px; box-shadow: 6px 6px 0 var(--clay); }
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.card-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-bottom: 2px solid var(--espresso); }
.card-img .card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-img .card-body > :last-child { margin-top: auto; }
.card-img .card-body a { color: var(--terra-ink); }
.meta { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.6em; }
.tag { display: inline-block; font: 700 0.75rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--terra-ink); border: 1px solid var(--line); }

/* Week list */
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.week li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; background: var(--card); border: 2px solid var(--espresso); border-radius: 16px; padding: 14px; }
.day { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--terra); color: #fff; font: 700 1.05rem/1 var(--display); text-align: center; }
.day small { display: block; font: 600 0.68rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }
.week h3 { font-size: 1.15rem; margin-bottom: 0.15em; }
.week p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Carousel sizing tweaks (sales.css owns the behaviour) */
.carousel-wrap { max-width: 900px; margin-inline: auto; }
.carousel-wrap .tf-carousel { border: 3px solid var(--espresso); box-shadow: 8px 8px 0 var(--terra); }
@media (max-width: 600px) {
  .carousel-wrap .tf-carousel { aspect-ratio: 4 / 5; }
  .carousel-wrap .tf-carousel figcaption { font-size: 0.98rem; padding: 40px 16px 40px; }
}
.carousel-wrap .tf-carousel figcaption { font-family: var(--display); }
.carousel-wrap .tf-carousel figcaption small { font-family: var(--body); }

/* ---------- Menu board ---------- */
.board { background: var(--espresso); color: var(--cream); border-radius: 22px; padding: 28px 20px; border: 3px solid var(--roast); box-shadow: inset 0 0 0 6px #3a251b; }
@media (min-width: 700px) { .board { padding: 40px 44px; } }
.board h2 { color: var(--mustard); font-size: 1.7rem; border-bottom: 2px dashed #6d4c3c; padding-bottom: 10px; }
.board + .board { margin-top: 26px; }
.menu-list { margin: 0; }
.menu-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 0; border-bottom: 1px dotted #6d4c3c; }
.menu-row:last-child { border-bottom: 0; }
.menu-row dt { font-weight: 700; font-size: 1.05rem; }
.menu-row dd { margin: 0; }
.menu-row .price { font-family: var(--display); font-weight: 700; color: var(--mustard); white-space: nowrap; }
.menu-row .desc { grid-column: 1 / -1; color: #d9c6b2; font-size: 0.93rem; }
.menu-cols { display: grid; gap: 26px; }
@media (min-width: 900px) { .menu-cols { grid-template-columns: 1fr 1fr; } .menu-cols .board + .board { margin-top: 0; } }

/* ---------- Workshops ---------- */
.classes { display: grid; gap: 22px; }
.class-card { display: grid; gap: 0; }
@media (min-width: 720px) {
  .class-card { grid-template-columns: 260px 1fr; }
  .class-card img { height: 100%; aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--espresso); }
}
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.facts li { font-size: 0.88rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper); }
.ask-box { background: var(--card); border: 2px solid var(--espresso); border-radius: 22px; padding: 24px 20px; box-shadow: 8px 8px 0 var(--terra); }
@media (min-width: 700px) { .ask-box { padding: 32px; } }
.ask-box h2 { font-size: 1.8rem; }
.layout-side { display: grid; gap: 40px; }
@media (min-width: 980px) { .layout-side { grid-template-columns: 1fr 380px; align-items: start; } .layout-side .sticky { position: sticky; top: 20px; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); grid-auto-flow: dense; }
.gallery figure { margin: 0; background: var(--card); border: 2px solid var(--espresso); border-radius: 16px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 760px) { .gallery .wide { grid-column: span 2; grid-row: span 2; } .gallery .wide img { aspect-ratio: auto; height: calc(100% - 44px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; list-style: none; padding: 0; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--espresso); text-decoration: none; color: var(--espresso); font-weight: 600; background: var(--card); }
.chips a:hover { background: var(--paper); }
.gallery-group { margin-bottom: 44px; scroll-margin-top: 20px; }

/* ---------- Team ---------- */
.person { text-align: center; }
.person img { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; border: 3px solid var(--espresso); box-shadow: 5px 5px 0 var(--terra); }
.person .role { font-weight: 700; color: var(--terra-ink); margin-bottom: 0.5em; }

/* ---------- Membership ---------- */
.tiers { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.tier { display: flex; flex-direction: column; padding-top: 58px; }
.tier.featured { background: #fff1e4; box-shadow: 8px 8px 0 var(--terra); }
.tier .amount { font: 700 2.6rem/1 var(--display); margin: 6px 0 4px; }
.tier .amount small { font: 500 1rem var(--body); color: var(--muted); }
.tier ul { padding-left: 1.2em; margin: 14px 0 22px; }
.tier li { margin-bottom: 6px; }
.tier .pay { margin-top: auto; display: grid; gap: 8px; }
.tier .pay .btn { width: 100%; }
.tier .demo-note { font-size: 0.82rem; color: var(--muted); margin: 0; text-align: center; }
.ribbon-label { display: inline-block; align-self: flex-start; margin-bottom: 10px; font: 700 0.75rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.1em; background: var(--espresso); color: var(--cream); padding: 6px 10px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; }
.faq details { position: relative; background: var(--card); border: 2px solid var(--espresso); border-radius: 16px; padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font: 700 1.12rem/1.3 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--terra); color: #fff; display: grid; place-items: center; font: 700 1.2rem/1 var(--body); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .care-wrap { padding-top: 24px; }

/* ---------- Blog ---------- */
.blog-hero { position: relative; }
.post-list { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.post-head { padding-block: 44px 28px; }
.post-head .meta { margin-top: 12px; }
.post-hero { margin: 0 0 32px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; border: 3px solid var(--espresso); }
.post-hero figcaption, .figure-note { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.prose { max-width: 70ch; margin-inline: auto; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose pre { background: var(--espresso); color: #f3e3cf; padding: 18px; border-radius: 14px; overflow-x: auto; font-size: 0.86rem; line-height: 1.5; margin: 0 0 1.2em; max-width: 100%; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.prose p code { background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--terra); font-family: var(--display); font-size: 1.2rem; color: var(--roast); }
.back { display: inline-block; margin-bottom: 14px; font-weight: 600; }
.demo-box { position: relative; background: var(--paper); border: 2px dashed var(--roast); border-radius: 18px; padding: 56px 20px 22px; margin: 1.5em 0; }
.sell { margin: 48px auto 0; max-width: 70ch; background: var(--espresso); color: var(--cream); border-radius: 22px; padding: 28px 22px; border: 3px solid var(--espresso); box-shadow: 8px 8px 0 var(--mustard); }
@media (min-width: 700px) { .sell { padding: 32px 36px; } }
.sell h2 { color: var(--mustard); font-size: 1.6rem; margin-top: 0; }
.sell p { color: #ead9c6; }
.sell .price-big { font: 700 2rem/1.1 var(--display); color: #fff; margin: 4px 0 10px; }
.sell a.btn { color: #fff; }
.sell .small { font-size: 0.85rem; color: #cbb7a3; margin: 12px 0 0; }

/* ---------- Contact ---------- */
.map { position: relative; border: 2px solid var(--espresso); border-radius: 20px; overflow: hidden; background: #efe2cf; min-height: 300px; }
.map svg { width: 100%; height: 100%; display: block; }
.map .map-note { position: absolute; left: 14px; bottom: 14px; right: 14px; background: var(--card); border: 2px solid var(--espresso); border-radius: 12px; padding: 10px 14px; font-size: 0.92rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.contact-list strong { display: inline-block; min-width: 72px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px dotted var(--line); font-weight: 400; }
.hours th { font-weight: 600; padding-right: 12px; }

/* Quote band */
.quote-band { font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.25; max-width: 30ch; margin: 0 auto; text-align: center; }
.quote-band cite { display: block; margin-top: 14px; font: 600 1rem var(--body); font-style: normal; color: var(--mustard); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #ead9c6; padding-block: 52px 28px; margin-top: 0; border-top: 6px solid var(--terra); }
.site-footer a { color: #f3d3bb; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h2 { font-size: 1.15rem; color: var(--mustard); margin-bottom: 0.7em; }
.site-footer .brand { color: var(--cream); margin-bottom: 12px; }
.site-footer .brand .amp { color: var(--clay); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-nav { grid-template-columns: 1fr 1fr; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid #4d3428; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.footer-base p { margin: 0; }
.peak { display: inline-flex; vertical-align: middle; color: var(--clay); padding: 4px; }
.credits { margin-top: 16px; font-size: 0.8rem; color: #bfa995; line-height: 1.6; }
.credits a { color: #e3c3aa; }

/* Framed photos in two-column sections */
.grid-2 > img, .grid-2 > figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; border: 3px solid var(--espresso); box-shadow: 8px 8px 0 var(--clay); }

/* Blog posts: room at the end of the article (sales.js appends a reader note there) */
main > article { padding-bottom: 48px; }
main > article > .tf-reader-egg { padding-inline: 16px; max-width: 70ch; margin-inline: auto; }
