:root{color-scheme:light;--paper:#f5f1e4;--ink:#283e34;--soft:#606a58;--line:#c5c6ae;--red:#a64838;font-family:"Noto Sans CJK SC","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#e7e5d5}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 18% 2%,#faf8ed 0,transparent 59%),repeating-linear-gradient(95deg,#f2efe300 0 3px,#776e4005 4px),var(--paper)}
main{max-width:1230px;margin:auto;padding:clamp(18px,3.2vw,46px) clamp(16px,4vw,56px) 28px}
header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:2px solid var(--ink);padding:0 0 18px;margin-bottom:20px}
.title,.clock,.local,.inkwell,h2,.map-key,figcaption{display:flex;align-items:center}
.title{gap:15px}
.seal{background:var(--red);color:var(--paper);font:700 16px/1.05 "Noto Serif CJK SC",serif;letter-spacing:0;text-align:center;padding:5px 5px 6px;border:2px double var(--paper);outline:1px solid var(--red);transform:rotate(-4deg);border-radius:4px 2px 3px 2px}
h1,h2,strong{font-family:"Noto Serif CJK SC","Songti SC","STSong",serif}
h1{font-size:clamp(31px,4.1vw,58px);line-height:1.13;letter-spacing:.06em;font-weight:850;margin:0}
.clock{gap:7px;font-size:13px;font-weight:600;white-space:nowrap}
.sun{font:26px Georgia,serif;color:#946d32}
#day{min-width:87px}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
.clock button{border:1px solid var(--line);border-radius:50%;background:#f6f3e8;width:40px;height:40px;font:600 16px/1 Georgia,serif}
button:hover:not(:disabled){background:#e5e6d5}
button:focus-visible{outline:3px solid #814a30;outline-offset:3px}
.spread{display:grid;grid-template-columns:minmax(0,1fr) clamp(180px,19vw,222px);gap:clamp(20px,3vw,40px);align-items:start}
figure{margin:0;min-width:0}
#map{aspect-ratio:640/466;position:relative;isolation:isolate;overflow:hidden;touch-action:none;user-select:none;cursor:crosshair;border:1px solid #64775e;background:#b8c59c;box-shadow:0 3px 0 #bfc4a9}
#view,#anchors{position:absolute;width:100%;height:100%;inset:0}
#anchors{pointer-events:none}
.anchor{position:absolute;transform:translate(-50%,-50%);width:clamp(24px,3.2vw,42px);height:clamp(24px,3.2vw,42px);border:0;padding:0;border-radius:50%;background:transparent;color:#365c51;pointer-events:auto;touch-action:none}
.anchor::after{content:"";position:absolute;left:50%;top:50%;width:7px;height:7px;transform:translate(-50%,-50%);border-radius:50%;border:1.5px solid #4b6559;background:#edead4;box-shadow:0 0 0 2px #f8f0cf77}
.anchor:hover:not(:disabled){background:#ffefb33b}
.anchor:focus-visible,.anchor.suggested{outline:1.5px dashed #8c4e3c;outline-offset:-3px}
.anchor[aria-pressed="true"]::after{background:var(--red);border-color:#f9e9cd}
.north{position:absolute;right:2.4%;top:3.5%;display:grid;justify-items:center;gap:3px;color:#365245;font:700 clamp(10px,1vw,14px) "Noto Serif CJK SC",serif;pointer-events:none}
.north i{height:24px;width:10px;background:linear-gradient(90deg,#f0e5c2 50%,#3b5349 50%);clip-path:polygon(50% 0,100% 100%,50% 73%,0 100%)}
figcaption{gap:clamp(17px,3vw,37px);padding:13px 0;border-bottom:1px solid var(--line);font-size:12px;color:#536151}
.map-key{gap:8px}.map-key i{width:22px;display:inline-block}.trail{border-top:4px solid #c6ad79}.intention{border-top:2px dashed #3b6365}.drawn{border-top:3px solid #ac493a;transform:rotate(-5deg)}
aside{padding-top:2px}
h2{margin:0;gap:8px;font-size:23px;line-height:1.5;letter-spacing:.07em}
.brush-icon{font:29px/1 Georgia,serif;color:var(--red)}
.tools p{margin:12px 0 18px;font-size:14px;line-height:1.9;color:#526353;max-width:18em}
.inkwell{gap:10px;font-size:13px;letter-spacing:.05em;font-weight:700}
.sample{width:39px;height:7px;transform:rotate(-3deg);background:var(--red);clip-path:polygon(0 49%,17% 10%,61% 24%,100% 56%,63% 94%,14% 89%)}
.inkwell.spent .sample{background:transparent;border-bottom:2px dotted var(--red);clip-path:none}
#erase{margin-top:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;background:var(--ink);border:1px solid var(--ink);border-radius:3px;color:#f7f2e4;padding:7px 14px;font-size:14px}
#erase:hover:not(:disabled){background:#3f5948}
#erase:disabled{cursor:default;background:transparent;border-color:#babcaa;color:#737b69}
.locals{border-top:1px solid var(--line);margin-top:28px;padding-top:19px}
.locals h2{font-size:18px;margin-bottom:14px}
.local{gap:10px;margin:14px 0}.local strong{font-size:15px}.local small{display:block;color:var(--soft);font-size:11px;margin-top:2px}
.portrait{display:block;width:38px;height:38px;border-radius:50%;background-color:#d9d7b3;background-repeat:no-repeat;background-position:center;background-size:100%;border:1px solid #b9bfa3}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){main{padding:17px 12px 20px}header{margin-bottom:13px;padding-bottom:13px}.title{gap:9px}.seal{font-size:12px}.clock{gap:3px;font-size:11px}.clock button{width:36px;height:36px}#day{min-width:67px}.spread{grid-template-columns:1fr;gap:15px}aside{display:grid;grid-template-columns:1.15fr 1fr;gap:18px}.locals{border:0;border-left:1px solid var(--line);margin:0;padding:0 0 0 14px}.tools p{margin:5px 0 8px;font-size:13px;line-height:1.6}h2{font-size:18px}.locals h2{font-size:16px;margin:1px 0 8px}.local{margin:8px 0;gap:7px}.local strong{font-size:13px}.local small{font-size:10px}.portrait{width:30px;height:30px}#erase{margin-top:9px}figcaption{font-size:11px;padding:11px 1px}.anchor::after{width:5px;height:5px}}
@media(max-width:420px){h1{font-size:27px}.sun{display:none}.clock button{width:35px;height:35px}.north i{height:17px}header{gap:5px}.map-key{gap:5px}.map-key i{width:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
