/* Hospůdka U Černé kočky — split stage: bottle green and Ossegg gold, Rokkitt + Literata */

:root {
  --bg: #133621;          /* bottle green, the bench upholstery */
  --surface: #1a4429;
  --deep: #0f2b1a;
  --deeper: #0b2214;
  --ink: #f4d96c;         /* gold, the beer in the mug */
  --muted: #c2b36a;
  --accent: #f4d96c;
  --accent-ink: #133621;
  --paper: #ecd6a6;       /* pine boarding, the menu sheet */
  --paper-ink: #133621;
  --paper-muted: #4b5a3a;

  --font-display: "Rokkitt", Georgia, serif;
  --font-text: "Literata", Georgia, serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  --step-display: calc((63vw - var(--pad)) / 7.85);

  --pad: clamp(1.25rem, 2.2vw, 2rem);
  --col-in: clamp(2rem, 4.5vw, 4.5rem);
  --section: clamp(7.5rem, 12vw, 12rem);
  --stage-w: 47%;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.defs { position: absolute; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -4rem; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 20; }
.skip:focus { top: 1rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: .9;
  text-wrap: balance;
}
h2 { font-size: var(--step-head); }

/* ---------- controls ---------- */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--paper { background: var(--paper); color: var(--paper-ink); }

.link, .column a:not(.button), .booking a:not(.button), .foot a {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #fff0b0; }
  .button--paper:hover { background: #f6e6c2; }
  .link:hover, .column a:not(.button):hover, .booking a:not(.button):hover, .foot a:hover { text-decoration-color: currentColor; }
}

/* ---------- navigation ---------- */
.bar {
  position: absolute;
  top: 0;
  left: var(--stage-w);
  right: 0;
  z-index: 10;
  padding: 28px var(--pad) 28px var(--col-in);
}
.nav { display: flex; justify-content: flex-end; align-items: center; gap: 28px; font-size: var(--step-small); }
.nav__toggle { display: none; }
.nav__list { display: flex; gap: 28px; }
.nav a { text-decoration: none; }
.nav__list a { transition: color var(--t-hover) ease; }
.nav__action { padding: .55rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: transform var(--t-press) var(--ease-out); }
.nav__action:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .nav__list a:hover { color: #fff0b0; } }

/* ---------- split stage ---------- */
.split { display: grid; grid-template-columns: var(--stage-w) 1fr; }
.stage { position: sticky; top: 0; height: 100svh; padding: var(--pad) 0 var(--pad) var(--pad); }
.stage__inner { position: relative; height: 100%; overflow: hidden; background: #c8955a; }
.frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 520ms var(--ease-out), transform 900ms var(--ease-out);
}
.stage[data-frame="okno"] .frame--okno,
.stage[data-frame="stul"] .frame--stul,
.stage[data-frame="lavice"] .frame--lavice { opacity: 1; transform: none; }

/* the live window: open = lamp lit, cat awake; closed = dark, cat asleep */
.pane { fill: #5f876a; }
.tree { fill: #3b6650; }
.night { fill: #08150e; opacity: 0; transition: opacity 600ms ease; }
.bulb { fill: #fff3c4; transition: fill 600ms ease; }
.glow, .cat-awake { transition: opacity 600ms ease; }
.cat-asleep { opacity: 0; transition: opacity 600ms ease; }
.stage[data-open="false"] .night { opacity: .78; }
.stage[data-open="false"] .frame--okno .glow,
.stage[data-open="false"] .cat-awake { opacity: 0; }
.stage[data-open="false"] .bulb { fill: #7a6a4c; }
.stage[data-open="false"] .cat-asleep { opacity: 1; }

.column { position: relative; min-width: 0; padding: 0 var(--pad) var(--section) var(--col-in); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 calc(var(--step-display) + 120px);
}
.hero__text { max-width: 30rem; }
.lead { font-size: var(--step-lead); line-height: 1.4; text-wrap: pretty; }
.status { margin-top: 2rem; }
.status__now { font-weight: 600; }
.status__now::before {
  content: "";
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-right: .5em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: .08em;
}
.status[data-open="false"] .status__now::before { background: transparent; border: 2px solid currentColor; }
.status__more { color: var(--muted); font-size: var(--step-small); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 2rem; }

.wordmark {
  position: absolute;
  right: 0;
  bottom: 40px;
  z-index: 2;
  font-size: var(--step-display);
  line-height: 1;
  white-space: nowrap;
  transform-origin: 100% 100%;
}
.wordmark__line { display: block; overflow: clip; padding-top: .14em; }
.wordmark [data-line] { display: inline-block; }

/* ---------- menu: the printed sheet ---------- */
.menu { padding-top: var(--section); }
.sheet {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px;
  background: var(--paper);
  color: var(--paper-ink);
  text-align: center;
}
.sheet::before, .sheet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background-repeat: repeat-x;
  background-size: 24px 12px;
}
.sheet::before { top: -12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23ecd6a6'/%3E%3C/svg%3E"); }
.sheet::after { bottom: -12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Ccircle cx='12' cy='0' r='12' fill='%23ecd6a6'/%3E%3C/svg%3E"); }
.sheet :focus-visible { outline-color: var(--paper-ink); }
.sheet__note { margin-top: 12px; font-size: var(--step-small); color: var(--paper-muted); }
.sheet__group { margin-top: 56px; }
.sheet h3 { font-size: var(--step-lead); line-height: 1; }
.items { max-width: 420px; margin: 20px auto 0; text-align: left; }
.items li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  margin-top: 16px;
}
.item__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.item__desc { grid-column: 1 / -1; font-size: var(--step-small); color: var(--paper-muted); }
.sheet__group--todo .items { color: var(--paper-muted); }
.sheet__hours { margin-top: 56px; font-size: var(--step-small); font-variant-numeric: tabular-nums; }

/* ---------- about: side facts, wide paragraph ---------- */
.about { padding-top: var(--section); }
.about__row { display: grid; grid-template-columns: 9rem 1fr; gap: 32px; margin-top: 48px; }
.facts { display: grid; gap: 20px; align-content: start; font-size: var(--step-small); }
.facts dt { color: var(--muted); }
.about__text { font-size: var(--step-lead); line-height: 1.4; }
.about__row--list { grid-template-columns: 9rem 1fr 1fr; margin-top: 72px; }
.about__word { font-size: var(--step-small); }
.record li { display: grid; margin-bottom: 14px; }
.record li span + span { color: var(--muted); font-size: var(--step-small); }

/* ---------- visit: hours and map ---------- */
.visit { padding-top: var(--section); }
.hours { width: 100%; max-width: 32rem; margin-top: 40px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 14px; font-weight: 400; }
.hours th { text-align: left; }
.hours td { text-align: right; }
.hours tr:nth-child(odd) { background: var(--surface); }
.hours tr.is-today { background: var(--accent); color: var(--accent-ink); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.visit__note { margin-top: 20px; max-width: 32rem; font-size: var(--step-small); color: var(--muted); }
.visit__note a { color: var(--ink); }
.map { margin-top: 48px; }
.map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--surface); }
.map figcaption { margin-top: 12px; font-size: var(--step-small); }

/* ---------- booking: the last picture, text beside ---------- */
.booking { position: relative; height: 90svh; min-height: 560px; background: var(--deep); }
.booking__picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.booking__text {
  position: absolute;
  left: 58.33%;
  right: var(--pad);
  bottom: 14svh;
  max-width: 34rem;
}
.booking__text p { margin-top: 20px; }
.booking__text .button { margin-top: 32px; }

/* ---------- contact: address in display rows ---------- */
.contact { position: relative; background: var(--deeper); }
.contact__cat {
  position: absolute;
  right: calc(var(--pad) + 4vw);
  bottom: 0;
  width: clamp(220px, 26vw, 420px);
  height: auto;
  pointer-events: none;
}
.contact .row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  min-height: clamp(84px, 10.4vw, 150px);
  margin: 0;
  padding: 0 var(--pad) 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-head);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact .row:nth-child(even) { background: var(--deep); }
.contact a.row { transition: color var(--t-hover) ease; }
.contact .row--todo { color: var(--muted); }
.round {
  display: inline-grid;
  place-items: center;
  width: .9em;
  height: .9em;
  margin-bottom: .04em;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform var(--t-press) var(--ease-out);
}
.round svg { width: 50%; height: 50%; transition: transform 240ms var(--ease-out); }
.round:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .contact a.row:hover { color: #fff0b0; }
  .round:hover svg { transform: translateX(3px); }
}

/* ---------- footer: one quiet line ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 30svh var(--pad) 30px;
  font-size: var(--step-small);
  color: var(--muted);
}
.foot ul { display: flex; gap: 24px; }
.foot a { color: var(--ink); }
.foot p:last-child { text-align: right; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  :root { --step-display: calc((100vw - 40px) / 7.85); }
  .bar { left: 0; padding: 20px 24px; }
  .nav { justify-content: space-between; position: relative; }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 0;
    font: inherit;
    background: var(--bg);
    color: var(--ink);
    transition: transform var(--t-press) var(--ease-out);
  }
  .nav__toggle:active { transform: scale(0.97); }
  .nav__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    gap: 0;
    min-width: 12rem;
    background: var(--bg);
    box-shadow: 0 12px 32px rgb(0 0 0 / .35); /* taste-skill-ignore: floating menu */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top left;
    transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav.is-open .nav__list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list a { display: block; padding: 14px 20px; font-size: var(--step-body); }
  .nav__action { min-height: 44px; display: inline-flex; align-items: center; }

  .split { display: block; }
  .stage { position: relative; height: 58svh; min-height: 360px; padding: 12px 12px 0; }
  .column { padding: 0 20px var(--section); }
  .hero { min-height: 0; padding: 0; justify-content: flex-start; }
  .wordmark { position: relative; order: -1; bottom: auto; right: auto; margin-top: -3.4vw; }
  .hero__text { padding-top: 24px; }

  .sheet { margin: 0 -10px; padding: 40px 28px; }
  .about__row, .about__row--list { grid-template-columns: 1fr; gap: 24px; }
  .about__text { order: -1; }
  .facts { grid-template-columns: 1fr 1fr; }

  .booking { height: auto; min-height: 0; background: var(--deeper); }
  .booking__picture { position: relative; height: auto; aspect-ratio: 4 / 3; }
  .booking__text { position: static; padding: 40px 20px 96px; }
  .booking__text .button { display: flex; justify-content: center; }

  .contact .row { min-height: 84px; padding: 0 20px 14px; }
  .contact__cat { width: 30vw; right: 20px; bottom: 84px; }
  .contact .row.row--greet { background: var(--accent); color: var(--accent-ink); justify-content: space-between; align-items: center; padding-top: 14px; }
  .contact .row--greet .round { width: 56px; height: 56px; background: var(--accent-ink); color: var(--accent); }

  .foot { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 20svh 20px 24px; }
  .foot ul { flex-wrap: wrap; gap: 8px 20px; }
  .foot p:last-child { text-align: left; }
}

@media (max-width: 559px) {
  .contact__cat { display: none; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* load: the stage opens, the name rises, the sentence follows */
  .js [data-open-load] { clip-path: inset(0 0 100% 0); animation: load-open 1000ms var(--ease-in-out) 120ms forwards; }
  .js [data-open-load] .frame--okno { animation: load-settle 1300ms var(--ease-expo) 80ms backwards; }
  .js .wordmark [data-line] { transform: translateY(105%); animation: load-line 900ms var(--ease-expo) 260ms forwards; }
  .js [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 520ms var(--ease-out) forwards; animation-delay: var(--d); }

  /* sections: parts arrive one after another, once */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* the cat: a slow tail, a blink now and then */
  .tail { transform-box: fill-box; transform-origin: 0% 100%; animation: tail 6s ease-in-out infinite; }
  .eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 7s linear infinite; }

  /* signature: the name settles as the first screen leaves */
  @supports (animation-timeline: view()) {
    .wordmark { animation: settle linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes load-open { to { clip-path: inset(0); } }
@keyframes load-settle { from { transform: scale(1.08); } }
@keyframes load-line { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes tail { 0%, 55%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 82% { transform: rotate(4deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes settle { to { scale: 0.93; } }

@media (prefers-reduced-motion: reduce) {
  .frame { transform: none; transition-property: opacity; }
}
