@font-face{font-family:Walk;src:url("walk-serif.woff") format("woff");font-display:swap}
:root{--serif:Walk,"Hiragino Mincho ProN","Yu Mincho",serif}
body{background:#233528}
#scenery{position:fixed;inset:0;z-index:-1;background:#243c2a url("forest.jpg") center/cover no-repeat}
body:is([data-view="watch"],[data-view="chat"]) #scenery{background-image:var(--walk-poster,none)}
body:is([data-view="watch"],[data-view="chat"]) #scenery[data-waiting-for-scene]::before{content:"";position:absolute;inset:0;z-index:1;background:var(--walk-poster) center/cover no-repeat}
#scenery video,#walk-sequence{width:100%;height:100%;object-fit:cover}
#walk-sequence{position:absolute;inset:0;z-index:2;pointer-events:none}
#scenery::after{content:"";position:absolute;inset:0;z-index:3;background:linear-gradient(180deg,#0d1d15a6,transparent 25%,#13271c33 55%,#0d2015c7)}
.masthead{background:transparent;color:#fffbee;border:0}
.shell{width:min(72rem,94%);min-height:3.7rem;padding-top:env(safe-area-inset-top);gap:.3rem}
.masthead .brand,.masthead nav button{color:inherit;text-shadow:0 1px 5px #101d13}
.masthead .brand{font-size:1.15rem;font-family:var(--serif);letter-spacing:.18em}
.masthead nav{gap:.35rem}
#app>.page{background:#faf9f1f5;color:#273c2f;border-radius:8px;padding:clamp(1.05rem,4.5vw,2.1rem);box-shadow:0 8px 30px #13241938}
#app>.page .page-top{margin-bottom:1rem}
#app>.page .page-top h1{font-size:clamp(1.55rem,5.2vw,2.2rem)}
.forest-frame{position:relative;width:min(74rem,100%);min-height:calc(100svh - 4.6rem - env(safe-area-inset-top));margin:auto;color:#fffcf0;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(3rem,17svh,12rem) clamp(1.6rem,9vw,8rem) max(1rem,env(safe-area-inset-bottom))}
.forest-frame h1{font:400 clamp(2.1rem,6vw,3.9rem)/1.55 var(--serif);letter-spacing:.13em;margin:0;text-shadow:0 2px 6px #0e2118}
.forest-frame .intro{font:1.05rem/1.9 var(--serif);text-shadow:0 1px 5px #071a0f}
.forest-frame .actions{justify-content:center;gap:.45rem;max-width:42rem;margin:0 auto .8rem}
.forest-frame .btn{color:#fffbf0;background:#172d20ae;border:1px solid #fff7;min-height:44px}
.forest-frame .primary{background:#f6f4e7;color:#273b2d;border-color:#f6f4e7}
.forest-frame .sub-actions .btn{font-size:.9rem;border-color:transparent;text-decoration:underline;text-underline-offset:.25em}
body[data-view="watch"] .forest-frame{justify-content:flex-end}
body[data-view="readSign"] #scenery,body[data-view="clearing"] #scenery,body[data-view="profile"] #scenery,body[data-view="after"] #scenery{background-image:url("../assets/garden-0dbc312.jpg")}
body[data-view="readSign"] .sign,body[data-view="clearing"] .sign,body[data-view="after"] .sign,body[data-view="profile"] .sign{background:#eee8d6fa;color:#2e392c;margin:clamp(2rem,14svh,9rem) auto 3rem;padding:clamp(1.1rem,5vw,2.5rem);width:min(34rem,calc(100% - 2rem));border:1px solid #8c846e;border-radius:4px;box-shadow:4px 6px 0 #5e644b,0 12px 30px #1e261d4a}
.sign h1{font:400 clamp(1.6rem,5.7vw,2rem)/1.5 var(--serif);margin:.3rem 0 1rem}
.sign ul{list-style:none;padding:0}
.sign li{border-bottom:1px solid #b3af9a;padding:.65rem 0}
.sign .verbatim{font-family:var(--serif)}
.sign .actions{gap:.45rem}
.sign label{display:block;margin:.8rem 0}
.sign input{display:block;width:100%;background:#fffef8;border:1px solid #a2ab96;padding:.5rem;color:#293b2c;font-size:16px}
.sign p{line-height:1.65}
#app .verbatim{overflow-wrap:anywhere;white-space:pre-wrap}
body[data-view="present"]{background:#fff}
body[data-view="present"] #scenery,body[data-view="closed"] #scenery,body[data-view="done"] #scenery{display:none}
body[data-view="done"],body[data-view="closed"]{background:#1d2c21}
body[data-view="done"] .masthead,body[data-view="closed"] .masthead{display:none}
.end-view{min-height:100svh;display:grid;place-content:center;text-align:center;color:#f8f6ea}
.end-view h1{font:400 1.65rem/1.7 var(--serif)}
.end-view a{color:inherit;padding:.8rem}
body[data-view="present"] #app>.page{background:#fff;box-shadow:none}
@media(max-width:400px){.masthead nav button{font-size:14px;padding:4px 6px}.forest-frame{padding-inline:1rem}}
@media(max-height:500px){.forest-frame{padding-top:.6rem}.masthead .shell{min-height:2.8rem}}
@media print{#scenery{display:none}}
body[data-view="chat"] #app>.page{margin-top:clamp(2rem,12svh,6rem);background:#faf9f0f2}

body[data-view="shield"]{background:#26352b}body[data-view="shield"] .masthead,body[data-view="shield"] #scenery{display:none}
.masthead .brand{color:inherit;text-decoration:none}.masthead nav{gap:.2rem}.masthead nav button{font-size:.93rem}
.masthead .walk-controls{display:inline-flex;align-items:center;gap:.2rem}
.masthead nav{flex-wrap:wrap;justify-content:flex-end}
body:is([data-view="watch"],[data-view="chat"]) .masthead .shell{flex-wrap:wrap}
body:is([data-view="watch"],[data-view="chat"]) .masthead nav{margin-inline-start:auto}
body[data-view="home"]{background:#202b20}
body[data-view="home"] #scenery{display:none}
body[data-view="home"] #app{padding:0;margin:0;max-width:none}
.little-notebook{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:9/16;width:min(100%,calc((100svh - 4rem)*.5625));margin:auto;background:url("../assets/same-notebook.webp") center/cover}
.little-ink{position:absolute;left:14%;right:14%;top:21%;bottom:13%;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;color:#29342a;font-family:var(--serif)}
.little-ink h1{font-size:clamp(1.6rem,7vw,2.35rem);font-weight:400;margin:.15em 0}
.little-ink p{margin:.3em 0 .8em}.little-ink .book-date{font-size:.9rem;margin:0}.little-ink button{margin-top:.6em;min-width:8rem}.little-ink small{margin:.55em 0;font: .88rem var(--sans)}
body[data-walk-gate="preparing"] #walk-prep-status::before{content:"";display:inline-block;box-sizing:border-box;width:.9em;height:.9em;margin-right:.5em;vertical-align:-.06em;border:2px solid #a7b1a2;border-top-color:#344e39;border-radius:50%;animation:walk-preparing 1.15s linear infinite}
@keyframes walk-preparing{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){body[data-walk-gate="preparing"] #walk-prep-status::before{animation:none}}
.notebook-arrival{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none}.notebook-arrival.playing{opacity:1}
.walk-prompt h1,.voice-walk h1{font:400 clamp(1.55rem,6.8vw,2.6rem)/1.65 var(--serif);letter-spacing:.03em;text-shadow:0 2px 10px #132417;margin:0;overflow-wrap:anywhere}.walk-prompt,.voice-walk{width:min(100%,42rem);margin:auto}
body[data-view="watch"] .forest-frame{justify-content:space-between}
body[data-view="chat"] #scenery::after{background:linear-gradient(180deg,#0c1c15a6,transparent 25%,transparent 38%,#0c1e15c7 69%,#0a1912f5)}
.voice-walk{display:flex;flex-direction:column;justify-content:flex-end;min-height:calc(100svh - 6.5rem - env(safe-area-inset-top));padding:clamp(1.3rem,8svh,5rem) clamp(1rem,4vw,2rem) max(.8rem,env(safe-area-inset-bottom));color:#fffaf0}
.walk-caption,.voice-deck{width:min(100%,34rem);margin-inline:auto}
#walk-source:not(:empty){margin:0 0 .5rem auto;width:fit-content;max-width:92%;text-align:start}
#walk-source .turn.mine{max-width:100%;padding:.35rem .7rem;color:#f6faef;background:#243b2cdb;border-radius:.7rem;font:1rem/1.45 var(--sans)}
#walk-source .eyebrow{display:block;color:#dce8d9;font:.85rem/1.35 var(--sans);margin:0}#walk-source .walk-original{white-space:pre-wrap;overflow-wrap:anywhere}#walk-source summary{font-size:.9rem;cursor:pointer;min-height:44px;align-content:center}
.walk-caption h1{white-space:pre-line;text-wrap:balance;font:400 clamp(1.35rem,5.6vw,2rem)/1.55 var(--serif);text-shadow:0 1px 5px #08130a,0 0 16px #0e2118}
.walk-caption small{color:#fff6e0}.walk-caption h1:focus:not(:focus-visible){outline:none}
#walk-questions:not([hidden]){display:flex;flex-wrap:wrap;gap:.22rem .35rem;margin-top:.35rem}
#walk-questions p{margin:0;font:.9rem/1.5 var(--sans);text-shadow:0 1px 4px #16291c}
#walk-questions p{flex-basis:100%}
#walk-questions .btn{width:fit-content;max-width:100%;min-height:44px;text-align:start;justify-content:flex-start;white-space:normal;font-size:clamp(.9rem,3.5vw,1rem);line-height:1.4;padding:.28rem .68rem;background:rgba(249,247,238,.94);color:#243c2d;border:1px solid #e8eddd}
.answer-examples{display:flex;align-items:center;flex-wrap:wrap;gap:.2rem .4rem;flex-basis:100%;margin:.15rem 0 .3rem}
.answer-examples span{flex-basis:100%;font:.88rem/1.35 var(--sans);color:#fffaf0;text-shadow:0 1px 4px #182b1b}
.answer-examples .btn,#walk-questions .answer-examples .btn{min-height:44px;padding:.25rem .65rem;font:.9rem/1.35 var(--sans);color:white;background:#284334db;border:1px solid #dbe4d7;border-radius:1.2rem}
.answer-examples .btn[aria-pressed=true]{outline:2px solid white;outline-offset:1px}
#change-question{color:inherit;min-height:44px;padding:.25rem 0;text-decoration:underline;text-underline-offset:.22em}
.voice-deck{margin-top:.65rem;text-align:center;color:#fffaf0}
.voice-deck .actions{justify-content:center}
/* Keep the forest button palette together, including after a tap leaves :hover active. */
.walk-prompt .btn.primary,.voice-deck .btn.primary{min-height:3.15rem;min-width:10rem;font:600 1.05rem/1.45 var(--sans);border-radius:2rem;background:#f7f3e4;color:#233c29;border:1px solid #fffaee}
.voice-deck>.actions>.primary:before{content:"";width:1.1em;height:1.1em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='2' width='6' height='13' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0m-7 7v5m-4 0h8'/%3E%3C/svg%3E") center/contain no-repeat}
.voice-deck #send:before{display:none}
.voice-deck .ghost,.voice-deck .secondary{background:transparent;color:#fffbea;border-color:#e9f1da78}
.voice-deck .notebook-shortcut{border:0;text-decoration:underline;text-underline-offset:.22em}
.voice-deck textarea{width:100%;font:1rem/1.5 var(--sans);min-height:44px;max-height:9rem;field-sizing:content;color:#fffaf0;border:1px solid #d9deca9c;background:#15281ccb;padding:.55rem .7rem;border-radius:.6rem}
.voice-deck textarea::placeholder{color:#d6dcca}.voice-field-tools input{width:100%;font-size:1rem}
.walk-history,.more-choices{margin:.35rem auto 0}
.walk-footer{display:flex;flex-wrap:wrap;align-items:start;justify-content:center;gap:0 .8rem}
.walk-footer>#end-talk{border-color:transparent;font-size:.9rem}
.voice-text label{font-size:.9rem}
.more-choices summary,.walk-history summary,.chat-log summary{min-height:44px;padding:.45rem;cursor:pointer}
.voice-deck summary{color:inherit}.walk-history .turn,.walk-history .panel{color:#263a2d;text-align:start}.walk-history .turn .btn{color:#28402e;border-color:#839887}
.voice-walk :focus-visible{outline-color:#f4e6ad}.voice-deck p{margin:.35em 0 .65em;line-height:1.55}
.voice-deck #voice-status,.voice-deck #interim{color:inherit;background:transparent;border:0;padding:.3rem 0}.walk-caption:has(small) h1{max-height:4.65em;overflow:auto}
body[data-view="notebook"] .page-top{padding-bottom:0}body[data-view="notebook"] .page>section{margin-block:1.2rem}
body[data-view="notebook"] .note-card summary{cursor:pointer;min-height:44px;padding:.45rem 0}
#voice-status:empty,#interim:empty,.voice-field-tools p:empty{display:none}
.voice-field-tools{display:grid;gap:.3rem;margin:.35rem 0 1rem;justify-items:start}.voice-field-tools small{font-size:.8rem;line-height:1.45}.voice-field-tools p{margin:0;font-size:.92rem}.voice-field-tools .btn{min-height:44px}.voice-text label{display:block;text-align:left}
@media(max-height:520px){.little-notebook{width:min(100%,23rem);min-height:22rem}.little-ink{top:8%}}
@media(prefers-reduced-motion:reduce){.notebook-arrival{display:none}}
.little-ink{z-index:1}.notebook-arrival{z-index:0}.little-notebook:has(.notebook-arrival.playing) .little-ink{background:#eeeadade;border-radius:.5rem;padding:0 5%}
.little-ink h1{overflow-wrap:anywhere;max-height:3.2em;overflow:auto}.kotonoha-dialog .more-choices{margin:.7rem 0}
.walk-preferences{display:grid;gap:.15rem;margin:.6rem 0}
.walk-preferences label{display:flex;align-items:center;gap:.6rem;min-height:44px;cursor:pointer}
.walk-preferences input{width:1.2rem;height:1.2rem;accent-color:var(--green)}

.voice-deck #ai-status{color:inherit;font-size:.95rem;margin:.45rem auto;max-width:26em}.voice-deck #ai-start{margin-bottom:.6rem}

#setup-notice{margin:.5rem auto;font-size:.94rem;line-height:1.6}#setup-notice p{margin:.25rem 0}.little-ink button:disabled{opacity:.65}

.sheet-walk-actions{max-width:42rem;margin:1rem auto;padding:0 1rem}.sheet-walk-actions .actions{margin:0;flex-wrap:wrap}.sheet-walk-actions button{min-height:44px;white-space:normal}

/* The edition and navigation take their natural heights.
   Reserve the remaining visible space for the forest and its microphone. */
body:is([data-view="watch"],[data-view="chat"]) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  height: min(100dvh, var(--walk-keyboard-height, 100dvh));
  min-height: 0;
}
body:is([data-view="watch"],[data-view="chat"]) > :is(.edition-strip,.masthead) {
  flex: none;
}
body:is([data-view="watch"],[data-view="chat"]) #app {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body[data-view="watch"] .walk-prompt,
body[data-view="chat"] .voice-walk {
  flex: 1 1 0;
  min-height: 0;
  margin-block: 0;
  padding-block: 0;
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}
.walk-prompt > div:first-child, .walk-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: clamp(.5rem, 8vh, 5rem) .5rem;
}
.walk-scroll {
  display: flex;
  flex-direction: column;
}
.walk-scroll > * { flex: none; }
.walk-scroll .walk-caption { margin-top: auto; }
.walk-prompt > .actions, .walk-input-bar {
  flex: none;
  margin: 0 auto;
  padding-block: .4rem max(.7rem, env(safe-area-inset-bottom));
}
.walk-input-bar { border-top: 1px solid #e6ebdc40; }
.walk-input-bar > .actions { gap: .35rem; }
body:is([data-view="watch"],[data-view="chat"]) .app-notice {
  position: static;
  flex: none;
  transform: none;
  margin: 0 auto;
}

.forest-entry-options {
  width: fit-content;
  max-width: 100%;
  margin: .5rem 0;
  padding: 0 .7rem;
  background: #172d209c;
  color: #fffaf0;
  border-radius: .6rem;
  text-align: start;
}
.forest-entry-options > summary { min-height: 44px; align-content: center; cursor: pointer; font: 500 .95rem/1.5 var(--sans); }
.forest-entry-options[open] { width: min(100%, 34rem); background: #172d20ec; padding-bottom: .6rem; }
.forest-entry-options h2 { font: 500 1.12rem/1.5 var(--serif); margin: .15rem 0 .65rem; }
.forest-entry-options .actions { justify-content: flex-start; }
.forest-entry-options .actions + h2 { margin-top: 1.15rem; }

#visit-list fieldset {
  min-width: 0;
  margin: .75rem 0;
  padding: .35rem 1rem .85rem;
  border: 1px solid #a6aa94;
  border-radius: .6rem;
}
#visit-list legend { padding: 0 .4rem; }

@font-face {
  font-family: NotebookPencil;
  src: url("../assets/pencil-b4b641d.woff") format("woff");
  font-display: swap;
}
.little-ink h1, .little-ink .book-date, .little-ink #walk-entry {
  font-family: NotebookPencil, "Klee One", var(--serif);
}
.little-ink h1 { letter-spacing: .12em; transform:rotate(-2deg); }
.little-ink #walk-entry {
  background:transparent; border:0; border-bottom:2px solid #56705a;
  border-radius:0 0 44% 9%; color:#264332; padding:.35rem .65rem; font-size:1.25rem;
  min-height:44px; box-shadow:none;
}
@media (prefers-reduced-motion:no-preference) {
  .little-ink h1 { animation: notebook-pencil-reveal .85s ease-out both; }
  @keyframes notebook-pencil-reveal { from {clip-path:inset(0 100% 0 0)} to {clip-path:inset(0)} }
}
