/* Tipáč Duchcov: colours sampled from the terrace (awning canvas, bench wood, conifers, pavers) */
:root {
  --ground: #ecebe6;
  --ground-2: #e2e1da;
  --ink: #1d2a1f;
  --ink-soft: #46524a;
  --red: #a3161f;
  --red-deep: #7e1118;
  --wood: #4f3421;
  --wood-2: #5a3c27;
  --wood-light: #f0d3a2;
  --pine: #22352a;
  --pine-2: #2b4234;
  --paper: #fbf8ef;
  --placeholder: #fff1a8;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --step-hero: clamp(5.5rem, 10.5vw, 10.5rem);
  --step-h2: clamp(3.25rem, 7vw, 6.5rem);
  --step-h3: clamp(1.75rem, 2.4vw, 2.25rem);
  --step-body: clamp(1.0625rem, 1.1vw, 1.1875rem);
  --step-small: 0.9375rem;

  --margin: clamp(20px, 4vw, 56px);
  --gap: clamp(20px, 2.4vw, 36px);
  --section: clamp(96px, 13vw, 200px);

  --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;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 0.9; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); font-weight: 700; line-height: 1; }

/* Placeholders the owner must fill: deliberately loud */
.ph { background: var(--placeholder); color: #3a2f00; padding: 0 0.25em; font-weight: 600; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: 8px; z-index: 20; background: var(--paper); padding: 8px 12px; }

/* Buttons and links (press feedback per Kowalski: quick, scale from .97, ease-out) */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--red); color: #fff;
  font-family: var(--text); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 42px; padding: 0 18px; font-size: var(--step-small); }
.button--light { background: var(--paper); color: var(--red-deep); }
.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  transition: text-underline-offset var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--red-deep); }
  .button--light:hover { background: #fff; }
  .link:hover { text-underline-offset: 0.4em; color: var(--red); }
  .bar__nav a:hover { color: var(--red); }
}

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: var(--gap);
  padding: 12px var(--margin);
  background: var(--ground);
}
.bar__mark { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; text-decoration: none; color: var(--red); }
.bar__nav { display: flex; gap: clamp(16px, 2.4vw, 36px); margin-left: auto; font-weight: 600; }
.bar__nav a { text-decoration: none; transition: color var(--t-hover) var(--ease-out); }
@media (max-width: 720px) {
  .bar { flex-wrap: wrap; row-gap: 6px; }
  .bar .button--small { margin-left: auto; }
  .bar__nav { order: 3; width: 100%; margin: 0; justify-content: space-between; font-size: var(--step-small); }
}

/* Hero: text on the left, the terrace on the right */
.hero {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  align-items: end;
  padding: clamp(28px, 5vw, 72px) var(--margin) var(--section);
}
.hero__text { grid-column: 1 / span 6; padding-bottom: 8px; }
.hero__title { font-size: var(--step-hero); line-height: 0.84; color: var(--ink); }
.hero__title .line { display: block; overflow: clip; padding-bottom: 0.04em; }
.hero__title [data-line] { display: inline-block; }
.hero__lead { margin-top: 32px; max-width: 30ch; font-size: clamp(1.1875rem, 1.5vw, 1.375rem); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.status { margin-top: 28px; display: grid; gap: 2px; font-size: var(--step-small); }
.status__state { font-weight: 600; font-size: var(--step-body); }
.status__state::before {
  content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.5em;
  background: var(--ink-soft); border-radius: 50%; vertical-align: 0.05em;
}
.status[data-open="true"] .status__state::before { background: #2f7a3c; }
.status[data-open="false"] .status__state::before { background: var(--red); }
.status__detail { color: var(--ink-soft); }

.hero__picture { grid-column: 7 / -1; background: #dfe4dc; overflow: clip; min-width: 0; }
.hero__picture svg { width: 100%; height: auto; }
figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); }
.hero__picture figcaption { background: var(--ground); padding-top: 12px; margin-top: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 96px; }
  .hero__text, .hero__picture { grid-column: 1; }
  .hero__picture { order: -1; margin: 0 calc(var(--margin) * -1); }
  .hero__picture figcaption { padding-left: var(--margin); }
  .hero__lead { margin-top: 24px; }
}

/* Valance: the awning's front band, the page's one recurring device */
.valance {
  display: flex; justify-content: space-around; gap: 2em; overflow: clip;
  background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1;
  padding: 18px var(--margin) 22px;
  border-bottom: 8px solid var(--red-deep);
}
.valance span { flex: none; }

/* Menu on the bench wood */
.menu { background: var(--wood); color: var(--paper); }
.menu__inner {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: clamp(72px, 9vw, 140px) var(--margin) var(--section);
}
.menu__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: 110px; }
.menu__head h2 { color: var(--wood-light); }
.menu__head p { margin-top: 28px; max-width: 34ch; }
.menu__head .ph-note { margin-top: 20px; font-size: var(--step-small); }
.menu__board { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap) calc(var(--gap) * 1.5); }
.menu__group h3 { color: var(--wood-light); margin-bottom: 18px; }
.menu__group h3:not(:first-child) { margin-top: 56px; }
.planks li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 16px; background: var(--wood-2);
}
.planks li:nth-child(even) { background: transparent; }
.dish { max-width: 26ch; }
.dish.ph { max-width: none; }
.price { flex: none; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price:not(.ph) { color: var(--wood-light); }
@media (max-width: 1100px) {
  .menu__board { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu__inner { grid-template-columns: 1fr; }
  .menu__head, .menu__board { grid-column: 1; position: static; }
  .menu__board { margin-top: 32px; }
  .planks li { padding: 14px 12px; }
}

/* Zahrádka: picture wide left, text right */
.place {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center;
  padding: var(--section) var(--margin);
}
.place__picture { grid-column: 1 / span 7; }
.place__picture svg { width: 100%; height: auto; }
.place__text { grid-column: 9 / -1; }
.place__text p { margin-top: 28px; }
.facts { margin-top: 36px; display: grid; gap: 4px; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0 12px 14px; background: var(--ground-2); }
.facts dt { font-weight: 600; }
@media (max-width: 900px) {
  .place { grid-template-columns: 1fr; }
  .place__picture, .place__text { grid-column: 1; }
  .place__text { margin-top: 24px; }
}
@media (max-width: 420px) {
  .facts div { grid-template-columns: 1fr; gap: 0; }
}

/* Kvíz on the conifer green */
.quiz {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center;
  padding: var(--section) var(--margin);
  background: var(--pine); color: var(--paper);
}
.quiz__text { grid-column: 1 / span 6; }
.quiz__lead { margin-top: 28px; max-width: 36ch; font-size: clamp(1.1875rem, 1.6vw, 1.5rem); line-height: 1.4; }
.quiz__when { margin: 36px 0 40px; display: grid; gap: 4px; max-width: 32rem; }
.quiz__when div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 14px; background: var(--pine-2); }
.quiz__when dt { font-weight: 600; }
.quiz__when dd.ph { justify-self: start; }
.quiz__picture { grid-column: 8 / -1; }
.quiz__picture svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .quiz { grid-template-columns: 1fr; }
  .quiz__text, .quiz__picture { grid-column: 1; }
  .quiz__picture { margin-top: 40px; }
}
@media (max-width: 420px) {
  .quiz__when div { grid-template-columns: 1fr; gap: 0; }
}

/* Rezervace: a full field of awning red */
.booking { background: var(--red); color: #fff; padding: var(--section) var(--margin); }
.booking__inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.booking h2 { grid-column: 1 / span 7; font-size: clamp(3.5rem, 10vw, 9.5rem); }
.booking__inner > p:first-of-type { grid-column: 8 / -1; max-width: 34ch; font-size: clamp(1.1875rem, 1.5vw, 1.375rem); line-height: 1.45; }
.booking__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 40px; }
.booking__phone { font-family: var(--display); font-weight: 900; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; text-decoration: none; }
.booking__mail { grid-column: 1 / -1; }
.booking .ph { color: #3a2f00; }
@media (max-width: 900px) {
  .booking__inner { grid-template-columns: 1fr; }
  .booking h2, .booking__inner > p:first-of-type { grid-column: 1; }
  .booking__actions { margin-top: 16px; }
}

/* Kudy k nám */
.visit {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(64px, 7vw, 112px) var(--gap);
  padding: var(--section) var(--margin);
}
.visit__head { grid-column: 1 / span 5; }
.visit__address { margin: 28px 0 20px; font-style: normal; font-family: var(--display); font-weight: 700; font-size: var(--step-h3); line-height: 1.1; }
.hours { grid-column: 7 / -1; }
.hours__now { margin: 16px 0 28px; font-weight: 600; }
.week { display: grid; gap: 6px; }
.week li { display: grid; grid-template-columns: 6.5em 1fr 3.5em; align-items: center; gap: 14px; }
.week__track { position: relative; height: 22px; background: var(--ground-2); }
.week__open {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--from) / 14 * 100%); width: calc((var(--to) - var(--from)) / 14 * 100%);
  background: #c9a98e;
}
.week__kitchen { position: absolute; inset: 0 auto 0 0; width: calc(var(--kitchen) / (var(--to) - var(--from)) * 100%); background: var(--wood); }
.week__time { text-align: right; font-variant-numeric: tabular-nums; }
.week li[data-today] { font-weight: 600; }
.week li[data-today] .week__kitchen { background: var(--red); }
.week li[data-today] .week__day::after { content: " · dnes"; color: var(--red); }
.week__now { position: absolute; top: -5px; bottom: -5px; width: 4px; margin-left: -2px; background: var(--ink); }
.hours__legend { margin-top: 16px; font-size: var(--step-small); color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.key { display: inline-block; width: 18px; height: 12px; }
.key--kitchen { background: var(--wood); }
.key--open { background: #c9a98e; margin-left: 12px; }
.visit__map { grid-column: 1 / span 8; aspect-ratio: 16 / 10; background: var(--ground-2); }
.visit__map iframe { width: 100%; height: 100%; border: 0; }
.visit__contact { grid-column: 10 / -1; align-self: end; }
.visit__contact p { margin-top: 14px; font-weight: 600; }
@media (max-width: 900px) {
  .visit { grid-template-columns: 1fr; row-gap: 72px; }
  .visit__head, .hours, .visit__map, .visit__contact { grid-column: 1; }
  .visit__map { aspect-ratio: 4 / 5; margin: 0 calc(var(--margin) * -1); }
  .week li { grid-template-columns: 5.6em 1fr 3em; gap: 10px; }
  .week li[data-today] .week__day::after { content: ""; }
}

/* Footer: the name returns full width */
.footer { background: var(--ink); color: var(--ground); padding: clamp(56px, 7vw, 96px) var(--margin) 32px; }
.footer__name {
  font-family: var(--display); font-weight: 900; line-height: 0.82; letter-spacing: -0.01em;
  font-size: clamp(3.5rem, 15.4vw, 15.5rem); color: var(--red); white-space: nowrap;
}
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 40px; font-size: var(--step-small); }

/* Motion: one load sequence, quiet reveals. The reduced state is simply the finished state. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: load-line 800ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i) * 90ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 500ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero [data-shutter] { clip-path: inset(0 0 100% 0); animation: load-open 1000ms var(--ease-in-out) 150ms forwards; }
  .js .hero [data-shutter] svg { transform: scale(1.06); transform-origin: 50% 100%; animation: load-settle 1100ms var(--ease-expo) 100ms forwards; }

  .js [data-reveal] > * {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-expo);
    transition-delay: calc(var(--n, 0) * 70ms);
  }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }

  .week__open { transform-origin: 0 50%; }
  .js .hours:not(.is-in) .week__open { transform: scaleX(0); }
  .js .hours .week__open { transition: transform 900ms var(--ease-expo); transition-delay: calc(200ms + var(--row, 0) * 60ms); }
}
@keyframes load-line { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes load-open { to { clip-path: inset(0); } }
@keyframes load-settle { to { transform: none; } }
