:root{ color-scheme:light;
  /* glass by day: slate */
  --glass-a:rgba(40,50,65,.55); --glass-b:rgba(40,50,65,.35); --glass-edge:rgba(255,255,255,.32); --glass-shadow:rgba(0,0,0,.28); --glass-sheen:rgba(255,255,255,.14);
  --glass-page-a:rgba(40,50,65,.6); --glass-page-b:rgba(40,50,65,.4); --glass-page-shadow:rgba(0,0,0,.32);
  --glass-sat:140%;
}
/* glass in the evening: amber */
html.evening{
  --glass-a:rgba(70,45,30,.55); --glass-b:rgba(70,45,30,.35); --glass-edge:rgba(255,230,200,.3); --glass-shadow:rgba(20,10,0,.32); --glass-sheen:rgba(255,220,180,.14);
  --glass-page-a:rgba(70,45,30,.6); --glass-page-b:rgba(70,45,30,.4); --glass-page-shadow:rgba(20,10,0,.36);
}
/* glass by night: smoked */
html.night{
  --glass-a:rgba(20,30,40,.6); --glass-b:rgba(20,30,40,.4); --glass-edge:rgba(255,255,255,.22); --glass-shadow:rgba(0,0,0,.4); --glass-sheen:rgba(255,255,255,.08);
  --glass-page-a:rgba(20,30,40,.65); --glass-page-b:rgba(20,30,40,.45); --glass-page-shadow:rgba(0,0,0,.45);
  --glass-sat:130%;
}

html,body{height:100%}
body{margin:0;overflow:hidden;background:#b9d3e6}
#stage{position:fixed;inset:0;z-index:0}
#sig{z-index:2}
#nav{position:fixed;left:0;right:0;top:0;z-index:3;pointer-events:none;font-family:"Kaushan Script","Segoe Script","Bradley Hand",cursive}
#nav > *{pointer-events:auto}
/* the hamburger: a glass disc in the top-right corner */
#menuBtn{position:absolute;top:max(18px,env(safe-area-inset-top,0px));right:max(18px,env(safe-area-inset-right,0px));width:44px;height:44px;border:0;background:none;padding:0;cursor:pointer;display:grid;place-items:center;transition:transform .25s}
#menuBtn:hover{transform:scale(1.06)}
#menuBtn:focus{outline:none}
#menuBtn:focus-visible{outline:2px solid rgba(255,255,255,.7);outline-offset:4px;border-radius:8px}
@media (hover:none){#menuBtn:hover{transform:none}}
#menuBtn:active{transform:scale(.94)}
#infoBtn{position:absolute;top:max(18px,env(safe-area-inset-top,0px));right:calc(max(18px,env(safe-area-inset-right,0px)) + 52px);width:44px;height:44px;border:0;background:none;padding:0;cursor:pointer;display:grid;place-items:center;transition:transform .25s}
#infoBtn i{display:block;color:#fff;font:600 30px/1 -apple-system,"Segoe UI",system-ui,sans-serif;font-style:normal;text-shadow:0 1px 3px rgba(0,0,0,.4)}
#infoBtn:hover{transform:scale(1.06)}
#infoBtn:focus{outline:none}
#infoBtn:focus-visible{outline:2px solid rgba(255,255,255,.7);outline-offset:4px;border-radius:8px}
@media (hover:none){#infoBtn:hover{transform:none}}
#infoBtn:active{transform:scale(.94)}
#menuBtn span{display:block;width:26px;height:2.5px;background:#fff;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s,opacity .3s;position:absolute}
#menuBtn span:nth-child(1){transform:translateY(-7px)}
#menuBtn span:nth-child(3){transform:translateY(7px)}
#menuBtn i{display:contents}
#nav.open #menuBtn span:nth-child(1){transform:rotate(45deg)}
#nav.open #menuBtn span:nth-child(2){opacity:0}
#nav.open #menuBtn span:nth-child(3){transform:rotate(-45deg)}
/* the panel: liquid glass, slides down from the top */
#menuPanel{position:absolute;top:0;right:0;margin:calc(max(18px,env(safe-area-inset-top,0px)) + 64px) max(18px,env(safe-area-inset-right,0px)) 0;min-width:min(300px,calc(100vw - 36px));padding:14px;border-radius:26px;border:1px solid var(--glass-edge);background:linear-gradient(160deg,var(--glass-a),var(--glass-b));backdrop-filter:blur(20px) saturate(var(--glass-sat));-webkit-backdrop-filter:blur(20px) saturate(var(--glass-sat));box-shadow:0 20px 60px var(--glass-shadow),inset 0 1px 0 var(--glass-edge);transform:translateY(-24px) scale(.96);opacity:0;visibility:hidden;transform-origin:top right;transition:transform .45s cubic-bezier(.2,.9,.25,1.15),opacity .3s,visibility 0s .45s}
#nav.open #menuPanel{transform:none;opacity:1;visibility:visible;transition:transform .45s cubic-bezier(.2,.9,.25,1.15),opacity .3s}
#menuPanel::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(120% 80% at 10% 0%,var(--glass-sheen),transparent 55%)}
#menuPanel a{position:relative;display:block;padding:14px 20px;border-radius:16px;color:#fff;text-decoration:none;font-size:27px;line-height:1.15;font-weight:400;letter-spacing:.3px;text-shadow:0 1px 5px rgba(0,0,0,.45);transition:background .2s,transform .2s}
#menuPanel a:hover,#menuPanel a:focus-visible{background:rgba(255,255,255,.16);outline:none}
#menuPanel a + a{margin-top:4px}
/* content pages: a tinted glass frame centred over the scene */


.page::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(120% 80% at 10% 0%,var(--glass-sheen),transparent 55%)}
.page.show{opacity:1;transform:none;visibility:visible;transition:opacity .35s,transform .45s cubic-bezier(.2,.9,.25,1.1)}
.page header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:22px 28px 12px}
.page h1{margin:0;font-family:"Nunito",-apple-system,"Segoe UI",system-ui,sans-serif;font-weight:700;font-size:26px;line-height:1.15;letter-spacing:.2px;text-shadow:0 1px 5px rgba(0,0,0,.45)}
.page .close{width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:background .2s}
.page .close:hover{background:rgba(255,255,255,.28)}
.page .body{position:relative;min-height:0;flex:1 1 auto;padding:4px 28px 28px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;font-family:"Nunito",-apple-system,"Segoe UI",system-ui,sans-serif;font-size:17px;line-height:1.65;text-shadow:0 1px 3px rgba(0,0,0,.35);scrollbar-width:none;-ms-overflow-style:none}
.page .body::-webkit-scrollbar{display:none;width:0;height:0}
.page .body::-webkit-scrollbar-track{background:rgba(255,255,255,.08);border-radius:8px;margin:6px 0}
.page .body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.45);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
.page .body::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.7);background-clip:padding-box}
.page .body p{margin:0 0 1em}
.page .body h2{font-family:"Kaushan Script","Segoe Script",cursive;font-weight:400;font-size:26px;margin:1.4em 0 .4em}
.page .body a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.page .body a:hover{opacity:.85}
.page .intro{opacity:.9}
.seasonBar{margin:0 0 14px;display:grid;gap:10px}
.seasonBar[hidden],.seasonBar .row[hidden]{display:none}
.seasonBar .row{display:flex;align-items:center;gap:12px}
.seasonBar .lbl{flex:0 0 56px;font-size:14px;opacity:.85}
.seasonBar .seg{display:flex;gap:6px;flex-wrap:wrap}
.seasonBar button{font:inherit;font-size:14px;color:#fff;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:5px 14px;cursor:pointer;transition:background .2s}
.seasonBar button:hover:not(:disabled){background:rgba(255,255,255,.22)}
.seasonBar button.on{background:rgba(255,255,255,.32);border-color:rgba(255,255,255,.55)}
.seasonBar button:disabled{opacity:.38;cursor:default}
.seasonBar input[type=range]{flex:1 1 auto;min-width:0;accent-color:#fff;cursor:pointer}
.seasonBar output{flex:0 0 44px;text-align:right;font-variant-numeric:tabular-nums;font-size:14px}
.sceneItem{display:grid;grid-template-columns:168px 1fr;gap:18px;align-items:start;padding:14px 10px;margin:0 -10px;border-radius:16px;border-top:1px solid rgba(255,255,255,.12);cursor:pointer;transition:background .2s}
.sceneItem:first-child{border-top:0}
.sceneItem:hover,.sceneItem:focus-visible{background:rgba(255,255,255,.12);outline:none}
.sceneItem .thumb{aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);box-shadow:0 4px 14px rgba(0,0,0,.25)}
.sceneItem canvas{display:block;width:100%;height:100%;opacity:0;transition:opacity .4s}
.sceneItem.drawn canvas{opacity:1}
/* a small turning ring in each picture's frame until its picture has come */
.sceneItem .thumb{position:relative}
.sceneItem .thumb::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;border:2px solid rgba(255,255,255,.22);border-top-color:rgba(255,255,255,.9);animation:thumbSpin .9s linear infinite;opacity:1;transition:opacity .3s}
.sceneItem.drawn .thumb::after{opacity:0;animation:none}
@keyframes thumbSpin{to{transform:rotate(360deg)}}
.sceneItem h3{margin:0 0 4px;font-size:18px}
.sceneItem .when{margin:0 0 6px;font-size:14px;opacity:.9;display:flex;align-items:center;gap:7px}
.sceneItem .dot{width:8px;height:8px;border-radius:50%;background:#8fe08a;box-shadow:0 0 6px rgba(143,224,138,.8);flex:0 0 auto}
.sceneItem .desc{margin:0;font-size:15px;opacity:.88}
.sceneItem.off{cursor:default}
.sceneItem.off:hover{background:none}
.sceneItem.off .thumb{filter:grayscale(1) brightness(.75);opacity:.6}
.sceneItem.off h3,.sceneItem.off .desc{opacity:.6}
.sceneItem.off .dot{background:rgba(255,255,255,.45);box-shadow:none}
.contact dl{display:grid;grid-template-columns:auto 1fr;gap:10px 18px;margin:8px 0 0}
.contact dt{opacity:.75}
.contact dd{margin:0}

#stage canvas{position:absolute;left:0;top:0;display:block}
#sig{position:fixed;left:max(28px,env(safe-area-inset-left,0px));bottom:max(22px,env(safe-area-inset-bottom,0px));font-family:"Dancing Script","Segoe Script","Bradley Hand",cursive;font-size:clamp(26px,3.2vw,46px);color:#fff;opacity:.9;text-shadow:0 1px 6px rgba(0,0,0,.45);pointer-events:none;user-select:none;letter-spacing:.5px}
html.season-winter:not(.night)[data-view="meadow"] #sig,html.season-winter:not(.night)[data-view="fairy"] #sig,html.season-winter:not(.night)[data-view="owl"] #sig{color:#3a3d42;text-shadow:0 1px 4px rgba(255,255,255,.35)}   /* (winter: dark grey over the snow of the meadow and of the fairy's house by day; white at night, and in the other scenes) */
html.season-winter.dusk:not(.night)[data-view="meadow"] #sig,html.season-winter.dusk:not(.night)[data-view="fairy"] #sig,html.season-winter.dusk:not(.night)[data-view="owl"] #sig{color:#24262b;text-shadow:0 1px 4px rgba(255,255,255,.18)}   /* (in the twilight the snow is dim: the name a little darker, its pale glow fainter) */
.page[hidden]{display:none}
/* contact form */
#contactForm{display:grid;gap:14px;margin-top:6px}
#contactForm label{display:grid;gap:6px}
#contactForm label span{font-size:14px;letter-spacing:.3px;opacity:.85}
#contactForm input,#contactForm textarea{font:inherit;color:#fff;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3);border-radius:14px;padding:11px 14px;outline:none;transition:background .2s,border-color .2s;text-shadow:none;box-sizing:border-box;width:100%}
#contactForm input::placeholder,#contactForm textarea::placeholder{color:rgba(255,255,255,.5)}
#contactForm input:focus,#contactForm textarea:focus{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.65)}
#contactForm .invalid{border-color:#ffb3a7;background:rgba(255,120,100,.14)}
#contactForm textarea{resize:vertical;min-height:120px}
#contactForm .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
#contactForm .row{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
#contactForm .status{flex:1 1 auto;text-align:right}
#contactForm .send{font-family:"Nunito",-apple-system,"Segoe UI",system-ui,sans-serif;font-weight:700;font-size:17px;color:#fff;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.5);border-radius:999px;padding:8px 26px;cursor:pointer;text-shadow:0 1px 4px rgba(0,0,0,.4);transition:background .2s,transform .15s}
#contactForm .send:hover{background:rgba(255,255,255,.3)}
#contactForm .send:active{transform:scale(.97)}
#contactForm .send[disabled]{opacity:.6;cursor:default}
#contactForm .status{font-size:14px;opacity:.9}
#contactForm .status.ok{color:#cfe3a8}
#contactForm .status.err{color:#ffb3a7}
/* loader: covers the page until the scene has drawn its first frame */
#loader{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:#3a4a5c;transition:opacity .6s;}
html.night #loader{background:#0e1428}
#loader.done{opacity:0;pointer-events:none}
#loader .name{position:fixed;left:max(28px,env(safe-area-inset-left,0px));bottom:max(22px,env(safe-area-inset-bottom,0px));font-family:"Dancing Script","Segoe Script","Bradley Hand",cursive;font-size:clamp(26px,3.2vw,46px);letter-spacing:.5px;color:#fff;opacity:.9;text-shadow:0 1px 6px rgba(0,0,0,.45)}   /* (in the lower-left corner, just where it stays on the site, as when a scene is opened) */
/* the name waits, unseen, until its handwriting font has loaded, so it never visibly swaps from a stand-in font */
#loader .name{visibility:hidden}
html.fonts-ready #loader .name{visibility:visible}
@keyframes breathe{0%,100%{opacity:.45}50%{opacity:1}}
/* winter's loader: pale as the snow, a single snowflake in the middle slowly turning, a glint passing over it now and
   then (drawn by the page itself, so it is there from the first moment); at night a deep night blue, the flake and her
   name in white */
#loader .flakeSpin,#fireflies .flakeSpin{display:none}
html.season-winter #loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:radial-gradient(ellipse at 50% 45%,#f4f7fb 0%,#e2e9f2 60%,#cfd9e6 100%)}
html.season-winter #loader .name{color:#3a3d42;text-shadow:0 1px 4px rgba(255,255,255,.35)}
html.season-winter.night #loader .name{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.25)}
html.season-winter #loader .flakeSpin,html.season-winter #fireflies .flakeSpin{display:block;width:clamp(64px,8vw,96px);height:clamp(64px,8vw,96px);animation:flakeTurn 3s linear infinite;will-change:transform}   /* (the box holding the flake turns, not the drawing itself, so the browser can keep it turning while the page is busy making a scene) */
html.season-winter #loader .flake,html.season-winter #fireflies .flake{display:block;width:100%;height:100%;fill:none;stroke:#8ea3bf;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}   /* (turning at an even pace from the very first moment: it is up for only two seconds or so) */
html.season-winter #fireflies .flakeSpin{position:absolute;margin:calc(clamp(64px,8vw,96px) / -2)}
html.season-winter #fireflies .haze,html.season-winter #fireflies i{display:none}   /* (winter: the snowflake in place of the fireflies while a scene is made) */
html.season-winter #fade{background:radial-gradient(ellipse at 50% 45%,#f4f7fb 0%,#e2e9f2 60%,#cfd9e6 100%)}
html.season-winter.night #fade{background:radial-gradient(ellipse at 50% 45%,#1c2846 0%,#111a32 60%,#0b1124 100%)}
html.season-winter .flake defs circle,html.season-winter .flake polygon{fill:#8ea3bf;stroke:none}
html.season-winter .flake .glint{stroke:none;opacity:0;animation:flakeGlint 1.6s ease-in-out .3s infinite}
html.season-winter.night #loader{background:radial-gradient(ellipse at 50% 45%,#1c2846 0%,#111a32 60%,#0b1124 100%)}
html.season-winter.night #loader .flake,html.season-winter.night #fireflies .flake{stroke:#dfe8f5}
html.season-winter.night .flake defs circle,html.season-winter.night .flake polygon{fill:#dfe8f5}
html.season-winter.night:has(#loader:not(.done)) #sig{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.35)}
@keyframes flakeTurn{to{transform:rotate(360deg)}}
@keyframes flakeGlint{0%,40%,100%{opacity:0}65%{opacity:.85}}
/* autumn's loader: brownish green in the middle to deep brown at the edges (the yellow leaf shows best on it), a single birch leaf (downy birch, the
   fells' birch, yellow in September) a little bigger than winter's snowflake, rocking as it drifts and turning so its
   edge shows, from the first moment; her name white as on the summer loader; at night a dark plum, the leaf pale gold. The same leaf
   stands in for the fireflies while a scene is made */
#loader .leafRock,#fireflies .leafRock{display:none}
html.season-autumn #loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:radial-gradient(ellipse at 50% 45%,#6a6236 0%,#4a4024 55%,#2c2214 100%)}
html.season-autumn.night #loader{background:radial-gradient(ellipse at 50% 45%,#3a2238 0%,#241528 55%,#120b14 100%)}
html.season-autumn.night #loader .name{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.35)}
html.season-autumn #loader .leafRock,html.season-autumn #fireflies .leafRock{display:block;width:clamp(90px,11vw,134px);height:clamp(108px,13.2vw,161px);perspective:600px;transform-origin:50% 20%;animation:leafRock 2.4s ease-in-out infinite alternate;will-change:transform}
html.season-autumn #loader .leaf,html.season-autumn #fireflies .leaf{display:block;width:100%;height:100%;animation:leafTurn 3.2s ease-in-out infinite alternate;will-change:transform}
html.season-autumn .leaf .blade{fill:#e8b63a;stroke:#b9842a;stroke-width:1.2;stroke-linejoin:round}
html.season-autumn .leaf .veins{fill:none;stroke:#b9842a;stroke-width:1.8;stroke-linecap:round}
html.season-autumn.night .leaf .blade{fill:#f0d27a;stroke:#c9a64a}
html.season-autumn.night .leaf .veins{stroke:#c9a64a}
html.season-autumn #fireflies .leafRock{position:absolute;margin:calc(clamp(108px,13.2vw,161px) / -2) calc(clamp(90px,11vw,134px) / -2)}
html.season-autumn #fireflies .haze,html.season-autumn #fireflies i{display:none}   /* (autumn: the leaf in place of the fireflies while a scene is made) */
html.season-autumn #fade{background:radial-gradient(ellipse at 50% 45%,#6a6236 0%,#4a4024 55%,#2c2214 100%)}
html.season-autumn.night #fade{background:radial-gradient(ellipse at 50% 45%,#3a2238 0%,#241528 55%,#120b14 100%)}
html.season-autumn.night:has(#loader:not(.done)) #sig{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.35)}
@keyframes leafRock{from{transform:rotate(-14deg) translateY(-6px)}to{transform:rotate(11deg) translateY(6px)}}
@keyframes leafTurn{from{transform:rotateY(-42deg)}to{transform:rotateY(42deg)}}


/* ---- stepping into the tent: magnifier cursor over it, a zoom-and-fade, and a glass back button */
/* the magnifier over things you can step into: drawn by the page itself (a white glass, with a minus while the anthill's
   x-ray is showing), so the browser never substitutes a cursor of its own */
#stage.hover canvas{cursor:none}
#stage.hand canvas{cursor:pointer}   /* the telescope's controls */
#stage.grab canvas{cursor:grab}   /* the snowman's things, to pick up */
#stage.grabbing canvas{cursor:grabbing}
#magCursor{position:fixed;left:0;top:0;width:34px;height:34px;pointer-events:none;z-index:9;display:none;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'><g fill='none' stroke-linecap='round'><circle cx='14' cy='14' r='9' stroke='%23000' stroke-opacity='.45' stroke-width='5'/><line x1='21' y1='21' x2='30' y2='30' stroke='%23000' stroke-opacity='.45' stroke-width='7'/><circle cx='14' cy='14' r='9' stroke='white' stroke-width='3'/><line x1='21' y1='21' x2='30' y2='30' stroke='white' stroke-width='4'/><line x1='10' y1='14' x2='18' y2='14' stroke='white' stroke-width='2.5'/><line x1='14' y1='10' x2='14' y2='18' stroke='white' stroke-width='2.5'/></g></svg>") no-repeat center/contain}
#magCursor.minus{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'><g fill='none' stroke-linecap='round'><circle cx='14' cy='14' r='9' stroke='%23000' stroke-opacity='.45' stroke-width='5'/><line x1='21' y1='21' x2='30' y2='30' stroke='%23000' stroke-opacity='.45' stroke-width='7'/><circle cx='14' cy='14' r='9' stroke='white' stroke-width='3'/><line x1='21' y1='21' x2='30' y2='30' stroke='white' stroke-width='4'/><line x1='10' y1='14' x2='18' y2='14' stroke='white' stroke-width='2.5'/></g></svg>")}
#magCursor.on{display:block}
#magCursor.bulb{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'><g fill='none' stroke-linecap='round' stroke-linejoin='round'><path d='M12.5 21C9.5 18.8 8.5 16 8.5 13.5a8.5 8.5 0 0 1 17 0c0 2.5-1 5.3-4 7.5L21 23.5h-8z' stroke='%23000' stroke-opacity='.45' stroke-width='5'/><path d='M13.5 27h7M14.5 30h5' stroke='%23000' stroke-opacity='.45' stroke-width='5'/><path d='M12.5 21C9.5 18.8 8.5 16 8.5 13.5a8.5 8.5 0 0 1 17 0c0 2.5-1 5.3-4 7.5L21 23.5h-8z' stroke='white' stroke-width='2.5'/><path d='M13.5 27h7M14.5 30h5' stroke='white' stroke-width='2.5'/></g></svg>")}   /* a light bulb over something that switches on and off (the cottage's Christmas tree) */
#stage canvas{transition:transform .55s cubic-bezier(.45,0,.25,1)}
#stage canvas.zoom{transform:scale(3.4)}
#fade{position:fixed;inset:0;z-index:1;background:#3a4a5c;opacity:0;pointer-events:none;transition:opacity .45s ease}
html.night #fade{background:#0e1428}   /* (the same colours as the loader on first arriving, by the hour) */
#fade.on{opacity:1}
/* fireflies while a scene is being prepared: they appear where you clicked and drift out into a slowly circling swarm.
   Only CSS transforms and opacity, so they keep moving while the page is busy building the scene */
#fireflies{position:fixed;left:50%;top:50%;z-index:2;width:0;height:0;pointer-events:none;opacity:0;transition:opacity .45s ease}
#fireflies.on{opacity:1}
#fireflies .haze{position:absolute;width:60vmin;height:60vmin;margin:-30vmin;border-radius:50%;opacity:0;
  background:radial-gradient(circle closest-side,rgba(255,214,120,.18),rgba(255,206,104,.1) 30%,rgba(255,200,90,.04) 60%,rgba(255,200,90,.01) 85%,transparent)}
#fireflies i{position:absolute;transform:rotate(var(--a))}
#fireflies u{position:absolute}
#fireflies s{position:absolute;transform:translateX(var(--r))}
#fireflies b{position:absolute;width:36px;height:36px;margin:-18px;border-radius:50%;transform:scale(var(--s));
  background:radial-gradient(circle,#fffbe6 0 1.6px,rgba(255,236,140,.95) 2.6px,rgba(232,214,92,.45) 5px,rgba(220,200,80,.12) 10px,transparent 18px)}
#fireflies.run .haze{animation:ffHaze 3.2s ease-in-out .9s infinite alternate}
#fireflies.run u{animation:ffOrbit var(--d) linear infinite var(--dir)}
#fireflies.run s{animation:ffSpread var(--g) cubic-bezier(.3,.6,.35,1) both}
#fireflies.run b{animation:ffBlink var(--b) ease-in-out var(--bd) infinite alternate,ffWobble 2.8s ease-in-out var(--wd) infinite alternate}
@keyframes ffHaze{from{opacity:.35;transform:scale(.85)}to{opacity:1;transform:scale(1.1)}}
@keyframes ffOrbit{to{transform:rotate(360deg)}}
@keyframes ffSpread{from{transform:translateX(0);opacity:0}to{transform:translateX(var(--r));opacity:1}}
@keyframes ffBlink{0%,15%{opacity:.12}100%{opacity:1}}
@keyframes ffWobble{from{transform:translate(-4px,-9px) scale(var(--s))}to{transform:translate(5px,8px) scale(calc(var(--s)*1.12))}}
/* back: a bold white arrow on its own, no outline or disc, like the hamburger */
#backBtn{position:fixed;top:max(18px,env(safe-area-inset-top,0px));left:max(18px,env(safe-area-inset-left,0px));z-index:3;width:48px;height:44px;padding:0;border:0;background:none;color:#fff;cursor:pointer;opacity:0;transform:translateY(-8px);transition:opacity .35s,transform .35s}
#backBtn{display:grid;place-items:center}
#backBtn[hidden]{display:none}
#backBtn .backArrow{width:36px;height:26px;fill:none;stroke:currentColor;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
#backBtn.show{opacity:1;transform:none}
#backBtn.show:hover{transform:scale(1.06)}
@media (hover:none){#backBtn.show:hover{transform:none}}
#backBtn.show:active{transform:scale(.94)}
#backBtn:focus{outline:none}
#backBtn:focus-visible{outline:2px solid rgba(255,255,255,.7);outline-offset:4px;border-radius:8px}

/* "Loading …" in the lower-right corner while a scene is being prepared (on first load, and when stepping into one) */
#loadingNote{position:fixed;right:max(28px,env(safe-area-inset-right,0px));bottom:max(26px,env(safe-area-inset-bottom,0px));z-index:11;font-family:"Dancing Script","Segoe Script","Bradley Hand",cursive;font-size:clamp(20px,2vw,28px);color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.45);pointer-events:none;user-select:none;opacity:0;transition:opacity .3s}
#loadingNote.on{opacity:.9;animation:breathe 1.8s ease-in-out infinite}

/* Tunturipöllö's falling snow: "Responsive Snowfall Animation" by Ljupce Atanasov (cssscript.com), MIT licence; shown only while that scene is open */
.snowfall-animation{position:absolute;inset:0;overflow:hidden;pointer-events:none;display:none}
html[data-view="owl"] .snowfall-animation{display:block}
.snowflake-area { position: relative; width: 100%; height: 100%; z-index: 10; }
.snowcanvas{position:absolute;inset:0;width:100%;height:100%}   /* (the falling snow, drawn by owl.js) */
.snowflake { position: absolute; top: -20%; aspect-ratio: 1; border-radius: 50%; background-color: snow; animation: snowfall 10s linear infinite, sway 3s ease-in-out infinite; z-index: 10; }   /* (the sway added to the original's fall) */
@keyframes snowfall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(110vh) rotate(360deg); } }
@keyframes sway { 0%, 100% { translate: calc(-1 * var(--sway-amplitude)) 0; } 50% { translate: var(--sway-amplitude) 0; } }   /* (as the original's, moved to its own property so it adds to the fall instead of replacing it) */

/* ---- the diaries (js/diary.js): a book from the cottage's rug, picked up and opened in the middle of the screen. The
   .diary covers the page, dimmed; the .dBook holds the back board, two leaves and the cover, each leaf a page on its
   front and one on its back, hinged along the book's spine (its left edge) and turned over with rotateY. Shut, the book
   stands centred and small at the point it was clicked (--fx, --fy); open, it grows to the middle and slides right by
   half a page so the spread is centred; closing runs the same way back (the cover shuts, then it returns to its place). Only transforms move (the book is solid throughout, never faded), so it runs smoothly */
.diary{position:fixed;inset:0;z-index:5;display:block;background:rgba(10,8,6,0);transition:background .7s ease;perspective:2200px}
.diary.open{background:rgba(10,8,6,.55)}
.dBook{--pw:min(34vw,46vh);--ph:calc(var(--pw) * 1.38);position:absolute;left:var(--fx);top:var(--fy);width:var(--pw);height:var(--ph);margin:calc(var(--ph) / -2) calc(var(--pw) / -2);transform:scale(.12);transform-style:preserve-3d;transition:left .7s cubic-bezier(.4,.1,.2,1),top .7s cubic-bezier(.4,.1,.2,1),transform .7s cubic-bezier(.4,.1,.2,1);cursor:pointer}
.diary.open .dBook{left:50%;top:50%;transform:translateX(50%) scale(1)}
.dBoard,.dLeaf{position:absolute;inset:0;transform-style:preserve-3d}
.dBoard{background:var(--cover);border-radius:3px 8px 8px 3px;box-shadow:0 18px 40px rgba(0,0,0,.45),0 2px 0 rgba(0,0,0,.25);transform:translateZ(-3px)}
.dBoard::after{content:"";position:absolute;inset:5px 6px 5px 0;background:#e7dcc2 linear-gradient(90deg,rgba(0,0,0,.18),rgba(0,0,0,0) 12%);border-radius:0 5px 5px 0}   /* (its endpaper, shaded along the spine) */
.dLeaf{transform-origin:left center;transition:transform .9s cubic-bezier(.45,.05,.3,1);transform:rotateY(0) translateZ(var(--z,0px))}   /* (--z, set by diary.js: each leaf a fraction of a pixel in front of the one under it, so no two lie in one plane and none shows through another while the book moves) */
.dLeaf.turned{transform:rotateY(-180deg) translateZ(calc(-1 * var(--z,0px)))}   /* (turned over, the leaf's own front points away from us, so its offset is reversed to keep it in front of the leaves turned before it) */
.dPage{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:0 5px 5px 0;overflow:hidden}
.dBack{transform:rotateY(180deg);border-radius:5px 0 0 5px}
/* the pages: cream, faintly ruled, a shadow toward the spine; the writing in Dancing Script, the date above, the
   page's number below */
.dLeaf:not(.dCover) .dPage{background:#f3ead4 repeating-linear-gradient(to bottom,transparent 0,transparent calc(2.3em - 1px),rgba(120,100,70,.22) calc(2.3em - 1px),rgba(120,100,70,.22) 2.3em);background-position:0 4.6em;background-origin:content-box;box-shadow:inset 0 0 40px rgba(90,70,40,.12);padding:4em 1.6em 2.2em 1.9em;box-sizing:border-box;font:500 clamp(15px,calc(var(--pw) * .058),26px)/2.3em "Dancing Script","Segoe Script","Bradley Hand",cursive;color:#2b2740;line-height:2.3em}
.dLeaf:not(.dCover) .dFront{box-shadow:inset 18px 0 30px -18px rgba(60,40,20,.35)}
.dLeaf:not(.dCover) .dBack{box-shadow:inset -18px 0 30px -18px rgba(60,40,20,.35);padding-left:1.6em;padding-right:1.9em}
.dPage p{margin:0;text-indent:1.2em}
.dDate{position:absolute;top:1.3em;right:1.9em;font-size:.85em;line-height:1.4;color:#6a5a7a;text-indent:0}
.dBack .dDate{right:auto;left:1.6em}
.dNum{position:absolute;bottom:.7em;left:0;right:0;text-align:center;font-size:.7em;line-height:1.4;color:#8a7a9a}
/* the cover: book cloth in the book's own colour, a frame pressed into it, the spine's rounding along its left edge;
   inside, the endpaper */
.dCloth{background:var(--cover) var(--cloth) center/100% 100% no-repeat;box-shadow:0 2px 6px rgba(0,0,0,.35)}   /* (the cloth is painted in js/diary.js, as the books on the rug are: no pressed frame, no ruled weave) */
.dEnd{background:#e7dcc2 linear-gradient(270deg,rgba(0,0,0,.18),rgba(0,0,0,0) 12%)}
/* the cottage's crystal ball and clock, looked at close up (js/cottage.js): the diaries' backdrop and growth, a canvas
   drawn each frame in the box; the clock's hands can be dragged */
.lookBox{cursor:default;margin:calc(var(--ph) / -2) calc(var(--pw) / -2)}
.diary.open .lookBox{transform:scale(1)}   /* (centred: no slide to the right, which the book has for its spread) */
.lookCv{position:absolute;inset:0;width:100%;height:100%}
.lookBox.overHand{cursor:grab}
.lookBox.dragging{cursor:grabbing}
/* the piano: too big to grow smoothly from its place in the room, so it is drawn in place, at its size, unseen, and fades in (and out) */
.diary.fadeIn .lookBox{left:50%;top:50%;transform:scale(1);opacity:0;transition:opacity .55s ease}
.diary.fadeIn.open .lookBox{opacity:1}
.diary.fadeIn.closing .lookBox{opacity:0}
.page .credit{font-size:.82em;opacity:.7;margin-top:1.2em}   /* (the About page's credit line for the piano's recordings) */

/* the pond among the trees (js/pond.js): its own sheet over the site's canvas, shown only in that view; no menu there */
#stage #pondCv{display:none}
html[data-view="pond"] #stage #pondCv{display:block}
html[data-view="pond"] #nav{display:none}

/* (THE PAINTBRUSH ON THE PHONE, while its picture is painted: js/boot.js, phoneInSteps. A box the size of the screen, moved by fractions of itself, so the brush's tip goes where the part being painted is; moved and faded by the browser alone, so it keeps going while the picture is painted) */
#paintBrush{position:fixed;inset:0;z-index:1;pointer-events:none;will-change:transform,opacity;opacity:0;transition:opacity .5s}
#paintBrush .tip{position:absolute;left:0;top:0;transform:rotate(212deg);transform-origin:0 0}   /* (its tip up, the handle down to the left, as Claire turned it) */
#paintBrush svg{position:absolute;display:block;width:min(7.2vw,34px);height:min(32vw,152px);left:max(-3.6vw,-17px);top:min(-31vw,-147px);overflow:visible;filter:drop-shadow(0 -2px 3px rgba(0,0,0,.35))}
#paintBrush.far,#paintBrush.meadow,#paintBrush.light{opacity:1}
#paintBrush.far{animation:pbFar 4s ease-in-out infinite alternate}
#paintBrush.meadow{animation:pbMeadow 4s ease-in-out infinite alternate}
#paintBrush.light{animation:pbLight 2s ease-in-out infinite alternate}
#paintBrush.done{opacity:0;animation:pbLight 2s ease-in-out infinite alternate}
@keyframes pbFar{0.0%{transform:translate(24%,33.0%)}20.0%{transform:translate(88%,35.0%)}40.0%{transform:translate(88%,40.5%)}60.0%{transform:translate(24%,42.5%)}80.0%{transform:translate(24%,48.0%)}100.0%{transform:translate(88%,50.0%)}}
@keyframes pbMeadow{0.0%{transform:translate(24%,56.0%)}14.3%{transform:translate(88%,58.0%)}28.6%{transform:translate(88%,64.7%)}42.9%{transform:translate(24%,66.7%)}57.1%{transform:translate(24%,73.3%)}71.4%{transform:translate(88%,75.3%)}85.7%{transform:translate(88%,82.0%)}100.0%{transform:translate(24%,84.0%)}}
@keyframes pbLight{0.0%{transform:translate(24%,12.0%)}20.0%{transform:translate(88%,14.0%)}40.0%{transform:translate(88%,47.0%)}60.0%{transform:translate(24%,49.0%)}80.0%{transform:translate(24%,82.0%)}100.0%{transform:translate(88%,84.0%)}}
