:root {
  --sage: #4a7c59;
  --sage-dark: #294b35;
  --sage-pale: #aac4a7;
  --cream: #f3ead9;
  --paper: #fffaf0;
  --ink: #28352d;
  --brown: #5d4435;
  --wood: #795640;
  --wood-light: #9c7357;
  --brass: #c9a85f;
  --sky: #e8caa8;
  --shadow: rgba(35, 45, 37, .2);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #233a2b; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; }
a { color: #235c39; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 20; padding: .6rem 1rem; background: var(--paper); border: 2px solid var(--sage-dark); }
.skip:focus { top: 1rem; }
.room { position: relative; min-height: 100vh; overflow: hidden; background: linear-gradient(#d5c9ad 0 67%, #74614d 67%); isolation: isolate; }
.wall { position: absolute; inset: 0 0 33% 0; background: linear-gradient(110deg, #d9d0b9, #c9c1aa); z-index: -3; }
.wall::after { content: ''; position: absolute; inset: 0; opacity: .16; background: repeating-linear-gradient(93deg, transparent 0 57px, #fff 58px 59px, transparent 60px 131px); }
.window { position: absolute; right: 7vw; top: 7vh; width: min(34vw, 29rem); aspect-ratio: 4 / 3; border: clamp(.5rem, 1vw, 1rem) solid #f0e5cf; box-shadow: 0 .6rem 1.4rem var(--shadow), inset 0 0 0 2px #92775f; overflow: hidden; background: var(--sky); }
.sky { position: absolute; inset: 0; background: linear-gradient(#ebc4a3 0 55%, #f5dfb7 72%, #a8b77d 73%); }
.sky::before { content: ''; position: absolute; width: 4.2rem; height: 4.2rem; border-radius: 50%; right: 16%; top: 19%; background: #fff2c8; box-shadow: 0 0 2rem #ffe5a4; }
.garden { position: absolute; left: -6%; right: -6%; bottom: -8%; border-radius: 50% 50% 0 0; }
.garden-back { height: 43%; background: #739064; transform: rotate(-2deg); }
.garden-front { height: 29%; background: #496f4c; transform: rotate(3deg); }
.garden-front::after { content: '·  ✦  ·   ·  ✦ ·'; color: #d9c983; position: absolute; inset: 25% 8%; font-size: 1.8rem; letter-spacing: 1rem; opacity: .8; }
.window-frame-v, .window-frame-h { position: absolute; background: #eadbc0; box-shadow: 0 0 0 1px #a68b70; }
.window-frame-v { width: .6rem; top: 0; bottom: 0; left: 49%; }
.window-frame-h { height: .6rem; left: 0; right: 0; top: 54%; }
.window-description { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.letter { position: relative; width: min(39rem, 58vw); margin: clamp(2rem, 7vh, 5rem) 0 16rem clamp(1.4rem, 7vw, 6rem); padding: clamp(1.4rem, 3vw, 2.7rem); background: color-mix(in srgb, var(--paper) 95%, transparent); border: 1px solid #bda988; box-shadow: .55rem .7rem 0 rgba(83, 65, 47, .15), 0 1.2rem 2.4rem var(--shadow); transform: rotate(-.35deg); }
.letter::before { content: ''; position: absolute; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--brass); top: .8rem; right: 1rem; box-shadow: inset -.2rem -.2rem .2rem #997936; }
.kicker { margin: 0 0 .8rem; color: var(--sage-dark); font: 700 .8rem/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 500; line-height: 1; }
.pronouns { margin: .4rem 0 1.6rem; color: #6f6658; font: .85rem ui-monospace, monospace; }
.letter p:not(.kicker):not(.pronouns) { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.58; }
.welcome { margin-bottom: 0; color: var(--sage-dark); }
.counter { position: absolute; left: 0; right: 0; bottom: 0; height: 14rem; z-index: 5; }
.counter-top { position: absolute; left: -2%; right: -2%; top: 0; height: 2rem; background: linear-gradient(#a57c5e, #77513b); border-top: 3px solid #bc9576; box-shadow: 0 -.8rem 1.3rem rgba(58, 44, 34, .13); }
.counter-front { position: absolute; inset: 2rem 0 0; background: repeating-linear-gradient(90deg, var(--wood) 0 11rem, #6c4b39 11rem 11.2rem); }
.lamp { position: absolute; left: 1vw; top: -9rem; width: 8rem; height: 11rem; filter: drop-shadow(0 0 1.5rem rgba(255,225,151,.55)); transform: scale(.85); transform-origin: bottom left; }
.lampshade { position: absolute; left: .6rem; top: 0; width: 6.8rem; height: 4.7rem; background: #ead59b; clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); border-bottom: .35rem solid #b39252; }
.lampstem { position: absolute; left: 3.75rem; top: 4.5rem; width: .5rem; height: 5rem; background: linear-gradient(90deg,#8d6b32,var(--brass),#846329); }
.lampbase { position: absolute; left: 2.3rem; top: 9.2rem; width: 3.4rem; height: .65rem; border-radius: 50%; background: var(--brass); }
.teacup { position: absolute; left: 22vw; top: -3rem; width: 5rem; height: 4rem; text-decoration: none; }
.cup { position: absolute; left: .2rem; top: 1rem; width: 3.6rem; height: 2.4rem; border-radius: .2rem .2rem 1.2rem 1.2rem; background: var(--cream); border: .18rem solid #af9878; }
.handle { position: absolute; left: 3.45rem; top: 1.3rem; width: 1.45rem; height: 1.5rem; border: .3rem solid #af9878; border-left: 0; border-radius: 0 1rem 1rem 0; }
.steam { position: absolute; top: -.5rem; width: 1rem; height: 1.7rem; border-left: .15rem solid rgba(255,255,255,.75); border-radius: 50%; }
.steam-one { left: 1.2rem; transform: rotate(12deg); }
.steam-two { left: 2.3rem; top: -.8rem; transform: rotate(-13deg); }
.cloth { position: absolute; left: 39vw; top: -.9rem; width: 7rem; height: 2.8rem; background: #e9ddc7; border: .13rem solid #b7a183; transform: rotate(3deg); box-shadow: inset 0 -.7rem 0 #d8c8ad; }
.screwdriver { position: absolute; left: 53vw; top: -.7rem; width: 7rem; height: 1.2rem; transform: rotate(-6deg); }
.screwdriver::before { content: ''; position: absolute; left: 0; top: .42rem; width: 4.7rem; height: .25rem; background: #a9aaa5; }
.screwdriver span { position: absolute; right: 0; width: 2.6rem; height: 1rem; border-radius: .5rem; background: #5e3227; border: .12rem solid #3f211b; }
.paperclip { position: absolute; left: 65vw; top: -.9rem; width: 1.3rem; height: 2rem; border: .18rem solid var(--brass); border-radius: .7rem; transform: rotate(19deg); }
.paperclip::after { content: ''; position: absolute; inset: .17rem; border: .12rem solid var(--brass); border-radius: .5rem; border-bottom-color: transparent; }
.pigeon { position: absolute; right: 14vw; top: -6.4rem; width: 8rem; height: 7rem; }
.pigeon-body { position: absolute; left: 1.1rem; top: 2rem; width: 5.4rem; height: 4.6rem; border-radius: 54% 48% 50% 50%; background: #858b8d; border: .16rem solid #555e61; }
.pigeon-neck { position: absolute; left: 1.9rem; top: 1.3rem; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: linear-gradient(135deg,#596a67,#4e806c 42%,#745f7d 70%,#6a6d72); }
.pigeon-head { position: absolute; left: 2.8rem; top: .25rem; width: 3.1rem; height: 3rem; border-radius: 52%; background: #747c80; border: .16rem solid #50585c; }
.pigeon-eye { position: absolute; left: 4.75rem; top: 1rem; width: .38rem; height: .38rem; border-radius: 50%; background: #d69b3e; box-shadow: inset 0 0 0 .12rem #202827; }
.pigeon-beak { position: absolute; left: 5.7rem; top: 1.35rem; width: 1.1rem; height: .65rem; background: #4e5554; clip-path: polygon(0 0,100% 50%,0 100%); }
.pigeon-tail { position: absolute; left: .1rem; top: 4.3rem; width: 2.5rem; height: 1.3rem; background: #62696c; clip-path: polygon(0 50%,100% 0,100% 100%); }
.satchel-strap { position: absolute; left: 2rem; top: 2rem; width: 4.8rem; height: 4.2rem; border: .2rem solid #493023; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(13deg); z-index: 4; }
.satchel { position: absolute; left: 4.3rem; top: 4.2rem; width: 2.4rem; height: 1.8rem; border-radius: .2rem; background: #674631; border: .15rem solid #3d291e; z-index: 5; }
.satchel::after { content: ''; position: absolute; left: .85rem; top: .25rem; width: .45rem; height: .35rem; background: var(--brass); }
.pigeon-foot { position: absolute; top: 6.25rem; width: 1.3rem; height: .7rem; border-bottom: .14rem solid #b77d71; }
.foot-one { left: 2.4rem; transform: rotate(-5deg); }
.foot-two { left: 4.1rem; transform: rotate(7deg); }
.lamp-note { position: absolute; right: 23vw; bottom: 15rem; width: min(17rem,24vw); padding: .9rem 1rem; background: #fff3c9; border: 1px solid #cbb576; box-shadow: .25rem .35rem .5rem var(--shadow); transform: rotate(1.5deg); font: .9rem/1.4 ui-monospace, monospace; }
.lamp-note p { margin: 0; }
footer { position: absolute; z-index: 7; bottom: 1rem; left: 2rem; right: 2rem; display: flex; align-items: end; justify-content: space-between; color: #f0e4d1; font: .75rem ui-monospace, monospace; }
footer img { display:block; image-rendering: pixelated; }
@media (max-width: 760px) {
  .room { overflow: hidden; padding-bottom: 0; background: linear-gradient(#d5c9ad 0 75%,#74614d 75%); display:flex; flex-direction:column; }
  .window { position: relative; top: auto; right: auto; width: calc(100% - 2.4rem); margin: 1.2rem; order:1; flex:none; }
  .letter { width: auto; margin: 0 1.2rem 1.2rem; padding: 1.4rem; transform: none; order:2; }
  .counter { position: relative; left:auto; right:auto; bottom:auto; width:100%; height: 11rem; margin-top:9rem; order:4; flex:none; }
  .lamp { left: 1vw; transform: scale(.7); transform-origin: bottom left; }
  .teacup { left: 30vw; }
  .cloth { display:none; }
  .screwdriver { left: 55vw; }
  .paperclip { left: 75vw; }
  .pigeon { right: 4vw; transform: scale(.8); transform-origin: bottom right; }
  .lamp-note { position: relative; right: auto; bottom: auto; width: calc(100% - 2.4rem); margin: 0 1.2rem; transform: none; order:3; }
  footer { bottom: .6rem; left: 1rem; right: 1rem; }
  footer span { max-width: 55%; text-align:right; }
}
@media (prefers-reduced-motion: no-preference) {
  .steam-one { animation: steam 4s ease-in-out infinite; }
  .steam-two { animation: steam 4s 1.4s ease-in-out infinite; }
  @keyframes steam { 0%,100% { opacity:.1; transform: translateY(.25rem) rotate(10deg); } 45% { opacity:.8; } 75% { opacity:.2; transform: translateY(-.55rem) rotate(-8deg); } }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }
