:root {
  --paper: #fff;
  --ink: #211f23;
  --body: #4a454d;
  --muted: #6a656d;
  /* Lavender in three steps: pale for backgrounds, mid for containers, deep for text and primary actions */
  --lilac-pale: #f4f0f8;
  --lilac: #e2d7ee;
  --lilac-hover: #d6c8e6;
  --lilac-deep: #594866;
  --lilac-deepest: #4a3b56;
  /* Warm counterweight */
  --cream: #fbf7f2;
  --peach: #efc4a8;
  --peach-soft: #f6dccb;
  --line: rgb(33 31 35 / 14%);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --header: 68px;
  --pad: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure, ul { margin: 0; }
section[id] { scroll-margin-top: var(--header); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(40px, 10vw, 58px); line-height: 1.04; }
p { text-wrap: pretty; }

/* Header: sticky on every screen, so "Varaa aika" is always one tap away */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font: 30px/1 var(--serif);
  letter-spacing: -.04em;
  text-decoration: none;
}
.wordmark span { color: var(--lilac-deep); }

.site-nav { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--lilac-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--lilac-deepest); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 11px; }

/* Scroll progress */
.progress {
  position: fixed;
  top: calc(var(--header) - 2px);
  left: 0;
  right: 0;
  z-index: 25;
  height: 2px;
  background: var(--lilac-deep);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Hero */
.hero {
  padding: 40px var(--pad) 0;
  display: grid;
  gap: 44px;
}
.hero .tag { display: none; }  /* "Hei, olen Sanna": desktop only */
.tag {
  display: inline-block;
  padding: 8px 14px;
  background: var(--lilac);
  color: var(--lilac-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(48px, 13.5vw, 74px);
  line-height: .98;
}
.hero-lead {
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.hero-place {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--peach);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color .2s var(--ease);
}
.hero-place:hover { color: var(--lilac-deep); }

/* Warm offset "shadow": light from the top left, so it falls down and right */
.hero-photo { position: relative; isolation: isolate; margin: 0 14px 14px 0; }
.hero-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px -14px -14px 14px;
  background: var(--peach-soft);
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Prose */
.prose p { color: var(--body); font-size: 16px; line-height: 1.8; max-width: 64ch; }
.prose p + p { margin-top: 18px; }
.prose .lead { color: var(--ink); }  /* same size as the rest: only the colour lifts the opening line */
.treatment-more { max-width: 64ch; }
.treatment-more .acc-inline { margin-top: 8px; }

/* About */
.about {
  position: relative;
  background: var(--lilac-pale);
  padding: 72px var(--pad);
}
.about-block { display: grid; gap: 24px; margin-bottom: 64px; }
.about-block h2 { text-wrap: balance; margin-bottom: 20px; }
.traits {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.traits li {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
.traits li:nth-child(1) { background: var(--lilac-deep); color: #fff; }
.traits li:nth-child(2) { background: var(--lilac); color: var(--lilac-deep); }
.traits li:nth-child(3) { background: var(--peach); color: #6b3d20; }
.traits li:nth-child(4) { background: #fff; color: var(--ink); }
.about-cards { margin-top: 44px; display: grid; gap: 16px; }
.card { background: #fff; padding: 28px 22px; }
.card h3 { font-size: 28px; line-height: 1.12; margin-bottom: 16px; }
.card p { color: var(--body); font-size: 16px; line-height: 1.8; }
.card p + p { margin-top: 14px; }

/* Treatment */
.treatment { background: var(--cream); padding: 72px var(--pad); }
.treatment-grid { display: grid; gap: 28px; }
.treatment-main h2 { margin-bottom: 26px; }
.ailments { background: var(--lilac); padding: 26px 22px; align-self: start; }
.ailments h3 {
  font: 700 11px/1.6 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lilac-deep);
}
.ailments ul { list-style: none; padding: 0; margin-top: 10px; }
.ailments li {
  padding: 13px 0;
  border-bottom: 1px solid rgb(89 72 102 / 22%);
  font-size: 15px;
}
.ailments li:last-child { border-bottom: 0; padding-bottom: 0; }

.room-photo { margin: 56px calc(var(--pad) * -1) 0; }
.room-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Accordion */
.accordion { margin-top: 52px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font: 24px/1.2 var(--serif);
  letter-spacing: -.02em;
  -webkit-tap-highlight-color: transparent;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 4px; }
.acc-mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--lilac);
  transition: background-color .3s var(--ease);
}
.acc:not(.is-open) summary:hover .acc-mark { background: var(--lilac-hover); }
.acc.is-open .acc-mark { background: var(--peach-soft); }
.acc-mark::before,
.acc-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -.75px 0 0 -6px;
  background: var(--lilac-deep);
  transition: transform .35s var(--ease);
}
.acc-mark::after { transform: rotate(90deg); }
.acc.is-open .acc-mark::after { transform: rotate(0deg); }
.acc:not(.js-acc)[open] .acc-mark { background: var(--peach-soft); }
.acc:not(.js-acc)[open] .acc-mark::after { transform: rotate(0deg); }

.acc-body { overflow: hidden; }
.acc-inner { padding: 0 0 26px; max-width: 70ch; }
.acc-inner p { color: var(--body); font-size: 16px; line-height: 1.8; }
.acc-inner p + p { margin-top: 14px; }
.acc-inner .list-title { margin-top: 20px; color: var(--ink); font-weight: 600; }
.plain-list { list-style: none; padding: 0; margin-top: 8px; columns: 1; }
.plain-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 15px;
  color: var(--body);
  break-inside: avoid;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  background: var(--lilac-deep);
  opacity: .55;
}

/* Inline "read more" inside a card */
.acc-inline { margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 0; }
.acc-inline summary {
  padding: 16px 0 4px;
  font: 700 12px/1.4 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lilac-deep);
}
.acc-inline .acc-mark { width: 30px; height: 30px; }
.acc-inline .acc-inner { padding-top: 14px; padding-bottom: 4px; }

/* Booking */
.booking { background: var(--lilac); padding: 64px var(--pad) 72px; }
.booking-title { margin-bottom: 26px; }
.booking-grid { display: grid; gap: 40px; }
.booking-main { order: 1; }
.booking-side { order: 2; }
.booking-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.calendar { position: relative; background: #fff; min-height: 340px; }
.calendar iframe { display: block; width: 100%; height: 640px; border: 0; background: transparent; }
.calendar:not(.is-live) iframe { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.calendar.is-live { padding: 8px; }
.calendar.is-live .calendar-fallback { display: none; }
.calendar-fallback {
  min-height: 340px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.calendar-fallback p:first-child { font: 26px/1.2 var(--serif); color: var(--ink); }
.calendar-fallback p { color: var(--body); font-size: 15px; }

.arrival { margin-top: 26px; }
.arrival h3 { font-size: 34px; line-height: 1.1; }
.address {
  text-decoration: none;
  background: linear-gradient(var(--lilac-deep), var(--lilac-deep)) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 5px;
  transition: color .2s var(--ease);
}
.address:hover { color: var(--lilac-deep); }
.arrival p { margin-top: 14px; color: var(--body); font-size: 16px; line-height: 1.7; max-width: 46ch; }
.contact { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 600; }
.contact a { text-underline-offset: 4px; }

/* Footer */
.footer {
  background: var(--lilac-pale);
  padding: 30px var(--pad) 40px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.footer p, .footer small { font-size: 13px; color: var(--muted); }

/* Letter effect: letters swell near the pointer (after ristovauras.com); held on the active nav link */
.mag-space { display: inline-block; width: .32em; }
.mag-word { display: inline-block; white-space: nowrap; }
.mag-char {
  --m: 0;
  display: inline-block;
  padding-inline: calc(.05em * var(--m));
  transform: scale(calc(1 + .2 * var(--m)), calc(1 - .05 * var(--m)));
  -webkit-text-stroke: calc(.07em * var(--m)) currentColor;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--peach);
  transform: scale(0);
  transition: transform .4s var(--ease);
}
.site-nav a[aria-current]::after { transform: scale(1); }

/* Entrance reveals (only when JS is on) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-photo.reveal { transform: translateY(26px) scale(.97); }
.js .hero-photo.reveal.in { transform: none; }
.js .hero-photo.reveal img { transform: scale(1.06); transition: transform 1.6s var(--ease); }
.js .hero-photo.reveal.in img { transform: none; }
.js .room-photo.reveal img,
.js .booking-photo.reveal img { transform: scale(1.05); transition: transform 1.4s var(--ease); }
.js .room-photo.reveal.in img,
.js .booking-photo.reveal.in img { transform: none; }
.room-photo, .booking-photo { overflow: hidden; }

@media (min-width: 760px) {
  :root { --header: 78px; --pad: 6vw; }
  html { scroll-padding-top: var(--header); }
  section[id] { scroll-margin-top: var(--header); }
  .header {
    position: sticky;
    top: 0;
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .cta-bar { display: none; }
  .wordmark { font-size: 34px; }
  .site-nav { display: flex; gap: 38px; margin-left: auto; margin-right: 44px; }
  .site-nav a { padding: 8px 0 14px; }
  .site-nav a::after { bottom: 3px; }
  .btn-small { min-height: 44px; padding: 0 22px; }

  .hero {
    min-height: calc(100svh - var(--header));
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 6vw;
    padding: 56px var(--pad) 0;
  }
  .hero-copy { padding-bottom: 72px; }
  .hero h1 { font-size: clamp(64px, 7.4vw, 108px); }
  .hero-lead { font-size: 18px; }
  .hero .tag { display: inline-block; }
  .hero-photo {
    margin-right: 18px;
    margin-bottom: 18px;
    max-width: 520px;
    justify-self: end;
    width: 100%;
    align-self: end;
    margin-top: 0;
  }
  .hero-photo::before { inset: 18px -18px -18px 18px; }

  .prose p { font-size: 18px; }

  .about { padding: 110px 9vw; }
  .about-block { grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: start; margin-bottom: 110px; }
  .about h2 { font-size: clamp(52px, 6vw, 80px); }
  .about-head { position: sticky; top: calc(var(--header) + 32px); }
  .story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: start; padding: 60px 56px; }
  .story h3 { margin-bottom: 0; font-size: 40px; }
  .card p { font-size: 17px; }

  .treatment { padding: 120px 9vw; }
  .treatment-grid { grid-template-columns: 1.3fr .7fr; column-gap: 7vw; row-gap: 0; }
  .treatment-main { grid-row: 1; }
  .ailments { grid-row: 1; grid-column: 2; align-self: stretch; display: flex; flex-direction: column; }
  .ailments ul { flex: 1; display: flex; flex-direction: column; }
  .ailments li { flex: 1; display: flex; align-items: center; }
  .treatment-more { grid-column: 1; grid-row: 2; }
  .treatment-main h2 { font-size: clamp(52px, 6vw, 80px); }
  .ailments { padding: 34px 30px; }
  .room-photo { margin: 90px 0 0; }
  .room-photo img { aspect-ratio: 16 / 9; object-position: 50% 55%; }
  .acc summary { font-size: 30px; padding: 28px 0; }
  .acc-inner p { font-size: 17px; }
  .acc-inline summary { font-size: 12px; padding: 18px 0 4px; }
  .plain-list { columns: 2; column-gap: 40px; }

  .booking { padding: 110px 9vw 120px; }
  .booking-grid { grid-template-columns: .85fr 1.15fr; gap: 7vw; align-items: start; }
  .booking-main { order: 2; }
  .booking-side { order: 1; }
  .booking-title { font-size: clamp(52px, 6vw, 80px); margin-bottom: 40px; }
  .calendar iframe { height: 720px; }

  .footer { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding: 28px var(--pad); }
  /* One straight row: every item sits on the same text baseline */
  .footer { align-items: last baseline; }
  .footer p, .footer small { margin: 0; line-height: 1.4; }
  .footer .wordmark { line-height: 1; }
}

@media (min-width: 1200px) {
  .hero, .footer { padding-inline: 9vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Portrait under "Kuka olen?" */
.about-photo { margin: 4px 0 20px; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1047 / 1280; object-fit: cover; }

/* "Lue koko tarina": the expanded story spans the whole card */
.story-more { grid-column: 1 / -1; }
.story-more .acc-inner { max-width: none; }
@media (min-width: 900px) {
  .story-more .acc-inner { columns: 2; column-gap: 56px; }
  .story-more .acc-inner p { break-inside: avoid; }
}

.footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Watercolor washes instead of flat lavender boxes ----
   Each wash is a ::before layer behind its box. Washes sit only on boxes that
   never change size (tag, ailments list, trait tags, story heading), so
   opening an accordion never stretches or moves them. */
.tag, .ailments, .traits li, .story h3 { position: relative; isolation: isolate; }
.tag::before, .ailments::before, .traits li::before, .story h3::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: center / 100% 100% no-repeat;
  pointer-events: none;
}
.tag { background: transparent; }
.tag::before { left: -14%; top: -40%; width: 128%; height: 180%; opacity: .85; background-image: url(/images/wc/wc-box-5.webp); }

.ailments { background: transparent; }
.ailments::before { left: -12%; top: -8%; width: 124%; height: 116%; opacity: .56; background-image: url(/images/wc/wc-varying-3.webp); }

.about { background: #fff; }

.traits li { background: transparent !important; }
.traits li::before { left: -14%; top: -30%; width: 128%; height: 160%; }
.traits li:nth-child(1) { color: var(--ink); }
.traits li:nth-child(1)::before { opacity: .9; background-image: url(/images/wc/wc-box-1.webp); }
.traits li:nth-child(2)::before { opacity: .75; background-image: url(/images/wc/wc-box-2.webp); }
.traits li:nth-child(3)::before { opacity: .75; background-image: url(/images/wc/wc-box-3.webp); }
.traits li:nth-child(4)::before { left: -8%; width: 116%; opacity: .6; background-image: url(/images/wc/wc-box-4.webp); }
.traits { gap: 14px 12px; }

/* Story card: white card as before, a small wash only under its heading */
.story h3 { display: inline-block; }
.story h3::before { left: -8%; top: -18%; width: 116%; height: 136%; opacity: .55; background-image: url(/images/wc/wc-box-4.webp); }

/* Footer: Facebook */
.footer-social { font-size: 13px; color: var(--muted); }
.footer-social:hover { color: var(--lilac-deepest); }
/* Phones: the ailments box is tall and narrow, so its stretched wash gets
   darker behind the text; lighten it. */
@media (max-width: 759px) {
  .ailments::before { opacity: .35; }
}

/* Booking section and footer: plain, no flat lavender, no watercolor */
.booking { background: var(--cream); }
.footer { background: #fff; }
/* Calendar box: the section's cream shows through, so the booking page's
   white option buttons stand out. */
.calendar { background: transparent; }

/* No sideways panning on phones: nothing may stick out past the edges
   (clip, unlike hidden, keeps the sticky header working). */
html { overflow-x: clip; background: #fff; }
main, .footer { overflow-x: clip; }

/* Phones: the header's "Varaa aika" appears only after the hero button has
   scrolled out of view (script.js toggles .cta-away). */
@media (max-width: 759px) {
  /* Hiding: a quick, quiet shrink away. Showing: a soft "Pixar" pop:
     the button grows from small, stretches a touch past full size,
     squashes back and settles, like something landing gently. */
  .header .btn { transform-origin: 50% 60%; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .header:not(.cta-away) .btn { opacity: 0; transform: scale(.6); visibility: hidden; pointer-events: none; }
  .header.cta-away .btn { transition-delay: 0s; animation: cta-pop .9s cubic-bezier(.2, .7, .3, 1) both; }
}
@keyframes cta-pop {
  0%   { opacity: 0; transform: translateY(4px) scale(.55, .5); }
  35%  { opacity: 1; transform: translateY(-1px) scale(1.06, 1.1); }
  55%  { transform: translateY(0) scale(.97, .94); }
  75%  { transform: scale(1.015, 1.02); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .header.cta-away .btn { animation: none; }
}
@media (max-width: 759px) {

  /* Footer, compact: name and line on the left, Facebook on the right,
     small print under a thin rule */
  .footer {
    grid-template-columns: 1fr auto;
    grid-template-areas: "mark social" "tag tag" "legal legal";
    gap: 0;
    align-items: center;
    padding: 20px var(--pad) calc(14px + env(safe-area-inset-bottom));
  }
  .footer .wordmark { grid-area: mark; font-size: 24px; line-height: 1.1; justify-self: start; }
  .footer p { grid-area: tag; margin: 2px 0 0; font-size: 13px; }
  .footer .footer-social { grid-area: social; justify-self: end; align-self: baseline; }
  .footer small { grid-area: legal; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
}
.footer .wordmark { text-decoration: none; }
