/* slow-frame — S8 living cover
   Palette: espresso #2A2320 · oat #F6F1E9 · clay #B4623C · grey #6E6A62
   Text on oat: espresso 12.1:1 · clay-text #8F4526 5.0:1 (AA)
   The living layer: the cover photograph itself, breathing — a 34 s
   scale+pan ken-burns loop under a warm scrim. This is the theme's whole
   idea: one photo, moving slowly enough that you only notice it if you look. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/newsreader-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/onest-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --espresso: #2A2320;
  --oat: #F6F1E9;
  --oat-2: #EFE7DA;
  --clay: #B4623C;
  --clay-text: #8F4526;
  --grey: #6E6A62;
  --display: "Newsreader", Georgia, serif;
  --body: "Onest", "Segoe UI", sans-serif;
  /* one centered shell for every piece of content — cover chrome, cover text
     and each below-fold section share it, so nothing drifts to the viewport
     edge on wide screens. The photo layer stays full-bleed. */
  --shell: 72rem;
  --pad: 1.5rem;
  --shell-inner: calc(var(--shell) - var(--pad) * 2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--espresso);
  background: var(--oat);
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay-text); outline-offset: 3px; }
img { display: block; max-width: 100%; }

.demo-banner {
  display: block;
  background: var(--espresso);
  color: var(--oat);
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

/* ---- the breathing cover ---- */
.cover {
  position: relative;
  min-height: calc(100svh - 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--oat);
  padding: 1.5rem var(--pad) calc(3rem + env(safe-area-inset-bottom));
}
.cover-media { position: absolute; inset: 0; z-index: 0; background: var(--espresso); }
.cover-media picture, .cover-media img { display: block; width: 100%; height: 100%; }
.cover-media img {
  object-fit: cover;
  object-position: 50% 55%;
  transform-origin: 55% 55%;
  will-change: transform;
  animation: breathe 34s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
.cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(42, 35, 32, 0.55) 0%, rgba(42, 35, 32, 0.12) 34%, rgba(42, 35, 32, 0.72) 78%, rgba(42, 35, 32, 0.92) 100%);
}
.cover-top, .cover-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--shell-inner);
  margin-inline: auto;
}

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wordmark { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: 0.01em; }
.open-now {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  background: rgba(20, 16, 14, 0.45);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7BC47F;
  box-shadow: 0 0 0 0 rgba(123, 196, 127, 0.75);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123, 196, 127, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(123, 196, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 196, 127, 0); }
}

/* the shell is centered; the type inside it stays left-aligned and keeps its
   own reading measure */
.cover-inner > * { max-width: 40rem; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.cover h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3rem, 13vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.0625rem, 3.4vw, 1.25rem);
  line-height: 1.6;
  max-width: 30rem;
  margin-bottom: 2rem;
  opacity: 0.92;
}
.cover-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  background: var(--clay);
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: #9E5433; transform: translateY(-1px); }
.btn--plain {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn--plain:hover { background: rgba(255, 255, 255, 0.12); }
main .btn { color: #fff; }

/* ---- sections ---- */
main section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) var(--pad);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-text);
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.875rem, 5.5vw, 3.125rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  max-width: 22ch;
}
.prose { max-width: 38rem; }
.prose p { color: var(--grey); }
.prose p + p { margin-top: 1.1rem; }

/* ---- menu with dotted leaders ---- */
.menu-list { list-style: none; max-width: 40rem; }
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(42, 35, 32, 0.12);
}
.menu-name { font-family: var(--display); font-size: 1.1875rem; font-weight: 400; }
.menu-leader { flex: 1; border-bottom: 1px dotted rgba(42, 35, 32, 0.35); transform: translateY(-3px); }
.menu-price { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.9375rem; }
.menu-note { margin-top: 1.5rem; font-size: 0.875rem; color: var(--grey); max-width: 36rem; }

/* ---- gallery ---- */
.kuvat { background: var(--oat-2); max-width: none; }
/* full-bleed band, shell-aligned contents (matches the other sections' text
   column exactly — the section padding is inside the shell there) */
.kuvat > * { max-width: var(--shell-inner); margin-inline: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.gallery figure { margin: 0; }
.gallery picture { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--grey);
}
.photo-note {
  font-size: 0.9375rem;
  color: var(--grey);
  border-left: 2px solid var(--clay);
  padding: 0.9rem 1.25rem;
  background: var(--oat);
}
.photo-note strong { color: var(--espresso); }

/* ---- yhteys ---- */
.yhteys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 56rem; margin-bottom: 2.5rem; }
.yhteys-grid dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-text);
  margin-bottom: 0.5rem;
}
.yhteys-grid dd { font-size: 0.9375rem; }
.muted { color: var(--grey); font-size: 0.875rem; }

/* ---- footer ---- */
.footer {
  background: var(--espresso);
  color: var(--oat);
  text-align: center;
  padding: 2.5rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom));
  font-size: 0.875rem;
}
.footer .small { margin-top: 0.35rem; opacity: 0.75; font-size: 0.8125rem; }
.footer a { text-decoration-color: var(--clay); text-underline-offset: 3px; }

/* ---- entrance ---- */
@media (prefers-reduced-motion: no-preference) {
  .cover-inner > * { animation: rise 1s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .cover-inner > :nth-child(2) { animation-delay: 0.1s; }
  .cover-inner > :nth-child(3) { animation-delay: 0.2s; }
  .cover-inner > :nth-child(4) { animation-delay: 0.3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .yhteys-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  :root { --pad: 1.25rem; }
  .cover-actions .btn { flex: 1 1 100%; text-align: center; }
  .menu-name { font-size: 1.0625rem; }
}

/* --- Tekoälyilmoitus (EU AI Act 50 art.) — webpages/kit/ai-disclosure/ --- */
.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  padding: 0 1rem 2rem;
  font-size: 0.75rem;
  line-height: 1.55;
}
.ai-note strong { font-weight: 600; }
