/* ==========================================================
   KALLAN GRILLI - kebab & pizza, Kuopio
   World: the backlit lightbox menu boards over the counter.
   Black aluminium frames, warm white light, red number badges,
   sunflower yellow for prices and the call to order, steel counter.
   ========================================================== */
:root {
  --shop: #111111;
  --shop-2: #1B1B1B;
  --frame: #0A0A0A;
  --light: #FFFDF6;
  --light-2: #F7F0DE;
  --red: #E30613;
  --red-deep: #B4040F;
  --yellow: #FFD200;
  --steel: #C9CDD1;
  --steel-2: #9EA4AA;
  --ink: #141414;
  --ink-2: #4A4A4A;

  --narrow: "Archivo Narrow", "Arial Narrow", sans-serif;
  --num: "Anybody", "Archivo", sans-serif;
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(12px, 3vw, 40px);
  --max: 1320px;
  --ring: var(--yellow);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--shop); color: #F2F2F2;
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  caret-color: var(--red); scrollbar-color: var(--yellow) var(--shop);
}
::selection { background: var(--yellow); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
svg { width: 1em; height: 1em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; height: 62px; display: flex; align-items: center; gap: 22px; padding: 0 var(--gutter); background: var(--frame); border-bottom: 2px solid #262626; }
.top__brand { font-family: var(--narrow); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.01em; text-decoration: none; margin-right: auto; }
.top__nav { display: flex; gap: 22px; }
.top__nav a { font-family: var(--narrow); font-weight: 700; font-size: 1.0625rem; text-transform: uppercase; text-decoration: none; color: #BDBDBD; transition: color 0.2s var(--ease); }
.top__nav a:hover { color: #fff; }
.top__hours { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; color: #DADADA; white-space: nowrap; }
.top__dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.top__hours.is-open { color: #fff; }
.top__hours.is-open .top__dot { background: #3BD16F; box-shadow: none; }

/* ---------- the call button: the phone number is the primary action ---------- */
.call {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; min-height: 56px;
  background: var(--yellow); color: var(--ink); text-decoration: none; font-family: var(--num); font-weight: 900; font-stretch: 110%;
  font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -0.01em; border-radius: 4px;
  box-shadow: 0 0 0 3px var(--frame), 0 0 0 5px var(--yellow);
  transition: transform 0.3s var(--ease), background-color 0.2s var(--ease);
}
.call svg { width: 0.9em; height: 0.9em; }
.call small { display: block; font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; font-stretch: 100%; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.call:hover { background: #FFE04D; }
.call:active { transform: scale(0.98); }
.call--sm { min-height: 42px; padding: 6px 14px; font-size: 1.0625rem; box-shadow: none; }
.order {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 18px; border-radius: 4px;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 700;
  transition: transform 0.3s var(--ease), background-color 0.2s var(--ease);
}
.order svg { width: 22px; height: 22px; }
.order:hover { background: var(--light-2); }
.order:active { transform: scale(0.98); }

/* ---------- lightbox ---------- */
.box {
  position: relative; background: radial-gradient(130% 110% at 50% 40%, var(--light) 0%, var(--light-2) 100%);
  color: var(--ink); border: clamp(8px, 0.9vw, 12px) solid var(--frame);
  box-shadow: inset 0 0 0 2px #2E2E2E, inset 0 0 40px rgba(255, 220, 150, 0.35), 0 0 0 1px #2A2A2A, 0 10px 60px -10px rgba(255, 236, 190, 0.18);
  --ring: var(--red);
}
.box::after { /* screws in the frame corners */
  content: ""; position: absolute; inset: -9px; pointer-events: none;
  background:
    radial-gradient(circle, #555 0 2px, transparent 2.5px) 0 0 / 100% 100% no-repeat;
  -webkit-mask: radial-gradient(circle at 4px 4px, #000 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 4px) 4px, #000 3px, transparent 3.5px), radial-gradient(circle at 4px calc(100% - 4px), #000 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), #000 3px, transparent 3.5px);
          mask: radial-gradient(circle at 4px 4px, #000 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 4px) 4px, #000 3px, transparent 3.5px), radial-gradient(circle at 4px calc(100% - 4px), #000 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), #000 3px, transparent 3.5px);
  background-color: #6B6B6B;
}
.box.is-off { filter: brightness(0.28) saturate(0.4); }
.box.is-on { animation: flicker 0.9s steps(1, end) both; }
@keyframes flicker {
  0% { filter: brightness(0.28) saturate(0.4); } 12% { filter: brightness(1.05); } 18% { filter: brightness(0.4); }
  30% { filter: brightness(1); } 36% { filter: brightness(0.7); } 48%, 100% { filter: none; }
}
.no {
  display: inline-grid; place-items: center; flex: none; min-width: 1.9em; height: 1.9em; padding: 0 0.3em; border-radius: 999px;
  background: var(--red); color: #fff; font-family: var(--num); font-weight: 900; font-stretch: 115%; font-size: 1.1rem; line-height: 1;
}
.no--big { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.tag { display: inline-block; padding: 4px 10px; background: var(--yellow); color: var(--ink); font-family: var(--num); font-weight: 900; font-stretch: 105%; font-size: 1.3rem; white-space: nowrap; transform: rotate(-2deg); }
.tag--big { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }

/* ---------- the boards over the counter ---------- */
.boards { max-width: var(--max); margin: 0 auto; padding: clamp(14px, 2vw, 26px) var(--gutter) 0; }
.sign { text-align: center; padding: clamp(10px, 1.4vw, 18px) 16px; }
.sign__name { font-family: var(--narrow); font-weight: 700; font-size: clamp(2.6rem, 7.4vw, 6.4rem); text-transform: uppercase; letter-spacing: -0.01em; color: var(--red); line-height: 0.92; }
.sign__sub { font-family: var(--narrow); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.4rem); text-transform: uppercase; letter-spacing: 0.2em; margin-top: 4px; }
.hero-boxes { list-style: none; margin: clamp(10px, 1.4vw, 18px) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(8px, 1.2vw, 16px); align-items: stretch; }
.box--photo { display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.box--photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; aspect-ratio: 16 / 10; }
.box--main img { object-position: 50% 45%; }
.box--photo { position: relative; }
.box__line { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; }
.box__line .tag { position: absolute; top: 14px; right: 14px; transform: rotate(-4deg); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6); }
.box__name { font-family: var(--narrow); font-weight: 700; font-size: clamp(1.15rem, 1.7vw, 1.5rem); text-transform: uppercase; line-height: 1.05; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.box--main .box__name { font-size: clamp(1.4rem, 2.4vw, 2.2rem); }

.counter {
  margin-top: clamp(14px, 2vw, 22px); padding: clamp(16px, 2vw, 22px) clamp(16px, 2.4vw, 28px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 24px; align-items: center;
  background: linear-gradient(180deg, #E4E7EA 0%, var(--steel) 45%, var(--steel-2) 100%); color: var(--ink);
  border-top: 4px solid #F5F7F8; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.9);
  --ring: var(--ink);
}
.counter::before { /* brushed steel */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.25;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 3px);
}
.counter { position: relative; }
.counter__more { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; position: relative; }
.counter__note { grid-column: 1 / -1; font-weight: 600; color: #2A2A2A; position: relative; }
.counter .call { position: relative; }

/* ---------- lunch band ---------- */
.lunch { margin: clamp(48px, 6vw, 80px) 0 0; padding: clamp(18px, 2.4vw, 28px) var(--gutter); background: var(--yellow); color: var(--ink); display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 24px; text-align: center; --ring: var(--ink); }
.lunch h2 { font-family: var(--narrow); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-transform: uppercase; }
.lunch p { font-weight: 600; font-size: clamp(1.0625rem, 1.8vw, 1.375rem); }
.lunch b { font-family: var(--num); font-weight: 900; font-size: 1.3em; }

/* ---------- menu wall ---------- */
.wall { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.board { padding-bottom: 18px; }
.board__photo { height: 170px; overflow: hidden; }
.board__photo img { width: 100%; height: 100%; object-fit: cover; }
.board__title { font-family: var(--narrow); font-weight: 700; font-size: clamp(1.8rem, 2.6vw, 2.4rem); text-transform: uppercase; padding: 14px 16px 10px; color: var(--red-deep); border-bottom: 3px solid var(--ink); margin: 0 14px; padding-left: 0; padding-right: 0; }
.board__cols { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; gap: 10px; margin: 8px 14px 0; font-family: var(--narrow); font-weight: 700; text-transform: uppercase; font-size: 0.875rem; color: var(--ink-2); text-align: right; }
.lines { list-style: none; margin: 0; padding: 4px 14px 0; }
.lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(20, 20, 20, 0.15); }
.lines--two li { grid-template-columns: auto minmax(0, 1fr) 64px 64px; gap: 10px; }
.lines__name { font-family: var(--narrow); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; line-height: 1.25; }
.lines__name small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.875rem; text-transform: none; color: var(--ink-2); margin-top: 2px; }
.lines__eur { font-family: var(--num); font-weight: 900; font-stretch: 105%; font-size: 1.25rem; text-align: right; font-variant-numeric: tabular-nums; }
.board__foot { margin: 12px 14px 0; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- night ---------- */
.night { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.night__board { padding: clamp(18px, 2.4vw, 30px); }
.night__board h2 { font-family: var(--narrow); font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; color: var(--red-deep); }
.hours { width: 100%; border-collapse: collapse; margin-top: 14px; }
.hours th, .hours td { padding: 12px 0; border-top: 2px solid rgba(20, 20, 20, 0.15); font-family: var(--narrow); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; text-align: left; }
.hours td { text-align: right; font-family: var(--num); font-weight: 900; font-variant-numeric: tabular-nums; }
.hours tr.late td { color: var(--red-deep); }
.hours tr.is-today th::before { content: "Tänään "; font-size: 0.75rem; letter-spacing: 0.08em; display: inline-block; padding: 2px 6px; margin-right: 8px; background: var(--yellow); vertical-align: middle; }
.night__where h2 { font-family: var(--narrow); font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; }
.night__where p { margin-top: 10px; color: #CFCFCF; max-width: 50ch; }
.night__btns { margin-top: 18px !important; }
.night__map { width: 100%; height: 300px; margin-top: 20px; border: 0; filter: grayscale(0.6) brightness(0.85); border-radius: 4px; }

.foot { padding: clamp(40px, 6vw, 72px) var(--gutter) 28px; background: var(--frame); color: #BDBDBD; border-top: 2px solid #262626; }
.foot > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.foot__name { font-family: var(--narrow); font-weight: 700; font-size: clamp(3rem, 10vw, 8rem); text-transform: uppercase; line-height: 0.9; color: var(--red); margin-bottom: 14px; }
.foot a { color: #fff; }
.foot__demo { margin-top: 26px; padding-top: 14px; border-top: 1px solid #262626; font-size: 0.875rem; color: #9A9A9A; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .top__nav { display: none; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board--wide { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 760px) {
  .top__hours { display: none; }
  .hero-boxes { grid-template-columns: 1fr 1fr; }
  .box--main { grid-column: 1 / -1; grid-row: 1; }
  .counter { grid-template-columns: 1fr; }
  .counter__more { justify-content: flex-start; }
  .wall { grid-template-columns: 1fr; }
  .night { grid-template-columns: 1fr; }
  .lines--two li { grid-template-columns: auto minmax(0, 1fr) 54px 54px; gap: 8px; }
  .board__cols { grid-template-columns: minmax(0, 1fr) 54px 54px; gap: 8px; }
}
@media (max-width: 440px) {
  .top { gap: 10px; }
  .top__brand { font-size: 1.25rem; }
  .box__line { padding: 10px; gap: 8px; }
  .box:not(.box--main) .box__name { font-size: 1rem; }
  .box:not(.box--main) .tag { font-size: 1.05rem; }
  .box:not(.box--main) .no { font-size: 0.95rem; }
  .call { font-size: 1.6rem; width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .box.is-off { filter: none; }
  .box.is-on { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
