/* Sininen Talo – sivuston tyylit
   Asettelu: kapea, ilmava sisältöpalsta (max 1200px), vaaleat osiot ja syreenit osioiden saumoissa.
   Brändikirja: Claude-artefakti "Sininen Talo" (Design System). */

@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-500.woff) format("woff"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(../fonts/figtree-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(../fonts/figtree-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(../fonts/caveat-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces Soft"; src: url(../fonts/fraunces-soft.woff) format("woff"); font-weight: 400; font-display: swap; }

:root {
  /* Värit (brändikirja) */
  --linen: #f6f1e8;
  --paper: #fcfaf6;
  --ink: #3b2f28;
  --ink-muted: #6b5d52;
  --line: #ddd2c3;
  --line-strong: #8f8073;
  --talo-blue: #3e5c70;
  --talo-blue-deep: #2f4757;
  --sky-soft: #d6e2e8;
  --rose-soft: #f1ddd8;
  --rose-deep: #9a4b53;
  --honey: #d9a441;
  --honey-light: #f2c46d;
  --honey-deep: #86600f;
  --berry: #8e2f36;
  --night: #14161a;

  /* Kirjasimet */
  --f-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
  --f-logo: "Fraunces Soft", Georgia, serif;

  /* Mittoja */
  --radius: 4px;
  --pill: 999px;
  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --shadow-soft: 0 1px 2px rgba(59,47,40,.05), 0 4px 12px rgba(59,47,40,.06);
  --shadow-paper: 0 1px 2px rgba(59,47,40,.06), 0 12px 32px rgba(59,47,40,.10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--linen); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main section { position: relative; }
.page { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--talo-blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* Tekstityylit */
.eyebrow { font-family: var(--f-head); font-size: 12px; line-height: 18px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--ink); }
.h2 { margin: 10px 0 16px; font-family: var(--f-head); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.script { display: block; height: clamp(52px, 5vw, 70px); width: auto; margin-left: -4px; }
.hand { font-family: var(--f-hand); font-weight: 600; }

/* Painikkeet ja linkit */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: var(--pill); border: 0; font-family: var(--f-body); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.btn-primary { background: var(--talo-blue); color: var(--paper); }
.btn-primary:hover { background: var(--talo-blue-deep); }
.btn-light { background: var(--paper); color: var(--talo-blue); }
.btn-light:hover { background: #fff; }
.link { color: var(--talo-blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { color: var(--talo-blue-deep); text-decoration-thickness: 2px; }

/* Syreenit osioiden saumoissa */
.hero-wrap { position: relative; }
.lilac { position: absolute; top: var(--top, 0); z-index: 4; pointer-events: none; height: auto; filter: drop-shadow(0 8px 14px rgba(40,30,20,.16)); }
.lilac--left { left: clamp(-110px, -6vw, -60px); transform: rotate(-9deg); }
.lilac--right { right: clamp(-110px, -6vw, -60px); transform: scaleX(-1) rotate(-9deg); }

/* ---------- Ylätunniste ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header .bar { display: flex; align-items: center; justify-content: flex-end; gap: 24px; height: 76px; max-width: calc(var(--wrap) + 112px); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.site-header .brand { margin-right: auto; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.site-header .brand img { height: 40px; width: auto; }
.site-header nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--paper); text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-header .nav-cta { border: 1px solid rgba(252,250,246,.8); border-radius: var(--pill); padding: 11px 18px; text-shadow: none; }
.site-header .menu-btn { display: none; }
.site-header.solid { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(59,47,40,.06); }
.site-header.solid .brand { opacity: 1; visibility: visible; }
.site-header.solid nav a { color: var(--ink); text-shadow: none; }
.site-header.solid .nav-cta { background: var(--talo-blue); border-color: var(--talo-blue); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(680px, max(100svh, 54vw), 1100px); overflow: hidden; color: var(--paper); background: #4a73a3; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,34,60,.38) 0%, rgba(18,34,60,0) 24%), linear-gradient(0deg, rgba(20,30,20,.45) 0%, rgba(20,30,20,0) 22%); }
.hero__center { position: absolute; left: 0; right: 0; top: 92px; transform-origin: 50% 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
.hero__lamp { width: clamp(64px, 7.4vw, 108px); height: auto; }
.hero__name { margin: 16px 0 0; font-family: var(--f-logo); font-weight: 400; font-size: clamp(56px, 7.6vw, 110px); line-height: 1; letter-spacing: -.005em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero__tag { width: clamp(258px, 35vw, 506px); height: auto; margin-top: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)) drop-shadow(0 2px 14px rgba(0,0,0,.45)); }
.hero__next { position: absolute; right: max(56px, env(safe-area-inset-right, 0px)); top: 104px; display: flex; align-items: baseline; gap: 12px; color: var(--paper); text-decoration: none; }
.hero__next[hidden] { display: none; }
.hero__next .lbl { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; opacity: .9; }
.hero__next .dt { font-family: var(--f-hand); font-weight: 600; font-size: 24px; color: var(--honey-light); }
.hero__next .ti { font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(252,250,246,.6); }
.hero .lilac--top { left: -90px; top: -100px; width: 500px; transform: scaleX(-1) rotate(4deg); filter: drop-shadow(0 8px 14px rgba(10,20,40,.25)); }
.paths { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 3; }
.paths ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 900px; list-style: none; margin: 0; padding: 0; }
.path { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px; background: var(--paper); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-family: var(--f-head); font-size: 21px; box-shadow: 0 12px 32px rgba(0,0,0,.18); transition: transform .2s ease; }
.path span { font-family: var(--f-body); color: var(--talo-blue); }
.path:hover { transform: translateY(-2px); }
.hero-seam { position: relative; height: 0; }
.hero-seam .lilac { top: -250px; right: -96px; width: 480px; transform: scaleX(-1) rotate(-6deg); }

/* ---------- Tervetuloa ---------- */
.intro { padding-block: 120px; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 96px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 36px; }
.fact__n { font-family: var(--f-head); font-size: 40px; line-height: 1.1; color: var(--talo-blue); white-space: nowrap; }
.fact__t { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: 6px; }
.intro__photo { width: 100%; height: 560px; object-fit: cover; object-position: center 40%; border-radius: var(--radius); }

/* ---------- Juhlat ---------- */
.juhlat { padding-bottom: 200px; }
.juhlat__gal { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.juhlat__gal .big { width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius); }
.juhlat__side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.juhlat__side img { width: 100%; height: 268px; object-fit: cover; border-radius: var(--radius); }
.juhlat__copy { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 96px; margin-top: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.chips li { padding: 6px 14px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.rooms { list-style: none; margin: 0; padding: 0; }
.rooms li { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rooms b { font-family: var(--f-head); font-weight: 500; font-size: 20px; }
.rooms span { color: var(--ink-muted); }
.prices { display: flex; gap: 40px; margin: 26px 0 30px; }
.prices .p { font-family: var(--f-hand); font-weight: 600; font-size: 38px; line-height: 40px; }
.prices .l { font-size: 14px; color: var(--ink-muted); }
.prices .l2 { font-family: var(--f-hand); font-weight: 600; font-size: 18px; line-height: 20px; color: var(--honey-deep); margin-top: 2px; }
.note { margin-top: 14px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* ---------- Kahvila ja catering ---------- */
.herkut { background: var(--rose-soft); padding-block: 200px 140px; }
.herkut__top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 96px; align-items: end; }
.herkut__top .h2 { margin-top: 2px; margin-bottom: 0; }
.alina { margin-top: 26px; font-size: 15px; color: var(--ink-muted); }
.alina .soc { display: flex; gap: 18px; margin-top: 8px; font-size: 14px; }
.alina .soc a { color: var(--ink-muted); text-underline-offset: 4px; }
.gallery { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr; gap: 20px; margin-top: 110px; list-style: none; padding: 0; }
.gallery li { height: 420px; }
.gallery li:nth-child(2) { margin-top: -56px; }
.gallery li:nth-child(4) { margin-top: 40px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 104px; }
.services div { background: var(--paper); padding: 28px 30px; border-radius: var(--radius); }
.services h3 { margin: 0 0 8px; font-family: var(--f-head); font-weight: 500; font-size: 22px; }
.services p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }

/* ---------- Tapahtumat ---------- */
.tap { padding-block: 128px 200px; }
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin-top: 48px; list-style: none; padding: 0; }
.ev { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.ev__m { position: relative; height: 240px; flex: none; }
.ev__m img { width: 100%; height: 100%; object-fit: cover; }
.ev__d { position: absolute; left: 20px; bottom: -18px; background: var(--paper); border-radius: var(--pill); padding: 4px 18px; font-family: var(--f-hand); font-weight: 600; font-size: 26px; line-height: 34px; color: var(--honey-deep); box-shadow: 0 4px 12px rgba(59,47,40,.10); }
.ev__b { display: flex; flex-direction: column; flex: 1; padding: 38px 26px 26px; }
.tag { align-self: flex-start; padding: 2px 10px; border-radius: var(--pill); font-size: 13px; font-weight: 600; background: var(--rose-soft); color: var(--rose-deep); }
.tag--buffet { background: var(--sky-soft); color: var(--talo-blue); }
.tag--joulu { background: var(--berry); color: var(--paper); }
.ev h3 { margin: 12px 0 6px; font-family: var(--f-head); font-weight: 500; font-size: 23px; line-height: 1.3; }
.ev__meta { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.ev__f { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; }
.ev__pr { font-family: var(--f-hand); font-weight: 600; font-size: 28px; }
.ev__welcome { font-family: var(--f-hand); font-weight: 600; font-size: 22px; color: var(--ink-muted); }
.ev .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.later { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 48px; padding: 22px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.later__l { font-family: var(--f-head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.later ul { display: contents; list-style: none; }
.later li { display: flex; align-items: baseline; gap: 12px; }
.later .d { font-family: var(--f-hand); font-weight: 600; font-size: 24px; color: var(--honey-deep); }
.later .k { color: var(--ink-muted); font-size: 14px; }
.later li > a { display: flex; align-items: baseline; gap: 12px; color: inherit; text-decoration: none; }
.later li > a:hover .t, .later li > a:focus-visible .t { text-decoration: underline; text-underline-offset: 3px; }
.later .g { color: var(--talo-blue); font-weight: 600; font-size: 14px; white-space: nowrap; }
.m-only { display: none !important; }

/* ---------- Tarina ---------- */
.tarina { background: var(--sky-soft); padding-block: 180px 150px; }
.tarina__grid { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 104px; align-items: center; }
.tarina__photo { width: 100%; height: 600px; object-fit: cover; object-position: right 70%; border-radius: var(--radius); }
.timeline { list-style: none; margin: 36px 0 0; padding: 0 0 0 30px; border-left: 1px solid var(--talo-blue); display: grid; gap: 22px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--talo-blue); }
.timeline .y { font-family: var(--f-hand); font-weight: 600; font-size: 26px; line-height: 28px; color: var(--talo-blue); }
.timeline .x { font-size: 16px; line-height: 25px; margin-top: 2px; }

/* ---------- Yhteystiedot ---------- */
.yht { background: var(--talo-blue); color: var(--paper); padding-top: 190px; }
.yht .h2 { color: var(--paper); margin-bottom: 0; }
.yht__top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 96px; align-items: end; }
.yht__top .lead { color: var(--sky-soft); }
.cta { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.cta .btn { min-height: 56px; padding: 0 32px; font-size: 17px; }
.cta p { font-size: 15px; line-height: 23px; color: var(--sky-soft); max-width: 290px; }
.cta b { color: var(--paper); font-weight: 600; }
.contact { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 24px; margin-top: 56px; }
.card { display: flex; flex-direction: column; align-items: flex-start; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 36px 34px; }
.card .eyebrow { color: var(--ink-muted); font-size: 11px; }
.card h3 { margin: 10px 0 8px; font-family: var(--f-head); font-weight: 500; font-size: 26px; line-height: 1.25; }
.card__d { margin-bottom: 18px; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.row { display: flex; flex-direction: column; width: 100%; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 18px; line-height: 26px; font-weight: 600; overflow-wrap: anywhere; }
.row span { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.row:hover { color: var(--talo-blue); }
.card .soc { display: flex; gap: 22px; margin: 20px 0 28px; }
.card .soc a { color: var(--talo-blue); font-weight: 600; text-underline-offset: 5px; }
.card .btn { margin-top: auto; }
.card--map { padding: 14px 14px 30px; }
.card--map img { width: 100%; border-radius: 3px; }
.card--map .t { padding: 0 20px; }
.card--map h3 { font-size: 21px; }

.site-footer { margin-top: 96px; border-top: 1px solid rgba(252,250,246,.25); padding-block: 56px 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; color: var(--sky-soft); font-size: 15px; }
.site-footer h4 { margin: 0 0 12px; font-family: var(--f-head); font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .about { max-width: 260px; margin-top: 14px; line-height: 24px; }
.site-footer .logo { height: 44px; width: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-block: 22px 34px; border-top: 1px solid rgba(252,250,246,.15); font-size: 13px; color: var(--sky-soft); }
.footer-bottom a { color: var(--sky-soft); }

/* ---------- Mobiilivalikko ---------- */
.menu-panel { position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: calc(env(safe-area-inset-top, 0px) + 20px) max(24px, env(safe-area-inset-right, 0px)) 32px max(24px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; }
.menu-panel { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.menu-panel[hidden] { display: none; }
.menu-panel .top { display: flex; justify-content: space-between; align-items: center; }
.menu-panel .top img { height: 36px; width: auto; }
.menu-panel ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.menu-panel ul a { display: block; padding: 12px 0; font-family: var(--f-head); font-size: 28px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: 32px; }
.menu-panel .contacts { margin-top: auto; font-size: 15px; color: var(--ink-muted); line-height: 1.8; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper); cursor: pointer; }

/* ================= Tabletti ja puhelin ================= */
@media (max-width: 1100px) {
  .intro__grid, .juhlat__copy, .herkut__top, .yht__top { gap: 56px; }
  .tarina__grid { grid-template-columns: 400px minmax(0,1fr); gap: 64px; }
  .contact { grid-template-columns: 1fr 1fr; }
  .card--map { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .site-header nav { display: none; }
  .site-header .menu-btn { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--pill); background: rgba(252,250,246,.16); border: 1px solid rgba(252,250,246,.55); color: var(--paper); cursor: pointer; }
  .site-header.solid .menu-btn { background: var(--paper); border-color: var(--line); color: var(--ink); }
  .site-header .bar { height: 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .site-header .brand img { height: 34px; }
  html { scroll-padding-top: 64px; }

  .hero { height: 760px; }
  .hero__bg { width: 196%; max-width: none; height: auto; left: -56%; top: auto; bottom: -10px; object-fit: initial; }
  .hero__center { top: 150px; }
  .hero__name { font-size: 56px; margin-top: 14px; }
  .hero__tag { width: 270px; margin-top: 4px; }
  .hero .lilac--top { width: 250px !important; left: -70px; top: -64px; transform: rotate(-14deg); }
  .hero__next { left: 20px; right: 20px; top: 358px; justify-content: center; }
  .hero__next .lbl { display: none; }
  .hero__next .dt { font-size: 22px; }
  .hero__next .ti { font-size: 14px; }
  .paths { position: relative; bottom: auto; margin-top: -34px; }
  .paths ul { grid-template-columns: 1fr; gap: 8px; }
  .path { min-height: 58px; font-size: 19px; padding: 0 20px; box-shadow: 0 10px 26px rgba(59,47,40,.14); }
  .hero-seam { display: none; }

  .intro { padding-block: 72px 64px; }
  .intro__grid { grid-template-columns: 1fr; gap: 30px; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 26px 0 0; }
  .fact { background: var(--paper); border-radius: var(--radius); padding: 14px 12px; }
  .fact__n { font-size: 22px; }
  .fact__n .min-l { display: none; }
  .ev__m { height: 190px; }
  .fact__t { font-size: 12px; line-height: 16px; margin-top: 4px; }
  .intro__photo { height: 420px; }

  .juhlat { padding-bottom: 120px; }
  .juhlat__gal { grid-template-columns: 1fr 1fr; gap: 8px; }
  .juhlat__gal .big { grid-column: 1 / -1; height: 250px; }
  .juhlat__side { display: contents; }
  .juhlat__side img { height: 150px; }
  .juhlat__copy { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .prices { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .prices .p { font-size: 32px; line-height: 34px; }
  .juhlat .btn { width: 100%; }
  .juhlat .note { text-align: center; }

  .herkut { padding-block: 120px 72px; }
  .herkut__top { grid-template-columns: 1fr; gap: 18px; }
  .gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 28px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery li { flex: none; width: 70%; height: 300px; margin-top: 0 !important; scroll-snap-align: start; }
  .services { grid-template-columns: 1fr; gap: 8px; margin-top: 30px; }
  .services div { padding: 18px 20px; }
  .services h3 { font-size: 19px; }

  .tap { padding-block: 72px 140px; }
  .events { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 24px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .events::-webkit-scrollbar { display: none; }
  .events > li { flex: none; width: 82%; scroll-snap-align: start; }
  .events .d-only { display: none !important; }
  .m-only { display: flex !important; }
  .later { display: block; padding: 0; margin-top: 26px; border-bottom: 0; }
  .later__l { display: block; padding: 18px 0 6px; }
  .later ul { display: block; padding: 0; margin: 0; }
  .later li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .later .d { width: 80px; flex: none; font-size: 21px; }
  .later .t { flex: 1; }
  .later li > a { flex-wrap: wrap; row-gap: 2px; }
  .later li > a .k { order: 3; flex-basis: 100%; padding-left: 92px; }
  .later li > a .g { margin-left: auto; }
  .later .all { display: inline-block; margin-top: 22px; }

  .tarina { padding-block: 130px 150px; }
  .tarina__grid { grid-template-columns: 1fr; gap: 34px; }
  .tarina__photo { height: 440px; }
  .timeline { padding-left: 24px; gap: 18px; }
  .timeline li::before { left: -30px; }
  .timeline .y { font-size: 23px; }
  .timeline .x { font-size: 15px; line-height: 23px; }

  .yht { padding-top: 130px; }
  .yht__top { grid-template-columns: 1fr; gap: 20px; }
  .cta { flex-direction: column; align-items: stretch; text-align: center; }
  .cta p { max-width: none; }
  .contact { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .card { padding: 24px 22px; }
  .card h3 { font-size: 22px; }
  .row { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; }
  .card .btn { width: 100%; }
  .card--map { display: block; padding: 10px 10px 22px; }
  .card--map .t { padding: 0 12px; }
  .site-footer { margin-top: 56px; grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .site-footer .brandcol { grid-column: 1 / -1; }

  .lilac { width: var(--mw, 330px) !important; top: var(--mtop, var(--top, 0)); }
  .lilac--left { left: -70px; }
  .lilac--right { right: -70px; }
}

/* Kapeahko tietokonenäyttö: pienempi syreeni ja tiiviimpi valikko */
@media (min-width: 861px) and (max-width: 1240px) {
  .hero .lilac--top { width: 300px; left: -80px; top: -70px; }
  .hero-seam .lilac { width: 320px !important; right: -150px; top: -170px; }
  .site-header nav ul { gap: 20px; }
  .site-header nav a { letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Tapahtuman varaustiedot ja lisärivi */
.ev__book { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--linen); font-size: 15px; line-height: 1.6; }
.ev__book a { color: var(--talo-blue); font-weight: 600; }
.later--mobile-only { display: none; }
@media (max-width: 860px) { .later--mobile-only { display: block; } }

/* Kielivalitsin FI | EN */
.site-header nav .lang { display: flex; align-items: center; gap: 0; font-size: 13px; letter-spacing: .14em; font-weight: 600; }
.site-header nav .lang > * { padding: 4px 8px; }
.site-header nav .lang > * + * { border-left: 1px solid currentColor; }
.site-header nav .lang span { color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.site-header nav .lang a { opacity: .72; }
.site-header nav .lang a:hover { opacity: 1; }
.site-header.solid nav .lang span { color: var(--ink); text-shadow: none; }
.site-header nav .lang > *:first-child { padding-left: 0; }
.site-header .lang { color: rgba(252,250,246,.6); }
.site-header.solid .lang { color: var(--line); }
.lang-m { display: none; }
.menu-panel .lang-p { margin: 24px 0 0; font-size: 16px; color: var(--ink-muted); }
.menu-panel .lang-p a { color: var(--talo-blue); font-weight: 600; }
.menu-panel .lang-p span { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .site-header .lang-m { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; margin-right: -12px; font-size: 13px; letter-spacing: .12em; font-weight: 600; color: var(--paper); text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
  .site-header.solid .lang-m { color: var(--ink); text-shadow: none; }
}

/* Englanninkieliset sivut: väliaikainen käsialateksti, kunnes Canva-kirjaimet valmistuvat */
.script-t { height: auto; font-family: var(--f-hand); font-weight: 600; font-size: clamp(46px, 4.6vw, 64px); line-height: 1; color: #A87516; margin-bottom: 6px; }
.script-t--light { color: #F2C46D; }
.hero__tag-t { display: block; width: auto; font-family: var(--f-hand); font-weight: 600; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.1; white-space: nowrap; color: #F2C46D; text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 14px rgba(0,0,0,.45); filter: none; }
@media (max-width: 860px) { .hero__tag-t { width: auto; font-size: 27px; } }
@media (max-width: 360px) { .hero__tag-t { font-size: 24px; } }
.site-header nav .lang span[aria-current] { text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-header nav .lang a { opacity: .6; }
/* Kapasiteetti: jopa 70 vierasta */
.rooms .rooms__cap { border-bottom: 0; padding-top: 12px; }
.rooms .rooms__cap b { font-size: 16px; font-family: var(--f-body); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--ink-muted); }
.rooms .rooms__cap span, .cap { font-family: var(--f-hand); font-weight: 600; font-size: 28px; line-height: 1; color: #A87516; }
.cap { font-size: 1.35em; white-space: nowrap; }
/* Oiva-raportti */
.footer-bottom .fb-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.oiva-link { display: inline-flex; align-items: center; gap: 7px; }
.oiva-link .oiva-ico { color: var(--honey); flex: none; }
@media (max-width: 860px) { .footer-bottom { flex-direction: column; } }
.oiva { margin: 22px 0 0; }
.oiva a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--paper); color: var(--ink); text-decoration: none; line-height: 1.3; }
.oiva a:hover { border-color: var(--honey); }
.oiva .oiva-ico { color: #d08a2a; flex: none; }
.oiva b { display: block; font-size: 15px; font-weight: 600; }
.oiva b + span { display: block; font-size: 13px; color: var(--ink-muted); }
.oiva-dlg { padding: 0; border: 0; border-radius: var(--radius); background: #fff; max-width: min(92vw, 640px); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.oiva-dlg::backdrop { background: rgba(30,24,20,.75); }
.oiva-dlg img { display: block; width: 100%; height: auto; }
.oiva-dlg__x { position: sticky; top: 8px; float: right; margin: 8px 8px -52px 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 1; }
.ev__full { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: #f3e3e4; color: var(--berry); font-weight: 600; font-size: 14px; }

/* Evästebanneri */
.cookie { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.cookie__in { pointer-events: auto; max-width: 880px; margin: 0 auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(59,47,40,.18); padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.cookie__t { flex: 1 1 380px; min-width: 0; }
.cookie__t h2 { margin: 0 0 4px; font-family: var(--f-head); font-weight: 500; font-size: 20px; }
.cookie__t p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); }
.cookie__t a { color: var(--talo-blue); }
.cookie__b { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__no { background: transparent; color: var(--talo-blue); border: 1px solid var(--talo-blue); }
.cookie-link { background: none; border: 0; padding: 0; font: inherit; color: var(--sky-soft); text-decoration: underline; cursor: pointer; }
.cookie-link:focus-visible, .cookie button:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
@media (max-width: 560px) { .cookie__b { width: 100%; } .cookie__b .btn { flex: 1 1 0; padding: 0 12px; } .cookie__in { padding: 18px; } }

/* Uutiskirje (MailerLite) */
.nl-strip { margin-top: 96px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px 48px; align-items: center; padding: 34px 38px; border-radius: var(--radius); background: rgba(252,250,246,.08); border: 1px solid rgba(252,250,246,.22); color: var(--paper); }
.nl-strip + .site-footer { margin-top: 56px; }
.nl-strip__h { margin: 0 0 6px; font-family: var(--f-head); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--paper); }
.nl-strip__t p { margin: 0; color: var(--sky-soft); line-height: 1.6; }
.nl-form__row { display: flex; gap: 10px; }
.nl-form input[type=email] { flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.nl-form input[type=email]:focus { outline: 2px solid var(--honey, #d9a441); outline-offset: 2px; }
.nl-form input[aria-invalid=true] { border-color: #b3261e; }
.nl-form .btn { flex: none; }
.nl-form__note { margin: 10px 4px 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.nl-form__note a { color: inherit; text-underline-offset: 3px; }
.nl-form__ok, .nl-form__err { margin: 10px 4px 0; font-size: 15px; font-weight: 600; }
.nl-form__ok { color: #3f6b3a; }
.nl-form__err { color: #b3261e; }
.nl-strip .nl-form__note { color: var(--sky-soft); }
.nl-strip .nl-form__ok { color: var(--paper); }
.nl-strip .nl-form__err { color: #ffd2cc; }
.nl-strip input[type=email] { border-color: transparent; }
.nl-form.is-done .nl-form__row, .nl-form.is-done .nl-form__note { display: none; }
.nl-box { margin-top: 48px; padding: 30px 32px; border-radius: var(--radius); background: var(--linen); border: 1px solid var(--line); max-width: 760px; }
.nl-box__h { margin: 0 0 6px; font-family: var(--f-head); font-weight: 500; font-size: 24px; color: var(--ink); }
.nl-box > p { margin: 0 0 16px; color: var(--ink-muted); }
.nl-box--inline { margin-top: 28px; padding: 24px; }
.nl-box--inline .nl-box__h { font-size: 20px; }
@media (max-width: 860px) {
  .nl-strip { grid-template-columns: 1fr; margin-top: 64px; padding: 26px 22px; }
  .nl-strip__h { font-size: 22px; }
  .nl-box { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .nl-form__row { flex-direction: column; }
  .nl-form .btn { width: 100%; }
}

/* ---------- Postituslistan ilmoituspalkki (ylälaita) ---------- */
.nl-bar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 48px; background: var(--talo-blue); color: var(--paper); font-size: 14px; line-height: 1.3; text-align: center; }
.nl-bar__a { color: inherit; text-decoration: none; padding: 9px 0; }
.nl-bar__a strong { font-weight: 600; color: var(--honey-light); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nl-bar__a:hover strong { text-decoration-thickness: 2px; }
.nl-bar__short { display: none; }
.nl-bar__x { position: absolute; right: max(8px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--pill); background: transparent; color: var(--paper); cursor: pointer; opacity: .8; }
.nl-bar__x:hover, .nl-bar__x:focus-visible { opacity: 1; background: rgba(252,250,246,.14); }
html:has(.nl-bar) { scroll-padding-top: 114px; }
html:has(.nl-bar) .hero__center { top: 128px; }
html:has(.nl-bar) .hero__next { top: 142px; }
.menu-panel .menu-nl { color: var(--talo-blue); }
.nl-box--front { margin-top: 40px; }
@media (max-width: 860px) {
  .nl-bar { font-size: 13.5px; padding: 0 44px 0 16px; justify-content: flex-start; text-align: left; }
  .nl-bar__long { display: none; }
  .nl-bar__short { display: inline; }
  html:has(.nl-bar) { scroll-padding-top: 102px; }
  html:has(.nl-bar) .hero__center { top: 160px; }
  html:has(.nl-bar) .hero__next { top: 368px; }
  html:has(.nl-bar) .sh { padding-top: 132px; }
}
