/* Uue-Mardi — "Evening at a Hiiumaa farm"
   The page moves from day to night. Each section declares data-time; the fixed sky cross-fades
   between five gradient layers (opacity only = compositor-friendly), text ink flips per section. */

/* ---------- fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-standard-normal.woff2) format('woff2-variations');
  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, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-standard-italic.woff2) format('woff2-variations');
  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, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext-standard-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  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, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  /* The sky follows the clock of the story (Jaskar, 2026-11-05): afternoon light at 15-16, golden hour at 18-19 (the
     warmest, lightest point), dusk at 20, late dusk at 22, night only at 23 (navy, never black). Every sky is darker at
     the top and lighter at the horizon (bottom of the screen). Cream text stays AA through soft, feathered shade behind
     each text column (.copy::before etc.), checked on real screenshots by tools/evening.mjs. */

  --ink-dark: #1d2523; --ink-light: #f2ece2;
  --paper: #f7f2e8;
  --wood: #8a5a2b; --ember: #f0a868; --ember-hot: #ffcf8a;
  --chip: #ffc68c; /* the section time chips: a lighter amber than --ember, AA (>= 4.5:1, 15 px) on the 15:00-16:00 day sky and the 19:00 chip low on the golden sky (tests/contrast.spec, 2026-11-17) */
  --pine: #2b3a34;

  --f-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ink: light on dark everywhere (contrast checked against the lightest point of each sky, WCAG AA) */
:root, [data-time] {
  --ink: var(--ink-light); --muted: rgba(242, 236, 226, .8); --line: rgba(242, 236, 226, .22); --accent: var(--ember);
  --btn-bg: var(--ember); --btn-ink: #1a1210;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
/* page scrollbar in the evening palette (Jaskar, 2026-11-07): slim dark navy track, amber thumb, always visible.
   Firefox and Chrome 121+ use scrollbar-color/-width; older Chrome/Safari use the ::-webkit-scrollbar rules. */
html { scrollbar-width: thin; scrollbar-color: var(--ember) #1b2140; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #1b2140; }
::-webkit-scrollbar-thumb { background: var(--ember); border-radius: 10px; border: 2px solid #1b2140; }
::-webkit-scrollbar-thumb:hover { background: var(--ember-hot); }
body {
  font-family: var(--f-sans); font-size: 17px; line-height: 1.62; font-weight: 400;
  color: var(--ink-light); background: #0b1a22;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ember); color: #1a1210; }
:focus-visible { outline: 2px solid var(--accent, var(--wood)); outline-offset: 3px; border-radius: 2px; }
html.ptr :focus-visible { outline: none; } /* after a tap or click: no ring (main.js); a key press brings it back */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #1d2523; color: #f7f2e8;
  padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }
.nav-target:focus:not(:focus-visible) { outline: none; } /* in-page link targets (sections) take focus without a ring on a pointer jump; a keyboard jump shows where focus landed (main.js) */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- sky + grain ---------- */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: #0b1028; }
.sky-l { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.sky-l[data-h="15"] { opacity: 1; } /* no JS: the afternoon sky */
/* each hour is one painted sky: a vertical wash + a low glow where the sun is (or was) */
/* 15-16: a clear, sunny afternoon (matches the photos beside it): blue on top, lighter towards the horizon, warm hazy
   light low down and a hint of sun glow on the right. Painted, never white. */
.sky-l[data-h="15"] { background:
  radial-gradient(ellipse 46% 34% at 82% 100%, rgba(255, 236, 196, .55), rgba(255, 222, 170, .18) 55%, rgba(255, 222, 170, 0) 100%),
  linear-gradient(180deg, #2a64a0 0%, #3f7cb4 34%, #6c9dc4 62%, #a9c1c9 84%, #d9c9a4 100%); }
.sky-l[data-h="16"] { background:
  radial-gradient(ellipse 50% 38% at 78% 100%, rgba(255, 228, 178, .6), rgba(250, 206, 150, .2) 55%, rgba(250, 206, 150, 0) 100%),
  linear-gradient(180deg, #2c619b 0%, #4479ae 34%, #7499bd 62%, #b2bfbf 84%, #e0c597 100%); }
.sky-l[data-h="18"] { background:
  radial-gradient(ellipse 62% 40% at 68% 104%, rgba(255, 204, 128, .62), rgba(240, 168, 104, .2) 55%, rgba(240, 168, 104, 0) 100%),
  linear-gradient(180deg, #485882 0%, #66688a 38%, #b4887a 74%, #e2a46c 100%); }
.sky-l[data-h="19"] { background:
  radial-gradient(ellipse 60% 38% at 66% 104%, rgba(255, 190, 116, .55), rgba(232, 150, 100, .18) 55%, rgba(232, 150, 100, 0) 100%),
  linear-gradient(180deg, #44507c 0%, #615c83 38%, #ab7b73 74%, #d99464 100%); }
.sky-l[data-h="19.7"] { background:
  radial-gradient(ellipse 58% 34% at 64% 104%, rgba(250, 170, 112, .4), rgba(220, 130, 100, .12) 55%, rgba(220, 130, 100, 0) 100%),
  linear-gradient(180deg, #3b4572 0%, #57547b 38%, #9c6f74 74%, #cb8768 100%); }
.sky-l[data-h="20"] { background:
  radial-gradient(ellipse 56% 30% at 62% 104%, rgba(236, 150, 116, .3), rgba(236, 150, 116, 0) 100%),
  linear-gradient(180deg, #34406b 0%, #4a4a73 38%, #8a6374 74%, #bd786c 100%); }
/* 22-23: deep night navy (Jaskar, 2026-11-06: "not mid purple"), never black; the horizon stays a little lighter than
   the top, so stars, the moon and the silhouettes still read */
.sky-l[data-h="22"] { background:
  radial-gradient(ellipse 60% 24% at 60% 104%, rgba(84, 86, 140, .2), rgba(84, 86, 140, 0) 100%),
  linear-gradient(180deg, #141a38 0%, #181e40 38%, #1f2448 72%, #262a50 100%); }
.sky-l[data-h="23"] { background: linear-gradient(180deg, #0b1028 0%, #0e132e 42%, #121735 74%, #161b3c 100%); }
.stars { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
/* moon: only from late dusk (22:00) on, top right; bright with a soft halo. While it fades in it is also blurred, so it
   comes out of the haze as a glow and never reads as a dim grey disc */
.moon { position: absolute; top: clamp(96px, 15vh, 150px); right: clamp(28px, 10vw, 170px); width: clamp(28px, 3vw, 44px); aspect-ratio: 1;
  border-radius: 50%; opacity: 0; will-change: opacity, transform, filter;
  background: radial-gradient(circle at 42% 40%, #fffdf4, #fbf3dc 60%, #efe4c8);
  box-shadow: 0 0 14px 4px rgba(255, 248, 226, .45), 0 0 60px 18px rgba(255, 240, 210, .14), 0 0 160px 60px rgba(190, 200, 235, .08); }
@media (max-width: 900px) { .moon { top: 78px; right: 22px; width: 24px; } }
.stars canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stars .tw { animation: twinkle 3.8s ease-in-out infinite alternate; }
html.rm .stars .tw { animation: none; } /* reduced motion: stars stay, no twinkle (also @media below) */
@keyframes twinkle { from { opacity: 1; } to { opacity: .3; } }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* soft local shade behind text on a lit sky: a blurred rounded patch, no box, no visible edge. Stronger in the light
   hours, almost nothing at night. Sits above the sky, below everything else in the section. */
/* It is the deeper tone of the same sky, and it runs off the screen edge on the text side, so it reads as the sky
   being deeper on that side, not as a patch (trade-off: around the text the lit sky is a little less bright). */
.copy, .ratings, .book .center { position: relative; }
.copy::before, .ratings::before, .book .center::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -140px -150px -140px -60vw; border-radius: 0 180px 180px 0;
  background: rgba(var(--shade-c, 24, 38, 56), var(--shade-a, .5)); filter: blur(64px); }
.grid-2.rev .copy::before { inset: -140px -60vw -140px -150px; border-radius: 180px 0 0 180px; }
.ratings::before { inset: -110px -60vw -150px; border-radius: 0; }
.book .center::before { inset: -100px -60px; border-radius: 50%; }
@media (max-width: 900px) {
  .copy::before, .grid-2.rev .copy::before { inset: -90px -40px; border-radius: 0; filter: blur(48px); }
}
[data-h="15"], [data-h="16"] { --shade-c: 22, 54, 92; --shade-a: .7; --muted: rgba(242, 236, 226, .97); }
[data-h="18"], [data-h="19"] { --shade-c: 52, 48, 86; --shade-a: .66; --muted: rgba(242, 236, 226, .97); }
@media (max-width: 900px) {
  [data-h="15"], [data-h="16"] { --shade-a: .84; } /* 768: the 16:00 kicker sat at 4.35:1 on the light horizon */
  [data-h="18"], [data-h="19"] { --shade-a: .74; }
}
/* the arrival text sits in the hero's mist: the section (and its shade) is painted above the mist */
.arrive { z-index: 2; }
/* ...which also lifted the shade under its ratings (inset 150 px + 64 px blur below them) over the next section's 16:00
   kicker: a navy veil at about half strength (painted "16:00" 2.4:1 although its colour is the bright accent; C3,
   2026-11-08). The house section is painted above the arrival section, so its text is never under that shade. */
.arrive + .house { z-index: 2; }
[data-h="20"] { --shade-c: 40, 40, 74; --shade-a: .48; --muted: rgba(242, 236, 226, .9); }
[data-h="22"], [data-h="23"] { --shade-c: 22, 26, 54; --shade-a: .3; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter); color: var(--ink-light);
  transition: color .5s var(--ease), background-color .5s var(--ease), padding .4s var(--ease), backdrop-filter .5s; }
/* scrolled: a soft shade that fades out below the bar (no straight edge across the sky), the blur fades with it */
.nav::before { content: ""; position: absolute; inset: 0 0 -44px 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: linear-gradient(180deg, rgba(16, 24, 40, .78) 0%, rgba(16, 24, 40, .62) 55%, rgba(16, 24, 40, 0) 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
.nav.scrolled { padding-top: 12px; padding-bottom: 12px; }
.nav.scrolled::before { opacity: 1; }
.logo { font-family: var(--f-serif); font-size: 21px; letter-spacing: .01em; text-decoration: none; font-weight: 420;
  font-variation-settings: 'opsz' 40; white-space: nowrap; }
.logo em { font-style: italic; font-weight: 360; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.nav-links a { text-decoration: none; opacity: .8; transition: opacity .25s; }
.nav-links a:hover { opacity: 1; }
.nav-end { display: flex; gap: 18px; align-items: center; }
.lang { font-size: 13.5px; text-decoration: none; opacity: .8; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.lang:hover { opacity: 1; }
.nav .btn-sm { background: var(--ember); color: #1a1210; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-end { margin-left: auto; } }
@media (max-width: 420px) { .nav { gap: 12px; } .nav-end { gap: 12px; } .logo { font-size: 19px; } .nav .btn-sm { padding: 10px 14px; font-size: 13px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 500; font-size: 15px;
  letter-spacing: .01em; border: 0; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .35); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-fire { background: var(--ember); color: #1a1210; box-shadow: 0 0 0 0 rgba(240, 168, 104, .0); }
.btn-fire:hover { box-shadow: 0 18px 50px -14px rgba(240, 168, 104, .65); }

/* ---------- type ---------- */
.kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-weight: 500; }
.kicker time { font-family: var(--f-serif); font-size: 15px; letter-spacing: .02em; color: var(--chip);
  font-variant-numeric: tabular-nums; text-transform: none; font-weight: 500; }
.kicker time::after { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--line); margin-left: 14px; vertical-align: middle; }
.title { font-family: var(--f-serif); font-weight: 340; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04;
  letter-spacing: -.018em; font-variation-settings: 'opsz' 96; max-width: 14ch; text-wrap: balance; }
.title.big { font-size: clamp(40px, 7vw, 96px); max-width: 16ch; margin-inline: auto; }
.lead { font-size: clamp(16.5px, 1.35vw, 19px); color: var(--muted); max-width: 46ch; margin-top: 26px; }
.todo { background: #ffe25c; color: #2a2200; padding: 1px 6px; border-radius: 3px; font: 600 13px/1.4 var(--f-sans);
  outline: 2px dashed #b48a00; outline-offset: 1px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; display: flex; flex-direction: column;
  color: var(--ink); isolation: isolate; } /* no overflow clip: the ground fades on below the hero (body clips sideways) */
/* the hero's ground sinks into layered mist; the afternoon sky comes out of it (svg, stretched to the width) */
.melt { position: absolute; left: 0; top: 100%; margin-top: -2px; width: 100%; height: clamp(300px, 52vh, 520px); z-index: 1; pointer-events: none; }
/* fog across the hero's bottom edge and the sky below, over the drawing (z 2, after it), under the text + hint (z 3) */
.mist { position: absolute; left: 0; width: 100%; top: calc(100% - 64px); height: calc(64px + clamp(300px, 52vh, 520px)); z-index: 2; pointer-events: none; overflow: hidden; }
.mist .fog-s { display: none; } /* phones: finer fog (the coarse one is wider than the screen there) */
@media (max-width: 640px) { .mist .fog-l { display: none; } .mist .fog-s { display: inline; } }
/* phones + touch (same detection as the swipe panorama): no pale fog band under the hero; the ground melt alone fades it */
html.pano-img .hero .mist { display: none; }
/* ...without the fog over it, the warm horizon wash would stop in a straight line at the hero's bottom: fade it out first */
html.pano-img .hero .horizon { -webkit-mask-image: linear-gradient(0deg, transparent, #000 72px); mask-image: linear-gradient(0deg, transparent, #000 72px); }
/* phones: the drawing ends 32px above the hero's bottom (it is lifted); the melt starts right there */
@media (max-width: 640px) { .melt { top: calc(100% - 32px); height: clamp(220px, 36vh, 340px); }
  .mist { top: calc(100% - 32px - 44px); height: calc(44px + clamp(220px, 36vh, 340px)); } }
/* phones + touch, no fog: the melt starts 48 px up, under the drawing, is taller, and stays fully opaque front-ground
   colour (#182b21, = the front grass) to its 30 % stop, so it runs on past the grass's straight bottom edge without a
   step (any see-through there showed the blue sky as a line) and only then fades */
html.pano-img .hero .melt { top: calc(100% - 48px); height: 520px; }
html.pano-img #mG stop:nth-child(2) { stop-color: #182b21; stop-opacity: 1; }
.hero-inner { position: relative; z-index: 3; padding-top: clamp(100px, 15vh, 170px); padding-bottom: clamp(20px, 3vh, 40px); }
.hero-title { font-family: var(--f-serif); font-weight: 320; font-size: clamp(44px, 8.4vw, 124px);
  line-height: .96; letter-spacing: -.028em; font-variation-settings: 'opsz' 144; }
.hero-title .hl-i { display: block; }
.hero-title em { font-style: italic; font-weight: 300; color: #f2b27c; }
.hero-sub { max-width: 52ch; margin-top: 28px; font-size: clamp(16.5px, 1.4vw, 19px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero-rating { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 14px; text-decoration: none; font-size: 14px; color: var(--muted); }
.hero-rating b { font-family: var(--f-serif); font-weight: 500; font-size: 22px; color: var(--ink); }
.hero-rating .hr-src { margin-left: 8px; border-bottom: 1px solid var(--line); }
.hero-rating:hover .hr-src { border-color: currentColor; }

.land { position: relative; flex: 1 1 0; min-height: 200px; width: 100%; z-index: 2; overflow: visible; } /* fills whatever the text leaves, so the foreground (fence) is always on screen */
.land .t-far { fill: #3a3836; opacity: .8; }
.land .t-mid { fill: #1a2423; }
.land .t-near { fill: #070c0c; }
.land .t-bark { fill: #b8ab98; opacity: .42; } /* birch stems catching the last light; dim so they never compete with text */
/* low warm sun just under the horizon, behind the trees */
.horizon { position: absolute; z-index: 1; inset: auto 0 0 0; height: 75%; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 30% at 64% 80%, rgba(255, 178, 110, .75), rgba(240, 140, 80, .28) 48%, rgba(240, 140, 80, 0) 100%),
    radial-gradient(ellipse 90% 55% at 55% 82%, rgba(196, 104, 64, .42), rgba(120, 70, 60, .12) 55%, rgba(0, 0, 0, 0) 100%); }
.clouds { position: absolute; inset: 67% 0 8% 0; z-index: 1; overflow: hidden; } /* sky band between the text and the tree line: nothing moves behind or over text */
.cloud { position: absolute; display: block; width: 460px; height: 110px; opacity: .5; will-change: transform;
  background:
    radial-gradient(closest-side, rgba(232, 160, 128, .55), rgba(232, 160, 128, 0)) 0 40px / 240px 46px no-repeat,
    radial-gradient(closest-side, rgba(214, 140, 120, .45), rgba(214, 140, 120, 0)) 120px 22px / 260px 52px no-repeat,
    radial-gradient(closest-side, rgba(190, 128, 120, .4), rgba(190, 128, 120, 0)) 250px 44px / 200px 40px no-repeat;
  animation: drift linear infinite; }
.cloud.c1 { top: 0%; animation-duration: 190s; animation-delay: -40s; }
.cloud.c2 { top: 30%; transform: scale(.7); opacity: .4; animation-duration: 240s; animation-delay: -150s; }
.cloud.c3 { top: 50%; transform: scale(1.25); opacity: .35; animation-duration: 280s; animation-delay: -90s; }
.cloud.c4 { top: 18%; transform: scale(.55); opacity: .35; animation-duration: 210s; animation-delay: -10s; }
@keyframes drift { from { translate: -40vw 0; } to { translate: 130vw 0; } }
.birds { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bird { position: absolute; width: 18px; height: 8px; fill: none; stroke: #05090a; stroke-width: 1.6; stroke-linecap: round; opacity: .8;
  animation: fly 30s linear infinite; }
.bird path { transform-origin: 12px 7px; animation: flap .9s ease-in-out infinite alternate; }
.bird.b1 { top: 13%; animation-delay: -8s; }
.bird.b2 { top: 15.5%; width: 14px; animation-delay: -9.2s; } .bird.b2 path { animation-delay: -.3s; }
.bird.b3 { top: 11.5%; width: 12px; animation-delay: -10.1s; } .bird.b3 path { animation-delay: -.6s; }
/* birds stay in the open sky on the right, never over the headline */
@keyframes fly { 0% { translate: 62vw 4vh; } 100% { translate: 108vw -2vh; } }
@media (max-width: 900px) { .birds, .clouds { display: none; } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; color: #f2ece2; text-decoration: none;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(currentColor, transparent); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0%, 100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 640px) { .hero-inner { padding-top: 100px; } .land { min-height: 200px; } .hero-rating { margin: 10px 0 0; width: 100%; } .scroll-hint span { display: none; } }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(64px, 10vh, 120px) 0; color: var(--ink); }
/* the text shades run 60vw off the screen edge: they are clipped sideways ONCE, by .page (main + footer), so phones don't
   widen the layout viewport (iPhone 13: 605 px). Never clip per section: Safari applies overflow-x:clip to both axes
   (Apple developer forums thread 745729, still open in 2026), which cut each section's shades into boxes with straight edges. */
.page { overflow-x: clip; }
.grid-2 { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.grid-2.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.book .kicker { width: fit-content; margin-inline: auto; } /* hug the text: the contrast check samples around the box, not the moon */
.center .lead { margin-inline: auto; }
.narrow { max-width: 640px; }
@media (max-width: 900px) {
  .grid-2, .grid-2.rev { grid-template-columns: 1fr; }
  .grid-2.rev .collage { order: 2; }
}

/* ---------- postcards ---------- */
.card { position: relative; background: var(--paper); padding: 9px 9px 0; border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,.25), 0 18px 36px -14px rgba(0, 0, 0, .6), 0 44px 80px -40px rgba(0, 0, 0, .7); }
.card .frame { display: block; overflow: hidden; background: var(--ph, #bbb); }
.card .frame img { width: 100%; height: auto; object-fit: cover; } /* img carries width/height of the exact crop; 100% height collapsed cards in auto-sized grids */
.card figcaption { font-family: var(--f-serif); font-style: italic; font-size: 14.5px; color: #5a4a3a; padding: 9px 4px 11px; line-height: 1.25; }
.card.glow { box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 20px 40px -14px rgba(0,0,0,.6), 0 0 80px -20px rgba(240, 168, 104, .35); }
.collage { position: relative; width: 100%; max-width: 560px; justify-self: center; padding-top: 56px; }
.collage .card { position: relative; max-width: 100%; }
.collage .c-a { width: 100%; z-index: 1; rotate: -1deg; }
.collage .c-b { position: absolute; top: 0; right: -8%; width: 48%; z-index: 2; rotate: 2.2deg; }
.collage .c-c { width: 54%; margin: 18px 4% 0 auto; z-index: 2; rotate: -1.6deg; } /* below the main card, never over its caption */
.grid-2.rev .collage .c-b { right: auto; left: -8%; rotate: -2.2deg; }
.collage-evening { padding-top: 0; }
.collage-evening .c-a { rotate: 1.4deg; }
.card .frame { cursor: zoom-in; }
@media (max-width: 900px) {
  .collage { padding-top: 40px; margin-top: 8px; }
  .collage .c-b, .grid-2.rev .collage .c-b { right: -2%; left: auto; width: 50%; }
  .collage .c-c { width: 58%; margin: 14px 2% 0 auto; }
}

/* lightbox: dark backdrop, photo at most its native size */
.lb { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(4, 7, 12, .9); }
.lb figure { display: grid; justify-items: center; gap: 12px; margin: 0; }
.lb img { width: auto; height: auto; max-width: min(var(--nw, 576px), 92vw); max-height: 84vh; max-height: 84dvh; background: var(--paper); padding: 9px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.lb figcaption { font-family: var(--f-serif); font-style: italic; color: var(--ink-light); font-size: 16px; text-align: center; max-width: 60ch; padding: 0 16px; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(242, 236, 226, .12); color: var(--ink-light); font-size: 22px; line-height: 1; }
.lb-close:hover { background: rgba(242, 236, 226, .22); }
html.lb-open { overflow: hidden; }

/* ---------- ratings ---------- */
.ratings { margin-top: clamp(56px, 8vh, 96px); padding-top: 34px; border-top: 1px solid var(--line); }
.r-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.r dt { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.r dd { font-family: var(--f-serif); font-weight: 320; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-top: 6px; font-variation-settings: 'opsz' 120; }
.r-src { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.r-src a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 640px) { .r-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
/* desktop: copy + ratings share the left column beside the tall arrival collage (1440 had a near-empty screen next to
   the collage and another around the ratings below it); phones keep copy -> collage -> ratings */
@media (min-width: 901px) {
  .arrive .grid-2 { row-gap: 0; }
  .arrive .copy { grid-column: 1; grid-row: 1; align-self: end; }
  .arrive .collage { grid-column: 2; grid-row: 1 / 3; }
  .arrive .ratings { grid-column: 1; grid-row: 2; align-self: start; margin-top: clamp(40px, 6vh, 64px); }
  .arrive .r-grid { gap: 12px; }
}
@media (max-width: 900px) { .arrive .ratings { margin-top: max(16px, calc(8vh - 40px)); } } /* + the grid's 40 px row gap = the old space */

/* ---------- facts ---------- */
.facts { margin-top: 34px; border-top: 1px solid var(--line); max-width: 520px; }
.facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; }

/* ---------- kitchen / evening / booking ---------- */
/* fire band: its own space under the kitchen copy; embers rise from behind the fire photo into empty sky only */
/* the 20:00 heading follows right under the panorama's fog (no screen of bare sky between them): short top padding,
   copy at the top of its row instead of centred against the tall photo collage */
.kitchen { padding-top: clamp(16px, 3vh, 40px); }
/* pinned panorama (motion on): the kitchen rises over the faded panorama during the pin's hold (main.js sets --pano-pull) */
html.pano-pinned .kitchen { margin-top: calc(-1 * var(--pano-pull, 0px)); position: relative; z-index: 2; }
html.pano-pinned .kitchen > * { opacity: var(--kitchen-in, 1); } /* fades in once the panorama above it is gone (main.js) */
/* still panorama (desktop without GSAP / ScrollTrigger, or the pin setup threw: main.js panoStill; fix B 2026-11-17): the
   kitchen kicker follows right under the panorama's ground melt (main.js measures --still-pull), and the small top card,
   with no parallax offset there, starts level with the main card instead of running under the header at the 20:00 jump */
html.pano-still .kitchen { margin-top: calc(-1 * var(--still-pull, 0px)); }
html.pano-still .kitchen .collage .c-b { top: 56px; }
.kitchen .grid-2 { align-items: start; }
.kitchen .copy { padding-top: clamp(24px, 6vh, 72px); }
.fire { position: relative; display: grid; justify-items: center; padding-top: clamp(150px, 26vh, 260px); margin-top: clamp(24px, 4vh, 48px); }
.fire .embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.fire-glow { position: absolute; left: 50%; top: 10%; bottom: -30%; width: min(1000px, 160vw); translate: -50% 0; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 150, 70, .28), rgba(200, 90, 40, .1) 55%, rgba(200, 90, 40, 0) 100%); }
.fire-card { position: relative; z-index: 2; width: min(400px, 80vw); rotate: 1.4deg; }
.price { margin-top: 22px; font-size: 15px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.price > span { color: var(--muted); }
.book { min-height: 92vh; display: flex; align-items: flex-end; } /* content rests on the section's bottom padding: FAQ line -> footer gap = that padding (was + half the spare height) */
@media (min-width: 1600px) { .book { align-items: center; } } /* wide screens: centred again (Jaskar 2026-11-13), the empty night sky splits above and below; laptops up to 1536 keep the bottom rest */
.book .lead { font-size: clamp(17px, 1.5vw, 20px); }
.book-cta { margin-top: 40px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.book-phone { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; } /* phone + email: two nowrap groups that wrap between them */
.bk-item { white-space: nowrap; }
.book-phone a, .foot-tel, .foot-a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.book-phone a { display: inline-block; padding: 10px 4px; font-size: 16px; } /* tap target */
.foot-tel, .foot-a { display: inline-block; padding-block: 4px; margin-block: -4px; } /* tap target >= 24 px, layout unchanged */
/* D024 (Jaskar 2026-11-19, option B): at max scroll the end headline sits at (window height - everything from it to the page end), so on short
   mouse windows only a smaller h2 + a tighter stack below it bring its first line out from under the header. Touch and > 800 px tall: unchanged. */
@media (max-height: 800px) {
  html:not(.touch) .book .title.big { font-size: min(clamp(40px, 7vw, 96px), 10vh); }
  html:not(.touch) .book .lead { margin-top: 16px; font-size: clamp(17px, 1.5vw, 18px); max-width: 64ch; }
  html:not(.touch) .book-cta { margin-top: 24px; row-gap: 12px; }
  html:not(.touch) .book { padding-bottom: 20px; }
  /* ET: sentence 2 on its own line like EN gets by width (Jaskar 2026-11-19); only from 720 px wide, where sentence 1 fits whole (it needs ~688 px) */
  @media (min-width: 720px) { html:not(.touch) .book .lead:lang(et) .lead-s1 { display: block; } }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- footer ---------- */
/* one quiet block: three groups (who/where, contact, small print), each a short stacked list; side by side and left-aligned
   while they fit (first lines on one baseline), otherwise a whole group moves under the others (phones: all stacked) */
.foot { color: var(--ink); padding: 20px 0 40px; font-size: 13.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 5vw, 88px); align-items: baseline; color: var(--muted); }
.foot-g { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-g > * { text-wrap: balance; }
.foot .logo { color: var(--ink); }
.foot-a { white-space: normal; overflow-wrap: anywhere; }
/* hover feedback for the links and postcards that had none (QA 3.3, 2026-11-17): colour or brightness only, so no box moves;
   mouse/trackpad only, touch screens never get a stuck hover. Same quiet language as the nav (opacity) and .hero-rating (line). */
@media (hover: hover) and (pointer: fine) {
  .nav .logo, .scroll-hint, .r-src a, .book-phone a, .foot-a, .hero-rating .hr-src { transition: color .25s, border-color .25s; }
  .nav .logo:hover, .scroll-hint:hover, .r-src a:hover, .book-phone a:hover, .foot-a:hover { color: var(--ember-hot); }
  .hero .hero-rating:hover .hr-src { color: var(--ember-hot); } /* + its existing line hover (border to currentColor) */
  .card .frame img { transition: filter .3s; }
  .card .frame:hover img { filter: brightness(1.08) saturate(1.06); }
}

/* ---------- motion: initial states only once main.js is running its reveals (html.anim) and motion is allowed ----------
   Nothing is hidden by default: if main.js or GSAP never arrive, or throw, every text, photo and CTA stays visible.
   The hero is never hidden by CSS (readable on first paint); main.js plays its entrance only if it runs before the
   first paint. A focused postcard or fade block is always shown, even before its reveal has fired. */
html.anim:not(.rm) [data-fade] { opacity: 0; translate: 0 24px; }
html.anim:not(.rm) .card .frame { clip-path: inset(100% 0 0 0); }
html.anim:not(.rm) .card { opacity: 0; }
html.anim .card:focus-within, html.anim [data-fade]:focus-within { opacity: 1 !important; translate: none !important; }
html.anim .card:focus-within .frame { clip-path: none !important; }
.hero:focus-within, .hero-inner:focus-within { opacity: 1 !important; } /* scroll-out fade never dims a focused hero CTA */
/* line-reveal masks (hero lines + section titles): the mask box is grown on every side by more than any glyph reaches
   past the line box (descenders ~.25em, accents on capitals, italic overhang), and the same negative margin takes the
   growth back, so the layout is unchanged and no letter is ever cut (checked by tools/headclip.mjs, ET + EN, 6 widths) */
.hero-title .hl, .split-line { display: block; overflow: hidden;
  padding: .16em .12em .3em; margin: -.16em -.12em -.3em; }
.hero-title, [data-split] { display: flow-root; } /* the lines' negative margins stay inside the heading (no collapse through it) */
.split-line > span { display: block; }
/* touch (RC2 Part 2b): the hero lines slide 18 px instead of rising from the mask, so the mask must not cut the descenders
   (the comma of "Hiiumaal,") during the slide; padding/margin stay, so the layout is unchanged */
html.touch .hero-title .hl { overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  .scroll-hint::after, .stars .tw { animation: none !important; }
  /* touch devices, narrow windows (html.pano-img) and no JS: as before, clouds still, birds hidden */
  html.pano-img .cloud, html.pano-img .bird, html.pano-img .bird path,
  html.no-js .cloud, html.no-js .bird, html.no-js .bird path { animation: none !important; }
  html.pano-img .bird, html.no-js .bird { display: none; }
  /* desktop (Jaskar, 2026-11-17): the same page as with motion, only the self-running loops stop; clouds and birds
     hold still where they are (paused, not reset), the birds stay visible */
  html:not(.pano-img):not(.no-js) :is(.cloud, .bird, .bird path) { animation-play-state: paused !important; }
  html { scroll-behavior: auto; }
}

/* ---------- hero: home details ---------- */
.land .t-wall { fill: #0a0f10; stroke: rgba(0, 0, 0, .55); stroke-width: .9; } /* dark joints between stones */
.land .t-jun { fill: #050909; }
.land .t-rim { fill: #c98a5a; opacity: .5; } /* same shape nudged up, behind: only the sunset-side top edge glows */

/* ---------- 19:00 the island around you: sideways panorama ---------- */
.island { padding-bottom: 0; padding-top: clamp(40px, 6vh, 72px); } /* tighter above: less bare sky between the garden and the panorama */
/* the panorama's ground sinks away below it (svg, stretched) into the same fog as under the hero (.pano-mist), and the
   20:00 kitchen heading follows right under it */
.pano-fade { display: block; position: relative; width: 100%; height: clamp(150px, 22vh, 220px); margin-top: -2px; pointer-events: none; }
.island .pano-mist { top: auto; bottom: 0; height: calc(64px + clamp(150px, 22vh, 220px)); z-index: 1; }
@media (max-width: 640px) { .island .pano-mist { top: auto; height: calc(44px + clamp(150px, 22vh, 220px)); } }
/* pinned full screen (100svh): the land covers the lower half or more, the sky above holds the labels */
.pano { position: relative; height: 100vh; height: 100svh; min-height: 480px; margin-top: clamp(24px, 4vh, 48px); overflow: hidden; }
/* BUG-A (2026-11-18): ScrollTrigger's pin switches .pano from relative to position: fixed at the pin start, and Chrome
   then reports one layout shift of 1.0 (previous rect 0x0) although nothing moves. The same pin, held with sticky inside
   ScrollTrigger's own spacer (whose height is unchanged; its padding becomes room to stick in): sticky keeps the box in
   the scrolling layout, so no shift is reported. Same start, end and positions; ScrollTrigger still times the scrub.
   top = where the pin holds it: 0, or above the top when the panorama is taller than the screen (min-height 480px). */
html.pano-pinned .pin-spacer-pano { padding-bottom: 0 !important; }
html.pano-pinned .pin-spacer-pano > .pano { position: sticky !important; top: min(0px, calc(100vh - 480px)) !important; transform: none !important; }
/* sideways-scrolling box: no JS, and the picture strip (touch devices, narrow windows: html.pano-img, which html.rm and
   html.pano-free come with there). Never on the desktop route (2026-11-17): reduced motion there keeps the pin, and
   without GSAP the live panorama is a still view (main.js panoStill), so no scrollbar shows inside the design */
html.no-js .pano, html.rm.pano-img .pano, html.pano-free.pano-img .pano { overflow-x: auto; overscroll-behavior-x: contain; }
.pano-track { position: relative; height: 100%; width: max-content; will-change: transform; }
/* soft exit (motion on): the land sinks below the bottom edge into this rising dusk haze (no straight edge: it is a
   gradient that ends at the screen's bottom edge while the panorama is pinned); main.js sets --dusk (0 -> ~1 -> 0) */
.pano-dusk { position: absolute; left: 0; right: 0; bottom: 0; height: 75%; z-index: 1; pointer-events: none; opacity: var(--dusk, 0);
  background: linear-gradient(0deg, rgba(30, 30, 58, .97) 0%, rgba(34, 34, 64, .9) 22%, rgba(40, 38, 72, .55) 48%, rgba(44, 42, 78, 0) 100%); }
html.rm .pano-dusk, html.no-js .pano-dusk, html.pano-free .pano-dusk { display: none; }
.pano-art { display: block; height: 100%; width: auto; max-width: none; } /* aspect-ratio inline from scene.js */
/* each label sits right above its landmark: its bottom is the landmark's top (--y), with a short leader in between */
.pano-label { --lead: 40px; position: absolute; bottom: calc(100% - var(--y)); left: var(--x); translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 13px; color: var(--muted); width: max-content; max-width: min(320px, 80vw); }
.pano-label b { font-family: var(--f-serif); font-weight: 400; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink); }
.pano-label::after { content: ""; flex: none; height: var(--lead); width: 1px; margin-top: 6px; background: linear-gradient(rgba(247, 242, 232, .85), rgba(247, 242, 232, .15));
  translate: var(--lx, 0px) 0; } /* JS keeps the text box on screen; the leader line stays on the landmark */
html.js .pano-label { opacity: 0; } /* JS fades each label in once it fits on screen */
/* labels: variant A (Jaskar, 2026-11-06): a cozy cream speech bubble with dark text and a small tail that points down at
   the landmark (replaces the tag + thin leader). The bubble is the label's ::before and covers the text block only
   (padding inside the measured box, so tools/evening.mjs's overlap/clip checks include it); the tail is the ::after,
   kept on the landmark by --lx (main.js). Phones keep name + distance only. */
.pano-label { --lead: 11px; z-index: 1; padding: 9px 16px 2px; line-height: 1.3; color: #5b4632; }
.pano-label b { color: #2e2219; }
.pano-label > span { text-wrap: balance; } /* even lines: no bare corner next to a short last line */
.pano-label::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 0; right: 0; top: 0;
  height: calc(100% - var(--lead) + 1px); border-radius: 18px; background: #fbf4e6;
  box-shadow: 0 2px 0 rgba(120, 84, 50, .18), 0 10px 22px -10px rgba(60, 35, 20, .45); }
.pano-label::after { width: 18px; height: var(--lead); margin-top: 0; background: #fbf4e6;
  clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 3px 2px rgba(60, 35, 20, .25)); }
.pano-label > span { display: block; }
/* short phone screens: a slightly smaller bubble, so the highest label (Kõpu) fits between the nav and its tower */
@media (max-height: 640px) { .pano-label { padding: 7px 13px 1px; line-height: 1.2; } .pano-label b { font-size: 16px; } }
/* very short desktop windows (960x540, RC2 BUG-01): the pinned church + Kõpu bubbles reached up under the header bar;
   a slightly tighter bubble and tail keep them below it (pinned route only, the touch strip is untouched) */
@media (max-height: 580px) { html.pano-pinned .pano-label { --lead: 8px; padding-top: 5px; line-height: 1.12; } }
@media (max-width: 640px) { .pano-label .ld-x, .pano-label .ld-d .ld-sep { display: none; } }

/* ---------- hero "cozy Nordic picture-book" (final) ----------
   Palette: sky #1f2747 -> #4a4466, glow #e8a35c -> #f7cf86, forest far2 #7282a0 / far #56688a / mid #35514f /
   near #22402f, front #16271f (darkest colour in the hero, nothing darker), warm light #ffd27e. No pure black anywhere. */
.hero { background:
  linear-gradient(180deg, #1f2747 0%, #262b4f 30%, #3a3a5e 52%, #4a4466 68%, #5c4a66 82%, #6e5068 100%) top / 100% calc(100% - 48px) no-repeat; }
/* (the drawn dusk sky stops 48px above the hero's bottom: the drawing's ground or the mist always covers that strip, so
   no edge of it can show when the hero fades out on a phone, where the drawing is lifted) */
/* big golden glow behind the home: strong low down, a soft warm wash high into the open sky on the right */
.hero .horizon { height: 100%; background:
  radial-gradient(ellipse 30% 26% at 76% 88%, rgba(247, 207, 134, .95), rgba(232, 163, 92, .55) 45%, rgba(232, 163, 92, 0) 100%),
  radial-gradient(ellipse 54% 48% at 77% 94%, rgba(232, 163, 92, .5), rgba(214, 130, 100, .22) 55%, rgba(214, 130, 100, 0) 100%),
  radial-gradient(ellipse 110% 40% at 50% 100%, rgba(220, 140, 100, .35), rgba(220, 140, 100, 0) 100%); }
.hero .cloud { opacity: .55; background:
  radial-gradient(closest-side, rgba(247, 200, 150, .5), rgba(247, 200, 150, 0)) 0 40px / 240px 46px no-repeat,
  radial-gradient(closest-side, rgba(236, 176, 150, .42), rgba(236, 176, 150, 0)) 120px 22px / 260px 52px no-repeat,
  radial-gradient(closest-side, rgba(220, 160, 160, .36), rgba(220, 160, 160, 0)) 250px 44px / 200px 40px no-repeat; }
.hero .bird { stroke: #2a2d4a; }
/* the rating sits on the lower, warmer sky: brighter than --muted so it stays AA at every width (1024/1280 were < 4.5) */
.hero .hero-rating { color: rgba(242, 236, 226, .95); }
/* taller landscape band: the drawing reaches up into the empty sky right of the text column (its sky is transparent,
   and every shape left of the home stays below the buttons) */
.hero .land { margin-top: calc(-1 * clamp(60px, 12vh, 150px)); }
/* paper grain over the illustration only: one fine fibre noise + one soft mottle, faded in below the text column */
.hero-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: soft-light; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 66%, #000 80%, #000 94%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, transparent 66%, #000 80%, #000 94%, transparent 100%);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .9 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  background-size: 420px 420px, 900px 900px; }

.cz .cz-far2 { fill: #7282a0; opacity: .6; }
.cz .cz-far { fill: #56688a; opacity: .9; }
.cz .cz-mid { fill: #35514f; }
.cz .cz-mid-trunk { fill: #4b4a4a; }
.cz .cz-mid-birch { fill: #8f8d84; }
.cz .cz-near { fill: #22402f; }
.cz .cz-trunk { fill: #6b4c3c; }
.cz .cz-birch { fill: #cbbfaa; }
.cz .cz-birch-mark { fill: #4d564c; }
.cz .cz-birch-crown { fill: #2c4a37; }
.cz .cz-fence-rail { fill: #241f1d; }
.cz .cz-fence { fill: #322b27; } /* photo-06: weathered dark boards, only in front of the kitchen + summer room */
.cz .cz-grass-back { fill: #213a2b; }
.cz .cz-grass-front { fill: #182b21; }
/* summer-room building (porch-light.jpg, photo-06.jpg) */
.cz .cz-wall-low { fill: #5a3d31; }
.cz .cz-wall-wood { fill: #6e4c3a; }
.cz .cz-boards { stroke: #4e3329; stroke-width: .8; opacity: .55; fill: none; }
.cz .cz-roof { fill: #463a52; }
.cz .cz-eave { fill: none; stroke: #e2a564; stroke-width: 1.6; opacity: .9; }
.cz .cz-frame { fill: #4e3429; }
.cz .cz-pane { fill: #ffd27e; }
.cz .cz-pane-dim { fill: #c98f55; }
.cz .cz-winglow { fill: #ffd27e; opacity: .26; filter: url(#czBlur); }
.cz .cz-deckglow { fill: #ffd27e; opacity: .7; filter: url(#czBlur); }
.cz .cz-lamp { fill: #fff3cf; }
.cz .cz-lamp-halo { fill: #ffd27e; opacity: .6; filter: url(#czBlur); }
.cz .cz-deck { fill: #6b4b37; }
.cz .cz-rail { fill: #3d2c27; }
.cz .cz-post { fill: #4a352b; }
.cz .cz-stair { fill: #4b3a33; }
.cz .cz-tread { fill: #8a6446; }
.cz .cz-handrail { fill: none; stroke: #4b3a33; stroke-width: 2.2; stroke-linecap: round; }
/* outdoor kitchen (photo-01.jpg, gazebo.jpg) */
.cz .cz-stone { fill: #9a8c76; stroke: #6a5b4e; stroke-width: .5; }
.cz .cz-arch { fill: #3a2a26; }
.cz .cz-arch-rim { fill: none; stroke: #c9b593; stroke-width: 1.8; }
.cz .cz-fire { fill: #ffb867; }
.cz .cz-flame { fill: #fff0c4; opacity: .9; filter: url(#czBlur); }
.cz .cz-door { fill: #3b3438; }
.cz .cz-floor { fill: #b89f7c; opacity: .8; }
.cz .cz-cobble { fill: none; stroke: #8a765e; stroke-width: .7; }
.cz .cz-wood { fill: #7a573d; }
.cz .cz-log { fill: #c9ab84; }
.cz .cz-roof-hip { fill: #3f5a48; }
.cz .cz-roof-g { fill: #4f6d58; }
.cz .cz-roof-lines { stroke: #66896e; stroke-width: .9; opacity: .6; }
.cz .cz-roof-edge { fill: #39503f; }
.cz .cz-roof-ridge { stroke: #5f8268; stroke-width: 2.2; stroke-linecap: round; }
/* string lights: steady, no flicker */
.cz .cz-wire { fill: none; stroke: #5a4537; stroke-width: .6; }
.cz .cz-bulb-halo { fill: #ffd27e; opacity: .6; }
.cz .cz-bulb { fill: #fff1c4; }
/* tablet + phone: bring the home into the centre crop of the scene (it is drawn right of centre for desktop) */
@media (max-width: 900px) {
  .cz .cz-home { transform: translate(-361px, 0); }
  .hero .horizon { background:
    radial-gradient(ellipse 62% 22% at 50% 88%, rgba(247, 207, 134, .95), rgba(232, 163, 92, .5) 45%, rgba(232, 163, 92, 0) 100%),
    radial-gradient(ellipse 110% 32% at 50% 96%, rgba(232, 163, 92, .5), rgba(214, 130, 100, .2) 55%, rgba(214, 130, 100, 0) 100%); }
}
.cz .cz-ground-ext { display: none; }
@media (max-width: 640px) {
  /* phone: a little less air in the text column, a taller band, and the whole landscape lifted 32px so the home sits
     well inside the first screen; the ground continues under it (same colour as the ground fade) */
  .hero-inner { padding-top: 88px; }
  .hero-cta { margin-top: 26px; gap: 8px; }
  /* phones: the two hero buttons side by side (saves ~70 px for the drawing); the arrow is decoration and goes */
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; padding: 14px 14px; font-size: 14.5px; white-space: nowrap; }
  .hero-cta .btn .arr { display: none; }
  .hero .land { margin-top: -60px; margin-bottom: 32px; }
  .cz .cz-ground-ext { display: none; }
  .hero-grain { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 70%, #000 82%, #000 94%, transparent 100%);
                        mask-image: linear-gradient(180deg, transparent 0%, transparent 70%, #000 82%, #000 94%, transparent 100%); }
}
/* scroll hint now sits on the glow: a small dusk-blue pill behind the label keeps it at AA (the drip line is dropped
   in the hero); on phones its label was already hidden and the bare line would sit on the string lights, so it goes */
.hero .scroll-hint { bottom: 26px; }
.hero .scroll-hint::after { display: none; }
.hero .scroll-hint::before { content: ""; position: absolute; inset: -8px -15px; z-index: -1; border-radius: 99px; background: rgba(31, 39, 71, .7); }
@media (max-width: 640px) { .hero .scroll-hint { display: none; } }

/* ---------- panorama "Saar teie ümber" (19:00 golden hour), cozy picture-book style ----------
   Palette (far -> near): far2 #b8a2ab haze, far #8f8ba6, mid #5e7480, local rise #4f6e55 (lit grass #6b8a63),
   near trees #2e4b3a, front ground #22402e -> #20392b (the darkest colour, nothing darker). Warm light #ffd27e. */
.pz .pz-far2 { fill: #b8a2ab; opacity: .8; }
.pz .pz-far { fill: #8f8ba6; }
.pz .pz-mid { fill: #5e7480; }
.pz .pz-jun { fill: #36573f; }
.pz .n-crown { fill: #2e4b3a; } .pz .n-bcrown { fill: #3a5a42; }
.pz .n-trunk { fill: #6b4c3c; } .pz .n-birch { fill: #d6cab4; } .pz .n-birch-mark { fill: #4d564c; }
.pz-church .c-lit { fill: #f3e7d3; } .pz-church .c-shade { fill: #c7b9b0; }
.pz-church .c-roof { fill: #8a5246; } .pz-church .c-roof-lit { fill: #a8654f; }
.pz-church .c-spire { fill: #4f5d61; } .pz-church .c-spire-lit { fill: #75817c; }
.pz-church .c-eave { fill: #b5a79c; } .pz-church .c-cross { fill: #5a5560; }
.pz-church .c-win { fill: #6c6274; } .pz-church .c-base { fill: #9b9087; }
/* the same paper grain as the hero, carried by the moving artwork */
.pano-track::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 60%); mask-image: linear-gradient(180deg, transparent 30%, #000 60%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: 420px 420px; }
.pz .pz-mid-trunk { fill: #5c6670; }
.pz .pz-glint { fill: #ffe3bd; opacity: .55; }
.pz .pz-kopuhill { fill: #7b7f9c; }
.pz .pz-kopuforest { fill: #737896; }
/* Kõpu, ~42 km away: white but hazed and cooled a little so it sits back in the scene */
.pz-kopu .k-lit { fill: #ede3d8; } .pz-kopu .k-shade { fill: #b9b0b4; }
.pz-kopu .k-front { fill: #e2d8d0; } .pz-kopu .k-front-shade { fill: #cfc4c2; } /* the front buttress, face-on */
.pz-kopu .k-ledge { fill: #9a8f99; } .pz-kopu .k-seam { fill: #8f8592; } /* where the buttresses meet the shaft */
.pz-kopu .k-gal { fill: #a59ca2; } .pz-kopu .k-rail { fill: #8e8792; } .pz-kopu .k-win { fill: #8e8792; }
.pz-kopu .k-red { fill: #b2564a; } .pz-kopu .k-glass { fill: #f6d9a2; }
.pz-kopu .k-glow { opacity: var(--kopu, .9); }
/* Helmersen: grey-brown granite (as in the hiiumaa.ee photo), sunlit caps, shaded right sides, crisp moss caps with a lighter top edge */
.pz-rock .r-lit { fill: #cfc5b8; opacity: .7; } .pz-rock .r-shade { fill: #3f3a37; opacity: .45; }
.pz-rock .r-shadow { fill: #2f3d33; opacity: .55; }
.pz-rock .r-moss { fill: #6f8c3b; } /* crisp edges: no blur filter, no outline (overlapping patches) */
.pz .pz-stone { fill: #857c74; }
/* the lit trail: a pale gravel path, slim posts, lamps that glow more as the sky dims (main.js sets --lamps) */
.pz-trail .t-path { fill: none; stroke: #c9b693; stroke-width: 4.5; stroke-linecap: round; opacity: .7; }
.pz-trail .t-pole { fill: #4b4f5a; } .pz-trail .t-head { fill: #fff0cf; }
.pz-trail .t-glow { opacity: var(--lamps, .9); }
.pz-trail .t-basket { fill: #5f6470; } .pz-trail .b-band { fill: #c98a4a; } .pz-trail .b-chain { fill: none; stroke: #8b909a; stroke-width: .9; }
.pz .pz-foam { fill: none; stroke: #f6e6d6; stroke-width: 2.2; stroke-linecap: round; opacity: .55; }
/* the cute grey seal from 0e86c3b (round head, glossy eyes, whiskers, smile), recoloured for the dusky sea: mid grey with a soft
   moonlit rim; it rises out of the water now and then and dives again (paused off screen, still for reduced motion) */
.pz-seal .seal { transform: translateY(40px); animation: seal 13s ease-in-out infinite; }
@keyframes seal { 0%, 55% { transform: translateY(40px); } 63% { transform: translateY(3px); } 70% { transform: translateY(1px); } 78% { transform: translateY(3.5px); } 86% { transform: translateY(2px); } 93%, 100% { transform: translateY(40px); } }
.pz-seal .s-body { fill: #5e6273; } .pz-seal .s-rim { fill: #e9e6f2; opacity: .6; } .pz-seal .s-muzzle { fill: #727689; }
.pz-seal .s-eye { fill: #17161c; } .pz-seal .s-shine { fill: #f4f2f8; }
.pz-seal .s-smile { fill: none; stroke: #17161c; stroke-width: .8; stroke-linecap: round; }
.pz-seal .s-whisk { fill: none; stroke: #ece6ee; stroke-opacity: .7; stroke-width: .5; stroke-linecap: round; }
.island:not(.on) .pz-seal .seal { animation-play-state: paused; }
html.rm .pz-seal .seal { animation: none; transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) { .pz-seal .seal { animation: none !important; transform: translateY(2px); } }
.pz-seal .s-ripple { fill: none; stroke: #f6e6d6; stroke-width: 1.1; stroke-linecap: round; opacity: .55; }
/* the far layers + water (far ridges, sea, Kõpu, glints; foam and seal as two more groups) dissolve as the panorama leaves, before the 20:00 copy comes up: no sea or seal
   ever shows above or behind the kitchen copy (main.js sets --sea from the panorama's position) */
.pz .pz-water { opacity: var(--sea, 1); }
/* and the whole panorama (land, labels, its fog and ground melt below it) fades out together as it leaves (main.js sets --pano-out) */
/* (one group: fading the track and the melt below it separately darkened their 2 px overlap into a straight line;
   the section's own copy is far above the screen by then) */
.island { opacity: var(--pano-out, 1); }

/* ---------- phones + touch devices (html.pano-img, head script; CRITICAL 4.4, 2026-11-08): the panorama is a pre-rendered
   picture of the same artwork (tools/pano-render.mjs) in a native sideways swipe with a snap at each of the 5 places.
   No pin, no live SVG, no filter or blend layers; a vertical swipe over it scrolls the page as usual. The land fills
   the whole strip (no bare sky below it) and the strip fits the screen in portrait. */
.pano-snap { display: none; }
.pano-dots { display: none; }
html.pano-img .pano { height: min(62vh, 560px); height: min(62svh, 560px); min-height: 340px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y; }
html.pano-img .pano::-webkit-scrollbar { display: none; }
html.pano-img .pano:focus-visible { outline-offset: -4px; }
html.pano-img .pano-track { will-change: auto; }
html.pano-img .pano-track::after { display: none; } /* the paper grain is a filter + blend layer: not on phones */
.pano-pic { display: block; height: 100%; width: auto; max-width: none; }
html.pano-img .pano-snap { display: block; position: absolute; top: 0; left: var(--x); width: 2px; height: 2px; margin-left: -1px; scroll-snap-align: center; pointer-events: none; }
html.pano-img .pano-label { opacity: 1; translate: -50% 0; }
/* the dots under the strip; their band carries the front ground's colour down into the evening (no straight cut) */
html.pano-img .pano-dots { display: flex; justify-content: center; gap: 10px; margin-top: -1px; padding: 14px 0 64px;
  background: linear-gradient(180deg, #20392b 0%, rgba(32, 57, 43, .85) 30%, rgba(32, 57, 43, 0) 100%); }
.pano-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(251, 244, 230, .4); transition: background-color .2s; }
.pano-dots i.on { background: #fbf4e6; }
html.rm .pano-dots i { transition: none; }
html.pano-img .pano, html.rm .pano { scroll-behavior: auto; }

/* ---------- phones (portrait + landscape), 2026-11-08 real-phone test ---------- */
/* Safari < 16 has no overflow:clip, so .page/body would not clip the 60vw text shades and the page could widen again.
   Fallback on html only: html's overflow goes to the viewport, so no element becomes a scroll container (overflow-x:hidden
   on body or .page would make overflow-y compute to auto there and turn it into one) */
@supports not (overflow: clip) { html { overflow-x: hidden; } }
/* the soft text shades on phones: no blur filter (a big blurred box is where iPhone Safari showed a flat block with a straight
   top edge above 15:00); the fade is drawn inside the box itself by a mask on all four sides, so nothing depends on blur
   output reaching past a section or clipped box */
html.pano-img .copy::before, html.pano-img .ratings::before { filter: none; border-radius: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.12) 30px, rgba(0,0,0,.4) 65px, rgba(0,0,0,.75) 100px, #000 140px, #000 calc(100% - 140px), rgba(0,0,0,.75) calc(100% - 100px), rgba(0,0,0,.4) calc(100% - 65px), rgba(0,0,0,.12) calc(100% - 30px), transparent),
    linear-gradient(90deg, transparent, rgba(0,0,0,.12) 35px, rgba(0,0,0,.4) 75px, rgba(0,0,0,.75) 115px, #000 160px, #000 calc(100% - 160px), rgba(0,0,0,.75) calc(100% - 115px), rgba(0,0,0,.4) calc(100% - 75px), rgba(0,0,0,.12) calc(100% - 35px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.12) 30px, rgba(0,0,0,.4) 65px, rgba(0,0,0,.75) 100px, #000 140px, #000 calc(100% - 140px), rgba(0,0,0,.75) calc(100% - 100px), rgba(0,0,0,.4) calc(100% - 65px), rgba(0,0,0,.12) calc(100% - 30px), transparent),
    linear-gradient(90deg, transparent, rgba(0,0,0,.12) 35px, rgba(0,0,0,.4) 75px, rgba(0,0,0,.75) 115px, #000 160px, #000 calc(100% - 160px), rgba(0,0,0,.75) calc(100% - 115px), rgba(0,0,0,.4) calc(100% - 75px), rgba(0,0,0,.12) calc(100% - 35px), transparent);
  mask-composite: intersect; }
/* the fades sit outside the text: 170 px above/below (ramp 140 px) and fully off the screen sideways (.page clips them),
   so every line of text has the full shade behind it (AA, tools/evening.mjs) */
@media (max-width: 900px) { html.pano-img .copy::before, html.pano-img .grid-2.rev .copy::before { inset: -170px -200px; } }
html.pano-img .ratings::before { inset: -160px -60vw -190px; }
/* no drifting cloud band on phones/touch: .clouds is a clipped box (overflow hidden) that showed as a straight-edged
   rectangle in the sky at 915 px wide (its max-width:900px hide rule missed landscape phones) */
html.pano-img .clouds, html.pano-img .birds { display: none; }
/* the swipe strip ends exactly at the picture: a label pushed past the picture's end (kept on screen by main.js) no longer
   widens the scroll range, which left a strip of bare background at the right edge */
html.pano-img .pano-track { overflow: hidden; }
/* the band under the dots: the front-ground green turned muddy brown where it thinned out over the dusk violet below
   (a blurred brown band); it now cools to the dusk's own navy-violet as it fades, so no brown mix shows */
html.pano-img .pano-dots { background: linear-gradient(180deg, #20392b 0%, rgba(30, 46, 48, .85) 28%, rgba(38, 40, 66, .45) 62%, rgba(44, 42, 78, 0) 100%); }
/* landscape phones (short screens): the text and the drawing each get their own space, the drawing below the text;
   the strip fits between the nav and the bottom of the screen so every label is below the nav */
@media (max-height: 500px) and (orientation: landscape) {
  html.pano-img .hero { height: auto; min-height: 0; }
  html.pano-img .hero-inner { padding-top: 84px; padding-bottom: 18px; }
  html.pano-img .hero-title { font-size: clamp(34px, 5.2vw, 46px); }
  html.pano-img .hero-sub { margin-top: 12px; max-width: 60ch; }
  html.pano-img .hero-cta { margin-top: 16px; }
  html.pano-img .hero-rating { width: auto; margin: 0 0 0 10px; }
  html.pano-img .hero .land { flex: none; height: 300px; min-height: 0; margin-top: 0; margin-bottom: 32px; } /* lifted as in portrait: the melt's opaque top covers the drawing's straight bottom edge */
  html.pano-img .hero .scroll-hint { display: none; } /* as on portrait phones: it sat on the drawing */
  html.pano-img .pano { height: calc(100vh - 124px); height: calc(100svh - 124px); min-height: 210px; } /* clear of the header + its shade when settled at the bottom */
  /* (2026-11-13, Jaskar: bubbles covered most of the shrunken strip) labels scale with the strip: name + distance only, as
     on portrait phones, smaller text and padding, narrower bubbles, so the drawing dominates; text stays >= 12 px */
  html.pano-img .pano-label { max-width: min(240px, 30vw); padding: 4px 10px 1px; line-height: 1.15; font-size: 12px; --lead: 8px; }
  html.pano-img .pano-label b { font-size: 14px; }
  html.pano-img .pano-label::before { border-radius: 12px; }
  html.pano-img .pano-label .ld-x, html.pano-img .pano-label .ld-d .ld-sep { display: none; }
}
/* phones: a label is fully on screen or hidden, never cut at the edge (main.js sets .off); stops the strip can't reach as
   their own view merge into one (main.js sets .merged on the snap point and its dot) */
html.pano-img .pano-label { transition: opacity .2s, visibility .2s; }
html.pano-img .pano-label.off { opacity: 0; visibility: hidden; }
html.rm .pano-label { transition: none; }
html.pano-img .pano-snap.merged, html.pano-img .pano-dots i.merged { display: none; }

/* ---------- touch devices of any size (html.touch, head script; Jaskar 2026-11-12): tablets get the phone experience ---------- */
/* hero end (tablet portrait showed a straight line above 15:00): the drawing is lifted 32 px as on phones, so the melt's
   opaque top (from 48 px above the hero's bottom) runs on past the drawing's straight bottom edge before it fades */
html.pano-img .hero .land { margin-bottom: 32px; }
/* the header on touch: no backdrop blur (content under it showed as a blurred blob, e.g. the orange Booking button, and
   blur is costly on tablets); instead an opaque shade at the bar that fades out below it, so text and buttons are
   covered cleanly as they reach the header and fade out on the way there */
/* (2026-11-12 review: lines still showed half-faded behind the .97 bar): the bar is fully opaque, and the fade below it is
   72 px long (32 px on short landscape screens; main.js reads --shade), so text is at 0 by the time it reaches the bar; the swipe labels hide before this zone */
html.touch .nav { --shade: 72px; }
/* short landscape screens (phones; tablets with the browser bars, ~960x520): a shorter shade, and the page settles the
   swipe strip with its bottom at the screen's bottom when a scroll stops near it (proximity), so the highest bubbles (the
   church, Kõpu) sit clear below the header instead of in its shade (Jaskar's A13: Kõpu dimmed under the header) */
@media (max-height: 600px) and (orientation: landscape) { html.touch .nav { --shade: 32px; }
  html.touch { scroll-snap-type: y proximity; } html.touch .pano { scroll-snap-align: end; } }
html.touch .nav::before { inset: 0 0 calc(-1 * var(--shade)) 0; backdrop-filter: none; -webkit-backdrop-filter: none; -webkit-mask-image: none; mask-image: none;
  background: linear-gradient(180deg, #101828 0%, #101828 calc(100% - var(--shade)), rgba(16, 24, 40, .82) calc(100% - var(--shade) * .78), rgba(16, 24, 40, .5) calc(100% - var(--shade) * .47), rgba(16, 24, 40, .18) calc(100% - var(--shade) * .19), rgba(16, 24, 40, 0) 100%); }
/* short landscape screens (phones; tablets with the browser bars): every postcard photo fits whole in the screen below the
   header, and the collage sits BESIDE the text, as on desktop (2026-11-12, Jaskar's iPhone/A13/Lenovo: one column of
   small cards floated right of an empty left half).
   Photo fill (CRITICAL, same day): the old rules capped the <img> with max-height and let the card size itself
   (fit-content), but the frame kept the photo's aspect-ratio from its inline style (it beats the stylesheet's
   "aspect-ratio: auto") and the card took the width of its caption when the caption was wider than the capped photo:
   the frame grew to the caption's width x the photo's ratio, the photo filled only its top-left part. Now the photo's
   height is set and its width follows its own ratio, the frame has no aspect-ratio of its own (!important beats the
   inline one) and the caption no longer widens the card (width 0 + min-width 100 %: it wraps inside the photo's width). */
@media (max-height: 500px) and (orientation: landscape) {
  html.pano-img .grid-2, html.pano-img .grid-2.rev { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 44px); align-items: center; }
  html.pano-img .grid-2.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  html.pano-img .grid-2.rev .collage { order: 0; }
  html.pano-img .arrive .grid-2 { row-gap: 0; }
  html.pano-img .arrive .copy { grid-column: 1; grid-row: 1; align-self: end; }
  html.pano-img .arrive .collage { grid-column: 2; grid-row: 1 / 3; align-self: start; } /* the 2-card pair sits up beside the copy, clear of the ratings row (centred, it covered the 4th rating at 667 px) */
  html.pano-img .arrive .ratings { grid-column: 1; grid-row: 2; align-self: start; margin-top: 24px; }
  html.pano-img .kitchen .copy { padding-top: 0; }
  html.pano-img .collage { max-width: none; padding-top: 0; margin-top: 0; }
  html.pano-img .card .frame { aspect-ratio: auto !important; }
  html.pano-img .card .frame img { width: auto; max-width: none; height: calc(100vh - 124px); height: calc(100svh - 124px); }
  html.pano-img .card figcaption { width: 0; min-width: 100%; }
  html.pano-img .fire-card { width: fit-content; }
  /* two cards as a tight pair (2026-11-13, Jaskar, option b: the 3rd card scattered alone below the others; the 2-card
     ones floated apart when the main photo is portrait). The 3rd card is hidden here; the 2nd card (k = 72 % of the main
     photo's height) overlaps the main card by --ov (a quarter of a 4:5 main card, part 2), or more when the column is too narrow for both (then the main card
     sits at the column's far edge). --bw = the 2nd card's width: its photo height x its photo ratio (--rb) + the 9 px
     paper each side. It sits high enough that its bottom stays above the main card's caption, also with a 2-line caption of its own. */
  html.pano-img .collage { --H: calc(100vh - 124px); --k: .72; --rb: .8; --ov: calc((var(--H) * .8 + 18px) * .25); --bw: calc(var(--H) * var(--k) * var(--rb) + 18px); }
  @supports (height: 1svh) { html.pano-img .collage { --H: calc(100svh - 124px); } }
  html.pano-img .collage-arrive { --rb: 1.3333; } /* "road" is 4:3; every other 2nd card is 4:5 */
  /* flex, not block margins: with no room, a flex auto margin is 0 in every engine, so the main card keeps to the column's
     start edge and never runs over the text (WebKit resolved the block-level version to a negative margin) */
  html.pano-img .collage { display: flex; align-items: flex-start; }
  html.pano-img .grid-2.rev .collage { flex-direction: row-reverse; }
  html.pano-img .collage .c-a { flex: none; width: fit-content; margin: 0 calc(var(--bw) - var(--ov)) 0 auto; }
  html.pano-img .grid-2.rev .collage .c-a { margin: 0 auto 0 calc(var(--bw) - var(--ov)); }
  html.pano-img .collage-evening .c-a { margin: 0; } /* one card */
  html.pano-img .collage .c-b, html.pano-img .grid-2.rev .collage .c-b { width: fit-content; top: max(0px, calc(var(--H) * (1 - var(--k)) - 66px)); right: 0; left: auto; }
  html.pano-img .grid-2.rev .collage .c-b { right: auto; left: 0; }
  html.pano-img .collage .c-c { display: none; }
  html.pano-img .collage .c-b .frame img { height: calc(var(--H) * var(--k)); }
}
/* BUG-C (2026-11-18, 200 % zoom of a 1440 screen = 720x450): on 421-500 px tall landscape screens up to 1000 px wide the
   column is narrower than the pair needs (main card + 2nd card - overlap), so the 2nd card, painted above, covered the whole
   main card and a click on it opened the 2nd photo. With one card the pair cannot overlap: the 2nd card is hidden here
   (like the 3rd one above). Mouse windows only (html.touch devices keep their pair); heights <= 420 (phones: 844x390,
   915x412) and > 500 (Lenovo 1098x518) are outside this band. */
@media (min-height: 421px) and (max-height: 500px) and (orientation: landscape) and (max-width: 1000px) {
  html.pano-img:not(.touch) .collage .c-b { display: none; }
}
/* touch tablets in landscape (1024x768, 1280x800, 1366x1024): the text, buttons and rating get their own space and the
   drawing starts below them (it was pulled up beside the text for the desktop layout and sat under the buttons) */
@media (orientation: landscape) and (min-height: 501px) {
  html.touch .hero .land { margin-top: 0; min-height: 180px; }
  html.touch .hero-inner { padding-top: clamp(96px, 13vh, 150px); }
}
/* wide-but-short touch screens (2026-11-13, Jaskar's Lenovo in landscape: 1098x518 / 1098x614 CSS px, Chrome 101; also
   1024x600, 1180x640, 1280x720, 1366x768): the width-sized title filled the first screen, the 620 px min-height hero left
   the drawing a 180 px strip below it, and that strip ran 79 px past the hero's bottom, past the ground melt's opaque top:
   a straight cut onto flat sky. Here the hero is sized by its content: a height-sized text block, then the whole drawing at
   its own aspect (440/1600 of the width, so nothing is sliced), pulled up 8vw into the sky beside the text (every shape on
   the left stays below the buttons), ending 32 px above the hero's bottom like tablet portrait, so the same melt covers
   its bottom edge. vh only (Chrome 101 has no svh). */
@media (orientation: landscape) and (min-height: 501px) and (max-height: 800px) and (min-aspect-ratio: 17/10) {
  html.touch .hero { height: auto; min-height: 0; }
  html.touch .hero-inner { padding-top: clamp(84px, 16vh, 120px); padding-bottom: 0; }
  html.touch .hero-title { font-size: clamp(40px, 9vh, 64px); }
  html.touch .hero-sub { margin-top: 14px; max-width: 60ch; }
  html.touch .hero-cta { margin-top: 18px; }
  html.touch .hero .land { flex: none; height: 27.5vw; min-height: 0; margin-top: -8vw; margin-bottom: 32px; }
  html.touch .hero .scroll-hint { display: none; } /* as on landscape phones: it sat on the drawing */
}
/* short wide desktop screens (2026-11-17, Jaskar's PC at 200 % zoom = ~1280x635 CSS px; 1920 at 150 % = 1280x650; a
   1366x768 laptop = ~1366x650 after the browser bars; 1280x800, 1706x850): the full-screen hero squeezed the drawing into its
   200 px min-height strip, sliced, under the buttons, and ran it 48 px past the hero's bottom: a straight edge over the melt
   and a pale band below. Same cure as the touch short-landscape fix above, on the mouse route: the hero is sized by its
   content, the title by the height, the drawing whole at its own aspect (440/1600 of the width), pulled up beside the text,
   ending 32 px above the hero's bottom on the melt's opaque ground colour (the melt starts 48 px up, under it).
   Trigger by shape: wider than 900 px, at most 860 px tall, at least 3:2 wide. In: 1280x635..1280x800, 1366x650/768,
   1440x760/850, 1706x850. Out: 1440x900, 1920x1080, 2560x1440, 1024x768 (4:3), every touch device (html.touch). */
@media (min-width: 901px) and (max-height: 860px) and (min-aspect-ratio: 3/2) {
  /* ...but never shorter than the screen (review 2026-11-17: at 720-850 px tall the content-sized hero ended 99-160 px
     above the screen's bottom, a dark ground strip over a pale panel of the next sky): the text block takes the spare
     height (sky between the buttons and the drawing, as on the normal desktop hero), so the drawing and its melt sit
     at the screen's bottom edge */
  html:not(.touch) .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  html:not(.touch) .hero-inner { flex: 1 0 auto; padding-top: clamp(80px, 13vh, 120px); padding-bottom: 0; }
  html:not(.touch) .hero-kicker { margin-bottom: 14px; }
  html:not(.touch) .hero-title { font-size: clamp(40px, 7.6vh, 72px); }
  html:not(.touch) .hero-sub { margin-top: 14px; max-width: none; }
  html:not(.touch) .hero-cta { margin-top: 18px; }
  html:not(.touch) .hero .land { flex: none; height: 27.5vw; min-height: 0; margin-top: -8.5vw; margin-bottom: 16px; }
  html:not(.touch) .hero .melt { top: calc(100% - 32px); height: 520px; } /* as on touch: the ground fades over ~110 px, not 40 */
  html:not(.touch) #mG stop:nth-child(2) { stop-color: #182b21; stop-opacity: 1; }
  html:not(.touch) .hero .scroll-hint { display: none; } /* as on short touch screens: it sat on the drawing */
  /* no pale fog band under the content-sized hero (it filled the bottom fifth of the first screen at 1280x800 and 1706x850):
     the ground melt alone fades it, and the warm horizon wash fades out before the hero's bottom (as on touch, above) */
  html:not(.touch) .hero .mist { display: none; }
  html:not(.touch) .hero .horizon { -webkit-mask-image: linear-gradient(0deg, transparent, #000 72px); mask-image: linear-gradient(0deg, transparent, #000 72px); }
}
/* touch tablets in portrait (768x1024, 800x1280): less bare sky around the swipe strip (the picture already carries its
   own sky above the labels): a tighter gap above it, and the 20:00 kitchen follows closer under the dots */
@media (min-width: 641px) and (orientation: portrait) {
  html.touch .island .pano { margin-top: 12px; }
  html.touch .pano-dots { padding-bottom: 44px; }
  html.touch .island + .kitchen { padding-top: 12px; }
  html.touch .island + .kitchen .copy { padding-top: 20px; }
}

/* ---------- touch: sturdier display headings (Jaskar 2026-11-12: on Android the Fraunces hairlines vanished, "Hubane" read
   "I Iubanc"). The shipped woff2 has the opsz (9-144) and wght axes; at opsz 96-144 and weight 320-340 the crossbars fall
   below one device pixel on Android's rasteriser. Touch gets a lower optical size (thicker hairlines) and a bit more weight
   of the same font; desktop with a mouse keeps the high-contrast display cut. ---------- */
html.touch .title { font-weight: 380; font-variation-settings: 'opsz' 48; }
html.touch .hero-title { font-weight: 360; font-variation-settings: 'opsz' 60; }
html.touch .hero-title em { font-weight: 350; }
html.touch .r dd { font-weight: 360; font-variation-settings: 'opsz' 60; }

/* swipe labels (2026-11-12, Jaskar's tablet: tails beside their landmarks): the shift is a transform, not the newer
   individual translate property (older Android Chrome / WebView ignores it, which put each bubble's left edge, not its
   middle, on the landmark). main.js sets --sx (bubble kept inside its stop's view) and --lx (tail back on the landmark). */
html.pano-img .pano-label { translate: none; transform: translateX(calc(-50% + var(--sx, 0px))); }
html.pano-img .pano-label::after { translate: none; transform: translateX(var(--lx, 0px)); }
/* touch: the hero end no longer sits on a flat pale band of afternoon sky (Jaskar read it as a lake under the drawing on
   tablets): below the ground melt, a dusk haze in the hero's own colours fades out downwards over most of a screen, so the
   change from the hero's dusk to the 15:00 sky is vertical and gradual. It goes with the hero as it leaves (hero opacity). */
html.touch .hero::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 48px); height: max(70vh, 520px); z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 38, 58, .95) 0%, rgba(38, 42, 72, .82) 22%, rgba(46, 50, 86, .55) 48%, rgba(54, 64, 98, .25) 74%, rgba(60, 74, 108, 0) 100%); }
/* touch (2026-11-12, Jaskar's tablet: the "Õhtu ootab" pill sat right of centre; same cause as the labels' tails): centring
   uses transform, which every browser knows, instead of the newer translate property (ignored by older Android Chrome /
   WebView, leaving the left edge, not the middle, at 50 %). Same result where translate works. */
html.touch .scroll-hint, html.touch .fire-glow { translate: none; transform: translateX(-50%); }
/* touch performance (2026-11-12 trace, 1024x768, 6x CPU): the star twinkle ran all the time, also in daylight with the stars
   at opacity 0, and was the biggest single cost (an animation tick + style recalc + commit every frame). It is off while the
   stars are unseen (main.js .dim); at night it runs as before. */
html.touch .stars.dim .tw { animation: none; }
/* touch tablets, 16:00 (end check 2026-11-12: "Privaatsus" at the bottom of the room facts sat at 4.46:1 on the light
   horizon at 1024x768): the stronger shade the <= 900 px layouts already use */
html.touch [data-h="15"], html.touch [data-h="16"] { --shade-a: .84; } /* as at <= 900 px */
/* touch calm motion (2026-11-16, main.js): photo cards only fade in (no clip-path wipe); the hero text and the
   drawing fade by state with short opacity transitions; hc-h = hidden at once (under the header), hc-snap = no transition */
html.touch.anim:not(.rm) .card .frame { clip-path: none; }
html.hcalm .hero, html.hcalm .hero-inner > * { transition: opacity .3s ease-out; }
html.hcalm .hero { transition-duration: .4s; }
html.hcalm .hero.hc-o, html.hcalm .hero-inner > .hc-o { opacity: 0 !important; } /* !important: wins over the entrance's inline opacity */
html.hcalm .hero.hc-h, html.hcalm .hero-inner > .hc-h { opacity: 0 !important; transition: none; }
html.hcalm.hc-snap .hero, html.hcalm.hc-snap .hero-inner > *, html.hcalm.hc-intro .hero-inner > * { transition: none; }
html.hcalm .hero:focus-within { opacity: 1 !important; } /* as before: the fade never dims a focused hero CTA */

/* ---------- older browsers (2026-11-12, Jaskar's Lenovo tablet runs Chrome 101 / Android 9): every svh/dvh height above has a
   vh line before it (svh needs Chrome 108; a declaration a browser doesn't know is dropped whole). The individual rotate and
   translate properties need Chrome 104: there the card tilt, the [data-fade] offset and the cloud/bird drift are written
   as transform instead (main.js tweens y for [data-fade] then). Newer browsers skip this block and look as before. ---------- */
@supports not (rotate: 1deg) {
  .collage .c-a { transform: rotate(-1deg); }
  .collage .c-b { transform: rotate(2.2deg); }
  .collage .c-c { transform: rotate(-1.6deg); }
  .grid-2.rev .collage .c-b { transform: rotate(-2.2deg); }
  .collage-evening .c-a { transform: rotate(1.4deg); }
  .fire-card { transform: rotate(1.4deg); }
}
@supports not (translate: 0 0) {
  html.anim:not(.rm) [data-fade] { transform: translateY(24px); }
  html.anim .card:focus-within, html.anim [data-fade]:focus-within { transform: none !important; }
  .cloud { --cs: 1; animation-name: drift-t; } .cloud.c2 { --cs: .7; } .cloud.c3 { --cs: 1.25; } .cloud.c4 { --cs: .55; }
  @keyframes drift-t { from { transform: translateX(-40vw) scale(var(--cs)); } to { transform: translateX(130vw) scale(var(--cs)); } }
  .bird { animation-name: fly-t; }
  @keyframes fly-t { 0% { transform: translate(62vw, 4vh); } 100% { transform: translate(108vw, -2vh); } }
  .scroll-hint, .fire-glow { transform: translateX(-50%); }
}

/* ---------- 404 + privacy pages (no scripts: plain night sky, same header + footer) ---------- */
.plain-pg .sky-l { opacity: 1; }
.plain-pg .nav { position: absolute; }
.plain-pg main { min-height: 78vh; min-height: 78svh; }
.sec.plain { padding: clamp(120px, 20vh, 190px) 0 clamp(56px, 9vh, 96px); }
.plain .title { font-size: clamp(34px, 5.2vw, 60px); max-width: 18ch; }
.plain .lead { max-width: 52ch; }
.plain-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.plain-phone { margin-top: 18px; justify-content: flex-start; }
.prose { margin-top: 30px; max-width: 62ch; display: grid; gap: 18px; color: var(--muted); font-size: 16.5px; }
.prose-date { font-size: 14.5px; }
.prose p + p { margin-top: 0; }
.plain-pg .nav-end { margin-left: auto; }

/* ---------- hero: the drawing no longer follows the sub-text's line count (2026-11-13, Jaskar) ----------
   The drawing (.land) fills what the text block leaves (flex: 1) or sits right under it (content-sized heroes), so a
   shorter hero.sub grew or moved the scene. The sub now keeps a fixed slot: the number of lines it took at 7e521bd (the
   layout Jaskar confirmed on his iPhone 13, Galaxy A13 and Lenovo), per layout and language. Text shorter than the slot
   leaves the spare line(s) empty between the sub and the buttons; the buttons and the drawing stay where they were.
   The slot is a zero-width float of N empty lines in the sub's own font (flow-root holds it), so it is made of the same
   line boxes as the text, rounding included (a calc(N * 1.62em) min-height came out 1/32 px taller and moved the drawing's
   rasterisation by 1 px). Works in Chrome 101 (no lh unit there). text-wrap: pretty keeps a single word off the last line
   (ET at 1440: "õueköök."); browsers without it ignore it. */
.hero .hero-sub { display: flow-root; text-wrap: pretty;
  --sub-slot: "\200B\A\200B"; }
.hero .hero-sub::before { content: var(--sub-slot); white-space: pre; float: left; width: 0; pointer-events: none; }
html[lang="en"] .hero .hero-sub { --sub-slot: "\200B\A\200B\A\200B"; }
@media (max-width: 640px) {
  .hero .hero-sub { --sub-slot: "\200B\A\200B\A\200B"; }
  html[lang="en"] .hero .hero-sub { --sub-slot: "\200B\A\200B\A\200B\A\200B"; }
}
@media (max-height: 500px) and (orientation: landscape) {
  html.pano-img .hero .hero-sub, html.pano-img[lang="en"] .hero .hero-sub { --sub-slot: "\200B\A\200B"; }
}
@media (orientation: landscape) and (min-height: 501px) and (max-height: 800px) and (min-aspect-ratio: 17/10) {
  html.touch .hero .hero-sub, html.touch[lang="en"] .hero .hero-sub { --sub-slot: "\200B\A\200B"; }
}
/* short wide desktop (see the hero block above): the sub runs on one line (ET + EN fit from 1280 px), so its slot is one line */
@media (min-width: 901px) and (max-height: 860px) and (min-aspect-ratio: 3/2) {
  html:not(.touch) .hero .hero-sub, html:not(.touch)[lang="en"] .hero .hero-sub { --sub-slot: "\200B"; }
}

/* ---------- no JS (JS off, or main.js blocked/failed: html.no-js, head script fail-open at load; fix B, 2026-11-17) ----------
   Nothing here applies while JS runs. */
/* the evening sky without JS: no script can blend the fixed sky layers by scroll, so each story section paints its own
   hour's sky (the same painted layer, fixed to the screen like the real sky) and fades it in over the hour before (40vh,
   no straight line). 15:00 is the fixed sky itself, and 16:00 keeps it too (near-identical; the 16:00 section is a
   stacking context, z-index 2, that overlaps the 18:00 heading, so a sky of its own covered that heading). Each sky
   reaches 40vh down under the next section, which fades its own in on top. The footer keeps 23:00. */
html.no-js main .sec[data-h]:not([data-h="15"]):not([data-h="16"])::before, html.no-js .foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -40vh;
  z-index: -1; pointer-events: none; background-attachment: fixed;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40vh); mask-image: linear-gradient(180deg, transparent 0, #000 40vh); }
html.no-js main .sec[data-h="23"]::before { bottom: 0; }
html.no-js .foot { position: relative; }
html.no-js .page { overflow-y: clip; } /* the skies reaching down under the next section never lengthen the page */
html.no-js .foot::before { bottom: 0; -webkit-mask-image: none; mask-image: none; }
html.no-js main .sec[data-h="18"]::before { background-image:
  radial-gradient(ellipse 62% 40% at 68% 104%, rgba(255, 204, 128, .62), rgba(240, 168, 104, .2) 55%, rgba(240, 168, 104, 0) 100%),
  linear-gradient(180deg, #485882 0%, #66688a 38%, #b4887a 74%, #e2a46c 100%); }
html.no-js main .sec[data-h="19"]::before { background-image:
  radial-gradient(ellipse 60% 38% at 66% 104%, rgba(255, 190, 116, .55), rgba(232, 150, 100, .18) 55%, rgba(232, 150, 100, 0) 100%),
  linear-gradient(180deg, #44507c 0%, #615c83 38%, #ab7b73 74%, #d99464 100%); }
html.no-js main .sec[data-h="20"]::before { background-image:
  radial-gradient(ellipse 56% 30% at 62% 104%, rgba(236, 150, 116, .3), rgba(236, 150, 116, 0) 100%),
  linear-gradient(180deg, #34406b 0%, #4a4a73 38%, #8a6374 74%, #bd786c 100%); }
html.no-js main .sec[data-h="22"]::before { background-image:
  radial-gradient(ellipse 60% 24% at 60% 104%, rgba(84, 86, 140, .2), rgba(84, 86, 140, 0) 100%),
  linear-gradient(180deg, #141a38 0%, #181e40 38%, #1f2448 72%, #262a50 100%); }
html.no-js main .sec[data-h="23"]::before, html.no-js .foot::before { background-image: linear-gradient(180deg, #0b1028 0%, #0e132e 42%, #121735 74%, #161b3c 100%); }
/* the header: no script adds .scrolled, so its shade is always on (text never shows through it), and a link jump lands
   with the section's time kicker below it */
html.no-js .nav::before { opacity: 1; }
html.no-js { scroll-padding-top: 48px; }
/* phones and touch devices with JS off (no head script, so the route comes from CSS: same tests as the head script's first
   check + narrow windows): the panorama is the phone picture strip, swiped by hand with a snap at each place, as with
   html.pano-img; the dots stay still (nothing tracks the view); no cloud band or birds */
@media (hover: none) and (pointer: coarse), (max-width: 767px) {
  html.no-js .pano { height: min(62vh, 560px); height: min(62svh, 560px); min-height: 340px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y; }
  html.no-js .pano::-webkit-scrollbar { display: none; }
  html.no-js .pano-track { will-change: auto; overflow: hidden; overflow: clip; } /* clip: not a scroll container, so the labels' view() timeline below is the strip's sideways scroll */
  /* no script keeps the labels on screen, so a label shows only while it is wholly inside the strip (a scroll-driven
     animation on the sideways scroll); never cut at the screen edge (844x390: the next place's label was half off-screen).
     Browsers without view timelines show every label, as before. */
  @supports (animation-timeline: view()) {
    html.no-js .pano-label { opacity: 0; animation: nj-label linear; animation-timeline: view(inline); animation-range: contain 0% contain 100%; }
  }
  html.no-js .pano-track::after { display: none; }
  html.no-js .pano-snap { display: block; position: absolute; top: 0; left: var(--x); width: 2px; height: 2px; margin-left: -1px; scroll-snap-align: center; pointer-events: none; }
  html.no-js .pano-dots { display: flex; justify-content: center; gap: 10px; margin-top: -1px; padding: 14px 0 64px;
    background: linear-gradient(180deg, #20392b 0%, rgba(30, 46, 48, .85) 28%, rgba(38, 40, 66, .45) 62%, rgba(44, 42, 78, 0) 100%); }
  html.no-js .clouds, html.no-js .birds { display: none; }
  /* the touch header's opaque bar, so text reaching it is covered cleanly, never half-faded; its fade below is short
     (16 px, not the 72 px main.js works with) because without JS it is always on, also over the first screen's kicker */
  html.no-js .nav { --shade: 16px; }
  html.no-js .nav::before { inset: 0 0 calc(-1 * var(--shade)) 0; backdrop-filter: none; -webkit-backdrop-filter: none; -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(180deg, #101828 0%, #101828 calc(100% - var(--shade)), rgba(16, 24, 40, .82) calc(100% - var(--shade) * .78), rgba(16, 24, 40, .5) calc(100% - var(--shade) * .47), rgba(16, 24, 40, .18) calc(100% - var(--shade) * .19), rgba(16, 24, 40, 0) 100%); }
}
@keyframes nj-label { from, to { opacity: 1; } }

/* ---------- Windows contrast themes / forced colors (fix B-2, 2026-11-17): only shapes that would vanish get a system-colour edge ---------- */
@media (forced-colors: active) {
  /* buttons and the header CTA keep their pill shape */
  .btn, .nav .btn-sm { border: 1px solid ButtonText; }
  /* the header: a plain Canvas bar with a line instead of the gradient shade + blur (the blur alone smeared the time kickers under it) */
  html:root .nav.nav::before { forced-color-adjust: none; inset: 0; background: Canvas; border-bottom: 1px solid CanvasText;
    backdrop-filter: none; -webkit-backdrop-filter: none; -webkit-mask-image: none; mask-image: none; }
  /* photo postcards: the paper frame becomes a visible edge */
  .card { border: 1px solid CanvasText; }
  /* 19:00 island: its tight top padding put the time kicker under the now-solid header bar at the section's own stop (-6 px at 1920, -17 px at 390) */
  .island { padding-top: 96px; }
  /* panorama dots: ring = a stop, filled = where you are */
  .pano-dots i { forced-color-adjust: none; background: Canvas; border: 1px solid CanvasText; }
  .pano-dots i.on { background: CanvasText; }
}

/* ---------- D029: narrow layout viewports only (Safari aA page zoom 150 %+ on a 390 px phone = 260 px and less; WCAG 1.4.4) ----------
   Everything here sits inside max-width: 299px (the base already broke at 289-299: "10" alone, "In English" on 2 lines), so phones at 100 % (>= 300 px) and every other device are unchanged. */
@media (max-width: 299px) {
  /* one column may shrink below its content's min width (facts + postcards held ~271 px) */
  .grid-2, .grid-2.rev { grid-template-columns: minmax(0, 1fr); }
  /* header: tighter, the language link never wraps; the controls drop under the logo only when they don't fit beside it */
  .nav { gap: 4px 8px; padding-inline: 12px; flex-wrap: wrap; }
  .nav-end { gap: 6px 8px; flex-wrap: wrap; justify-content: flex-end; }
  .logo { font-size: 17px; }
  .lang { font-size: 12.5px; white-space: nowrap; padding-top: 3px; } /* tap height >= 24 px */
  .nav .btn-sm { padding: 9px 11px; font-size: 12.5px; }
  /* hero rating: "9,4 / 10" stays together */
  .hero-rating > b + span { white-space: nowrap; }
  /* facts: label above value, value font size unchanged */
  .facts > div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  /* headings keep their no-break word groups (e.g. "Kui tuli kustub,"): the size follows the column width */
  .title { font-size: min(34px, calc((100vw - 2 * var(--gutter)) / 7.2)); }
  .title.big { font-size: min(40px, calc((100vw - 2 * var(--gutter)) / 6.8)); }
  /* contact line: label and address may wrap; the address may break anywhere */
  .bk-item, .book-phone a { white-space: normal; }
  .book-phone a { overflow-wrap: anywhere; }
  /* buttons may wrap their label instead of running past the edge */
  .btn, .hero-cta .btn { white-space: normal; text-align: center; max-width: 100%; }
  .hero-title { font-size: min(44px, calc((100vw - 2 * var(--gutter)) / 4.1)); }
  /* the hero grows with its text (at 200 %+ the text ran past 100svh and the next kicker sat on the rating line) */
  .hero { height: auto; min-height: max(620px, 100svh); }
  /* D029c: one-row header at 150-200 % (195-299 px): smaller logo, Book, gaps and padding; it may still wrap rather than run off the edge */
  .nav { padding: 12px 10px; gap: 4px 8px; }
  .nav.scrolled { padding-block: 8px; }
  :where(.nav) .logo { font-size: 16px; } /* header only (the footer logo keeps 17 px); :where keeps the <= 194 px rule in charge */
  .nav .btn-sm { padding: 8px 10px; font-size: 12px; }
  /* time kickers: the time on its own line above the label, no line between them */
  .kicker { flex-direction: column; align-items: flex-start; gap: 3px; }
  .kicker time::after { display: none; }
  /* 195-249 px (about 175-200 %): the language link shows "EN" / "ET"; its accessible name stays "In English" / "Eesti keeles" (the text is kept, only at size 0) */
  @media (min-width: 195px) and (max-width: 249px) {
    .nav { padding-inline: 8px; gap: 4px 6px; }
    .nav-end { gap: 6px; }
    :where(.nav) .logo { font-size: 14px; display: inline-block; line-height: 24px; } /* header only; tap height 24 px */
    .nav .btn-sm { padding: 8px 9px; font-size: 11.5px; }
    .nav .lang { font-size: 0; border-bottom: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; }
    .nav .lang::before { font-size: 12px; line-height: 1.3; border-bottom: 1px solid currentColor; content: "EN"; content: "EN" / ""; }
    .nav .lang[hreflang="et"]::before { content: "ET"; content: "ET" / ""; }
  }
  /* below 200 % (under 195 px; 250-300 % = 156-130 px): plain stacking, long words may break */
  @media (max-width: 194px) {
    body { overflow-wrap: anywhere; }
    /* ...but button labels break between words only (anywhere let them squeeze to a few letters per line) */
    .btn, .hero-cta .btn { overflow-wrap: break-word; padding-inline: 12px; font-size: 14px; }
    .btn .arr { display: none; }
    .hero-rating b { overflow-wrap: normal; } /* the score "9,4" never splits */
    .r-grid { grid-template-columns: minmax(0, 1fr); }
    .collage .c-b, .grid-2.rev .collage .c-b, .collage .c-c { position: relative; top: auto; left: auto; right: auto; width: 100%; margin: 14px 0 0; }
    /* D029b: long words hyphenate where the engine knows the language (et/en); controls, the score and the kicker don't */
    body { -webkit-hyphens: auto; hyphens: auto; }
    .nav, .btn, .hero-rating, .kicker { -webkit-hyphens: manual; hyphens: manual; }
    /* compact fixed header (<= 70 px): logo on row 1, language link + Book on row 2, same in the scrolled state */
    .nav, .nav.scrolled { padding: 6px 6px 6px 8px; gap: 2px 6px; }
    /* the hidden skip link wraps to 3 lines here and its bottom 15 px hung into view over the logo (and took its taps) */
    .skip:not(:focus) { top: 0; transform: translateY(-100%); }
    .logo { font-size: 15px; line-height: 1.25; display: inline-block; padding-block: 3px; } /* tap height >= 24 px */
    .nav-end { gap: 4px 6px; }
    .lang { font-size: 11px; line-height: 1.5; display: inline-block; padding: 4px 0 3px; } /* tap height >= 24 px */
    .nav .btn-sm { padding: 6px 7px; font-size: 11px; line-height: 1.2; letter-spacing: 0; }
    /* hero rating: "9,4 / 10" on its own line, the source line below it at full width (breaks only at spaces / after a hyphen) */
    .hero-rating { flex-wrap: wrap; }
    .hero-rating .hr-src { flex: 1 0 100%; margin: 2px 0 0; overflow-wrap: break-word; }
    /* "Booking.com" (EN end button) needs ~78 px: 12 px side padding left it 3 px outside the button at 130 px */
    .btn, .hero-cta .btn { padding-inline: 8px; }
  }
}
