@font-face{font-family:"Geist";src:url("/assets/fonts/geist.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}
:root{
  --paper:#f7f4ee;--card:#fffdf9;--ink:#1b1a16;--ink-2:#34322b;--muted:#7a7468;--faint:#b0a99b;
  --line:rgb(27 26 22 / .09);--line-2:rgb(27 26 22 / .16);--ring:rgb(122 143 106 / .4);
  --sans:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;--ease:cubic-bezier(.22,1,.36,1);--col:620px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.fd{margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:var(--paper);color:var(--ink);font:400 17px/1.5 var(--sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.fd button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.fd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bx-b{font-weight:700;font-style:normal;letter-spacing:-.02em;text-transform:none;white-space:nowrap}
.fd :focus-visible{outline:none;box-shadow:0 0 0 3px var(--ring);border-radius:8px}
.fd textarea:focus-visible{box-shadow:none}

/* Almost nothing around the conversation: the mark, and a quiet way to start over. */
.fd-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:16px max(18px,env(safe-area-inset-left)) 14px;background:linear-gradient(var(--paper) 65%,rgb(247 244 238 / 0))}
.fd-logo{display:inline-flex;padding:6px;margin:-6px}
.fd-logo img{display:block;width:22px;height:22px;opacity:.9}
.fd-new{border:0;background:none;padding:6px 2px;font-size:14px!important;color:var(--muted)!important}
.fd-new:hover{color:var(--ink)!important}
.fd-new[hidden]{display:none}

/* b. talks in large, calm type, like someone speaking to you. No bubbles, no avatars. */
.fd-main{flex:1;width:100%;max-width:calc(var(--col) + 40px);margin:0 auto;padding:9vh 20px 28px}
.fd-b{margin:0 0 .55em;font-size:clamp(23px,3.4vw,28px);line-height:1.3;letter-spacing:-.022em;color:var(--ink);transition:opacity .6s var(--ease)}
.fd-b.fd-long{font-size:clamp(17.5px,2.2vw,19px);line-height:1.62;letter-spacing:-.006em;color:var(--ink-2)}
.fd-b p{margin:0 0 .7em}
.fd-b p:last-child{margin-bottom:0}
.fd-b ul,.fd-b ol{margin:0 0 .8em;padding-left:1.2em}
.fd-b li{margin:.3em 0}
.fd-b li::marker{color:var(--faint)}
.fd-b strong{font-weight:600;color:var(--ink)}
.fd-b a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.fd-b+.fd-me{margin-top:1.4em}

/* What the person says sits quietly on the right, in their own words. */
.fd-me{margin:0 0 1.5em auto;max-width:82%;width:fit-content;font-size:18px;line-height:1.45;color:var(--muted);text-align:right;white-space:pre-wrap;overflow-wrap:anywhere;transition:opacity .6s var(--ease);animation:fd-up .45s var(--ease) both}

/* Earlier lines step back so the eye rests on what is being said now. */
.fd-past{opacity:.38}
.fd-past:hover{opacity:.75}

/* Words arrive one at a time, softly. */
.fd-w{display:inline;animation:fd-word .55s var(--ease) both}
.fd-think{display:flex;gap:5px;height:1.3em;align-items:center;margin:0 0 .55em}
.fd-think span{width:7px;height:7px;border-radius:50%;background:var(--faint);animation:fd-breath 1.3s ease-in-out infinite}
.fd-think span:nth-child(2){animation-delay:.18s}.fd-think span:nth-child(3){animation-delay:.36s}
.fd-status{margin:0 0 .6em;font-size:16px;font-style:italic;color:var(--muted)}
.fd-status[hidden]{display:none}
.fd-error{color:#8a4b2f;font-style:normal}

/* The one button: the homes b. picked, opened in ChatGPT. */
.fd-go{display:inline-flex;align-items:center;gap:8px;height:48px;margin:14px 0 4px;padding:0 20px 0 22px;border-radius:999px;background:var(--ink);color:#fff!important;font-size:16px;font-weight:500;letter-spacing:-.01em;text-decoration:none;animation:fd-up .45s var(--ease) both;transition:transform .2s}
.fd-go:hover{transform:translateY(-1px)}
.fd-go svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* Writing back. */
.fd-dock{position:sticky;bottom:0;z-index:2;width:100%;max-width:calc(var(--col) + 40px);margin:0 auto;padding:18px 20px max(16px,env(safe-area-inset-bottom));background:linear-gradient(rgb(247 244 238 / 0),var(--paper) 32%)}
.fd-write{display:flex;align-items:flex-end;gap:8px;padding:8px 8px 8px 18px;background:var(--card);border:1px solid var(--line-2);border-radius:18px;box-shadow:0 10px 30px rgb(70 50 20 / .06);transition:border-color .2s,box-shadow .2s}
.fd-write:focus-within{border-color:rgb(27 26 22 / .32);box-shadow:0 10px 34px rgb(70 50 20 / .09)}
.fd-write textarea{flex:1;min-width:0;max-height:180px;margin:0;padding:8px 0;border:0;outline:0;resize:none;background:transparent;color:var(--ink);font:400 18px/1.45 var(--sans)}
.fd-write textarea::placeholder{color:var(--faint)}
.fd-send{flex:none;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:var(--ink);color:#fff!important;transition:opacity .2s,transform .2s}
.fd-send:disabled{opacity:0;transform:scale(.8);pointer-events:none}
.fd-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.fd-send.fd-stop svg{display:none}
.fd-send.fd-stop::after{content:"";width:11px;height:11px;border-radius:3px;background:#fff}

@keyframes fd-word{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}
@keyframes fd-up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes fd-breath{0%,100%{opacity:.3;transform:scale(.85)}50%{opacity:1;transform:none}}

@media (max-width:600px){
  .fd-main{padding-top:4vh}
  .fd-me{font-size:17px}
}
@media (max-height:720px){
  .fd-main{padding-top:2vh}
  .fd-b{font-size:21px}
  .fd-b.fd-long{font-size:17px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
