/* ==========================================================================
   Pekárna a cukrárna Stáňa
   Papír, inkoust, jeden akcent. Oblouk podle ústí pece.
   ========================================================================== */

/* --- 1. Písma ------------------------------------------------------------ */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 2. Proměnné --------------------------------------------------------- */
:root {
  /* papír a inkoust */
  --paper:        #faf6ef;
  --paper-warm:   #f2ebdd;
  --paper-raised: #fffcf6;
  --ink:          #221a15;
  --ink-soft:     #6b5b4d;
  --rule:         #e2d9c8;
  --rule-strong:  #c6b8a3;

  /* akcenty */
  --jam:       #8c2f3e;
  --jam-deep:  #6d2230;
  --jam-wash:  #f4e6e6;
  --gold:      #b8842a;
  --gold-lit:  #e8b45a;
  --gold-wash: #f6ead2;
  --leaf:      #4c6b4f;
  --leaf-wash: #e5ecdf;

  /* tmavé plochy */
  --dark:         #1d1611;
  --on-dark:      #f7f0e5;
  --on-dark-soft: #c9b9a6;
  --rule-dark:    rgba(247, 240, 229, .18);

  --focus: #8c2f3e;
  --error: #a02231;

  /* typografie */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Instrument Sans", "Segoe UI", system-ui, Arial, sans-serif;

  /* rozvržení */
  --gutter: clamp(20px, 4.4vw, 56px);
  --maxw: 1180px;
  --arch: 50% 50% 0 0 / 38% 38% 0 0;
  --sp-section: clamp(68px, 8.4vw, 130px);
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* ikony */
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --icon-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.05'/%3E%3C/svg%3E");
}

/* --- 3. Základ ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* `height: auto` je nutné: atributy width/height v HTML jinak přebijí aspect-ratio. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--gold-wash); color: var(--ink); }
:target { scroll-margin-top: 110px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.band-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-lit); }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px; top: 16px;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 40px));
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* --- 4. Rozvržení -------------------------------------------------------- */
.wrap { width: min(var(--maxw), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--sp-section); }
.section-tight { padding-block: clamp(48px, 5.8vw, 88px); }
.page-head + .section, .page-head + .section-tight { padding-top: clamp(34px, 4vw, 60px); }

.band-warm {
  background-color: var(--paper-warm);
  background-image: var(--grain);
}
.band-dark {
  background: var(--dark);
  color: var(--on-dark);
  --rule: var(--rule-dark);
  --ink-soft: var(--on-dark-soft);
  --jam: var(--gold-lit);
}

/* --- 5. Typografie ------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.display-1 {
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  line-height: .98;
  font-variation-settings: "opsz" 120, "SOFT" 40, "WONK" 1;
}
.display-2 {
  font-size: clamp(2.05rem, 3.8vw, 3.3rem);
  line-height: 1.05;
  font-variation-settings: "opsz" 72, "SOFT" 36, "WONK" 1;
}
.display-3 {
  font-size: clamp(1.42rem, 1.9vw, 1.8rem);
  line-height: 1.16;
  letter-spacing: -.022em;
  font-variation-settings: "opsz" 30, "SOFT" 28, "WONK" 0;
}
.display-4 {
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: -.018em;
  font-variation-settings: "opsz" 20, "SOFT" 26, "WONK" 0;
}
.display-1 em, .display-2 em, .display-3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--jam);
}

.lede {
  max-width: 46ch;
  font-size: clamp(1.06rem, 1.1vw, 1.2rem);
  line-height: 1.56;
  color: var(--ink-soft);
}

.label {
  display: block;
  margin: 0 0 14px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--jam);
}
.label-quiet { color: var(--ink-soft); font-weight: 500; }

.num { font-variant-numeric: tabular-nums; }

.note {
  margin: clamp(24px, 3vw, 38px) 0 0;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.note a { color: var(--jam); font-weight: 600; white-space: nowrap; }

/* hlavička sekce */
.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.head > div { max-width: 620px; }
.head .alink { margin-bottom: -6px; }

/* --- 6. Odkazy a tlačítka ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--jam-deep); }
.btn-jam { background: var(--jam); color: #fff; }
.btn-jam:hover { background: var(--jam-deep); }
.btn-ghost { border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-raised); }
.band-dark .btn-primary { background: var(--paper); color: var(--ink); }
.band-dark .btn-primary:hover { background: #fff; }
.band-dark .btn-ghost { border-color: rgba(247, 240, 229, .38); color: var(--on-dark); }
.band-dark .btn-ghost:hover { border-color: var(--on-dark); background: rgba(247, 240, 229, .08); }

.alink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  color: var(--jam);
}
.alink > span { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.alink::after {
  content: "";
  width: .95em; height: .95em;
  flex: none;
  background: currentColor;
  transition: transform .18s var(--ease);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
}
.alink:hover::after { transform: translateX(4px); }
.alink-out::after { -webkit-mask-image: var(--icon-out); mask-image: var(--icon-out); }
.alink-out:hover::after { transform: translate(3px, -3px); }
.alink-ink { color: var(--ink); }

/* --- 7. Hlavička --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 239, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.header-inner {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  min-height: 82px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(18px, 3vw, 44px);
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; }
.brand b {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 30, "SOFT" 30, "WONK" 0;
}
.brand small { display: block; margin-top: 3px; font-size: .875rem; color: var(--ink-soft); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px clamp(16px, 2.1vw, 30px); }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .96rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 9px;
  height: 1px;
  background: var(--jam);
  transition: right .24s var(--ease);
}
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--jam); }
.site-nav a[aria-current="page"]::after { right: 0; }

.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.header-tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .96rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-tel:hover { color: var(--jam); }
.header-cta { min-height: 46px; padding: 11px 20px; font-size: .94rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  min-width: 46px;
  padding: 8px 2px 8px 12px;
  border: 0;
  background: none;
  font-size: .96rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle i, .menu-toggle i::before, .menu-toggle i::after {
  display: block; width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.menu-toggle i { position: relative; }
.menu-toggle i::before, .menu-toggle i::after { content: ""; position: absolute; left: 0; }
.menu-toggle i::before { top: -6px; }
.menu-toggle i::after { top: 6px; }
.menu-toggle[aria-expanded="true"] i { background: transparent; }
.menu-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }

/* --- 8. Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 5.2vw, 76px) clamp(52px, 6vw, 90px); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}
.hero-copy .label { margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 26px; max-width: 12ch; }
.hero-copy .lede { max-width: 44ch; }
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
}
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  height: clamp(400px, 46vw, 620px);
  object-fit: cover;
  border-radius: var(--arch);
}
.hero-figure figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* --- 9. Pás „dnes" ------------------------------------------------------- */
.today-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.today-cell {
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.6vw, 40px);
  border-left: 1px solid var(--rule-dark);
}
.today-cell:first-child { padding-left: 0; border-left: 0; }
.today-cell:last-child { padding-right: 0; }
.today-cell h2 { margin: 6px 0 8px; }
.today-cell > p { margin: 0 0 6px; color: var(--on-dark-soft); font-size: .9375rem; }
.today-cell .today-hours {
  margin: 0 0 10px;
  color: var(--on-dark);
  font-size: 1.06rem;
  font-weight: 500;
}
.today-hours strong { font-weight: 600; color: var(--on-dark-soft); margin-right: 6px; }
.store-status {
  display: inline-flex;
  align-items: center;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gold-lit);
}
.store-status.is-open, .store-status.is-closed { color: var(--on-dark-soft); }
.store-status.is-open::before, .store-status.is-closed::before {
  content: "";
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
}
.store-status.is-open::before { background: #85c895; }
.store-status.is-closed::before { background: #dd8f84; }

/* --- 10. Dlaždice sortimentu --------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}
.tile { text-decoration: none; display: block; }
.tile-img {
  display: block;
  overflow: hidden;
  background: #fff;
}
.tile-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 7%;
  transition: transform .5s var(--ease);
}
.tile:hover .tile-img img { transform: scale(1.045); }
.tile-body {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.tile-name { display: flex; align-items: center; gap: 12px; }
.tile-name::after {
  content: "";
  width: .58em; height: .58em;
  flex: none;
  background: currentColor;
  transition: transform .2s var(--ease);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
}
.tile:hover .tile-name { color: var(--jam); }
.tile:hover .tile-name::after { transform: translateX(5px); }
.tile-note { display: block; margin-top: 7px; font-size: .9375rem; color: var(--ink-soft); }

/* --- 11. Dorty ----------------------------------------------------------- */
.cake {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(36px, 5.4vw, 84px);
}
.cake-figure { margin: 0; }
.cake-figure img {
  width: 100%;
  height: clamp(380px, 42vw, 600px);
  object-fit: cover;
  border-radius: var(--arch);
}
.cake-copy h2 { margin-bottom: 20px; }
.cake-copy .lede { margin-bottom: 0; }

.steps { list-style: none; margin: clamp(28px, 3vw, 40px) 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.steps b {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--jam);
  font-variation-settings: "opsz" 20, "SOFT" 30, "WONK" 0;
}
.steps strong { display: block; font-weight: 600; }
.steps span { display: block; margin-top: 2px; font-size: .9375rem; color: var(--ink-soft); }

.pricelist { margin: 0 0 clamp(28px, 3vw, 36px); }
.pricelist > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.pricelist > div:last-child { border-bottom: 1px solid var(--rule); }
.pricelist dt { color: var(--ink-soft); font-size: .9375rem; }
.pricelist dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* --- 12. Prodejny -------------------------------------------------------- */
.shops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}
.shop { min-width: 0; }
.shop picture > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.shop picture > img.is-low { object-position: center bottom; }
.shop-body {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.shop-body :is(h2, h3) { margin: 8px 0 6px; }
.shop .store-status { color: var(--leaf); }
.shop .store-status.is-open, .shop .store-status.is-closed { color: var(--ink-soft); }
.shop .store-status.is-open::before { background: var(--leaf); }
.shop .store-status.is-closed::before { background: #b4614f; }
.shop-addr { margin: 0; color: var(--ink-soft); font-size: .9375rem; font-style: normal; }
.shop .today-hours { margin: 12px 0 0; font-size: 1.06rem; font-weight: 500; }
.shop .today-hours strong { margin-right: 6px; color: var(--ink-soft); font-weight: 600; }
.shop-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 10px; }

/* --- 13. Příběh ---------------------------------------------------------- */
.story { position: relative; overflow: hidden; }
.story-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(36px, 5.4vw, 88px);
}
.story-figure { margin: 0; }
.story-figure img {
  width: 100%;
  height: clamp(340px, 34vw, 470px);
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--arch);
}
.story-figure figcaption {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-dark);
  font-size: .9375rem;
}
.story-figure b { display: block; font-weight: 600; }
.story-figure span { color: var(--on-dark-soft); }
.story-copy h2 { margin-bottom: 22px; }
.story-copy p { color: var(--on-dark-soft); max-width: 58ch; }
.story-copy .alink { margin-top: 10px; }
.story-stamp {
  position: absolute;
  right: clamp(26px, 3vw, 72px);
  bottom: -86px;
  width: 340px;
  height: 340px;
  opacity: .07;
  filter: invert(1);
  transform: rotate(-9deg);
  pointer-events: none;
}

/* --- 14. Novinky --------------------------------------------------------- */
.news { list-style: none; margin: 0; padding: 0; }
.news li { border-top: 1px solid var(--rule); }
.news li:last-child { border-bottom: 1px solid var(--rule); }
.news a {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 28px;
  padding: 22px 0;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.news a:hover { color: var(--jam); }
.news time { font-size: .9375rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.news a:hover time { color: var(--jam); }
.news-title {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  font-variation-settings: "opsz" 24, "SOFT" 28, "WONK" 0;
}
.news-note { grid-column: 2; font-size: .9375rem; color: var(--ink-soft); }
.news a:hover .news-note { color: var(--ink-soft); }
.news-go {
  grid-row: 1 / span 2;
  grid-column: 3;
  align-self: center;
  width: 1.1em; height: 1.1em;
  background: currentColor;
  opacity: .45;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
  -webkit-mask: var(--icon-out) center / contain no-repeat;
  mask: var(--icon-out) center / contain no-repeat;
}
.news a:hover .news-go { opacity: 1; transform: translate(3px, -3px); }
.news-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 28px;
  padding: 22px 0;
}
.news-row .news-title { grid-column: 2; }
.news-row .news-note { grid-column: 2; }

/* --- 15. Závěrečná výzva ------------------------------------------------- */
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px 50px;
}
.cta-inner h2 { max-width: 18ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }

/* --- 16. Hlavičky podstránek --------------------------------------------- */
.page-head {
  padding-block: clamp(40px, 5vw, 76px) clamp(30px, 3.4vw, 48px);
}
.page-head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(24px, 4vw, 70px);
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.page-head h1 { max-width: 13ch; }
.page-head .lede { max-width: 42ch; }
.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 20px;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.page-facts span { display: inline-flex; align-items: center; gap: 9px; }
.page-facts span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- 17. Produkty -------------------------------------------------------- */
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 22px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  font-size: .96rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.search { display: grid; gap: 7px; }
.search label { font-size: .9375rem; font-weight: 600; }
.search input {
  width: min(320px, 100%);
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-raised);
}
.search input:hover { border-color: var(--ink); }

.results {
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.results strong { color: var(--ink); font-weight: 600; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px) clamp(16px, 2vw, 28px);
}
.product-card { min-width: 0; }
.product-card[hidden] { display: none; }
.product-card > span:first-child {
  display: block;
  overflow: hidden;
  background: #fff;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8%;
  transition: transform .45s var(--ease);
}
.product-card img.is-photo { object-fit: cover; padding: 0; }
.product-card:hover img { transform: scale(1.04); }
.product-card h3 { margin: 0; }
.product-card p { margin: 5px 0 0; font-size: .9375rem; color: var(--ink-soft); }
.product-cat {
  display: block;
  margin: 14px 0 5px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--leaf);
}
.no-products {
  grid-column: 1 / -1;
  padding: clamp(36px, 5vw, 60px) 24px;
  border: 1px solid var(--rule);
  text-align: center;
}
.no-products strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.no-products p { margin: 8px 0 0; color: var(--ink-soft); }

/* --- 18. Objednávka a formuláře ------------------------------------------ */
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(34px, 4.6vw, 76px);
}
.order-aside { position: sticky; top: 108px; }
.order-aside h2 { margin-bottom: 18px; }
.order-aside > p { color: var(--ink-soft); font-size: .9375rem; }
.order-aside .pricelist { margin-block: 28px; }
.order-aside a { color: var(--jam); font-weight: 600; }

.summary {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--paper-warm);
}
.summary > strong { display: block; margin-bottom: 12px; font-size: .9375rem; }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 14px;
  font-size: .9375rem;
}
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; }
.summary-note { margin-top: 14px; font-size: .8125rem; color: var(--ink-soft); }

.form-panel {
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}
.form-panel > h2 { margin-bottom: clamp(22px, 2.6vw, 32px); }

.order-form, .question-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; }
.field label span { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 124px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-error { font-size: .875rem; color: var(--error); font-weight: 500; }
.form-help { font-size: .875rem; color: var(--ink-soft); }
.form-privacy { margin: 0; font-size: .875rem; color: var(--ink-soft); }
.form-privacy a { color: var(--jam); font-weight: 600; }

.field input[type="file"] {
  min-height: 52px;
  padding: 11px 15px;
  cursor: pointer;
}

/* Honeypot: hidden from sighted users and screen readers, but present for bots that fill every field. */
.field-trap {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field-consent { gap: 4px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
  font-weight: 400;
  cursor: pointer;
}
.consent-label input {
  flex: none;
  width: 20px; height: 20px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--jam);
}
.consent-label a { color: var(--jam); font-weight: 600; }

.form-status { grid-column: 1 / -1; }
.form-status:empty { display: none; }
.form-status:not(:empty) {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-wash);
  font-size: .9375rem;
}
.form-status.is-error { border-left-color: var(--error); background: var(--jam-wash); }
.form-status.is-success { border-left-color: var(--leaf); background: var(--leaf-wash); }
.form-status strong { display: block; margin-bottom: 3px; }
.retry-button {
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  cursor: pointer;
}
.retry-button:hover { background: var(--jam-deep); }

.submit-button { grid-column: 1 / -1; justify-self: start; }
.submit-button[disabled] { opacity: .6; cursor: wait; }
.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.prototype-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: .875rem;
  color: var(--ink-soft);
}

/* --- 18b. Příběh (článek) ------------------------------------------------- */
.story-article {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(30px, 4.4vw, 70px);
}
.story-article .story-figure { position: sticky; top: 108px; margin: 0; }
.story-article .story-figure img { width: 100%; height: auto; aspect-ratio: 540 / 523; object-fit: cover; border-radius: var(--arch); }
.story-article .story-figure figcaption {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
}
.story-article .story-figure b { display: block; font-weight: 600; }
.story-article .story-figure span { color: var(--ink-soft); }

.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.3em; color: var(--ink-soft); }
.prose p:first-of-type { font-size: 1.06rem; color: var(--ink); }
.story-sign { margin-top: 1.6em; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--jam); }
.prose h3 { margin: 2em 0 .7em; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }
.prose a { color: var(--jam); font-weight: 600; }
.prose-note {
  padding: 16px 18px;
  margin-bottom: 2em;
  border-left: 3px solid var(--gold);
  background: var(--gold-wash);
  font-size: .9375rem;
}

@media (max-width: 53.75em) {
  .story-article { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .story-article .story-figure { position: static; }
}

/* --- 19. Kontakt --------------------------------------------------------- */
.shops-detail .shop-body { border-top: 0; padding-top: 0; margin-top: 22px; }
.hours { margin: 20px 0 24px; }
.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
}
.hours > div:last-child { border-bottom: 1px solid var(--rule); }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.office-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, .9fr);
  gap: clamp(26px, 4vw, 60px);
}
.office-inner h2 { margin-top: 6px; }
.office-inner p { color: var(--on-dark-soft); }
.office-contacts { display: grid; gap: 2px; align-content: start; }
.office-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  width: fit-content;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(30px, 4.4vw, 70px);
}
.contact-layout > div h2 { margin-bottom: 16px; }
.contact-layout > div p { color: var(--ink-soft); }
.contact-layout > div a { color: var(--jam); font-weight: 600; }

.company {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
  margin-bottom: clamp(48px, 5.8vw, 88px);
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  font-size: .875rem;
  color: var(--ink-soft);
}
.company strong { color: var(--ink); font-weight: 600; }

/* --- 20. Patička --------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(52px, 6vw, 84px) 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 54px);
  border-bottom: 1px solid var(--rule-dark);
}
.footer-brand { display: flex; align-items: flex-start; gap: 18px; }
.footer-brand img { width: 66px; height: 66px; flex: none; filter: invert(1); opacity: .92; }
.footer-brand b {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 0;
}
.footer-brand span { display: block; margin-top: 8px; font-size: .9375rem; color: var(--on-dark-soft); }
.footer-col { display: grid; align-content: start; }
.footer-col h2 {
  margin-bottom: 8px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gold-lit);
}
.footer-col a, .footer-col button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--on-dark-soft);
  font-size: .9375rem;
  text-decoration: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: var(--on-dark); text-decoration: underline; }
.footer-col > span { margin-top: 8px; font-size: .875rem; color: var(--on-dark-soft); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 30px;
  padding-top: 24px;
  font-size: .875rem;
  color: var(--on-dark-soft);
}

/* --- 21. Cookies --------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  z-index: 90;
  left: var(--gutter);
  bottom: 20px;
  width: min(420px, calc(100vw - var(--gutter) * 2));
  padding: 22px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  box-shadow: 0 18px 50px rgba(29, 22, 17, .16);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; font-family: var(--serif); font-size: 1.16rem; font-weight: 600; }
.cookie-banner p { margin: 6px 0 16px; font-size: .9375rem; color: var(--ink-soft); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-actions button:hover { border-color: var(--ink); }
.cookie-actions .cookie-accept { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cookie-actions .cookie-accept:hover { background: var(--jam-deep); border-color: var(--jam-deep); }

/* --- 22. Responzivita ---------------------------------------------------- */
@media (max-width: 67.5em) {
  .site-nav { display: none; }
  .site-nav.is-open {
    position: absolute;
    z-index: 40;
    top: calc(100% + 1px);
    left: var(--gutter);
    right: var(--gutter);
    display: grid;
    gap: 2px;
    padding: 14px 18px;
    border: 1px solid var(--rule);
    background: var(--paper-raised);
    box-shadow: 0 18px 44px rgba(29, 22, 17, .12);
  }
  .site-nav.is-open a { min-height: 48px; }
  .site-nav.is-open a::after { bottom: 12px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
  .cake, .story-inner, .order-layout, .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .story-inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .office-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 53.75em) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-copy h1 { max-width: 14ch; }
  .hero-figure img { height: clamp(360px, 62vw, 480px); }
  .today-inner { grid-template-columns: minmax(0, 1fr); }
  .today-cell {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--rule-dark);
  }
  .today-cell:first-child { border-top: 0; padding-top: 0; }
  .today-cell:last-child { padding-bottom: 0; }
  .cake, .story-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .cake-figure { order: -1; }
  .cake-figure img, .story-figure img { height: clamp(320px, 52vw, 420px); }
  .story-stamp { width: 210px; height: 210px; bottom: -64px; }
  .shops { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .news a { grid-template-columns: minmax(0, 1fr) auto; }
  .news time { grid-column: 1; }
  .news-title { grid-column: 1; }
  .news-note { grid-column: 1; }
  .news-go { grid-row: 1 / span 3; grid-column: 2; }
  .news-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .news-row .news-title, .news-row .news-note { grid-column: 1; }
  .page-head-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .page-head h1 { max-width: 16ch; }
  .order-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .order-aside { position: static; }
  .office-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 38.75em) {
  body { font-size: 1rem; }
  .header-inner { min-height: 70px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 1.26rem; }
  .brand small { display: none; }
  .header-tel { font-size: .9375rem; }
  .menu-toggle span { display: none; }
  .menu-toggle { padding-inline: 12px; justify-content: center; }

  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .alink { justify-content: center; }

  /* sortiment jako kompaktní seznam */
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tile {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--rule);
  }
  .tile:first-child { border-top: 0; padding-top: 0; }
  .tile:last-child { border-bottom: 1px solid var(--rule); }
  .tile-body { margin: 0; padding: 0; border-top: 0; }

  .steps li { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 2px 12px; }
  .shop picture > img { aspect-ratio: 4 / 3; }
  .cta-inner { display: grid; gap: 26px; }
  .cta-actions { display: grid; }
  .cta-actions .btn { width: 100%; }

  .tools { display: grid; }
  .search input { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-form, .question-form { grid-template-columns: minmax(0, 1fr); }
  .field-wide { grid-column: 1; }
  .submit-button { justify-self: stretch; }
  .form-panel { padding: 22px 18px; margin-inline: calc(var(--gutter) * -.5); }
  .shop-actions .btn { flex: 1 1 auto; }

  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .footer-brand { flex-direction: column; gap: 14px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cookie-actions button { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 26.25em) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-bottom { display: grid; }
}

@media (max-width: 23.75em) {
  .tile { grid-template-columns: 84px minmax(0, 1fr); }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 16px; align-content: center; }
  .product-card > span:first-child { grid-row: 1 / span 3; align-self: center; }
  .product-cat { margin-top: 0; }
  .summary dl > div { grid-template-columns: 6rem minmax(0, 1fr); }
}

/* --- 23. Preference -------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .cookie-banner, .skip-link { display: none; }
  body { background: #fff; }
}
