/* Ouško – kavárna & bistro (ukázka ProWeb Procházka)
   Tokeny z identity (identita/tokens.css), písma lokálně. Engine scrollcraft.css se nemění. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/YoungSerif-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --smalt: #1F3B8C;
  --smalt-tmavy: #172E70;
  --mleko: #F7F3EC;
  --pena: #EBDDC6;
  --espresso: #2B1F19;
  --merunka: #EE8B4A;

  --sc-canvas: var(--mleko);
  --sc-surface: var(--pena);
  --sc-ink: var(--espresso);
  --sc-ink-soft: #6A5749;
  --sc-accent: var(--smalt);
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --sc-font-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --sc-shadow-color: 22 27% 13%;

  --nadpis: var(--sc-font-display);
  --text: var(--sc-font-text);
  --h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --r-foto: 18px;
  --head: 92px;
  --stin: 0 1px 2px rgba(43, 31, 25, .10), 0 10px 24px -8px rgba(43, 31, 25, .28), 0 28px 56px -24px rgba(43, 31, 25, .30);
}
@media (max-width: 820px) { :root { --head: 82px; } }

html { scroll-padding-top: var(--head); }
body { font-size: 1.0625rem; line-height: 1.6; letter-spacing: 0; background: var(--mleko); color: var(--espresso); }
img { height: auto; }
a { color: var(--smalt); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--smalt); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  font-family: var(--text); font-weight: 600; font-size: 1rem; line-height: 1; letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}
.btn--primary { background: var(--smalt); color: #fff; }
.btn--ghost { color: var(--smalt); box-shadow: inset 0 0 0 2px var(--smalt); background: transparent; }
.btn--small { min-height: 42px; padding: 0 1.15rem; font-size: .95rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--smalt-tmavy); }
  .btn--ghost:hover { background: rgba(31, 59, 140, .07); }
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(1px) scale(.98); }

/* ------------------------------------------------------------------ lišta */
.head { position: fixed; inset: 0 0 auto 0; z-index: 60; background: var(--mleko); }
.head__strip {
  height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 16px;
  font-size: .78rem; line-height: 1.2; color: var(--sc-ink-soft); text-align: center;
  border-bottom: 1px solid rgba(43, 31, 25, .08);
}
.head__bar {
  height: 64px; display: flex; align-items: center; gap: 2rem;
  max-width: var(--sc-maxw); margin: 0 auto; padding: 0 var(--sc-gutter);
}
.head.is-scrolled { box-shadow: 0 1px 0 rgba(43, 31, 25, .10), 0 8px 24px -18px rgba(43, 31, 25, .4); }
.head__logo { display: block; flex: none; }
.head__logo img { height: 40px; width: auto; }
.head__nav { position: relative; margin-left: auto; }
.head__links { display: flex; gap: 1.6rem; }
.head__links a {
  display: block; padding: .55rem 0; color: var(--espresso); text-decoration: none;
  font-weight: 500; font-size: .98rem; white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .head__links a:hover { color: var(--smalt); } }
.head__links a.is-active { color: var(--smalt); }
.head__mark {
  position: absolute; left: 0; bottom: 2px; width: 100px; height: 12px; pointer-events: none;
  opacity: 0; transform: translateX(0); transition: transform 380ms cubic-bezier(.23, 1, .32, 1), opacity 240ms ease-out;
}
.head__mark.is-on { opacity: 1; }
.head__line {
  position: absolute; left: 0; top: 5px; width: 100px; height: 2px; border-radius: 2px; background: var(--smalt);
  transform-origin: 0 50%; transition: transform 380ms cubic-bezier(.23, 1, .32, 1);
}
/* ouško: malé „D“ na pravém konci linky, jako ucho hrnku */
.head__ear {
  position: absolute; left: 0; top: 0; width: 8px; height: 12px;
  border: 2px solid var(--smalt); border-left: 0; border-radius: 0 8px 8px 0;
  transition: transform 380ms cubic-bezier(.23, 1, .32, 1);
}
.head__call { flex: none; }
.head__where { display: none; }

@media (max-width: 1080px) { .head__links { gap: 1.1rem; } .head__links a { font-size: .93rem; } .head__bar { gap: 1.25rem; } }
@media (max-width: 960px) {
  .head__nav { display: none; }
  .head__bar { gap: .5rem; }
  .head__where {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; margin-left: auto; flex: none;
    color: var(--smalt); font-weight: 600; font-size: .95rem; white-space: nowrap;
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: rgba(31, 59, 140, .32);
  }
}
@media (max-width: 820px) {
  .head__strip { height: 26px; font-size: .72rem; }
  .head__bar { height: 56px; }
  .head__logo img { height: 34px; }
}
@media (max-width: 700px) { .head__strip-more { display: none; } }
@media (max-width: 374px) { .head__logo img { height: 30px; } .head__call { padding: 0 .95rem; } .head__where { padding: 0 .35rem; } }

/* -------------------------------------------------------------- typografie */
.title {
  font-family: var(--nadpis); font-weight: 400; font-size: var(--h2); line-height: 1.1;
  letter-spacing: -0.01em; color: var(--smalt); margin: 0; text-wrap: balance;
}
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--espresso); max-width: 34rem; text-wrap: pretty; }

/* --------------------------------------------------------------- řádky lístku */
.menu { margin-top: 2rem; max-width: 34rem; }
.menu__item { padding: .95rem 0 1rem; border-top: 2px solid var(--pena); }
.menu__item:last-child { border-bottom: 2px solid var(--pena); }
.menu__row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.menu__name { font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--espresso); }
.menu__desc { color: var(--sc-ink-soft); margin-top: .2rem; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 .65rem; border-radius: 999px;
  background: var(--merunka); color: var(--espresso);
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ fotky */
.photo { position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-foto); }
.photo--tall { aspect-ratio: 4 / 5; }

/* ------------------------------------------------------------------- hero */
/* hero není na celou výšku okna: výška = vějíř + text, pod ním už začíná lístek (žádná prázdná plocha nad nadpisem) */
.hero { padding-top: calc(var(--head) + clamp(.25rem, 1.5vh, 1rem)); display: flex; align-items: center; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2rem;
  padding-block: clamp(1rem, 3vh, 2.5rem);
}
.hero__title {
  font-family: var(--nadpis); font-weight: 400; font-size: var(--h1); line-height: 1.05;
  letter-spacing: -0.015em; color: var(--smalt); margin: 0; text-wrap: balance; max-width: 9.5em;
}
.hero__lede { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.5; max-width: 25rem; text-wrap: pretty; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* velikost karet podle šířky sloupce vějíře (cqw), ať rozevřený vějíř nezasáhne do nadpisu na žádné šířce */
.fan { position: relative; height: clamp(440px, 44vw, 640px); container-type: inline-size; }
.fan__card {
  position: absolute; left: 50%; top: 50%;
  width: clamp(200px, 54cqw, 420px); aspect-ratio: 4 / 5;
  margin-left: calc(clamp(200px, 54cqw, 420px) / -2); margin-top: calc(clamp(200px, 54cqw, 420px) * -0.625);
  border-radius: var(--r-foto); box-shadow: var(--stin);
  transition: transform 1100ms cubic-bezier(.23, 1, .32, 1) 160ms;
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-foto); }
.fan__card--c { transform: rotate(-1.5deg); z-index: 3; }
.fan__card--l { width: clamp(176px, 44cqw, 350px); margin-left: calc(clamp(176px, 44cqw, 350px) / -2); margin-top: calc(clamp(176px, 44cqw, 350px) * -0.625);
  transform: translate(-14%, 3%) rotate(-3deg); z-index: 1; }
.fan__card--r { width: clamp(176px, 44cqw, 350px); margin-left: calc(clamp(176px, 44cqw, 350px) / -2); margin-top: calc(clamp(176px, 44cqw, 350px) * -0.625);
  transform: translate(14%, 3%) rotate(3deg); z-index: 2; }
.fan.is-open .fan__card--l { transform: translate(-63%, 7%) rotate(-7deg); }
.fan.is-open .fan__card--r { transform: translate(63%, 5%) rotate(6deg); }

/* ------------------------------------------------------------ sekce lístku */
.page { padding-block: clamp(3.5rem, 7.5vw, 6rem); }
.page--kava { padding-bottom: clamp(.5rem, 1.5vw, 1.25rem); }
.page__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 1.5rem; align-items: center; }

.kava__media { grid-column: 1 / span 6; position: relative; padding-bottom: 3rem; }
.kava__media .photo--tall { width: 86%; }
.photo--inset {
  position: absolute; right: 0; bottom: 0; width: 46%;
}
.photo--inset img { aspect-ratio: 3 / 2; box-shadow: var(--stin); border: 6px solid var(--mleko); border-radius: 22px; }
.menu__sebou { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; font-weight: 500; color: var(--espresso); }
.menu__note { margin-top: 1.5rem; max-width: 30rem; font-family: var(--nadpis); font-size: 1.2rem; line-height: 1.35; color: var(--smalt); }
.kava__text { grid-column: 8 / span 5; }

.page--sebou { padding-top: clamp(2.5rem, 4.5vw, 3.75rem); }
.sebou__text { grid-column: 1 / span 5; }
.sebou__photo { grid-column: 7 / span 5; }
.sticker {
  display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%;
  background: var(--mleko); box-shadow: inset 0 0 0 3px var(--pena), 0 6px 14px -8px rgba(43, 31, 25, .45);
  transform: rotate(-9deg);
}
.sticker img { width: 74px; height: auto; transform: translateX(4px); }

/* --------------------------------------------------------------- snídaně (pan) */
.snidane__stage { padding-top: var(--head); display: flex; align-items: center; }
.rail {
  width: max-content; display: flex; align-items: flex-start; gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--sc-gutter); height: auto;
  padding-left: max(var(--sc-gutter), calc((100vw - var(--sc-maxw)) / 2 + var(--sc-gutter)));
}
.rail__lead { width: clamp(17rem, 26vw, 24rem); align-self: center; }
.rail__lead .lede { margin-top: 1rem; }
.rail__item { flex: none; width: min-content; }
.rail__item img { max-width: none; height: min(58svh, 560px); width: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-foto); }
.rail__item--wide img { aspect-ratio: 3 / 2; }
.rail__item figcaption { border-top: 0; padding-top: 1rem; max-width: none; }
.rail__item figcaption .menu__desc { max-width: 26rem; }
.rail__menu { flex: none; width: clamp(17rem, 22vw, 21rem); align-self: center; }
.rail__menu-title { font-family: var(--nadpis); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; color: var(--smalt); }
.rail__menu .menu { margin-top: 1rem; }
.rail__note {
  align-self: center; width: clamp(14rem, 20vw, 18rem);
  font-family: var(--nadpis); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; color: var(--smalt);
}

/* ------------------------------------------------------------------ ticho */
.ticho { padding-block: clamp(2.75rem, 9vh, 6rem) clamp(2.75rem, 10vh, 6.5rem); }
.ticho__line {
  font-family: var(--nadpis); font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: 1.1; color: var(--smalt);
  margin-left: 41.66%;
}

/* ------------------------------------------------------------- dort (pin) */
.dorty__stage { padding-top: var(--head); display: flex; align-items: center; }
.dorty__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2rem;
}
.dorty__text .lede { margin-top: 1.25rem; max-width: 27rem; }
.dorty__live { position: relative; margin-top: 2rem; height: 2.2rem; }
.dorty__cue {
  position: absolute; left: 0; top: 0;
  font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--smalt); white-space: nowrap;
}

.cake {
  position: relative; justify-self: center;
  width: min(72svh, 42vw, 660px); aspect-ratio: 1 / 1;
  border-radius: var(--r-foto); overflow: hidden; box-shadow: var(--stin);
  isolation: isolate;
}
.cake__base, .cake__hole img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cake__hole, .cake__slice { position: absolute; inset: 0; }
.cake__shadow { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.cake__hole { z-index: 1; }
.cake__w {
  position: absolute; inset: 0;
  background-image: url("assets/dort-vyrez-1300.webp"); background-size: 100% 100%;
}
@media (max-width: 760px) { .cake__w { background-image: url("assets/dort-vyrez-760.webp"); } }
.cake__slice { transform-origin: 43.51% 56.70%; will-change: transform; z-index: 4; }
.cake__shadow { opacity: 0; z-index: 2; will-change: transform, opacity; transform-origin: 43.51% 56.70%; pointer-events: none; }
/* boční stěny kousku (řez dortem): jedou s kouskem, pevná výseč díry je ořízne, takže je vidět jen ta část, která už vyjela */
.cake__walls { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cake__wall {
  position: absolute; inset: 0; transform-origin: 43.51% 56.70%; will-change: transform;
  background-image: url("assets/dort-stena-1300.webp"); background-size: 100% 100%;
}
@media (max-width: 760px) { .cake__wall { background-image: url("assets/dort-stena-760.webp"); } }
.cake__cuts { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
/* řez = úzká spára, ne čára přes ořechy: tenká tmavá linka se světlým lemem */
.cake__cut {
  position: absolute; left: 50.294%; top: 49.916%; width: 29.4%; height: 1.5px; margin-top: -.75px;
  background: rgba(40, 26, 18, .40); border-radius: 1px; box-shadow: 0 .75px 0 rgba(255, 244, 230, .22);
  transform-origin: 0 50%; transform: rotate(var(--a)) scaleX(0);
  will-change: transform, opacity;
}

/* ------------------------------------------------------------ zadní strana */
.zadni { padding-top: clamp(2.75rem, 6vw, 4.75rem); }
.zadni__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 1.5rem; align-items: start; }
.zadni__photo { grid-column: 1 / span 8; grid-row: 1; }
.zadni__photo img { aspect-ratio: 3 / 2; }
.card {
  grid-column: 8 / span 5; grid-row: 1; position: relative; z-index: 2; margin-top: clamp(5.5rem, 11vw, 10rem);
  background: var(--pena); border-radius: var(--r-foto); padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--stin);
}
.card__logo { width: 168px; height: auto; }
.card__title { font-family: var(--nadpis); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.1; color: var(--smalt); margin: 1.5rem 0 0; }
.card__addr { margin-top: .6rem; font-size: 1.15rem; }
.card__phone { margin-top: 1rem; }
.card__phone a {
  font-family: var(--nadpis); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; color: var(--espresso);
  text-decoration: none; white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .card__phone a:hover { color: var(--smalt); } }
.card__line { margin-top: .5rem; color: var(--sc-ink-soft); display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.card__ig { white-space: nowrap; }
.card__line a { color: var(--smalt); }
.card__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.card__note { margin-top: 1.25rem; font-size: .98rem; color: var(--sc-ink-soft); }

.foot { margin-top: clamp(3.5rem, 8vw, 6rem); padding: 2rem 0 2.5rem; border-top: 2px solid var(--pena); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem 2rem; }
.foot__label { font-weight: 600; color: var(--espresso); }
.foot__text { font-size: .9rem; line-height: 1.55; color: var(--sc-ink-soft); max-width: 60ch; }

/* ------------------------------------------------------------------ mobil */
@media (max-width: 860px) {
  .hero { min-height: auto; display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 1.75rem 2.5rem; }
  .hero__title { font-size: clamp(2.5rem, 10.5vw, 3.4rem); }
  .hero__lede { font-size: 1.1rem; margin-top: 1rem; }
  .hero__actions { margin-top: 1.4rem; }
  .fan { height: clamp(300px, 82vw, 420px); min-height: 0; }
  .fan__card { width: 48vw; margin-left: -24vw; margin-top: -30vw; }
  .fan__card--l, .fan__card--r { width: 38vw; margin-left: -19vw; margin-top: -23.75vw; }
  .fan.is-open .fan__card--l { transform: translate(-60%, 8%) rotate(-7deg); }
  .fan.is-open .fan__card--r { transform: translate(60%, 6%) rotate(6deg); }

  .page__grid, .zadni__grid { grid-template-columns: 1fr; }
  .kava__media, .kava__text, .sebou__text, .sebou__photo, .zadni__photo, .card { grid-column: 1; grid-row: auto; }
  .kava__media { padding-bottom: 0; margin-bottom: 2.5rem; }
  .kava__media .photo--tall { width: 82%; }
  .photo--inset { width: 58%; bottom: -1.5rem; }
  .kava__text { margin-top: 1rem; }
  .sebou__photo { margin-top: 2.5rem; width: 86%; justify-self: end; }
  .card { margin-top: -2.5rem; margin-inline: .75rem 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .lede { font-size: 1.08rem; }
  .menu__name { font-size: 1.15rem; }

  .rail__lead { width: 78vw; }
  .rail__item img { height: min(44svh, 400px); }
  .rail__note { width: 64vw; }
  .rail__menu { width: 74vw; }

  .ticho__line { margin-left: 0; }

  .dorty__stage { align-items: flex-start; }
  .dorty__grid { grid-template-columns: 1fr; gap: 1.1rem; padding-top: 1rem; }
  .cake { order: -1; width: min(88vw, 44svh); }
  .dorty__text .title { font-size: clamp(1.6rem, 6.6vw, 2.1rem); }
  .dorty__text .lede { margin-top: .6rem; font-size: 1rem; }
  .dorty__live { margin-top: .9rem; }
  .dorty__cue { font-size: 1.1rem; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .dorty__text .lede { display: none; }
}

/* --------------------------------------------------------- omezený pohyb */
@media (prefers-reduced-motion: reduce) {
  .fan__card, .head__mark, .head__line, .head__ear, .btn { transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  /* bez pohybu se snídaně neposouvají do strany: řada se zalomí do běžného toku */
  .snidane { height: auto !important; }
  .snidane__stage { height: auto; overflow: visible !important; padding-block: calc(var(--head) + 2rem) 3rem; }
  .snidane .rail { width: auto; flex-wrap: wrap; row-gap: 2.5rem; }
  .snidane .rail__lead { width: 100%; max-width: 36rem; }
  .snidane .rail__item img { max-width: 100%; }
  /* dort: konečný stav bez pinu, platí jen druhá věta */
  .dorty { height: auto !important; }
  .dorty__stage { height: auto; min-height: 100svh; padding-bottom: 3rem; }
  .dorty__cue:first-child { display: none; }
  .dorty__cue:last-child { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  /* bez pohybu na mobilu: každá fotka na celou šířku, výšku dopočítá poměr stran (jinak by široká fotka roztáhla stránku) */
  .snidane .rail { padding-inline: var(--sc-gutter); }
  .snidane .rail__item { width: 100%; }
  .snidane .rail__item img { width: 100%; height: auto; max-width: 100%; }
  .snidane .rail__lead, .snidane .rail__note, .snidane .rail__menu { width: 100%; }
}

/* ===== doplněno pro web ProWeb Procházka (tools/ukazky.mjs): odkaz z ukázkového webu zpět na celou ukázku ===== */
.ukazka-zpet { grid-column: -2 / -1; flex-basis: 100%; margin: 0; }
.ukazka-zpet a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: inherit; text-decoration: none; }
.ukazka-zpet__t { text-decoration: underline; text-underline-offset: 4px; }
