/* The backdrop, joinery and objects share a coordinate system. Scale the small
   ink lines with the scene, keeping the actual links at least finger sized. */
.still-life {
  container-type: inline-size; isolation: isolate; position: relative; aspect-ratio: 1.65; overflow: hidden;
  --sky: #dbcabc; --haze: #f5dfb8; --disc: #fff1c8; --far: #afa497; --near: #758b83;
  --frame: #294c4e; --shallows: #cad0b1; --deep: #729392; --day: .11; --nightfall: 0;
  --ink-cut: #304f4e; --brass: #b39b70; --wood: #bbab86;
  background: var(--frame);
}
.window-view, .worktop, .window-view i { position: absolute; display: block; pointer-events: none }
.window-view {
  inset: 0 0 27%; overflow: hidden;
  background: linear-gradient(var(--sky),var(--haze) 86%);
}
.window-sun { opacity: calc(1 - var(--nightfall)); top: calc(18% - var(--day) * 9% + var(--nightfall) * 55%); left: calc(49% + var(--day) * 12%); width: 12%; aspect-ratio: 1; border-radius: 50%; background: var(--disc) }
.window-moon { top: calc(30% - var(--nightfall) * 12%); left: 60%; width: 7%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset -.95cqw -.38cqw 0 var(--disc); rotate: 18deg; opacity: var(--nightfall) }
.ridge { bottom: 17%; width: 100%; height: 41%; }
.far-ridge {
  background: repeating-linear-gradient(164deg,transparent 0 5px,#faf2d71b 6px,transparent 7px 12px),var(--far);
  clip-path: var(--far-slope, polygon(0 57%,5% 53%,10% 42%,15% 44%,19% 39%,24% 49%,29% 53%,32% 64%,37% 69%,40% 67%,45% 75%,49% 78%,53% 73%,57% 67%,63% 48%,68% 47%,73% 27%,76% 25%,80% 18%,86% 29%,91% 51%,95% 54%,100% 45%,100% 100%,0 100%));
}
.near-ridge {
  height: 25%; background: repeating-linear-gradient(173deg,transparent 0 8px,#f8f2cd22 9px,transparent 10px 15px),var(--near);
  clip-path: var(--near-slope, polygon(0 18%,5% 24%,8% 22%,13% 36%,16% 38%,21% 51%,25% 49%,32% 67%,39% 83%,46% 92%,52% 94%,60% 88%,66% 77%,71% 75%,77% 64%,81% 60%,87% 40%,91% 42%,97% 23%,100% 28%,100% 100%,0 100%));
}
.window-lake { inset: 82% 0 0; background: linear-gradient(var(--shallows),var(--deep)) }
.window-lake::after {
  content: ''; position: absolute; inset: 0; opacity: .48;
  background: repeating-linear-gradient(0deg,transparent 0 2px,#f4edce 2px 3px,transparent 3px 6px);
  mask-image: repeating-linear-gradient(164deg,transparent 0 1.5%,#000 2% 3.8%,transparent 5% 9%);
}
.window-light { bottom: 0; left: calc(52% + var(--day) * 12%); width: 9%; height: 18%; background: repeating-linear-gradient(0deg,transparent 0 10%,var(--disc) 11% 16%,transparent 17% 23%); clip-path: polygon(34% 0,65% 0,100% 100%,0 100%); opacity: .8 }
.casement {
  inset: 0; border: .95cqw solid var(--frame); border-top-width: 1.55cqw; border-bottom-width: 1.45cqw;
  box-shadow: inset .35cqw .4cqw 0 #788477, inset -.3cqw -.33cqw 0 #d1c3a4;
  background: linear-gradient(90deg,transparent 0 30%,#596e64 30% 30.35%,var(--frame) 30.35% 31.4%,#b0ae91 31.4% 31.65%,transparent 31.65% 72.5%,#788577 72.5% 72.85%,var(--frame) 72.85% 74%,#adaf96 74% 74.25%,transparent 74.25%);
}
.worktop {
  filter: brightness(calc(1 - var(--nightfall) * .32)) saturate(calc(1 - var(--nightfall) * .3));
  inset: 73% 0 0; border-top: .55cqw solid #d1c4a3; border-bottom: 1.2cqw solid #7d806c;
  background: linear-gradient(111deg,transparent 0 25%,#50696130 25% 27%,transparent 27% 66%,#50696135 66% 68%,transparent 68%),
    repeating-linear-gradient(178deg,transparent 0 14px,#716b5424 15px,transparent 16px 24px),linear-gradient(165deg,#cebf98,#b8b398);
}
/* Across the glass: a wooded point, weathered brass and separate bands of light. */
.window-view::before, .window-view::after, .worktop::before, .worktop::after,
.casement::before, .casement::after, .window-catch::after {
  content: ''; position: absolute; pointer-events: none;
}
.window-view::before {
  inset: 0; background: radial-gradient(ellipse at 57% 33%,color-mix(in srgb,var(--disc) 55%,transparent),transparent 45%),
    repeating-linear-gradient(176deg,transparent 0 1.7cqw,#fff3ce19 1.78cqw,transparent 1.94cqw 2.8cqw);
}
.night-stars { inset: 0; opacity: var(--nightfall);
  background: radial-gradient(circle at 22% 32%,#e6dec0 0 .09cqw,transparent .15cqw),
    radial-gradient(circle at 39% 15%,#e8dab7 0 .13cqw,transparent .22cqw),
    radial-gradient(circle at 46% 37%,#e6dec0 0 .09cqw,transparent .17cqw),
    radial-gradient(circle at 68% 22%,#e6dec0 0 .09cqw,transparent .17cqw),
    radial-gradient(circle at 85% 36%,#e6dec0 0 .12cqw,transparent .18cqw),
    radial-gradient(circle at 81% 11%,#e6dec0 0 .09cqw,transparent .16cqw);
}
.pine-point { right: 0; bottom: 14.5%; width: 26%; height: 36%; background: var(--frame);
  clip-path: var(--pines, polygon(0 100%,14% 96%,19% 92%,20% 83%,21% 90%,25% 88%,26% 72%,28% 86%,32% 81%,33% 71%,34% 80%,37% 76%,39% 57%,41% 75%,44% 72%,46% 60%,47% 70%,50% 68%,52% 48%,54% 66%,57% 63%,59% 40%,61% 61%,63% 57%,65% 49%,67% 54%,70% 34%,72% 50%,75% 49%,78% 20%,80% 46%,82% 41%,84% 22%,86% 40%,89% 36%,92% 12%,94% 32%,97% 29%,99% 6%,100% 21%,100% 100%)); }
.glass-sheen { inset: 0; opacity: calc(.7 - .4 * var(--nightfall)); background: linear-gradient(118deg, transparent 17%,#fff7db22 17.2% 18.3%,transparent 18.6% 19%,#fff7db15 19.1% 23%,transparent 23.3% 78%,#fff7db17 78.2% 79%,transparent 79.2%) }
.casement::before { top: -1.1cqw; left: 0; right: 0; height: .7cqw; background: repeating-linear-gradient(178deg,#c4be9a38 0 .09cqw,transparent .12cqw .39cqw) }
.casement::after { bottom: -.75cqw; left: 0; right: 0; height: .4cqw; background: linear-gradient(#c6bd94aa,transparent), repeating-linear-gradient(176deg,#c6bd9488 0 .07cqw,transparent .09cqw .32cqw) }
.window-catch { top: 47%; left: 72.45%; width: 1.25%; height: 8%; border: .12cqw solid #736d55; border-radius: 25%; background: radial-gradient(circle at 45% 14%,#645b44 0 5%,transparent 7%),radial-gradient(circle at 45% 85%,#645b44 0 5%,transparent 7%),linear-gradient(90deg,#ae9771,#ccba90,#998d69) }
.window-catch::after { top: 41%; right: 16%; width: 190%; height: 18%; border-radius: 40%; background: #a9956f; transform: rotate(12deg); box-shadow: 0 .2cqw .1cqw #4e574f66 }
.worktop::before { inset: 0; opacity: .6; background: repeating-radial-gradient(ellipse 45% 15% at 58% 166%,transparent 0 20%,#736a4e39 21% 22%,transparent 24% 36%); }
.worktop::after { inset: auto 0 -1.18cqw; height: 1.3cqw; border-top: .18cqw solid #e2d6ab; background: repeating-linear-gradient(177deg,#847f64 0 .17cqw,#979174 .2cqw .28cqw,#89856b .3cqw .64cqw) }

/* A tied-back length of linen gives the window a near edge. Light catches
   the ridge of each fold; the weave is finest at the cinched waist. */
.linen-curtain {
  inset: 0 auto 2% 0; width: 11%; transform-origin: 2% 0;
  filter: brightness(calc(1 - var(--nightfall) * .42));
  background: repeating-linear-gradient(177deg,transparent 0 .41cqw,#6c776b24 .45cqw .51cqw,transparent .55cqw .83cqw),
    repeating-linear-gradient(94deg,transparent 0 .28cqw,#faf4ce36 .31cqw .37cqw,transparent .42cqw .58cqw),
    linear-gradient(95deg,#849387 0%,#bcc0a5 11%,#e0d9ba 19%,#9ba896 29%,#c7c6ab 38%,#e8ddbe 56%,#b4b9a0 66%,#e1d8b8 81%,#c1c2a5 93%);
  clip-path: polygon(0 0,100% 0,95% 7%,85% 18%,71% 30%,51% 43%,33% 53%,27% 58%,24% 62%,28% 71%,36% 80%,41% 91%,35% 94%,27% 93%,19% 97%,9% 95%,0 98%);
}
.curtain-tie { left: -.35%; top: 57%; width: 3.5%; height: 1.6%; rotate: -12deg; border-radius: 40%; border-block: .12cqw solid #84765a; background: repeating-linear-gradient(105deg,#c5b790 0 .25cqw,#a79b75 .29cqw .42cqw) }
.curtain-tie::after { content:''; position: absolute; left: 64%; top: 60%; width: 30%; height: 410%; border-right: .22cqw solid #aa9c74; border-bottom: .65cqw solid #ae9d73; rotate: -19deg; border-radius: 45% }
.glass-sheen::after { content:''; position: absolute; inset: 0; background: linear-gradient(90deg, #314e4c18,transparent 22% 81%,#314e4c1b) }

/* Recess the joinery and give the foreground a warmer, denser ink than the view. */
.still-life { aspect-ratio: 1.7; }
.window-view { bottom: 29%; }
.window-view::after {
  inset: 0; box-shadow: inset 0 1.2cqw 1.1cqw -.8cqw #3d494a6b, inset .9cqw 0 .7cqw -.7cqw #273e3f66; pointer-events: none;
}
.worktop {
  top: 71%; border-top: .6cqw solid #cfb88c; border-bottom-color: #766b52;
  background: linear-gradient(calc(110deg + var(--day) * 14deg),transparent 0 24%,#53604d32 24.2% 26%,transparent 26.2% 59%,#53604d38 59.2% 61.3%,transparent 61.5%),
    linear-gradient(171deg,transparent 0 37%,#7b765b52 37.2% 37.5%,#ffe2ae7a 37.7% 38%,transparent 38.2% 76%,#88775762 76.4% 76.7%,#efd2a488 76.8% 77.2%,transparent 77.3%),
    linear-gradient(122deg,#ae9b74,#d2b88c 37%,#c2a87c 64%,#aa9975);
}
.worktop::before { opacity:.85; background:
  repeating-radial-gradient(ellipse 31% 22% at 12% -18%,transparent 0 17%,#6a64452b 17.6% 18.3%,transparent 19% 27%),
  repeating-radial-gradient(ellipse 45% 15% at 67% 126%,transparent 0 20%,#7d684236 20.7% 21.6%,transparent 23% 37%);
}
.casement { border-width:.8cqw 1.6cqw 1.65cqw; border-top-width:2.5cqw;
  box-shadow:inset .45cqw .44cqw 0 #69847a, inset -.45cqw -.32cqw 0 #bfb596, inset .8cqw .7cqw 0 #c6c5a277;
}
.casement::after { bottom:-1.35cqw; height:1cqw; box-shadow:0 .18cqw #4d5c52; }
.linen-curtain { width:13%; opacity:.97; background:
    repeating-linear-gradient(177deg,transparent 0 .42cqw,#f2eacd2e .46cqw .54cqw,transparent .58cqw .76cqw),
    repeating-linear-gradient(94deg,transparent 0 .23cqw,#223d3d32 .27cqw .35cqw,transparent .39cqw .59cqw),
    linear-gradient(96deg,#678175 0%,#a9b29a 11%,#c6cbb1 17%,#82998a 26%,#b3bda3 39%,#d8d5b8 52%,#859d8e 64%,#c6cdb0 80%,#9cb09c 94%);
}

/* An alder outside the right pane. Its stems stay behind the glazing bars. */
.alder-bough { top: 1%; right: 1.2%; width: 37%; height: 43%; pointer-events: none; }
.alder-bough b { position:absolute; display:block; }
.alder-stem { inset:0; background: linear-gradient(155deg,#a5936e,#6c755d 52%,#495d50); clip-path: polygon(100% 0,100% 10%,89% 15%,77% 27%,64% 29%,50% 44%,35% 50%,24% 58%,9% 61%,0 67%,9% 59%,23% 55%,35% 47%,49% 40%,62% 26%,76% 23%,88% 12%); }
.alder-twig {
  height: .17cqw; border-radius: 50%; transform-origin: 0 50%; background: #69775d;
}
.alder-leaf {
  border-radius: 1% 84% 4% 84%; transform-origin: 0 50%; 
  background: linear-gradient(24deg,transparent 47%,#c6c196a8 49%,transparent 52%),linear-gradient(132deg,var(--leaf-ink),color-mix(in srgb,var(--leaf-ink),#e6d8a3 23%));
}
.ridge::after { content:''; position:absolute; inset:0; opacity:.36; background: repeating-linear-gradient(169deg,transparent 0 3px,#f0dfba8c 3.6px,transparent 4.6px 8px); mask-image: repeating-linear-gradient(23deg,transparent 0 3%,#000 7% 9%,transparent 14% 19%); }
.worktop { background:
  linear-gradient(calc(110deg + var(--day) * 14deg),transparent 0 25%,#56563f42 25.2% 27.1%,transparent 27.3% 63%,#52563f49 63.2% 65.1%,transparent 65.5%),
  repeating-linear-gradient(174deg,transparent 0 6.3cqw,#705d4152 6.4cqw,#d3bb8b 6.6cqw,transparent 6.7cqw 10cqw),
  linear-gradient(115deg,#af9269,#dab98a 39%,#c4a372 72%,#9b8a64); }

/* A field sketchbook rests behind the bottle, opened flat against the sill. */
.field-book { position:absolute; left:31%; bottom:4%; width:24%; aspect-ratio:2.45; rotate:-6deg; pointer-events:none; filter:brightness(calc(1 - var(--nightfall) * .38)) drop-shadow(.12cqw .28cqw .13cqw #4b4c3b55) }
.field-book i { position:absolute; inset:0; display:block; }
.book-cover { clip-path:polygon(2% 15%,44% 11%,52% 15%,85% 3%,99% 80%,56% 98%,48% 92%,12% 95%); background:#597069 }
.book-leaves { clip-path:polygon(4% 9%,46% 8%,51% 12%,84% 0,98% 75%,57% 94%,50% 89%,13% 91%); background:repeating-linear-gradient(174deg,#ddd1ab 0 .13cqw,#9a977e .18cqw,#dbcda6 .32cqw) }
.book-spread { clip-path:polygon(4% 9%,37% 5%,48% 8%,51% 12%,57% 7%,84% 0,97% 70%,62% 83%,56% 89%,50% 83%,42% 84%,13% 85%); background:linear-gradient(79deg,#e1d3aa,#f0e4c3 42%,#b4ab8a 50%,#e8dbb6 53%,#f1e4be 60%,#d8cba7) }
.field-book .book-study { inset:27% 12% 24% 60%; rotate:7deg; background:linear-gradient(35deg,transparent 48%,#687e6b 49% 50%,transparent 52%); }
.book-study::before,.book-study::after { content:'';position:absolute;left:34%;top:36%;width:28%;height:25%;border-radius:0 95% 0 95%;background:#8e9b78;box-shadow:.85cqw .62cqw #9ea380;rotate:16deg }
.book-study::after { left:49%;top:54%;rotate:-68deg;box-shadow:.5cqw .62cqw #87987e }
.field-book .book-swatches { inset:63% 60% 25% 17%; transform:skewX(21deg); background:linear-gradient(90deg,#90a188 0 24%,transparent 25% 34%,#a6afa0 35% 59%,transparent 60% 69%,#c49b75 70% 98%); opacity:.8 }
.field-book .book-ribbon { inset:75% 42% -7% 51%; transform:rotate(-13deg); background:#9d6d51; clip-path:polygon(0 0,81% 0,100% 100%,55% 82%,18% 100%) }
/* In a backlit vista the pale cuts on a ridge break up before its shaded flank. */
.far-ridge { background:linear-gradient(174deg,transparent 38%,color-mix(in srgb,var(--haze) 47%,transparent)),var(--far); }
.near-ridge { background: linear-gradient(164deg,color-mix(in srgb,var(--haze) 21%,transparent),transparent 56%),var(--near); }
.ridge::after { opacity:.5; background:repeating-linear-gradient(169deg,transparent 0 .9cqw,#f3e3bd8c .96cqw,transparent 1.08cqw 1.45cqw); mask-image:repeating-linear-gradient(33deg,transparent 0 2%,#000 5% 8%,transparent 13% 17%); }
