/* Dy Filxhanë - pop. The page is a café table covered in stickers, and every sticker is a fact. */

:root {
  --cherry: #C81E30;
  --cherry-deep: #A8172A;
  --lemon: #FFE14A;
  --sky: #9BD7FF;
  --milk: #FFF4E2;
  --paper: #FFFDF8;
  --ink: #1A1210;

  --script: 'Shrikhand', Georgia, serif;
  --sans: 'Onest', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --line: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--milk); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main, .foot { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .foot :focus-visible { outline-color: var(--lemon); }

/* ---------- nav ---------- */
.nav {
  position: absolute; z-index: 30; top: 16px; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: var(--milk); border: var(--line); box-shadow: var(--shadow);
}
.nav-mark { font-family: var(--script); font-size: 21px; text-decoration: none; color: var(--cherry); line-height: 1; padding-top: 4px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.nav-links a:hover { background: var(--lemon); }
.lang { display: flex; gap: 2px; background: var(--ink); border-radius: 999px; padding: 4px; }
.lang button {
  font: 500 13px/1 var(--mono); color: var(--milk); background: none; border: 0;
  border-radius: 999px; padding: 9px 13px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--lemon); color: var(--ink); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px;
  border: var(--line); border-radius: 999px; box-shadow: var(--shadow);
  font-weight: 800; font-size: 17px; text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-lemon { background: var(--lemon); }
.btn-milk { background: var(--milk); }
.btn-ink { background: var(--ink); color: var(--lemon); box-shadow: 5px 5px 0 var(--paper); }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--cherry); color: var(--milk);
  padding: 140px var(--gutter) 120px;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; min-height: max(100svh, 760px);
  overflow: hidden;
}
.hero::before {
  /* sun rays from behind the table */
  content: ''; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 72% 52%, rgba(255, 255, 255, .07) 0 6deg, transparent 6deg 18deg);
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: var(--lemon);
  font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.hero-name {
  margin: 0 0 28px; font-family: var(--script); font-weight: 400;
  font-size: clamp(64px, 10vw, 168px); line-height: .92; letter-spacing: -.01em;
  color: var(--milk); text-shadow: .045em .045em 0 var(--ink);
}
.hero-name span { display: block; white-space: nowrap; width: max-content; }
.hero-name span:first-child { margin-left: .06em; }
.hero-tagline { margin: 0 0 32px; max-width: 30ch; font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; line-height: 1.35; }

/* the table: a polaroid and the stickers on it */
.table { position: relative; width: min(100%, 520px); aspect-ratio: 1 / 1.08; justify-self: center; }
.polaroid {
  position: absolute; inset: 9% 7% 7% 9%; margin: 0; rotate: 4deg;
  background: var(--paper); padding: 4.5% 4.5% 16%; border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .1), 0 28px 50px rgba(60, 0, 8, .45);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 4.5%; text-align: center;
  font-family: var(--mono); font-size: 11.5px; color: #6B5F57;
}
.polaroid::before {
  /* tape */
  content: ''; position: absolute; top: -18px; left: 50%; width: 34%; height: 38px; translate: -50% 0; rotate: -3deg;
  background: rgba(255, 245, 200, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.sticker {
  position: absolute; left: calc(var(--x, 0) * 1%); top: calc(var(--y, 0) * 1%); rotate: var(--r, 0deg);
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  filter: drop-shadow(0 6px 0 rgba(26, 18, 16, .9));
  transition: filter .2s, scale .2s;
}
.sticker:hover { scale: 1.04; }
.sticker.is-dragging { cursor: grabbing; scale: 1.1; filter: drop-shadow(0 18px 14px rgba(26, 18, 16, .45)); transition: none; }
.sticker p { margin: 0; }

.burst { display: block; width: 100%; height: 100%; overflow: visible; }
.burst path { fill: var(--lemon); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.sticker-status { width: clamp(150px, 15vw, 196px); aspect-ratio: 1; }
.sticker-status .burst { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.sticker-status .status {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--ink); padding: 18%;
}
.status-big { font-family: var(--script); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1; white-space: nowrap; }
.status-small { font-family: var(--mono); font-size: 13px; margin-top: 6px; }
.is-closed .sticker-status .burst path { fill: var(--sky); }
@keyframes spin { to { rotate: 360deg; } }

.sticker-rating p {
  width: clamp(124px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sky); color: var(--ink); border: var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; font-weight: 700; line-height: 1.2;
}
.sticker-rating b { font-family: var(--script); font-weight: 400; font-size: clamp(38px, 3.6vw, 48px); line-height: .9; }
.sticker-rating .stars { color: var(--cherry); letter-spacing: 1px; font-size: 14px; margin: 4px 0 2px; }

.sticker-tag p {
  padding: 10px 18px; border: var(--line); border-radius: 999px; white-space: nowrap;
  font-weight: 800; font-size: 16px;
}
.sticker-wifi p { background: var(--milk); color: var(--ink); }
.sticker-out p { background: var(--ink); color: var(--lemon); }

.drag-hint {
  position: absolute; right: -2%; bottom: -9%; margin: 0; rotate: -4deg;
  font-family: var(--mono); font-size: 13px; color: var(--milk); opacity: .9;
}
.drag-hint::before { content: '↖ '; }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 5; margin: -38px -20px 0; rotate: -2deg;
  background: var(--ink); color: var(--lemon); border-block: 3px solid var(--ink);
  overflow: hidden; padding: 16px 0;
}
.marquee-track { display: flex; width: max-content; gap: 28px; align-items: center; will-change: transform; }
.marquee span { font-family: var(--script); font-size: clamp(26px, 3vw, 40px); white-space: nowrap; line-height: 1.2; }
.marquee i { font-style: normal; color: var(--cherry); font-size: 28px; }

/* ---------- labels ---------- */
.tag-label {
  display: inline-block; margin: 0 0 28px; padding: 7px 16px; border: var(--line); border-radius: 999px;
  background: var(--paper); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  rotate: -2deg;
}

/* ---------- about ---------- */
.about { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 12vw, 170px) var(--gutter) clamp(64px, 8vw, 110px); }
.about-lead {
  margin: 0; font-weight: 800; font-size: clamp(32px, 4.6vw, 66px); line-height: 1.12; letter-spacing: -.03em;
}
.inline-pic {
  display: inline-block; height: .92em; width: 1.7em; object-fit: cover; vertical-align: -.12em;
  border-radius: 999px; border: var(--line); margin: 0 .08em;
  transition: rotate .3s, scale .3s;
}
.inline-pic:nth-of-type(1) { rotate: -6deg; }
.inline-pic:nth-of-type(2) { rotate: 5deg; }
.inline-pic:hover { rotate: 0deg; scale: 1.15; }
.chips { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  padding: 10px 18px; border: var(--line); border-radius: 999px; background: var(--paper);
  font-weight: 700; font-size: 15px;
}
.inline-note { margin: 20px 0 0; font-family: var(--mono); font-size: 12px; color: #6B5F57; }
.chips li:nth-child(3n+1) { background: var(--lemon); }
.chips li:nth-child(3n+2) { background: var(--sky); }

/* ---------- gallery ---------- */
.gallery { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 11vw, 150px); }
.snaps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.snap {
  margin: 0; background: var(--paper); padding: 12px 12px 0; border: var(--line); border-radius: 6px;
  box-shadow: var(--shadow); rotate: var(--r); transition: rotate .3s, translate .3s;
}
.snap:nth-child(even) { translate: 0 28px; }
.snap:hover { rotate: 0deg; translate: 0 -6px; }
.snap img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.snap figcaption {
  padding: 10px 2px 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.35; color: #6B5F57;
}

/* ---------- rating ---------- */
.rating { background: var(--sky); border-block: var(--line); padding: clamp(80px, 10vw, 140px) var(--gutter); }
.rating > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.rating .tag-label { display: table; margin-left: 0; }
.rating-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rating-burst { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; }
.rating-burst .burst { position: absolute; inset: 0; animation: spin 40s linear infinite; filter: drop-shadow(8px 8px 0 var(--ink)); }
.rating-burst .burst path { stroke-width: 2.5; }
.rating-burst p {
  position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.rating-burst b { font-family: var(--script); font-weight: 400; font-size: clamp(88px, 10vw, 150px); line-height: .9; }
.rating-burst span { font-family: var(--mono); font-size: 18px; margin-top: 4px; }
.rating-count { margin: 0 0 24px; font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.bars { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 34px 1fr 44px; gap: 14px; align-items: center; font-family: var(--mono); font-size: 14px; }
.bars i { display: block; height: 18px; border: var(--line); border-radius: 99px; background: var(--paper); overflow: hidden; }
.bars i::before {
  content: ''; display: block; height: 100%; width: calc(var(--n) * 100%); min-width: 6px;
  background: var(--cherry); border-right: var(--line);
  transform-origin: left; transition: transform 1.1s cubic-bezier(.3, 1.4, .5, 1);
}
.js .rating:not(.is-seen) .bars i::before { transform: scaleX(0); }
.bars b { font-weight: 500; text-align: right; }

/* ---------- visit ---------- */
.visit {
  background: var(--lemon); padding: clamp(80px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start;
}
.visit > * { min-width: 0; }
.receipt {
  --zig: 14px;
  position: relative; background: var(--paper); color: var(--ink);
  padding: 44px clamp(22px, 3vw, 36px) 48px;
  font-family: var(--mono); font-size: 15px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zig) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zig) 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zig) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zig) 51% repeat-x;
}
.receipt-wrap { rotate: -1.5deg; filter: drop-shadow(6px 8px 0 var(--ink)); }
.receipt-head { margin: 0 0 18px; text-align: center; font-family: var(--script); font-size: 30px; line-height: 1.1; color: var(--cherry); }
.receipt-head span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.receipt-title {
  margin: 0 0 6px; padding: 10px 0; text-align: center; border-block: 2px dashed var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
}
.week { width: 100%; border-collapse: collapse; }
.week th, .week td { padding: 9px 0; font-weight: 400; }
.week th { text-align: left; }
.week td { text-align: right; font-variant-numeric: tabular-nums; }
.week tr.is-today th span, .week tr.is-today td span {
  background: linear-gradient(transparent 12%, var(--lemon) 12%, var(--lemon) 88%, transparent 88%);
  font-weight: 500;
}
.week tr.is-today th span { padding: 0 6px; margin-left: -6px; }
.week tr.is-today td span { padding: 0 6px; margin-right: -6px; }
.week tr.is-today th span::after { content: ' ← ' attr(data-today); }
.receipt-total {
  display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; padding: 14px 0 0;
  border-top: 2px dashed var(--ink); font-size: 16px; text-transform: uppercase;
}
.receipt-total b { font-weight: 500; text-align: right; }
.receipt-foot { margin: 22px 0 0; text-align: center; font-size: 13px; }
.receipt-foot::before { content: '* * *'; display: block; margin-bottom: 8px; letter-spacing: .4em; }

.where .tag-label { background: var(--milk); }
.addr { font-style: normal; margin: 0 0 24px; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.025em; }
.map {
  aspect-ratio: 16 / 10; border: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink);
  background: var(--paper); margin-bottom: 32px;
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.foot { background: var(--cherry); color: var(--milk); padding: 72px var(--gutter) 40px; overflow: hidden; }
.foot-mark {
  margin: 0 0 36px; font-family: var(--script); white-space: nowrap; width: max-content;
  font-size: 12vw; line-height: 1; color: var(--milk); text-shadow: .04em .04em 0 var(--ink);
}
.foot-notes p { margin: 0 0 6px; font-size: 14px; max-width: 70ch; }

/* ---------- dock ---------- */
.dock { display: none; }

/* ---------- load: stickers get slapped on ---------- */
.js .polaroid { opacity: 0; translate: 0 40px; rotate: -6deg; }
.js .is-ready .polaroid { opacity: 1; translate: 0 0; rotate: 4deg; transition: opacity .5s, translate .8s cubic-bezier(.2, 1.3, .4, 1), rotate .8s cubic-bezier(.2, 1.3, .4, 1); }
.js .sticker { opacity: 0; scale: 1.8; }
.js .is-ready .sticker:not(.is-dragging) { opacity: 1; scale: 1; transition: opacity .12s var(--d, 0s), scale .45s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s); }
.js .is-ready .sticker:not(.is-dragging):hover { scale: 1.04; transition: scale .2s; }
.js .is-ready .sticker.is-dragging { opacity: 1; scale: 1.1; }
.js .hero-name span { opacity: 0; translate: 0 .3em; }
.js .is-ready .hero-name span { opacity: 1; translate: 0 0; transition: opacity .5s, translate .7s cubic-bezier(.2, 1.3, .4, 1); }
.js .is-ready .hero-name span:last-child { transition-delay: .1s; }

/* scroll: things get slapped onto the page as they arrive */
.js .slap { opacity: 0; scale: 1.25; }
.js .slap.is-in { opacity: 1; scale: 1; transition: opacity .15s var(--d, 0s), scale .5s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  .js .slap { opacity: 1; scale: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .polaroid, .js .sticker, .js .hero-name span { opacity: 1; translate: none; scale: none; }
  .js .polaroid { rotate: 4deg; }
  .js .rating:not(.is-seen) .bars i::before { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  body { padding-bottom: 80px; }
  .nav { padding-left: 18px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 112px; padding-bottom: 100px; min-height: 0; }
  .hero-text { display: contents; }
  .hero-kicker { justify-self: start; margin-bottom: 0; }
  .hero-name { margin-bottom: 0; }
  .table { width: min(78%, 400px); margin: 20px 0 40px; justify-self: center; }
  .hero-tagline { margin-bottom: 4px; }
  .hero > .hero-text > :nth-child(1) { order: 1; }
  .hero-name { order: 2; }
  .table { order: 3; }
  .hero-tagline { order: 4; }
  .hero-actions { order: 5; }
  .drag-hint { right: auto; left: 50%; translate: -50% 0; bottom: -14%; white-space: nowrap; }
  .sticker-status { width: 132px; }
  .sticker-rating p { width: 112px; }
  .sticker-rating b { font-size: 36px; }
  .sticker-tag p { font-size: 14px; padding: 8px 14px; }
  .snaps {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 40px;
  }
  .snaps::-webkit-scrollbar { display: none; }
  .snap { flex: 0 0 72%; scroll-snap-align: center; }
  .snap:nth-child(even) { translate: 0 12px; }
  .rating-grid, .visit { grid-template-columns: minmax(0, 1fr); }
  .rating-burst { width: min(86%, 360px); }
  .dock {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    background: var(--milk); border: var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow);
    translate: 0 calc(100% + 24px); transition: translate .35s cubic-bezier(.3, 1.4, .5, 1);
  }
  .dock.is-shown { translate: 0 0; }
  .dock a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; }
  .dock a:first-child { background: var(--cherry); color: var(--milk); }
}
