/* Dy Filxhanë - Qielli. The background is the sky over Shkodër at this minute; everything floats on glass. */

:root {
  /* Midday, so a page without script still has a sky. script.js overwrites these every minute. */
  --sky-top: #3C8DE2;
  --sky-mid: #8EC4F4;
  --sky-low: #DCEFFD;
  --glow: #FFFFFF;
  --glow-a: .55;
  --stars: 0;
  --clouds: .95;
  --sun-x: 50%;
  --sun-y: 18%;

  --display: 'Gabarito', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --r-lg: 34px;
  --r-md: 24px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* Two modes, one per ink. Every line of small text sits on glass of its mode. */
body, body[data-mode="day"] {
  --ink: #16223F;
  --soft: #33405F;
  --glass: rgba(255, 255, 255, .58);
  --glass-solid: rgba(255, 255, 255, .9);
  --edge: rgba(255, 255, 255, .7);
  --line: rgba(22, 34, 63, .16);
  --solid-bg: #16223F;
  --solid-ink: #FFFFFF;
  --shadow: 0 24px 60px -24px rgba(22, 34, 80, .35);
}
body[data-mode="night"] {
  --cloud: rgba(150, 140, 200, .5);
  --ink: #F6F4FF;
  --soft: #E4E1F8;
  --glass: rgba(14, 18, 50, .6);
  --glass-solid: rgba(14, 18, 50, .9);
  --edge: rgba(255, 255, 255, .16);
  --line: rgba(246, 244, 255, .18);
  --solid-bg: #F6F4FF;
  --solid-ink: #16223F;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--sky-mid);
  color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: color 1.2s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* ---------- the sky ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 60%, var(--sky-low) 100%);
}
.sky-glow {
  position: absolute; left: var(--sun-x); top: var(--sun-y);
  width: 70vmax; height: 70vmax; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  opacity: var(--glow-a); filter: blur(10px);
}
.sky-body {
  position: absolute; left: var(--sun-x); top: var(--sun-y); translate: -50% -50%;
  width: clamp(200px, 20vw, 320px); aspect-ratio: 1; border-radius: 50%; opacity: var(--body-a, 1);
  background: radial-gradient(circle, #FFFEF6 0 17%, rgba(255, 250, 228, .85) 21%, rgba(255, 244, 210, .35) 34%, rgba(255, 240, 200, 0) 68%);
}
body[data-body="moon"] .sky-body {
  width: clamp(44px, 4vw, 64px);
  background: radial-gradient(circle at 62% 40%, transparent 0 46%, #F2F0FF 47% 100%);
  -webkit-mask: radial-gradient(circle, #000 69%, transparent 71%); mask: radial-gradient(circle, #000 69%, transparent 71%);
  filter: drop-shadow(0 0 18px rgba(220, 220, 255, .6));
  opacity: calc(var(--body-a, 1) * .92);
}
.sky-stars { position: absolute; inset: 0 0 35% 0; opacity: var(--stars); }
.sky-stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .8);
  animation: twinkle var(--t, 5s) ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.sky-clouds { position: absolute; inset: 0; opacity: var(--clouds); translate: 0 calc(var(--scroll, 0) * -0.06px); }
.cloud {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(closest-side, var(--cloud, rgba(255, 255, 255, .95)), transparent);
  filter: blur(18px);
  animation: drift var(--d, 90s) linear infinite;
}
.c1 { width: 46vw; height: 14vw; top: 12%; left: -10%; --d: 140s; }
.c2 { width: 34vw; height: 10vw; top: 34%; left: 55%; --d: 170s; animation-delay: -60s; }
.c3 { width: 60vw; height: 18vw; top: 70%; left: 20%; --d: 200s; animation-delay: -120s; }
.c4 { width: 28vw; height: 9vw; top: 52%; left: -5%; --d: 120s; animation-delay: -30s; }
.c5 { width: 40vw; height: 12vw; top: 88%; left: 60%; --d: 180s; animation-delay: -90s; }
@keyframes drift { from { translate: -20vw 0; } to { translate: 30vw 0; } }

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
          backdrop-filter: blur(22px) saturate(1.35);
  transition: background-color 1.2s var(--ease), border-color 1.2s var(--ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 30; top: 14px; left: 50%; translate: -50% 0;
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
}
.nav-mark { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; transition: background-color .2s; }
.nav-links a:hover { background: var(--line); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--line); }
.lang button {
  font: 600 13px/1 var(--body); letter-spacing: .04em; color: var(--ink);
  background: none; border: 0; border-radius: 999px; padding: 9px 13px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--solid-bg); color: var(--solid-ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: 120px var(--gutter) 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.kicker {
  margin: 0 0 22px; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.hero-name {
  position: relative; z-index: 2; margin: 0;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(64px, 11.5vw, 196px); line-height: .92; letter-spacing: -.045em;
  text-wrap: balance;
  /* A faint halo in the sky's own colour, so a passing cloud never takes the name below 3:1. */
  text-shadow: 0 0 28px color-mix(in srgb, var(--sky-top) 55%, transparent);
}
.now {
  position: relative; z-index: 3; margin-top: clamp(32px, 4vw, 52px);
  width: min(100%, 760px); padding: 26px 28px; border-radius: var(--r-lg); text-align: left;
}
.now-tagline {
  margin: 0 0 20px; font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 1.8vw, 25px); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance;
}
.now-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: 15px; }
.status-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--soft); flex: none; }
.is-open .status-dot { background: #2FB67C; }
.status-dot::after { display: none; }
.is-open .status-dot::after { display: block; content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #2FB67C; animation: ring 2.6s var(--ease) infinite; }
.is-closed .status-dot { background: #E0706A; }
.is-closed .status-dot::after { border-color: #E0706A; animation: none; opacity: 0; }
@keyframes ring { from { scale: .6; opacity: 1; } to { scale: 1.9; opacity: 0; } }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .25s var(--ease), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--solid-bg); color: var(--solid-ink); }
.btn-glass { background: var(--line); color: var(--ink); }

.sky-note { display: none; }
.js .sky-note {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  margin: 22px 0 0; font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sky-note-dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--glow) 70%); box-shadow: 0 0 10px var(--glow); }

/* floating photos */
.float { position: absolute; z-index: 1; margin: 0; width: clamp(150px, 15vw, 230px); animation: bob 9s ease-in-out infinite; }
.float img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 48% 52% 46% 54% / 54% 46% 54% 46%;
  box-shadow: 0 30px 60px -20px rgba(20, 24, 60, .45);
}
.float figcaption {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: max-content; padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; text-align: center; white-space: nowrap;
}
.float-a { left: 6%; top: 19%; rotate: -5deg; }
.float-b { right: 6%; top: 47%; rotate: 6deg; animation-delay: -4.5s; width: clamp(130px, 13vw, 200px); }
@keyframes bob { 50% { translate: 0 -14px; } }

/* ---------- sections ---------- */
.label {
  margin: 0 0 22px; font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--soft);
}
.label-free { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); }

.about { padding: 40px var(--gutter) 64px; }
.about-card {
  max-width: var(--max); margin: 0 auto; padding: clamp(32px, 5vw, 72px); border-radius: var(--r-lg);
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(32px, 5vw, 80px); align-items: end;
}
.about-card .label { grid-column: 1 / -1; }
.about-lead {
  margin: 0; max-width: 24ch; font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-end; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--line); font-weight: 500; font-size: 15px; }

.gallery { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 72px; }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.photo { position: relative; margin: 0; }
.photo:nth-child(even) { margin-top: 48px; }
.photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -28px rgba(20, 24, 60, .5);
  transition: transform .6s var(--ease);
}
.photo:hover img { transform: translateY(-6px); }
.photo figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 6px 11px; border-radius: 14px;
  font-size: 11.5px; font-weight: 500; line-height: 1.35;
}
/* On a photo the backing is the photo, not the sky, so the credit gets a fixed dark scrim in every phase. */
.photo figcaption.glass { background: rgba(14, 18, 40, .72); border-color: rgba(255, 255, 255, .14); color: #FFFFFF; }

.info {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 64px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: start;
}
.card { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); min-width: 0; }
#orari { grid-column: span 4; }
.card-rating { grid-column: span 3; }
.card-where { grid-column: span 5; }
.week { width: 100%; border-collapse: collapse; font-size: 16px; }
.week th, .week td { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.week tr:last-child th, .week tr:last-child td { border-bottom: 0; }
.week th { text-align: left; }
.week td { text-align: right; font-variant-numeric: tabular-nums; }
.week tr.is-today th, .week tr.is-today td { font-weight: 600; }
.week tr.is-today th span::after {
  content: attr(data-today); margin-left: 10px; padding: 3px 9px; border-radius: 99px;
  background: var(--solid-bg); color: var(--solid-ink); font-size: 12px; font-weight: 600; vertical-align: 1px;
}
.score { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.score-num { font-family: var(--display); font-weight: 500; font-size: clamp(64px, 6vw, 92px); line-height: .9; letter-spacing: -.04em; }
.score-of { font-size: 18px; font-weight: 500; color: var(--soft); }
.score-count { margin: 6px 0 20px; color: var(--soft); font-weight: 500; }
.bars { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 12px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.bars i { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bars i::before {
  content: ''; display: block; height: 100%; width: calc(var(--n) * 100%); min-width: 4px; border-radius: inherit; background: var(--ink);
  transform-origin: left; transition: transform 1.2s var(--ease);
}
.js .card-rating:not(.is-seen) .bars i::before { transform: scaleX(0); }
.bars b { font-weight: 500; text-align: right; color: var(--soft); }
.text-link { font-weight: 600; font-size: 15px; text-underline-offset: 5px; }
.addr { font-style: normal; margin: 0 0 20px; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.map { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; margin-bottom: 20px; background: var(--line); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.foot { padding: 24px var(--gutter) 40px; }
.foot-card { max-width: var(--max); margin: 0 auto; padding: 28px 32px; border-radius: var(--r-lg); font-size: 14px; }
.foot-card p { margin: 0 0 4px; }
.foot-mark { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin-bottom: 10px !important; }

.dock { display: none; }

/* ---------- arrival ---------- */
.js .hero-name { opacity: 0; translate: 0 24px; filter: blur(10px); }
.js .is-ready .hero-name { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity 1.2s var(--ease), translate 1.4s var(--ease), filter 1.2s var(--ease); }
.js .now, .js .kicker, .js .sky-note { opacity: 0; translate: 0 18px; }
.js .is-ready .now, .js .is-ready .kicker, .js .is-ready .sky-note { opacity: 1; translate: 0 0; transition: opacity 1s var(--ease) .35s, translate 1.2s var(--ease) .35s; }
.js .float img { opacity: 0; scale: .9; }
.js .is-ready .float img { opacity: 1; scale: 1; transition: opacity 1.4s var(--ease) .5s, scale 1.6s var(--ease) .5s; }
.js .rise { opacity: 0; translate: 0 30px; }
.js .rise.is-in { opacity: 1; translate: 0 0; transition: opacity 1s var(--ease), translate 1.2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-name, .js .now, .js .kicker, .js .sky-note, .js .float img, .js .rise { opacity: 1; translate: none; scale: none; filter: none; }
  .sky-clouds { translate: none; }
  .js .card-rating:not(.is-seen) .bars i::before { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .float-a { left: 3%; top: 15%; }
  .float-b { right: 3%; top: 13%; }
  .float-a figcaption { left: 0; translate: none; }
  .float-b figcaption { left: auto; right: 0; translate: none; }
  #orari { grid-column: span 6; }
  .card-rating { grid-column: span 6; }
  .card-where { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  body { padding-bottom: 84px; }
  .nav { padding-left: 18px; }
  .nav-links { display: none; }
  .hero { min-height: 0; padding-top: 104px; padding-bottom: 32px; }
  .hero-name { font-size: clamp(56px, 17vw, 120px); }
  .float { position: relative; left: auto; right: auto; top: auto; }
  .float-a { order: 3; margin: 30px 0 48px; width: min(56vw, 240px); rotate: -4deg; }
  .float-a figcaption { left: 50%; translate: -50% 0; }
  .float-b { display: none; }
  .kicker { order: 1; } .hero-name { order: 2; } .now { order: 4; } .sky-note { order: 5; }
  .now { padding: 22px 20px; }
  .now-row { flex-direction: column; align-items: stretch; }
  .now-row .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .photos {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; gap: 12px;
  }
  .photos::-webkit-scrollbar { display: none; }
  .photo { flex: 0 0 72%; scroll-snap-align: center; }
  .photo:nth-child(even) { margin-top: 0; }
  #orari, .card-rating, .card-where { grid-column: 1 / -1; }
  .about-card { grid-template-columns: minmax(0, 1fr); }
  .chips { margin-top: 28px; }
  .dock {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; border-radius: 999px;
    translate: 0 calc(100% + 24px); transition: translate .45s var(--ease);
  }
  .dock.is-shown { translate: 0 0; }
  .dock a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; }
  .dock a:first-child { background: var(--solid-bg); color: var(--solid-ink); }
}
