/* Lounas-Kahvila Saimi, malli 27.10.2026. Paletti logosta: muste, punainen, harmaa.
   12.11.2026: värit Saimin omasta vektorilogosta (JP-Paino), ei enää Facebook-kuvasta. */
:root {
  --paper: #f4f3f1;      /* sivun pohja */
  --paper-2: #e8e6e2;
  --ink: #2b2929;        /* logon musta */
  --ink-2: #4d4847;      /* toissijainen teksti */
  --steel: #c4c7c7;      /* logon harmaa, vain koriste */
  --rule: #cfcbc7;
  --red: #e61a4a;        /* logon punainen. AINOA korostus: pääpainike, puhelupalkki, fokus. Valkoinen teksti 4,55:1 */
  --red-2: #c0123b;
  --display: "Tanker", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Supreme", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.small { font-size: 14px; color: var(--ink-2); }
.small a { color: var(--ink); }

/* Painikkeet: punainen vain --primary */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; font: 700 17px/1 var(--body); text-decoration: none; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; letter-spacing: .01em; transition: background-color .18s, color .18s, transform .12s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-2); border-color: var(--red-2); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.textlink { font: 600 16px/1.3 var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; background: none; border: 0; padding: 12px 0; cursor: pointer; }
.textlink:hover { text-decoration-color: var(--steel); }

/* Tilarivi */
.strip { background: var(--ink); color: var(--paper); font-size: 15px; }
.strip__in { display: flex; gap: 8px 28px; align-items: center; min-height: 40px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.strip__status { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dot { width: 10px; height: 10px; border: 2px solid var(--paper); flex: none; }
.strip.is-open .dot { background: var(--paper); }
.strip__where { color: #d9d4d2; }
.strip__tel { margin-left: auto; font-weight: 700; text-decoration: none; padding: 6px 0; }
.strip__tel:hover { text-decoration: underline; }

/* Ylätunniste */
.top { border-bottom: 2px solid var(--ink); background: var(--paper); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 86px; height: 60px; }
.brand__txt { font: 700 15px/1.15 var(--body); letter-spacing: .02em; text-transform: uppercase; border-left: 2px solid var(--ink); padding-left: 12px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 500; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--ink); }
.top__call { min-height: 48px; }

/* Hero: tämän päivän lounas */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.today { container-type: inline-size; min-width: 0; }
.today__h1 { font: 700 15px/1.35 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); max-width: 46ch; }
.today__kicker { margin-top: clamp(18px, 3vw, 34px); font: 700 clamp(18px, 2vw, 22px)/1.2 var(--body); display: flex; align-items: center; gap: 12px; }
.today__kicker::before { content: ""; width: 34px; height: 12px; background: var(--ink); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); flex: none; }
.today__day { display: inline-block; white-space: nowrap; max-width: 100%; font: 400 clamp(40px, 13.2cqi, 176px)/.86 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 10px 0 clamp(18px, 2.4vw, 30px); }
.today__dishes { clear: both; }
.today__dishes { border-top: 3px solid var(--ink); }
.today__dishes li { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; padding: clamp(12px, 1.4vw, 18px) 0; border-bottom: 1px solid var(--rule); font: 500 clamp(21px, 2.3vw, 31px)/1.2 var(--body); }
.dish__al { font: 700 14px/1 var(--body); letter-spacing: .06em; border: 1.5px solid var(--ink); padding: 5px 7px; white-space: nowrap; }
.today__badge { margin-top: 14px; display: inline-block; font: 700 14px/1.3 var(--body); background: var(--paper-2); border-left: 4px solid var(--ink); padding: 8px 12px; }
.today__badge[hidden] { display: none; }
.today__meta { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 22px; }
.today__meta dt { font: 700 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.today__meta dd { font-weight: 500; font-size: 17px; }
.today__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }

.hero__photo { position: relative; padding: 0 0 0 0; }
.hero__photo picture, .hero__photo img { width: 100%; }
.hero__photo img { aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(88px 0, 100% 0, 100% 100%, 0 100%, 0 88px); position: relative; z-index: 1; }
.hero__bands { position: absolute; z-index: 0; width: 62%; height: 42%; left: -18%; top: -30px; }
.hero__bands .b1, .foot__bands .b1 { fill: var(--ink); }
.hero__bands .b2, .foot__bands .b2 { fill: var(--steel); }
.hero__bands .b3, .foot__bands .b3 { fill: var(--paper-2); }
figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

/* Viikon lista */
.week { background: var(--paper-2); padding: clamp(48px, 6vw, 88px) 0; border-top: 2px solid var(--ink); }
.week__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.week__h { font: 400 clamp(52px, 8vw, 112px)/.85 var(--display); text-transform: uppercase; grid-row: span 2; }
.week__dates { font: 700 clamp(18px, 2vw, 24px)/1.2 var(--body); }
.week__src { font-size: 14px; color: var(--ink-2); }
.week__src a { color: var(--ink); }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 3px solid var(--ink); border-left: 1px solid var(--ink); }
.day { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 18px 22px; min-height: 260px; position: relative; min-width: 0; }
.day__tag { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; min-height: 12px; }
.day__name { font: 400 clamp(26px, 2.6vw, 38px)/1 var(--display); text-transform: uppercase; margin-top: 10px; overflow-wrap: anywhere; }
.day__date { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.day__dishes { margin-top: 16px; }
.day__dishes li { padding: 10px 0; border-top: 1px solid var(--rule); font-weight: 500; line-height: 1.35; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.day.is-today { background: var(--ink); color: var(--paper); }
.day.is-today .day__date { color: #d9d4d2; }
.day.is-today .day__dishes li { border-color: #4f4544; }
.day.is-today .dish__al { border-color: var(--paper); }
.day.is-past .day__dishes, .day.is-past .day__name { color: var(--ink-2); }
.week__note { margin-top: 18px; font-weight: 500; }
.week__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; margin-top: 28px; }
.week__al { max-width: 70ch; font-size: 15px; color: var(--ink-2); }
.week__al strong { color: var(--ink); }
.demo-link { display: flex; align-items: center; gap: 14px; text-decoration: none; border: 2px solid var(--ink); padding: 14px 18px; font-weight: 700; background: var(--paper); }
.demo-link:hover { background: var(--ink); color: var(--paper); }
.demo-link__k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-right: 2px solid currentColor; padding-right: 12px; }
.demo-link__arrow { font-size: 20px; }

/* Lautaselta */
.plates { padding: clamp(56px, 7vw, 104px) 0; }
.sec-h { font: 400 clamp(40px, 5.6vw, 76px)/.92 var(--display); text-transform: uppercase; }
.plates__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.pull p { font: 500 clamp(20px, 2vw, 26px)/1.4 var(--body); }
.pull footer { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.pull { margin: 0; border-left: 4px solid var(--ink); padding-left: 20px; }
.plates__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.slant img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); transition: clip-path 1.1s cubic-bezier(.2, .7, .1, 1); }
.slant.is-in img { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.slant:nth-child(2) img { transition-delay: .12s; }
.slant:nth-child(3) img { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .slant img { transition: none; clip-path: none; } }

/* Arvostelut */
.reviews { padding: 0 0 clamp(56px, 7vw, 96px); }

/* Juhliin */
.party { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 104px) 0; }
.party__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.party__photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), calc(100% - 72px) 100%, 0 100%); }
.party figcaption { color: #cfc8c6; }
.party .lead { margin-top: 18px; font-size: 19px; max-width: 46ch; }
.kit { margin-top: 22px; border-top: 2px solid var(--paper); }
.kit li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #4f4544; font-weight: 500; }
.kit li span:last-child { color: #d9d4d2; white-space: nowrap; }
.party__ask { margin-top: 22px; font-size: 18px; }
.party__ask a { font-weight: 700; color: var(--paper); }
.xmas { margin-top: 30px; border: 2px solid var(--paper); padding: 18px 20px; }
.xmas__h { font: 400 30px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }

/* Käynti */
.visit { padding: clamp(56px, 7vw, 104px) 0; }
.visit__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.visit .lead { margin-top: 16px; font-size: 19px; max-width: 44ch; }
.visit__logo { width: 220px; height: auto; margin: 0 0 28px; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin: 24px 0 8px; border-top: 3px solid var(--ink); }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: "  tänään"; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.visit__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px); }

/* Alatunniste */
.foot { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; padding: 64px 0 120px; border-top: 6px solid var(--steel); }
.foot__bands { position: absolute; right: -40px; top: 0; width: 360px; height: 220px; opacity: .9; }
.foot__bands .b1 { fill: #3d3a3a; }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 28px; position: relative; }
.foot__name { font: 400 30px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.foot__h { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; color: #d9d4d2; }
.foot a { color: var(--paper); }
.foot__note { margin-top: 40px; font-size: 13px; color: #cfc8c6; position: relative; }
.foot__note p { max-width: 90ch; }

/* Puhelimen alapalkki */
.callbar { display: none; }

/* Listan kohdat piilossa, kunnes julkaistu lista on haettu (site.js). Paljastuu itsestään 2 s jälkeen. */
@keyframes saimi-nayta { to { visibility: visible; } }
.lataa .today__dishes, .lataa [data-days], .lataa [data-kicker], .lataa [data-dayname], .lataa [data-viikko], .lataa [data-vali] { visibility: hidden; animation: saimi-nayta 0s 2s forwards; }

/* Hallinta */
.admin { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.admin__h { font: 400 clamp(40px, 6vw, 84px)/.92 var(--display); text-transform: uppercase; }
.login__in { max-width: 620px; }
.login .lead { margin: 16px 0 26px; font-size: 19px; }
.login__form { border-top: 3px solid var(--ink); padding-top: 18px; margin-bottom: 22px; }
.login__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.login__row input { width: 100%; min-height: 52px; font: 500 18px/1.3 var(--body); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px; }
.login__show { min-height: 52px; }
.login__go { margin-top: 16px; min-width: 200px; }
.admin__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: 28px; }
.admin__now { margin-top: 12px; font-weight: 500; color: var(--ink-2); }
.basics .textlink { margin-top: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.admin__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.form fieldset { border: 0; border-top: 3px solid var(--ink); margin: 0 0 28px; padding: 14px 0 0; min-width: 0; }
.form legend { font: 400 26px/1 var(--display); text-transform: uppercase; padding: 0 0 12px; float: left; width: 100%; }
.form legend + * { clear: both; }
.form label { display: block; font: 700 14px/1.3 var(--body); margin: 0 0 6px; }
.form input[type="text"], .form input[type="number"], .form input[type="date"], .form textarea { width: 100%; min-height: 48px; font: 500 17px/1.3 var(--body); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px; }
.form textarea { min-height: 140px; resize: vertical; }
.paste .btn { margin-top: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; margin-top: 14px; }
.dish-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 44px; padding: 0 6px; border: 2px solid var(--ink); font: 700 14px/1 var(--body); cursor: pointer; background: transparent; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.icon-btn { width: 44px; height: 44px; border: 2px solid var(--ink); background: transparent; font: 700 20px/1 var(--body); cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.add-dish { margin-top: 2px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; border-top: 3px solid var(--ink); padding-top: 20px; }
.form__status { margin-top: 14px; font-weight: 700; min-height: 1.5em; }
.preview { position: sticky; top: 20px; }
.preview__k { font: 700 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-2); }
.preview__card { background: var(--ink); color: var(--paper); padding: 22px; margin-bottom: 12px; }
.preview__card h2 { font: 400 40px/.9 var(--display); text-transform: uppercase; }
.preview__card .pv-meta { font-size: 14px; color: #d9d4d2; margin-top: 6px; }
.preview__card h3 { font: 400 22px/1 var(--display); text-transform: uppercase; margin-top: 18px; }
.preview__card ul li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #4f4544; font-weight: 500; font-size: 15px; }
.preview__card .dish__al { border-color: var(--paper); font-size: 12px; padding: 4px 6px; }
.preview__card .empty { color: #d9d4d2; font-size: 14px; padding: 6px 0; }

/* Leveyskohtaiset */
@media (max-width: 1100px) {
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 18px; }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__photo { max-width: 560px; }
  .plates__head, .party__in, .visit__in, .admin__grid { grid-template-columns: 1fr; }
  .preview { position: static; }
  .week__foot { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top__call, .nav { display: none; }
  .top__in { min-height: 72px; }
  .brand img { width: 72px; height: 50px; }
  .brand__txt { font-size: 13px; padding-left: 10px; }
  .strip__where { display: none; }
  .hero__photo img { clip-path: polygon(56px 0, 100% 0, 100% 100%, 0 100%, 0 56px); aspect-ratio: 5 / 4; }
  .hero__bands { width: 50%; left: -10%; top: -16px; height: 30%; }
  .today__cta .btn { flex: 1 1 100%; }
  .days { grid-template-columns: 1fr; }
  .day { min-height: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; padding: 14px 16px 10px; }
  .day__tag { flex: 1 0 100%; min-height: 0; margin-bottom: 6px; }
  .day__tag:empty { display: none; }
  .day__name { font-size: 26px; margin-top: 0; }
  .day__date { margin-top: 0; }
  .day__dishes { flex: 1 0 100%; margin-top: 8px; }
  .week__head { grid-template-columns: 1fr; }
  .week__h { grid-row: auto; }
  .plates__row { grid-template-columns: 1fr 1fr; }
  .plates__row .slant:nth-child(3) { grid-column: 1 / -1; }
  .plates__row .slant:nth-child(3) img { aspect-ratio: 16 / 10; }
  .row3, .row2 { grid-template-columns: 1fr; }
  .login__go { width: 100%; }
  .visit__logo { width: 180px; }
  .dish-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dish-row .chips { grid-column: 1 / -1; grid-row: 2; }
  .foot__in { grid-template-columns: 1fr; }
  .foot { padding-bottom: 110px; }
  .callbar { display: grid; grid-template-columns: 1.3fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); border-top: 2px solid var(--ink); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 58px; color: var(--paper); font-weight: 700; text-decoration: none; border-left: 1px solid #4f4544; }
  .callbar a.callbar__call { background: var(--red); color: #fff; border-left: 0; }
  body.page-index { padding-bottom: 58px; }
}
.dish-row .chips { order: 2; } .dish-row .icon-btn { order: 3; }
