html { background: #fff; color: #000; font-family: "Times New Roman", Times, serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
canvas { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button.pb, a.pb { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; line-height: 0; display: inline-block; -webkit-tap-highlight-color: transparent; }
button.pb:hover canvas, a.pb:hover canvas { transform: translate(-1px, -2px) rotate(-1.2deg); }
button.pb:active canvas, a.pb:active canvas { transform: translate(1px, 1px); }
button.pb:focus-visible, a.pb:focus-visible { outline: 3px dashed #000; outline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

#hero { position: relative; }
#sky { width: 100%; }
#signs { gap: 6px 14px; align-items: flex-end; flex-wrap: nowrap; }

#maker { max-width: 1240px; margin: 0 auto; padding: clamp(36px, 6vw, 90px) clamp(14px, 4vw, 56px) clamp(40px, 6vw, 80px); }
#bench { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "stage head" "stage pass"; column-gap: clamp(16px, 4vw, 64px); row-gap: clamp(10px, 2vw, 22px); align-items: end; }
#makerHead { grid-area: head; max-width: 100%; height: auto; }
#stage { grid-area: stage; width: min(600px, 100%); height: auto; justify-self: center; pointer-events: none; }
#passCol { grid-area: pass; width: min(500px, 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
#pass { position: relative; width: 100%; }
#passInk { width: 100%; height: auto; }
#plate { position: absolute; cursor: text; }
#name { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; outline: 0; padding: 0; margin: 0; background: transparent;
        font: 22px Menlo, Consolas, monospace; color: transparent; caret-color: transparent; }
#name::placeholder, #name::selection { color: transparent; background: transparent; }
#name:disabled { cursor: default; }
#stub { position: absolute; left: 0; right: 0; display: flex; justify-content: center; }
#stub .row { justify-content: center; }
#say { max-width: 100%; height: auto; }
@media (max-width: 899px) {
  #bench { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "pass"; justify-items: center; }
  #makerHead { justify-self: start; }
  #stage { width: min(560px, 100%); }
  #passCol { width: min(500px, 100%); align-items: center; }
}

#road { position: relative; }
#world { width: 100%; height: clamp(600px, 92vh, 940px); }

#story { max-width: 1160px; margin: 0 auto; padding: clamp(40px, 6vw, 90px) clamp(14px, 4vw, 56px) clamp(40px, 6vw, 90px); }
#logHead { max-width: 100%; height: auto; margin-bottom: clamp(8px, 2vw, 24px); }
#log { list-style: none; margin: 0; padding: 0; position: relative; }
.entry { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); }
.entry:nth-child(4n+3) { flex-direction: row-reverse; }
.entry > canvas.panel { width: clamp(240px, 42%, 460px); height: auto; flex: none; }
.entry > canvas.cap { max-width: 100%; height: auto; min-width: 0; }
.trail { width: 100%; height: auto; }
@media (max-width: 699px) {
  .entry, .entry:nth-child(4n+3) { flex-direction: column; align-items: center; gap: 6px; }
  .entry > canvas.panel { width: min(100%, 440px); }
}

footer { margin-top: clamp(10px, 3vw, 40px); }
#ground { width: 100%; }
