/* Qilimi - the woven page.
   The kilim is the only loud thing: it owns the hero and the bands between sections.
   Everything that has to be read sits on a solid ground of one of its own colours.
   Unbounded carries the name and the big numbers, Figtree the reading. */

:root {
  --wool: #FBF6EC;
  --ink: #1A1B3A;
  --slate: #4A4B63;
  --red: #C4202B;
  --red-deep: #9E1822;
  --indigo: #1F2668;
  --indigo-deep: #161B4E;
  --saffron: #F2B01E;
  --leaf: #2F9B4F;
  --leaf-ink: #1F6E37;
  --black: #16131D;
  --pink: #F07FA6;
  --on-indigo: #D9DCF7;
  --on-red: #FFE3E0;

  --display: 'Unbounded', ui-sans-serif, system-ui, sans-serif;
  --text: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wool); color: var(--ink);
  font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* on the dark and red grounds the outline turns saffron; inside the wool composer it is ink again */
.nav :focus-visible, .services :focus-visible, .book :focus-visible, .foot :focus-visible, .dock :focus-visible { outline-color: var(--saffron); }
.book .composer :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--black); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
  background: var(--indigo); color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 700 17px/1 var(--display); letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; shape-rendering: crispEdges; }
.brand svg path { fill: var(--wool); }
.brand svg path.c { fill: var(--saffron); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--on-indigo); }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.lang { display: inline-flex; border: 2px solid rgba(255,255,255,.35); }
.lang button { min-width: 42px; height: 32px; border: 0; background: transparent; color: var(--on-indigo); font-weight: 700; font-size: 13px; letter-spacing: .06em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--wool); color: var(--indigo); }

/* ── hero ────────────────────────────────────────── */
.hero { position: relative; background: var(--black); overflow: hidden; }
.loom { position: absolute; left: 0; top: 0; display: block; }
.win { position: absolute; margin: 0; opacity: 1; transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1); }
.win img { width: 100%; height: 100%; object-fit: cover; }
.win-b img { object-position: 50% 62%; }
.cartouche {
  position: absolute; z-index: 2; background: var(--wool); color: var(--ink);
  padding: 40px 44px 40px;
  transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1);
}
.js .hero:not(.woven) .win, .js .hero:not(.woven) .cartouche { opacity: 0; transform: translateY(10px); }
.js .hero .win.in, .js .hero .cartouche.in { opacity: 1; transform: none; }
.kicker { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.name {
  margin: 14px 0 16px; font: 800 clamp(48px, 5.4vw, 84px)/.95 var(--display);
  letter-spacing: -0.035em; color: var(--ink); text-wrap: balance;
}
.tagline { font-size: 19px; line-height: 1.45; color: var(--slate); max-width: 26em; text-wrap: pretty; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px 8px 12px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
}
.status i { width: 10px; height: 10px; flex: none; background: #4BD27E; }
.status.closed i { background: var(--pink); }
.status.pause i { background: var(--saffron); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-credit {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  height: var(--border, 40px); padding: 0 12px; font-size: 12px; color: var(--wool); text-align: center; pointer-events: none;
}
.hero-credit::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: min(520px, 90%); height: 22px; transform: translate(-50%, -50%); background: var(--black); z-index: -1; }

/* ── buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background-color .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--black); }
.btn:active { transform: none; box-shadow: none; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-indigo { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-wa { background: #25D366; color: var(--black); border-color: var(--black); }
.btn-ink-line { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ── bands ───────────────────────────────────────── */
.band { line-height: 0; background: var(--black); }
.band canvas { display: block; width: 100%; }

/* ── shared section bits ─────────────────────────── */
section:not(.hero) { padding: 104px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font: 700 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: currentColor; }

/* ── about ───────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: start; }
.about-lead { font: 700 clamp(30px, 3.5vw, 50px)/1.08 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.about-text { margin-top: 26px; font-size: 18px; color: var(--slate); max-width: 34em; text-wrap: pretty; }
.tags { display: grid; gap: 26px; padding-top: 38px; }
.tag-group h3 { margin-bottom: 10px; font: 700 14px/1.2 var(--text); letter-spacing: .04em; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 13px; font-weight: 600; font-size: 15px; line-height: 1.2;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px);
}
.chips-red li { background: var(--red); color: #fff; }
.chips-indigo li { background: var(--indigo); color: #fff; }
.chips-leaf li { background: var(--leaf-ink); color: #fff; }

/* ── lunch & dinner ──────────────────────────────── */
.services { background: var(--indigo); color: #fff; }
.services .eyebrow { color: var(--saffron); }
.services-lead { font: 700 clamp(28px, 3.4vw, 46px)/1.1 var(--display); letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
.services-lead em { font-style: normal; color: var(--saffron); }
.today { margin-top: 44px; }
.today-cells { display: grid; grid-template-columns: repeat(48, 1fr); gap: 3px; }
.today-cells i { aspect-ratio: 1 / 1.6; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(217,220,247,.28); }
.today-cells i.open { background: var(--saffron); box-shadow: none; }
.today-cells i.spill { background: #C98F12; box-shadow: none; }
.today-cells i.now { background: var(--wool); box-shadow: 0 0 0 3px var(--pink); position: relative; z-index: 1; }
.js .today-cells i.now { animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { background: var(--pink); } }
.today-axis { display: flex; justify-content: space-between; margin-top: 10px; font: 500 13px/1 var(--text); font-variant-numeric: tabular-nums; color: var(--on-indigo); }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.service { position: relative; padding: 30px 28px 28px; background: var(--indigo-deep); border-top: 8px solid var(--red); transition: background-color .3s; }
.service h3 { font: 700 20px/1.2 var(--display); letter-spacing: -0.01em; }
.service-time { margin-top: 16px; font: 800 clamp(26px, 2.5vw, 36px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-time span { margin: 0 .12em; color: var(--saffron); }
.service-days { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--on-indigo); }
.service.now { background: var(--saffron); color: var(--ink); border-top-color: var(--black); }
.service.now .service-time span { color: var(--red); }
.service.now .service-days { color: var(--ink); }
.service.now::after {
  content: attr(data-now); position: absolute; top: -8px; right: 0; padding: 6px 10px;
  background: var(--black); color: var(--wool); font: 700 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase;
}

/* ── gallery ─────────────────────────────────────── */
.gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 18px; }
.g { display: flex; flex-direction: column; min-width: 0; }
.g-img { flex: 1; min-height: 0; background: var(--black); }
.g-img img { width: 100%; height: 100%; object-fit: cover; }
.g figcaption { margin-top: 8px; font-size: 12.5px; color: var(--slate); }
.g:nth-child(1) { grid-column: 1 / span 2; grid-row: span 3; }
.g:nth-child(2) { grid-column: 3 / span 2; grid-row: span 4; }
.g:nth-child(3) { grid-column: 5 / span 2; grid-row: span 2; }
.g:nth-child(4) { grid-column: 5 / span 2; grid-row: span 3; }
.g:nth-child(5) { grid-column: 1 / span 2; grid-row: span 2; }
.g:nth-child(6) { grid-column: 3 / span 2; grid-row: span 1; }
.g-dia .g-img { border: 0; }

/* ── rating ──────────────────────────────────────── */
.rating { background: var(--saffron); color: var(--ink); }
.rating .eyebrow { color: var(--ink); }
.rating-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.score { font: 800 clamp(110px, 13vw, 190px)/.85 var(--display); letter-spacing: -0.06em; }
.score span { font-size: .28em; letter-spacing: -0.02em; margin-left: .1em; }
.score-of { margin-top: 18px; font-weight: 700; font-size: 19px; }
.link { display: inline-block; margin-top: 10px; font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hist { display: grid; gap: 12px; }
.hist li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 52px; align-items: center; gap: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hist .cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.hist .cells i { aspect-ratio: 1; box-shadow: inset 0 0 0 1.5px rgba(26,27,58,.3); }
.hist .cells i.on { background: var(--red); box-shadow: none; }
.hist .cells i.part { background: linear-gradient(90deg, var(--red) var(--p), transparent var(--p)); }
.hist b { text-align: right; font-weight: 700; }

/* ── book ────────────────────────────────────────── */
.book { background: var(--red); color: #fff; }
.eyebrow-on-red { color: var(--wool); }
.book-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.book-lead { font: 700 clamp(24px, 2.5vw, 34px)/1.15 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.book-note { margin-top: 22px; font-size: 16.5px; color: var(--on-red); max-width: 30em; }
.composer {
  background: var(--wool); color: var(--ink); padding: 30px; border: 3px solid var(--black);
  box-shadow: 10px 10px 0 var(--saffron), 10px 10px 0 3px var(--black);
}
.field + .field { margin-top: 22px; }
.field-label { margin-bottom: 10px; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button {
  min-height: 44px; padding: 6px 14px; border: 2px solid var(--ink); background: transparent;
  font-weight: 700; font-size: 15px; line-height: 1.15; cursor: pointer; text-align: center;
}
.pick button small { display: block; font-weight: 500; font-size: 12px; color: var(--slate); }
.pick button[aria-checked="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.pick button[aria-checked="true"] small { color: var(--on-indigo); }
.pick button:disabled { border-color: rgba(26,27,58,.25); color: rgba(26,27,58,.5); cursor: not-allowed; text-decoration: line-through; }
.pick button:disabled small { color: rgba(26,27,58,.5); }
.pick-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pick-days button { min-width: 0; padding: 6px 2px; }
.pick-times button { min-width: 72px; font-variant-numeric: tabular-nums; }
.pick-empty { font-size: 15px; color: var(--slate); }
.stepper { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); }
.stepper button { width: 48px; height: 46px; border: 0; background: transparent; font-size: 22px; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: rgba(26,27,58,.07); }
.stepper button:disabled { color: rgba(26,27,58,.3); cursor: not-allowed; }
.stepper output { display: grid; place-items: center; min-width: 54px; border-inline: 2px solid var(--ink); font: 800 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.preview { margin-top: 24px; padding: 16px 18px; background: #F1E9D9; font-size: 16px; line-height: 1.5; color: var(--ink); border-left: 6px solid var(--saffron); }
.composer .actions { margin-top: 18px; }

/* ── visit ───────────────────────────────────────── */
.visit-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.week { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.week th, .week td { padding: 14px 12px; text-align: left; font-size: 17px; border-bottom: 2px solid rgba(26,27,58,.12); }
.week th { font-weight: 600; }
.week td { text-align: right; font-weight: 600; }
.week td span + span::before { content: " · "; }
.week th { white-space: nowrap; }
.week tr.today { background: var(--ink); color: #fff; }
.week tr.today th, .week tr.today td { border-bottom-color: var(--ink); }
.week tr.today th::after { content: attr(data-today); margin-left: 10px; padding: 3px 7px; background: var(--saffron); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.addr { font-style: normal; font: 700 22px/1.35 var(--display); letter-spacing: -0.02em; }
.map-frame { margin-top: 22px; padding: 12px; background-color: var(--red); background-size: 24px 24px; }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; background: #e8e2d4; }

/* ── footer ──────────────────────────────────────── */
.foot { background: var(--indigo); color: #fff; padding: 80px 0 0; }
.foot-in { display: grid; gap: 28px; }
.foot-name { font: 800 clamp(64px, 15vw, 230px)/.82 var(--display); letter-spacing: -0.06em; color: var(--wool); white-space: nowrap; overflow: hidden; }
.foot-notes { display: grid; gap: 6px; padding-bottom: 48px; font-size: 14px; color: var(--on-indigo); max-width: 60em; }
.fringe {
  height: 64px; background: var(--wool);
  background-image: repeating-linear-gradient(90deg, var(--indigo) 0 3px, transparent 3px 11px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
          mask-image: linear-gradient(180deg, #000 55%, transparent);
}

/* ── dock (phones) ───────────────────────────────── */
.dock { display: none; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .about-grid, .rating-grid, .book-grid, .visit-grid { grid-template-columns: 1fr; gap: 44px; }
  .service-cards { grid-template-columns: 1fr; gap: 14px; }
  .tags { padding-top: 0; }
}

@media (max-width: 899px) {
  :root { --nav-h: 56px; }
  body { font-size: 16px; padding-bottom: 64px; }
  .nav { padding: 0 16px; gap: 12px; }
  .wrap { padding: 0 20px; }
  section:not(.hero) { padding: 72px 0; }
  .hero { overflow: visible; background: var(--wool); padding-bottom: 8px; }
  .cartouche {
    position: relative; left: auto; top: auto; margin: -48px max(16px, calc(50% - 320px)) 0;
    padding: 28px 22px 24px; border: 3px solid var(--black);
    box-shadow: 0 0 0 6px var(--saffron), 0 0 0 9px var(--black);
  }
  .name { font-size: clamp(42px, 13vw, 56px); margin: 10px 0 12px; }
  .tagline { font-size: 17px; }
  .status { font-size: 14px; }
  .actions .btn { flex: 1 1 auto; }
  .hero-credit { position: static; height: auto; margin: 18px 16px 0; color: var(--slate); font-size: 12px; }
  .hero-credit::before { display: none; }
  .today-cells { gap: 2px; }
  .today-cells i { aspect-ratio: 1 / 2.2; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 110px; gap: 14px; }
  .g:nth-child(n) { grid-column: auto; grid-row: span 2; }
  .g:nth-child(2) { grid-row: span 3; }
  .g:nth-child(3) { grid-row: span 3; }
  .g:nth-child(6) { grid-column: 1 / -1; grid-row: span 2; }
  .composer { padding: 22px 18px; box-shadow: 6px 6px 0 var(--saffron), 6px 6px 0 3px var(--black); }
  .pick-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pick-times button { flex: 1 1 calc(25% - 8px); min-width: 0; padding: 6px 4px; }
  .composer .actions .btn { width: 100%; }
  .week th, .week td { padding: 12px 10px; font-size: 15.5px; vertical-align: top; }
  .week td span { display: block; }
  .week td span + span::before { content: none; }
  .map-frame iframe { height: 260px; }
  .score { font-size: 120px; }
  .hist li { grid-template-columns: 16px minmax(0, 1fr) 40px; gap: 10px; font-size: 15px; }
  .hist .cells { gap: 2px; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--black); border-top: 4px solid var(--saffron);
  }
  .dock a { display: grid; place-items: center; height: 60px; color: var(--wool); text-decoration: none; font-weight: 700; font-size: 14px; }
  .dock a + a { box-shadow: inset 1px 0 0 rgba(251,246,236,.16); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
