/* Prosivu-pohja. Värit ja fontit tulevat tiedostosta teema.css. Vain järjestelmäfontit. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); text-transform: var(--display-case); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); text-transform: var(--display-case); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }

.demo { background: var(--ink); color: var(--bg); text-align: center; font-size: 14px; padding: 8px 16px; }
.demo a { color: inherit; }
.notice { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: 15px; font-weight: 600; padding: 10px 16px; }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.3rem; text-transform: var(--display-case); letter-spacing: .01em; }
.brand small { font-size: 13px; color: var(--muted); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; font-size: 16px; font-weight: 600; }
.top nav a:not(.btn) { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 2px solid var(--accent); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.light { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.btn.light:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.outline-light { background: transparent; color: var(--band-ink); border-color: var(--band-ink); }
.btn.outline-light:hover { background: var(--band-ink); color: var(--band); }

.hero { padding-block: 56px 72px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.2rem; max-width: 50ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.offer { margin-top: 20px; display: inline-block; padding: 8px 14px; border: 1px dashed var(--accent); color: var(--ink); font-weight: 600; font-size: 16px; border-radius: var(--radius); }
.hero-card { flex: 1 1 300px; background: var(--card); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 28px; }
.hero-card h2 { font-size: 1.3rem; text-transform: none; }
.hero-img { border-radius: var(--radius); margin: -8px -8px 20px; width: calc(100% + 16px); max-width: none; aspect-ratio: 4 / 3; object-fit: cover; }
.hours { margin: 0; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.addr { margin: 16px 0 0; font-weight: 600; }
.small-note { font-size: 15px; color: var(--muted); margin-top: 12px; }

.sec { padding-block: 72px; }
.sec.tint { background: var(--card); }
.sec.strip { padding-block: 36px; border-block: 1px solid var(--line); }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.points h3 { margin-bottom: 4px; }
.points p { margin: 0; color: var(--muted); font-size: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split h2 { flex: 1 1 260px; }
.split .prose { flex: 2 1 480px; min-width: 0; font-size: 1.08rem; }
.intro { max-width: 60ch; color: var(--muted); }

.menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px 56px; margin-top: 16px; }
.menu-group h3 { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: baseline; gap: 10px; }
.row .name { font-weight: 600; }
.row .dots { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-4px); min-width: 16px; }
.row .price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-group li p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 16px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 24px; }
.person img, .avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.avatar { display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: var(--display-weight); font-size: 2rem; }
.person .role { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.person p { font-size: 16px; color: var(--muted); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0 0 8px; font-family: var(--display); font-size: 1.2rem; }
.quotes figcaption { color: var(--muted); font-size: 15px; }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.post { border-top: 2px solid var(--ink); padding-top: 14px; }
.post time, .prose time { font-size: 14px; color: var(--muted); }
.post h3 { margin: 4px 0 6px; }
.post h3 a { text-decoration: none; }
.post p { font-size: 16px; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 14px 0; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.band { background: var(--band); color: var(--band-ink); padding-block: 64px; }
.band a:not(.btn) { color: var(--band-ink); }
.band-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.band-grid > div:first-child { flex: 1 1 340px; }
.band-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.band .hours div { border-color: color-mix(in srgb, var(--band-ink) 25%, transparent); }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.prose h2 { font-size: 1.5rem; margin-top: 1.4em; text-transform: none; }
.prose ul, .prose ol { padding-left: 1.3em; }
.back { font-weight: 600; margin-bottom: 18px; }

.foot { border-top: 1px solid var(--line); padding-block: 28px; font-size: 15px; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.some { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.some a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); border: 1px solid var(--line); }
.some a:hover, .some a:focus-visible { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.some svg { fill: currentColor; }

@media (max-width: 640px) {
  .top nav { gap: 0 14px; }
  .top nav .btn { width: 100%; margin-top: 4px; }
  .sec { padding-block: 52px; }
  .menu { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Ulkoasuvaihtoehdot ---------- */
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .actions { justify-content: center; }

/* Lehti: keskitetty otsikko, iso kuva */
.hero-lehti { padding-block: 64px 0; }
.hero-lehti h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 500; letter-spacing: -0.03em; }
.lehti-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; margin-top: 48px; border-radius: var(--card-radius); }
.hours-strip { border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-block: 18px; font-size: 16px; font-variant-numeric: tabular-nums; }
.strip-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.strip-addr { margin-left: auto; color: var(--muted); }

/* Kuva: koko leveyden kuva, teksti päällä */
.hero-kuva { position: relative; padding: 0; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--band); }
.hero-kuva .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) saturate(.95); }
.hero-kuva::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 12, .9) 0%, rgba(10, 18, 12, .65) 45%, rgba(10, 18, 12, .3) 100%); }
.hero-kuva h1, .hero-kuva .lead, .hero-kuva .eyebrow { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero-kuva-inner { position: relative; z-index: 1; padding-block: 56px; max-width: 800px; margin-inline: auto; }
.hero-kuva h1 { color: #fff; max-width: none; }
.hero-kuva .lead { color: #F1EFE6; }
.hero-kuva .eyebrow { color: #F4C27E; }
.hero-kuva .btn.ghost { color: #fff; border-color: #fff; }
.hero-kuva .btn.ghost:hover { background: #fff; color: var(--ink); }
.hero-kuva:has(.keski) { align-items: center; }
.hero-kuva-inner.keski { text-align: center; width: 100%; }
.hero-kuva-inner.keski h1 { max-width: 22ch; margin-inline: auto; font-size: clamp(2.6rem, 7.5vw, 6rem); letter-spacing: 0.01em; }
.hero-kuva-inner.keski .lead { max-width: 56ch; margin-inline: auto; }
.hero-kuva-inner.keski .actions { justify-content: center; }
.offer-band { background: var(--accent); color: var(--accent-ink); font-weight: 700; padding-block: 14px; text-align: center; }

/* Jaettu: teksti vasemmalla, kuva ja aukiolo oikealla */
.hero-jaettu { padding-block: 48px 64px; }
.jaettu-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.jaettu-grid .hero-copy { flex: 999 1 460px; }
.jaettu-media { flex: 1 1 360px; min-width: 0; position: relative; }
.jaettu-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--card-radius); }
.mini-hours { background: var(--bg); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 18px 20px; margin: -48px 16px 0 auto; position: relative; max-width: 300px; box-shadow: 0 18px 40px -24px rgba(16, 42, 51, .45); }
.mini-hours h2 { font-size: 1.05rem; text-transform: none; margin-bottom: 8px; }
.strip.cards { border: 0; padding-block: 16px 56px; }
.strip.cards .points li { background: var(--card); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 22px; }
.strip.cards .points h3 { color: var(--accent); }

/* Galleria */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 24vw, 320px); }
.gallery.g3 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.g4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.g4 figure:first-child { grid-row: span 2; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--card-radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--bg); color: var(--ink); font-size: 14px; padding: 4px 10px; border-radius: 4px; }
@media (max-width: 720px) {
  .gallery, .gallery.g3, .gallery.g4 { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .strip-addr { margin-left: 0; }
  .hero-kuva { min-height: 560px; }
  .mini-hours { margin: -32px 12px 0 auto; }
}
.band-note { margin: 10px 0 0; font-size: 15px; opacity: .85; }
