:root{--paper:#f9f3e8;--ink:#302d24;--rust:#98422e;--muted:#706654;--line:#d8ccba;--serif:Georgia,"Times New Roman",serif;--sans:"Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light;font-family:var(--sans);color:var(--ink);background:#dfd9cb}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;-webkit-text-size-adjust:100%}body{background-image:url("./art/grain.png")}
button,a,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{font:inherit;color:inherit;background:none;border:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--rust);outline-offset:4px}button:active{transform:translateY(1px)}[hidden]{display:none!important}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}p,h1,h2,h3,figure{margin:0}
#book{width:min(100%,454px);margin:auto;position:relative;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:var(--paper) url("./art/grain.png");box-shadow:0 0 45px #4b382313;padding-bottom:calc(75px + env(safe-area-inset-bottom));}
header{margin:0 25px;padding-top:env(safe-area-inset-top);min-height:calc(67px + env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.personal{display:flex;align-items:center;gap:9px;font:italic 19px var(--serif)}.mark{font:21px Georgia;color:var(--rust);transform:rotate(-12deg)}
#install{font-size:12px;font-weight:550;display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--muted)}#install svg{width:15px;height:15px}
main{padding:29px 25px 0;outline:0}.eyebrow,.tiny,.row-meta,figcaption,.route-count,.final-stats{font:600 10px/1.45 var(--sans);letter-spacing:.12em;text-transform:uppercase}
.eyebrow{color:var(--rust);display:flex;align-items:center;gap:9px}.eyebrow>i{width:23px;height:2px;background:var(--rust)}.split{justify-content:space-between}
h1{font:normal clamp(41px,12.4vw,55px)/.99 var(--serif);letter-spacing:-.052em;margin:13px 0 23px;overflow-wrap:break-word}h1 em{display:block;font-weight:400;color:var(--rust);letter-spacing:-.055em}h1.story-title{font-size:clamp(38px,10.4vw,48px);line-height:1.04}
.print{margin:0 0 22px;background:#fff9e9;padding:8px 8px 0;box-shadow:0 1px 2px #46311133,1px 4px 9px #46311114;transform:rotate(-1.4deg);position:relative}.picture{position:relative}.picture img{display:block;width:100%;aspect-ratio:960 / 476;object-fit:cover}
figcaption{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:10px 5px 9px;color:#4b594d;font-size:9px;letter-spacing:.15em}figcaption i{height:1px;flex:1;border-bottom:1px dotted #928b72;position:relative}figcaption i:after{content:"";position:absolute;right:0;bottom:-2px;border:solid #928b72;border-width:0 1px 1px 0;padding:2px;transform:rotate(-45deg)}
.cover-intro,.bodycopy,.timeline p,#sheet-copy{font-size:16px;line-height:1.56}.cover-intro{margin:4px 0 18px}.bodycopy{margin:14px 0 18px}
.primary{width:100%;border-radius:7px;background:var(--rust);color:#fff7e8;display:flex;align-items:center;justify-content:space-between;padding:15px 18px;min-height:51px;font-size:15px;font-weight:650}.primary:hover{background:#863a29}.primary svg{width:21px}
nav{position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,454px);height:calc(66px + env(safe-area-inset-bottom));padding:0 10px env(safe-area-inset-bottom);display:flex;border-top:1px solid var(--line);background:#faf5eb}
nav button{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;color:#736959}nav button[aria-current]{color:var(--rust);font-weight:650}nav button[aria-current]:before{content:"";position:absolute;top:-1px;width:32px;height:2px;background:var(--rust)}
#settings{padding:5px 25px 0;margin-top:auto;color:var(--muted);font-size:11px}#settings summary{width:max-content;min-height:36px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}#settings summary::-webkit-details-marker{display:none}#reset{min-height:44px;color:var(--rust)}
.track{display:flex;gap:5px;margin:12px 0 18px}.track i{height:3px;flex:1;background:var(--line)}.track .filled{background:var(--rust)}.place{display:flex;align-items:center;gap:5px;width:fit-content;color:#4d6252;font-size:13px;text-underline-offset:3px;min-height:30px}.place svg{width:16px;height:16px}
.heat-box{border-top:1px solid var(--line);display:flex;align-items:flex-start;gap:12px;margin:0 0 20px;padding-top:18px}.heat-count{color:var(--muted)}.heat-count b{color:var(--rust);letter-spacing:.02em;margin-left:5px}.heat-box p{font:italic 19px/1.3 var(--serif);margin-top:5px}.heart-button,.big-heart{position:relative;color:var(--rust);flex:none;display:grid;place-items:center}.heart-button{background:#ecd8c9;border-radius:50%;width:45px;height:45px}.heart-button>svg,.big-heart>svg,.particle svg{fill:currentColor;stroke:none}.heart-button svg{width:23px;transform:rotate(-8deg)}.particle{pointer-events:none;position:absolute;left:calc(50% - 8px);top:calc(50% - 8px);animation:burst .75s cubic-bezier(.16,.78,.25,1) forwards}.particle svg{width:16px;height:16px}.particle:nth-child(even){color:#cb8362}@keyframes burst{0%{transform:scale(.45);opacity:0}18%{opacity:1}75%{opacity:1}100%{transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(.65);opacity:0}}
.route-count{color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:14px}.timeline{padding:0;list-style:none;margin:16px 0}.timeline li{display:flex;gap:14px;position:relative;padding:8px 0 20px}.timeline li:not(:last-child):before{content:"";position:absolute;border-left:1px dashed #bbae97;left:15px;top:30px;bottom:-9px}.node{z-index:1;width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--paper);flex:none;color:var(--muted)}.node svg{width:14px;height:14px}.current .node{color:var(--paper);background:var(--rust)}.past .node{background:#e0e3d2;color:#485845}.row-meta{font-size:9px;color:var(--muted)}h3{font:23px/1.15 var(--serif);margin-top:3px}.timeline p{font-size:14px;color:var(--muted);margin-top:6px}.future h3{font-style:italic;color:#6f6858}.text-action{color:var(--rust);min-height:44px;font-weight:600;padding:5px 0}
.heart-print{height:180px;display:grid;place-items:center;margin:10px auto 18px}.big-heart{width:135px;height:135px;border-radius:50%;border:1px dashed #b97860;outline:1px solid #dcc4ac;outline-offset:7px;background:#f3e3cf url("./art/grain.png")}.big-heart>svg{width:78px;height:78px;transform:rotate(-10deg);filter:drop-shadow(2px 3px 0 #c99576)}.big-heart:active>svg,.heart-button:active>svg{scale:.9}.center{text-align:center}.heart-quote{font:italic 25px/1.36 var(--serif);text-align:center;margin:20px 9px 32px}.final-stats{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;border-block:1px solid var(--line);padding:11px 0;color:var(--muted)}.signature{font:italic 24px/1.25 var(--serif);color:var(--rust);margin:18px 0 23px}
dialog{width:min(90%,370px);padding:0;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 12px 52px #231e2333}dialog::backdrop{background:#29251cb3}.sheet-inner{padding:22px}.sheet-inner h2{font:32px/1.12 var(--serif)}#sheet-copy{margin:14px 0}#sheet-copy ol{padding-left:22px}#sheet-copy li{margin:8px 0}#actions .primary{justify-content:center}#actions .text-action{display:block;margin:auto}
@media(min-width:540px){#book{margin:18px auto 0;min-height:calc(100svh - 18px);border-radius:5px 5px 0 0}main{padding-inline:30px}header{margin-inline:30px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;scroll-behavior:auto!important}}
