/* Hallmark · shape: Timetable (one day from 10:00 to midnight) · genre: editorial · theme: custom (brand palette from the BarBarista logo) · job: visit, call to order · idea: "the cafe you come back to, shown as one day from the first coffee to midnight" · vibe: "cream paper, near-black ink, one gold B"
 * paper: #F7F2EA · ink: #1E1A18 · gold: #A88A68 · display: Jost 500 · body: Inter 400/600 · hero: split, an espresso pour with a latte plane in front and the gold B mark behind · nav: edge-aligned, the wordmark and one call action · footer: a mast, the wordmark over address, hours and links · imagery: the cafe's own Instagram photos and three reels · signature: the day timetable, a sticky frame that changes from breakfast to midnight coffee and marks the slot Baku time is in now
 * axes: cream/geometric/gold · posture: Restrained with one Committed band (birthdays and live music) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: menu photos come from the cafe's digital menu and vary in light, kept them square and uniform so the set reads as one */
/* Hallmark · waive 23 · accent token equals the ink #1E1A18 · the logo has only near-black and gold, so primary buttons and the dark band are ink, not a coloured accent */
/* Hallmark · waive 39b · .pause is 40px tall, 44px+ wide · a quiet overlay control on the video frame, not a marketing action */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 72px; }

.skip { position: absolute; left: var(--space-xs); top: -100px; z-index: var(--z-toast); background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: 6px; }
.skip:focus-visible { top: var(--space-xs); }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--color-ink); border-radius: 6px; }
.wordmark-img { height: 44px; width: auto; }
.nav-links { display: flex; gap: var(--space-xl); font-size: var(--text-sm); }
.nav-links a, .text-link, .foot a { color: var(--color-ink); text-decoration: none; border-radius: 4px; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--dur-short) var(--ease-out), color var(--dur-short); }
.nav-links a:hover, .text-link:hover, .foot a:hover { background-size: 100% 1px; color: var(--color-gold-deep); }
.nav-act { display: flex; align-items: center; gap: var(--space-sm); }
.lang { min-height: 40px; min-width: 44px; padding-inline: var(--space-sm); border-radius: var(--radius-pill); border: 1px solid var(--color-rule); background: transparent; color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: border-color var(--dur-short), background-color var(--dur-short); }
.lang:hover { border-color: var(--color-ink); }
.lang:active { background: var(--color-paper-2); }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; text-decoration: none; border: 1px solid var(--color-accent); transition: background-color var(--dur-short), border-color var(--dur-short), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
:focus-visible { transition: none; }
.btn:disabled, .lang:disabled, .pause:disabled { opacity: 0.5; cursor: not-allowed; }

h1 { font-size: clamp(3rem, 5vw + 1.25rem, 6.25rem); font-weight: 500; line-height: 1.0; letter-spacing: -0.03em; max-width: 12ch; color: var(--color-ink); }
h2 { font-size: var(--text-section); font-weight: 500; line-height: 1.05; letter-spacing: -0.025em; max-width: 18ch; }
h3 { font-size: var(--text-title); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 38ch; }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head-split { display: flex; align-items: end; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.text-link { font-weight: 600; }

/* hero */
.hero { padding-block: var(--space-xl); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; min-height: calc(100svh - var(--nav-h) - var(--space-xl) * 2); }
.hero-text { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); justify-items: start; align-self: end; padding-bottom: var(--space-xl); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); }
.status { color: var(--color-muted); }
.status strong { color: var(--color-ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero-media { grid-column: 7 / span 6; position: relative; height: min(780px, calc(100svh - var(--nav-h) - var(--space-xl) * 2)); min-height: 520px; }
.plane { margin: 0; position: absolute; overflow: hidden; border-radius: var(--radius-frame); outline: 1px solid var(--color-frame-line); outline-offset: -1px; background: var(--color-paper-2); }
.plane img { width: 100%; height: 100%; object-fit: cover; }
.plane-back { inset: 0 0 0 18%; }
.plane-back img { object-position: 50% 40%; }
.plane-front { width: 38%; aspect-ratio: 4 / 5; left: 0; bottom: 8%; box-shadow: 0 0 0 8px var(--color-paper); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 60.01rem) {
  }
}

/* day timetable (signature) */
.day { padding-block: var(--section-gap); background: var(--color-paper-2); }
.day-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.day-stage { grid-column: 1 / span 6; }
.stage-frame { position: sticky; top: calc(var(--nav-h) + var(--space-xl)); height: min(680px, calc(100svh - var(--nav-h) - var(--space-3xl))); border-radius: var(--radius-frame); overflow: hidden; background: var(--color-ink); }
.stage-m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.stage-m.is-on { opacity: 1; }
.pause { position: absolute; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-raised); min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 0; background: var(--color-scrim); color: var(--color-on-field); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short); }
.pause:hover { background: var(--color-ink); }
.day-stage .pause { pointer-events: auto; }
.slots { grid-column: 8 / span 5; list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-lg); min-height: 70svh; align-content: center; border-top: 1px solid var(--color-rule); padding-block: var(--space-2xl); opacity: 0.45; transition: opacity var(--dur-long) var(--ease-out); }
.slot:last-child { border-bottom: 1px solid var(--color-rule); }
.slot.is-on { opacity: 1; }
.slot time { color: var(--color-gold-deep) !important; font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); font-variant-numeric: tabular-nums; color: var(--color-accent); line-height: 1.15; }
.slot h3 { margin-bottom: var(--space-sm); }
.slot p { color: var(--color-ink-2); }
.slot .now { display: inline-block; margin-left: var(--space-xs); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-ink); background: var(--color-accent); border-radius: var(--radius-pill); padding: var(--space-3xs) var(--space-xs); vertical-align: middle; letter-spacing: 0; }
.slot-m { display: none; }

/* picks rail */
.picks { padding-block: var(--section-gap); }
.rail-wrap { max-width: var(--container); margin-inline: auto; padding-left: var(--gutter); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: var(--gap-columns); overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0 var(--gutter) var(--space-md) 0; scrollbar-width: thin; border-radius: var(--radius-card); }
.rail li { scroll-snap-align: start; }
.rail a { display: grid; gap: var(--space-xs); text-decoration: none; color: var(--color-ink); border-radius: var(--radius-card); }
.rail img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-card); background: var(--color-paper-2); margin-bottom: var(--space-xs); }
.rail a:hover .pick-n { color: var(--color-gold-deep); }
.pick-n { font-weight: 600; transition: color var(--dur-short); }
.pick-p { color: var(--color-muted); font-variant-numeric: tabular-nums; }

/* place */
.place { padding-block: var(--section-gap); }
.place-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
.place-main { grid-column: 1 / span 7; margin: 0; aspect-ratio: 4 / 5; max-height: 820px; width: 100%; border-radius: var(--radius-frame); overflow: hidden; background: var(--color-paper-2); }
.place-main img, .place-small img { width: 100%; height: 100%; object-fit: cover; }
.place-text { grid-column: 9 / span 4; display: grid; gap: var(--space-lg); }
.place-small { margin: var(--space-lg) 0 0; aspect-ratio: 4 / 5; width: 70%; border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); }

/* footer */
.foot { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--space-3xl) var(--space-xl); }
.foot a { color: var(--color-ink); }
.foot a:hover { color: var(--color-gold-deep); }
.foot-mast { display: flex; align-items: center; gap: var(--space-lg); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--color-rule); }

.foot-word { width: min(520px, 100%); height: auto; filter: none; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); padding-block: var(--space-2xl); }
.foot-cols div { display: grid; gap: var(--space-xs); align-content: start; justify-items: start; }
.foot-h { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); margin-bottom: var(--space-xs); }
.foot p { color: var(--color-ink); }
.legal { font-size: var(--text-sm); color: var(--color-muted) !important; }

/* tablet and phone: separate composition */
@media (max-width: 60rem) {
  .nav-links { display: none; }
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .hero-grid { min-height: 0; row-gap: var(--space-xl); }
  .hero-text { padding-bottom: 0; }
  .hero-text, .hero-media { grid-column: 1 / -1; }
  .hero-media { height: auto; min-height: 0; aspect-ratio: 4 / 4.4; }
  .plane-back { inset: 0 0 0 14%; }
  .plane-front { width: 40%; bottom: -4%; }
  .day-stage { display: none; }
  .slots { grid-column: 1 / -1; }
  .slot { min-height: 0; opacity: 1; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding-block: var(--space-xl); }
  .slot-m { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 520px; object-fit: cover; border-radius: var(--radius-card); margin-top: var(--space-lg); background: var(--color-ink); }
  .place-main, .place-text { grid-column: 1 / -1; }
  .place-main { aspect-ratio: 4 / 4.6; }
  .place-text { margin-top: var(--space-xl); }
  .place-small { display: none; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  :root { --nav-h: 64px; }
  .wordmark-img { height: 44px; width: auto; }
    .nav-in { gap: var(--space-xs); }
  .rail { grid-auto-columns: 72%; gap: var(--space-md); }
  .actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-m, .slot { transition: none; }
  .pick-n { transition: none; }
}

.btn-lg { min-height: 52px; padding-inline: var(--space-xl); font-size: 1.15rem; }

/* hero mark plane */
.plane-mark { position: absolute; z-index: 3; top: 3%; left: 0; width: 18%; height: auto; pointer-events: none; }
.plane-back { inset: 0 0 0 26% !important; }
.plane-back { z-index: 1; }
.plane-front { z-index: 2; }
h1 { letter-spacing: -0.02em; line-height: 1.02; max-width: 14ch; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 60.01rem) {
    .plane-mark { animation: drift-mark linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes drift-mark { to { transform: translateY(18%); } }
  }
}

/* birthdays and live music band */
.fest { background: var(--color-field); color: var(--color-on-field); padding-block: var(--section-gap-s); }
.fest-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
.fest-text { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); justify-items: start; }
.fest-big { font-size: var(--text-display); line-height: 1; max-width: 12ch; color: var(--color-on-field); }
.fest-big { color: var(--color-gold); }
.fest p { color: var(--color-on-field-muted); max-width: 48ch; }
.fest .actions { align-items: center; gap: var(--space-lg); }
.fest .text-link { color: var(--color-on-field); }
.fest .text-link:hover { color: var(--color-gold); }
.fest :focus-visible { outline-color: var(--color-gold); }
.fest-media { grid-column: 8 / span 5; margin: 0; aspect-ratio: 9 / 13; max-height: 640px; width: 100%; justify-self: end; border-radius: var(--radius-frame); overflow: hidden; background: var(--color-ink-2); }
.fest-media video { width: 100%; height: 100%; object-fit: cover; }
.btn-gold { background: transparent; border-color: var(--color-gold); color: var(--color-gold); }
.btn-gold:hover { background: var(--color-on-field); border-color: var(--color-on-field); color: var(--color-ink); }
@media (max-width: 60rem) {
  .fest-text, .fest-media { grid-column: 1 / -1; }
  .fest-media { margin-top: var(--space-xl); aspect-ratio: 4 / 5; justify-self: stretch; }
  .plane-mark { width: 17%; top: 4%; left: 1%; }
}
