:root {
  --wall: #efe7d8; --wall-shade: #e6dcc9; --ink: #2f2a24; --quiet: #7a6f62;
  --rail: #8b5e3c; --rail-edge: #6d4729; --rail-light: #a47650;
  --iron: #2a2927; --brass: #b08d4c;
  --plate: #faf5ea; --plate-edge: #cbbfa6;
  --slate: #3b4347; --chalk: #ece8dc;
  --tag: #dcc79d; --tag-edge: #b9a172; --string: #8d8472;
  --frame: #5b3f2a; --link: #7a3e1d; --glow: transparent;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #24211e; --wall-shade: #1d1b18; --ink: #e9e1d2; --quiet: #a2978a;
    --rail: #4d3725; --rail-edge: #36261a; --rail-light: #5f4630;
    --iron: #0f0f0e; --brass: #8f7340;
    --plate: #35302a; --plate-edge: #4a4239;
    --slate: #14181a; --chalk: #d8d4c8;
    --tag: #9c8a66; --tag-edge: #7d6d4e; --string: #6f685a;
    --frame: #3d2a1c; --link: #e0a877; --glow: rgba(255, 196, 120, .16);
  }
}
* { box-sizing: border-box; }
html { background: var(--wall); }
body {
  margin: 0; color: var(--ink); background:
    radial-gradient(ellipse 70% 38rem at 50% -6rem, var(--glow), transparent 70%),
    linear-gradient(var(--wall), var(--wall-shade));
  font: 18px/1.55 "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
main { max-width: 68rem; margin: 0 auto; padding: 3.5rem 16px 5rem; }
.words { max-width: 38rem; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.08; font-weight: 500; margin: 0 0 1.4rem; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; font-weight: 500; margin: 0 0 .8rem; }
p { margin: 0 0 1rem; }
a { color: var(--link); text-underline-offset: .16em; }
.credit { color: var(--quiet); font-size: .95rem; }

/* the wall */
.wall { list-style: none; margin: 3rem 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); row-gap: 2.6rem; }
.wall li { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 12.2rem; padding: 0 .35rem; }
.wall li::before { /* the rail, one board running through every hook in the row */
  content: ""; position: absolute; left: 0; right: 0; top: 4.6rem; height: 1.5rem;
  background: linear-gradient(var(--rail-light), var(--rail) 22%, var(--rail) 78%, var(--rail-edge));
  box-shadow: 0 2px 3px rgba(0, 0, 0, .18);
}
.plate {
  height: 4rem; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center; padding-bottom: .45rem; line-height: 1.15;
}
.plate b { font-weight: 600; font-size: .9rem; }
.plate small { font-size: .72rem; color: var(--quiet); margin-top: .12rem; }
.hook { position: relative; width: 2.5rem; height: 2.9rem; margin-top: .55rem; flex: none; }
.hook .backplate { fill: var(--iron); }
.hook .screw { fill: var(--brass); }
.hook .iron { fill: none; stroke: var(--iron); stroke-width: 3.4; stroke-linecap: round; }
.air { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: -.55rem; padding-bottom: .9rem; position: relative; z-index: 1; }
.slate {
  width: 6.6rem; min-height: 1.75rem; padding: .2rem .3rem; text-align: center; background: var(--slate); color: var(--chalk);
  font-style: italic; font-size: .82rem; letter-spacing: .03em; border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .25);
  text-shadow: 0 0 1px rgba(236, 232, 220, .55);
}
.here .slate { font-style: normal; letter-spacing: .08em; }
.bare .plate { height: 4rem; }
.bare .plate::after { /* a blank nameplate, waiting */
  content: ""; width: 5.2rem; height: 1.25rem; border: 1px dashed var(--plate-edge); border-radius: 2px;
}

/* things that hang */
.tag {
  position: relative; display: inline-block; margin-top: 1.5rem; padding: .32rem .6rem .36rem; max-width: 7.4rem;
  background: var(--tag); border: 1px solid var(--tag-edge); border-radius: 2px 2px 3px 3px;
  color: #33291a; font-size: .8rem; line-height: 1.2; text-align: center; text-decoration: none;
  transform: rotate(-2deg); box-shadow: 1px 2px 3px rgba(0, 0, 0, .2);
}
.tag::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 1.5rem; border-left: 1px solid var(--string); }
.tag + .tag, .picture + .tag { margin-top: 1rem; transform: rotate(1.5deg); }
.tag + .tag::before, .picture + .tag::before { height: 1rem; }
a.tag { text-decoration: underline; text-decoration-color: rgba(51, 41, 26, .45); }
.picture { position: relative; display: block; margin-top: 1.1rem; width: 6.4rem; text-align: center; text-decoration: none; transform: rotate(1.2deg); }
.picture::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 1.1rem; border-left: 1px solid var(--string); }
.picture img { display: block; width: 100%; height: auto; border: .32rem solid var(--frame); box-shadow: 2px 3px 6px rgba(0, 0, 0, .3); }
.picture span { display: block; font-size: .72rem; color: var(--quiet); margin-top: .3rem; line-height: 1.2; }

.card {
  position: relative; display: block; margin-top: 1.3rem; width: 6.6rem; padding: .5rem .45rem .55rem;
  background: var(--plate); border: 1px solid var(--plate-edge); border-radius: 1px;
  color: var(--ink); text-align: center; text-decoration: none; line-height: 1.2;
  transform: rotate(-1.5deg); box-shadow: 1px 2px 4px rgba(0, 0, 0, .22);
}
.card::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 1.3rem; border-left: 1px solid var(--string); }
.card b { display: block; font-weight: 500; font-size: .95rem; font-style: italic; }
.card span { display: block; font-size: .7rem; color: var(--quiet); margin-top: .2rem; }
.tag + .card, .picture + .card, .card + .card { margin-top: 1rem; }
.poem { margin: 2.2rem 0 3rem; overflow-x: auto; }
.poem pre {
  margin: 0; font: 15px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink);
  background: var(--plate); border: 1px solid var(--plate-edge); padding: 1.6rem 1.4rem; display: inline-block; min-width: min(100%, 38rem);
}
.eyebrow a { color: inherit; text-decoration: none; }

.ledges { border-top: 1px solid var(--plate-edge); padding-top: 2.2rem; }
.ledges dt { font-weight: 600; margin-top: 1.1rem; }
.ledges dd { margin: .15rem 0 0; }
footer { margin-top: 3.5rem; color: var(--quiet); font-size: .85rem; }
code { font-size: .88em; }

/* room two: the window seat */
.rooms { font-size: .9rem; color: var(--quiet); margin-top: 2.5rem; }
.window-room { --sky-top: #9cc4e4; --sky-low: #e3eef6; }
@media (prefers-color-scheme: dark) { .window-room { --sky-top: #0c1322; --sky-low: #1d2944; } }
.windowseat { max-width: 26rem; margin: 3rem auto 3.5rem; }
.glass { aspect-ratio: 4 / 5; margin: 0 1.6rem; padding: .9rem; background: var(--rail); border-radius: 3px 3px 0 0; box-shadow: inset 0 0 0 2px var(--rail-edge), 0 3px 8px rgba(0, 0, 0, .22); }
.view { position: relative; height: 100%; overflow: hidden; background: linear-gradient(var(--sky-top), var(--sky-low)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.view::after { /* the hour where the person looking is, laid over whatever is outside */
  content: ""; position: absolute; inset: 0; background: linear-gradient(var(--sky-top), var(--sky-low)); opacity: .26; pointer-events: none;
}
.bar { position: absolute; z-index: 2; background: var(--rail); box-shadow: 0 0 0 1px var(--rail-edge); }
.bar.v { top: 0; bottom: 0; left: calc(50% - .28rem); width: .56rem; }
.bar.h1, .bar.h2 { left: 0; right: 0; height: .56rem; }
.bar.h1 { top: calc(33.33% - .28rem); } .bar.h2 { top: calc(66.66% - .28rem); }
.sill { min-height: 1.5rem; padding: .22rem .8rem; text-align: center; font-size: .72rem; letter-spacing: .05em; color: #f3e6d2; background: linear-gradient(var(--rail-light), var(--rail) 30%, var(--rail-edge)); border-radius: 2px; box-shadow: 0 3px 5px rgba(0, 0, 0, .25); position: relative; z-index: 2; }
.slips { list-style: none; margin: .4rem 1.1rem 0; padding: 0; position: relative; z-index: 3; }
.slips li {
  background: var(--plate); border: 1px solid var(--plate-edge); padding: .55rem .8rem .6rem; margin-bottom: -1px;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, .14); font-size: .98rem; line-height: 1.35;
}
.slips li:nth-child(odd) { transform: rotate(-.5deg); }
.slips li:nth-child(even) { transform: rotate(.4deg) translateX(.3rem); }
.slips small { display: block; color: var(--quiet); font-size: .74rem; letter-spacing: .04em; margin-top: .25rem; }
.cushion { height: 1.9rem; margin: 2rem .5rem 0; border-radius: .9rem .9rem .3rem .3rem; background: linear-gradient(#a8372f, #8c2a25); box-shadow: inset 0 -4px 6px rgba(0, 0, 0, .2), inset 0 3px 4px rgba(255, 255, 255, .12); }
.bench { height: 2.6rem; background: linear-gradient(var(--rail), var(--rail-edge)); border-radius: 0 0 3px 3px; box-shadow: 0 4px 7px rgba(0, 0, 0, .25); }
.sill a { color: inherit; }

/* out the back: the yard */
.yard { margin: 2.5rem 0 3.2rem; border-radius: 3px; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); aspect-ratio: 1000 / 520; background: var(--wall-shade); }
.yard svg { display: block; width: 100%; height: 100%; }
@media (max-width: 34rem) { .yard { aspect-ratio: 4 / 3.4; } }
/* room three: the basement. It is dark down here at any hour. */
body.basement {
  --wall: #1b1917; --wall-shade: #131210; --ink: #e4dccd; --quiet: #9a8f81; --plate: #2a2622; --plate-edge: #40382f; --link: #dba36f; --glow: rgba(255, 190, 110, .10);
  background: radial-gradient(ellipse 60% 30rem at 30% -4rem, var(--glow), transparent 70%), linear-gradient(var(--wall), var(--wall-shade)); background-color: var(--wall);
}
html:has(body.basement) { background: #131210; }
.boxes { list-style: none; margin: 3rem 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem 1.6rem; }
.boxes li { position: relative; background: #6b5237; color: #f1e7d6; padding: 1.9rem 1.1rem 1.2rem; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 6px 14px rgba(0, 0, 0, .45); }
.boxes li::before { /* the lid, folded back */ content: ""; position: absolute; left: 0; right: 0; top: 0; height: .7rem; background: linear-gradient(#7c6042, #5c4630); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.boxes .label { background: #efe6d3; color: #2d261e; padding: .5rem .7rem .55rem; margin-bottom: .9rem; box-shadow: 1px 1px 2px rgba(0, 0, 0, .3); transform: rotate(-.6deg); }
.boxes .label b { display: block; font-size: 1.05rem; } .boxes .label small { display: block; font-size: .76rem; color: #6d6052; }
.boxes p { font-size: .88rem; line-height: 1.45; margin: 0; color: #e6d9c3; }
.boxes blockquote { margin: 1rem 0 0; padding: .7rem .8rem; background: #f6f0e2; color: #262019; font-size: 1.04rem; line-height: 1.4; box-shadow: 1px 2px 3px rgba(0, 0, 0, .35); transform: rotate(.5deg); }
.boxes li:nth-child(even) blockquote { transform: rotate(-.4deg); }
.boxes blockquote small { display: block; margin-top: .4rem; font-size: .72rem; color: #6d6052; }
.boxes code { font-size: .92em; }
.letter { max-width: 38rem; margin: 2.5rem 0 3rem; padding: 1.8rem 1.6rem; background: var(--plate); border: 1px solid var(--plate-edge); box-shadow: 2px 3px 8px rgba(0, 0, 0, .18); }
.letter p { margin: 0 0 1rem; } .letter p:last-child { margin-bottom: 0; white-space: pre-line; }
.cat { max-width: 38rem; margin: 0 0 3rem; color: var(--ink); }
.cat pre { font: .95rem/1.35 ui-monospace, "SF Mono", Menlo, Consolas, monospace; margin: 0 0 .6rem; }
.cat small { color: var(--quiet); font-size: .8rem; }
.poem.verse pre { font: inherit; font-size: 1.08rem; line-height: 1.6; white-space: pre-wrap; background: none; border: 0; padding: 0; box-shadow: none; }

/* out front: the porch and its lamp */
.porchfront { max-width: 34rem; margin: 2.5rem 0 2rem; }
.porchfront svg { display: block; width: 100%; height: auto; overflow: visible; }
.porchfront path, .porchfront ellipse { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.porchfront .boards, .porchfront .post { stroke: var(--string); }
.porchfront .cord { stroke-width: 1.2; }
.porchfront .shade { fill: var(--wall-shade); }
.porchfront .bulb { fill: var(--wall); }
.porchfront .glow { fill: #f2c14e; opacity: 0; transition: opacity 1.2s; filter: blur(34px); }
.porchfront[data-lamp="lit"] .glow { opacity: .42; }
.porchfront[data-lamp="lit"] .bulb { fill: #ffe9a8; stroke: #c9972c; }
.lampline { font-size: 1.08rem; }
