/* ==========================================================
   RUOKALA KYMPPI - lunch restaurant, Keilaniemi
   World: the lunch stamp card. Card stock, navy print,
   violet rubber-stamp ink for today, red only for the free tenth.
   The weekday cells never move.
   ========================================================== */
:root {
  --stock: #F6F1E4;
  --stock-2: #ECE4D0;
  --navy: #2B2A6B;
  --navy-2: #4A4A86;
  --violet: #6B3FA0;
  --red: #C8322B;
  --ink: #1A1A1A;
  --ink-2: #4B4A5E;
  --desk: #DCD6C6;
  --rule: rgba(43, 42, 107, 0.35);

  --sans: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --stamp: "Courier Prime", ui-monospace, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ring: var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--desk); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  caret-color: var(--violet); scrollbar-color: var(--navy) var(--desk);
}
::selection { background: var(--navy); color: var(--stock); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.02em; 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(--navy); color: #fff; padding: 10px 16px; border-radius: 4px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: var(--navy); color: var(--stock); --ring: var(--stock);
}
.top__brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; margin-right: auto; letter-spacing: -0.01em; }
.top__nav { display: flex; gap: 24px; }
.top__nav a { text-decoration: none; font-weight: 500; color: #D9D7EC; transition: color 0.3s var(--ease); }
.top__nav a:hover { color: #fff; text-decoration: underline; }
.top__status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.top__dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.top__status.is-open .top__dot { background: #B8F5A0; box-shadow: none; }

/* ---------- the stamp card ---------- */
.card-wrap { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(56px, 7vw, 96px); }
.card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 19vw, 260px);
  background: var(--stock); border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 28px 50px -30px rgba(30, 28, 70, 0.55);
}
.card::before { /* card stock grain */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("stock.svg"); background-size: 300px;
}
.card__band {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px 28px;
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 3vw, 40px); background: var(--navy); color: var(--stock); border-radius: 6px 6px 0 0;
}
.card__name { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; text-transform: uppercase; line-height: 0.9; }
.card__week { font-weight: 600; font-size: 1.0625rem; color: #D9D7EC; padding-bottom: 6px; }
.card__price { text-align: right; font-weight: 500; padding-bottom: 4px; }
.card__price b { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.card__price span { color: #D9D7EC; font-size: 0.9375rem; }

.card__body { padding: clamp(18px, 2.4vw, 30px) clamp(16px, 2.4vw, 30px) 22px; position: relative; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 2px solid var(--navy); }
.day { position: relative; padding: 16px 16px 20px; min-height: 280px; }
.day + .day { border-left: 2px solid var(--navy); }
.day__name { font-size: 1.125rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.01em; padding-bottom: 10px; border-bottom: 1px dashed var(--rule); }
.day__date { display: block; margin-top: 2px; font-family: var(--stamp); font-size: 0.9375rem; font-weight: 700; color: var(--navy-2); letter-spacing: 0; }
.day.is-today .day__date { visibility: hidden; }
.day ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.day li { font-size: 1rem; line-height: 1.35; hyphens: auto; overflow-wrap: break-word; }
.day li i { display: block; font-style: normal; font-weight: 600; font-size: 0.8125rem; color: var(--navy-2); letter-spacing: 0.04em; margin-top: 2px; }
.day li.veg::before { content: "Kasvis"; display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy-2); }
.day.is-past { color: #6E6C7E; }
.day.is-past .day__name { color: var(--navy-2); }
.day.is-today { background: rgba(107, 63, 160, 0.06); }
.day.is-today .day__name { color: var(--violet); }
.stamp {
  position: absolute; right: -16px; top: -30px; width: 96px; height: 96px; pointer-events: none; z-index: 1;
  transform: rotate(-14deg); opacity: 0.88; mix-blend-mode: multiply;
}
.stamp svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .stamp.is-pressed { animation: press 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes press { 0% { transform: rotate(-14deg) scale(1.6); opacity: 0; } 60% { opacity: 0.95; } 100% { transform: rotate(-14deg) scale(1); opacity: 0.88; } }
}
.legend { margin-top: 14px; font-size: 0.875rem; color: var(--ink-2); }

.stub {
  position: relative; padding: clamp(18px, 2.4vw, 30px) clamp(18px, 2vw, 26px);
  border-left: 2px dashed var(--navy); display: grid; align-content: start; gap: 4px;
}
.stub::before, .stub::after { /* punched notches on the perforation */
  content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--desk);
}
.stub::before { top: -11px; }
.stub::after { bottom: -11px; }
.stub__k { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy-2); margin-top: 14px; }
.stub__k:first-child { margin-top: 0; }
.stub__v { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.stub__btn {
  margin-top: 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 16px;
  background: var(--navy); color: var(--stock); text-decoration: none; font-weight: 700; border-radius: 4px;
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.stub__btn svg { width: 20px; height: 20px; transition: transform 0.4s var(--ease); }
.stub__btn:hover { background: #3A3986; }
.stub__btn:hover svg { transform: translateX(3px); }
.stub__btn:active { transform: scale(0.98); }

/* loyalty strip */
.loyal { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; padding: 18px clamp(18px, 3vw, 30px); background: var(--stock); border-radius: 6px; box-shadow: 0 18px 30px -24px rgba(30, 28, 70, 0.5); }
.loyal__text { font-size: 1rem; color: var(--ink-2); }
.loyal__text b { color: var(--navy); }
.loyal__boxes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border: 2px solid var(--navy); }
.loyal__boxes li { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.loyal__boxes li + li { border-left: 2px solid var(--navy); }
.mini-stamp { width: 74%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--violet); opacity: 0.75; transform: rotate(-12deg); }
.mini-stamp::after { content: "K"; display: grid; place-items: center; height: 100%; font-family: var(--stamp); font-weight: 700; color: var(--violet); font-size: clamp(0.7rem, 1.2vw, 1rem); }
.loyal__boxes li:nth-child(2n) .mini-stamp { transform: rotate(9deg) translate(1px, -1px); }
.loyal__boxes li:nth-child(3n) .mini-stamp { transform: rotate(-3deg) translate(-1px, 2px); }
.loyal__free { color: var(--red); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.5rem); line-height: 1; text-align: center; align-content: center; }
.loyal__free small { display: block; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- daily ---------- */
.daily { background: var(--stock); padding: clamp(64px, 8vw, 120px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.daily__text { justify-self: end; max-width: 460px; }
.daily h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; color: var(--navy); }
.daily__list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--navy); }
.daily__list li { padding: 14px 0; border-bottom: 1px dashed var(--rule); font-weight: 500; font-size: 1.125rem; display: flex; gap: 14px; }
.daily__list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border: 2px solid var(--navy); }
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 0; border: 2px solid var(--navy); max-width: 760px; }
.photos li { aspect-ratio: 3 / 4; overflow: hidden; }
.photos li + li { border-left: 2px solid var(--navy); }
.photos img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- prices ---------- */
.prices { max-width: 880px; margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter); }
.prices h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; color: var(--navy); }
.pricetable { width: 100%; margin-top: 24px; border-collapse: collapse; background: var(--stock); border: 2px solid var(--navy); }
.pricetable th, .pricetable td { padding: 16px 20px; border-top: 1px dashed var(--rule); text-align: left; vertical-align: top; }
.pricetable tr:first-child th, .pricetable tr:first-child td { border-top: 0; }
.pricetable th { font-weight: 700; font-size: 1.1875rem; }
.pricetable th small { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--ink-2); margin-top: 2px; }
.pricetable td { text-align: right; font-weight: 700; font-size: 1.375rem; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices__pay { margin-top: 14px; color: var(--ink-2); }

/* ---------- meetings ---------- */
.meet { background: var(--navy); color: var(--stock); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); --ring: var(--stock); }
.meet__img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.meet__text { padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px); align-self: center; }
.meet h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; }
.meet p { margin-top: 18px; max-width: 46ch; color: #E0DEF0; }
.meet__facts { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid rgba(246, 241, 228, 0.3); }
.meet__facts li { padding: 12px 0; border-bottom: 1px solid rgba(246, 241, 228, 0.3); }
.meet__facts b { font-weight: 700; }
.meet__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 20px; border-radius: 4px;
  background: var(--stock); color: var(--navy); text-decoration: none; font-weight: 700;
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.98); }
.btn--line { background: transparent; color: var(--stock); box-shadow: inset 0 0 0 2px var(--stock); }
.btn--line:hover { background: rgba(246, 241, 228, 0.1); }

/* ---------- location ---------- */
.where { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.where h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; color: var(--navy); }
.where p { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.hours { width: 100%; margin-top: 24px; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-top: 1px dashed var(--rule); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--violet); font-weight: 700; }
.where__map { width: 100%; height: 360px; border: 2px solid var(--navy); border-radius: 4px; }

.foot { background: var(--navy); color: #D9D7EC; padding: clamp(48px, 6vw, 80px) var(--gutter) 28px; --ring: var(--stock); }
.foot > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.foot__name { font-weight: 700; font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: -0.04em; text-transform: uppercase; line-height: 0.9; color: var(--stock); margin-bottom: 18px; }
.foot a { color: #fff; }
.foot__demo { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.875rem; color: #B9B7D6; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .days { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .card { grid-template-columns: 1fr; }
  .stub { border-left: 0; border-top: 2px dashed var(--navy); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
  .stub::before, .stub::after { top: -12px; left: auto; }
  .stub::before { left: -11px; }
  .stub::after { right: -11px; bottom: auto; }
  .stub__btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 860px) {
  .top__nav { display: none; }
  .card__band { grid-template-columns: 1fr; gap: 6px; }
  .card__price { text-align: left; }
  .days { grid-template-columns: 1fr; overflow: visible; }
  .day + .day { border-left: 0; border-top: 2px solid var(--navy); }
  .day { min-height: 0; }
  .stamp { width: 84px; height: 84px; right: 8px; top: -6px; }
  .loyal { grid-template-columns: 1fr; }
  .daily { grid-template-columns: 1fr; }
  .daily__text { justify-self: start; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos li:nth-child(3) { border-left: 0; }
  .photos li:nth-child(n + 3) { border-top: 2px solid var(--navy); }
  .meet { grid-template-columns: 1fr; }
  .where { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top { gap: 12px; }
  .top__brand { font-size: 1.0625rem; }
  .top__status { font-size: 0.8125rem; }
  .stub { grid-template-columns: 1fr; }
  .pricetable th, .pricetable td { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
