/* ============================================================
   PARQ espresso bar - parq.veldon.cz
   Direction: "Pavilon v parku" - editorial minimalism that
   passes through the day: paper-white morning -> amber-lit night.
   Type: Jost (thin, wide-tracked, matches the wordmark)
         + Newsreader (editorial body & italic captions).
   Motif: the extended Q-stroke as thin rules.
   ============================================================ */

/* fonts.css and tokens.css are linked from the HTML head (parallel fetch). */

:root {
  --paper-2: #efe9dd;
  --night: #121009;
  --night-2: #1a1710;
  --cream: #efe7d6;
  --cream-soft: #b3a88f;
  --amber-bright: #d9a55c;
  --line-dark: rgba(239, 231, 214, 0.18);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --measure: 34em;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--amber); color: var(--night); }

/* ---------- type utilities ---------- */

.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kicker::after {
  content: '';
  height: 1px;
  width: 3.5rem;
  background: currentColor;
  opacity: 0.7;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.12;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  letter-spacing: 0.14em;
  margin: 1.1rem 0 1.6rem;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  font-weight: 400;
}

.lede { max-width: var(--measure); color: var(--ink-soft); }
.lede strong { font-weight: 500; color: var(--ink); }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  color: var(--cream);
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, padding 0.35s ease;
}

.site-header.is-solid {
  background: rgba(18, 16, 9, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 0.7rem;
  box-shadow: 0 1px 0 var(--line-dark);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.28em;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark .wm-mark {
  display: inline-flex;
  align-items: baseline;
}

/* the Q-tail: starts inside the bowl, descends right (as in the logo) */
.wordmark .wm-mark::after {
  content: '';
  align-self: center;
  width: 1.7em;
  height: 1px;
  background: currentColor;
  margin-left: -0.72em;
  transform: translateY(0.28em) rotate(11deg);
  transform-origin: left center;
}

.wordmark small {
  font-size: 0.46em;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: lowercase;
  color: var(--cream-soft);
  padding-left: 0.15em;
}

.site-nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  padding-bottom: 0.3em;
  background: linear-gradient(currentColor, currentColor) bottom left / 0 1px no-repeat;
  transition: background-size 0.3s ease;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background-size: 100% 1px;
}

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 16, 9, 0.42) 0%, rgba(18, 16, 9, 0.05) 34%, rgba(18, 16, 9, 0.62) 78%, rgba(18, 16, 9, 0.82) 100%);
}

.hero-inner {
  width: 100%;
  padding: 0 var(--pad) clamp(3rem, 8vh, 5.5rem);
}

.hero-mark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 2rem + 9vw, 9rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: baseline;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-mark::after {
  content: '';
  align-self: center;
  height: 2px;
  background: currentColor;
  flex: 0 1 1.7em;
  margin-left: -0.72em;
  transform: translateY(0.28em) rotate(11deg);
  transform-origin: left center;
  animation: stroke 1.1s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-sub {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.8rem;
  animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-sub .tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1.05rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-sub .hours-chip {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(239, 231, 214, 0.45);
  border-radius: 99px;
  padding: 0.55em 1.3em;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.hero-sub .hours-chip:hover { border-color: var(--amber-bright); color: var(--amber-bright); }

.hero-sub .hours-chip strong { font-weight: 500; color: var(--amber-bright); }

@keyframes rise {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: none; }
}

@keyframes stroke {
  from { transform: translateY(0.28em) rotate(11deg) scaleX(0); }
  to { transform: translateY(0.28em) rotate(11deg) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark, .hero-sub, .hero-mark::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Sections - the day arc
   ============================================================ */

section { padding: clamp(4rem, 10vh, 7.5rem) var(--pad); }

.section-inner { max-width: 72rem; margin-inline: auto; }

/* --- 8:00 rano / kava: type-led, paper --- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.coffee-list {
  list-style: none;
  margin-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.coffee-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.coffee-list .name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.coffee-list .note {
  font-style: italic;
  color: var(--ink-soft);
  text-align: right;
  font-size: 0.95em;
}

/* the 99 Kc morning-menu ticket */
.ticket {
  border: 1px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
  background: var(--paper);
}

.ticket::before {
  content: '';
  position: absolute;
  inset: 0.5rem;
  border: 1px solid var(--line);
  pointer-events: none;
}

.ticket .kicker { color: var(--ink); }
.ticket .kicker::after { background: var(--amber); }

.ticket .price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 2.4rem + 2.5vw, 4.6rem);
  line-height: 1;
  margin: 1rem 0 0.4rem;
  letter-spacing: 0.05em;
}

.ticket .price sup {
  font-size: 0.32em;
  letter-spacing: 0.18em;
  vertical-align: super;
}

.ticket p { color: var(--ink-soft); font-size: 0.98em; }

.ticket .when {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

/* --- pekarna: photo collage on deeper paper --- */

.bakery { background: var(--paper-2); }

.collage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 5vh, 3.5rem);
  align-items: start;
}

.collage figure { position: relative; }

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 24px 60px -30px rgba(23, 21, 15, 0.55);
}

.collage .c-main { aspect-ratio: 4 / 4.8; }

.collage .c-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

.collage .c-side { aspect-ratio: 3 / 3.4; }

/* the soup pulls left into the gutter, overlapping the main photo edge */
.collage .c-small {
  width: 86%;
  margin-left: -24%;
  aspect-ratio: 4 / 3.4;
  z-index: 1;
  border: 8px solid var(--paper-2);
}

.collage figcaption {
  position: absolute;
  left: 0;
  bottom: -1.9em;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ============================================================
   Night side: 18:00 -> 22:00
   ============================================================ */

.dusk {
  background: linear-gradient(180deg, var(--paper-2) 0%, #c9baa2 18%, #55442f 55%, var(--night) 100%);
  padding-top: clamp(5rem, 14vh, 9rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
  color: var(--cream);
}

.evening {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 72rem;
  margin-inline: auto;
}

.evening .lede { color: var(--cream-soft); }
.evening .lede strong { color: var(--cream); }

.evening img {
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.bar-list {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--line-dark);
}

.bar-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.bar-list .name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bar-list .note { font-style: italic; color: var(--cream-soft); text-align: right; font-size: 0.95em; }

/* --- program (night) --- */

.night { background: var(--night); color: var(--cream); }

/* consecutive dark sections share one breath, not two */
.dusk + .night, .night + .night { padding-top: clamp(1.5rem, 5vh, 3rem); }

.night .kicker { color: var(--amber-bright); }
.night .lede { color: var(--cream-soft); }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 5vh, 3.2rem);
}

.event-card {
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.event-card:hover { transform: translateY(-4px); border-color: rgba(217, 165, 92, 0.5); }

.event-poster {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-poster img { transform: scale(1.04); }

.event-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-bright);
}

.event-card h3 { color: var(--cream); }

.event-desc { color: var(--cream-soft); font-size: 0.95em; flex: 1; }

.event-links { margin-top: 0.4rem; }

.btn-fb {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--line-dark);
  padding: 0.7em 1.2em;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-fb::before { content: 'f'; font-family: var(--font-body); font-style: italic; font-size: 1.25em; color: var(--amber-bright); }

.btn-fb:hover { border-color: var(--amber-bright); color: var(--amber-bright); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin-top: 2.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
}

.more-link::after {
  content: '';
  width: 3.2em;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.more-link:hover::after { width: 5em; }

/* --- galerie strip --- */

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

.gallery-strip a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-strip a:hover img { transform: scale(1.05); filter: saturate(1.05); }

/* ============================================================
   Kontakt + footer (night)
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 5vh, 3rem);
}

.contact-grid h3 { color: var(--amber-bright); margin-bottom: 1rem; }

.contact-grid p, .contact-grid address { font-style: normal; color: var(--cream-soft); }

.contact-grid a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: border-color 0.3s ease, color 0.3s ease; }

.contact-grid a:hover { color: var(--amber-bright); border-color: var(--amber-bright); }

.hours-table { width: 100%; border-collapse: collapse; color: var(--cream-soft); }

.hours-table td { padding: 0.45em 0; border-bottom: 1px solid var(--line-dark); }

.hours-table td:last-child { text-align: right; color: var(--cream); font-family: var(--font-display); letter-spacing: 0.12em; }

.site-footer {
  background: var(--night);
  color: var(--cream-soft);
  border-top: 1px solid var(--line-dark);
  padding: 2rem var(--pad) 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.site-footer .fine { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }

.site-footer a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.3s ease; }

.site-footer a:hover { color: var(--cream); }

/* ============================================================
   Subpages (program / galerie)
   ============================================================ */

.page-head {
  padding: clamp(8rem, 20vh, 11rem) var(--pad) clamp(2.5rem, 6vh, 4rem);
  background: var(--night);
  color: var(--cream);
}

.page-head h1 {
  font-size: clamp(2.4rem, 1.6rem + 4vw, 5rem);
  letter-spacing: 0.18em;
  margin-top: 1rem;
}

.page-body { background: var(--night); color: var(--cream); padding-bottom: clamp(4rem, 10vh, 7rem); }

/* sections directly under a page-head carry no extra top padding */
.page-body section { padding-top: 0; }

.note-fine { font-size: 0.85em; font-style: italic; margin-top: 0.8em; }

/* galerie page grid */
.masonry {
  columns: 3;
  column-gap: 0.8rem;
  max-width: 72rem;
  margin-inline: auto;
}

.masonry figure { break-inside: avoid; margin: 0 0 0.8rem; position: relative; overflow: hidden; }

.masonry img { width: 100%; transition: transform 0.6s ease; }

.masonry figure:hover img { transform: scale(1.03); }

.masonry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(18, 16, 9, 0.75));
  color: var(--cream);
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.masonry figure:hover figcaption { opacity: 1; }

/* lightbox */
dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 70rem);
  max-height: 92vh;
}

dialog.lightbox::backdrop { background: rgba(10, 9, 5, 0.88); }

dialog.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; margin-inline: auto; }

dialog.lightbox figcaption { color: var(--cream-soft); text-align: center; font-style: italic; padding-top: 0.8rem; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 56rem) {
  .split, .evening { grid-template-columns: 1fr; }

  .collage { grid-template-columns: 1fr; }
  .collage .c-col { margin-top: 0; gap: 1.6rem; }
  .collage .c-small { width: 100%; margin-left: 0; }
  .collage figcaption { position: static; padding-top: 0.5em; }

  .masonry { columns: 2; }
}

@media (max-width: 44rem) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    background: none;
    border: 1px solid currentColor;
    color: inherit;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 0.6em 1.1em;
    cursor: pointer;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(18, 16, 9, 0.97);
    color: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1rem;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav .nav-close {
    position: absolute;
    top: 1.2rem;
    right: var(--pad);
    background: none;
    border: 1px solid var(--line-dark);
    color: var(--cream);
    font-family: var(--font-display);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.6em 1.1em;
    cursor: pointer;
  }

  .masonry { columns: 1; }

  .hero-mark::after { flex-basis: 1.2em; }

  .hero-sub { display: block; }

  .hero-sub .tagline {
    display: block;
    margin-bottom: 1.1rem;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    max-width: 100%;
  }

  .hero-sub .hours-chip { display: inline-block; }
}

@media (min-width: 44.01rem) {
  .site-nav .nav-close { display: none; }
}

