:root { color-scheme: light; --paper: #f4f0ec; --ink: #111; font-family: "neue-haas-grotesk-text", sans-serif;
font-weight: 400;
font-style: normal; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
#asking { min-height: 100svh; display: grid; place-items: center; padding: 28px; }
form { width: min(100%, 400px); text-align: center; transform: translateY(-3svh); }
h1 { margin: 0 0 22px; font-size: 18px; line-height: 1.4; font-weight: 400; letter-spacing: -.035em; }
textarea { display: block; width: 100%; min-height: 44px; max-height: 60svh; padding: 8px 0; resize: none; overflow: hidden; overflow-wrap: anywhere; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; text-align: center; outline: none; caret-color: var(--ink); }
textarea::placeholder { color: #77716d; opacity: 1; }
textarea.is-wrapped { text-align: left; }
#answer { position: fixed; inset: 0; width: 100%; height: 100dvh; overflow: auto; outline: none; background: var(--paper); display: grid; place-items: center; }
#answer img, #answer video, #answer iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 0; object-fit: contain; }
#answer .text-work {
  width: var(--text-width, min(400px, calc(100vw - 56px)));
  max-width: 86vw;
  min-width: 0;
  margin: auto;
  padding: max(32px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
  font: inherit;
  font-weight: var(--text-weight, 400);
  font-size: clamp(
  10px,
  var(--text-size, 10px),
  max(
    10px,
    min(
      calc(var(--text-width, 400px) / 8),
      calc(var(--text-width, 400px) / 4 - 21px)
    )
  )
);

  line-height: 1.5;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: var(--text-align, left);
  text-align-last: var(--text-align-last, auto);
  text-transform: var(--text-case, none);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#answer .media-action { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: transparent; color: inherit; border: 0; font: inherit; font-size: 16px; padding: 16px; cursor: pointer; }
#answer .media-action:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button.sr-only:focus-visible { position: fixed; width: auto; height: auto; margin: 0; padding: 12px; clip: auto; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--paper); color: var(--ink); border: 1px solid; }
.no-script { position: fixed; bottom: 24px; width: 100%; text-align: center; font-size: 14px; }
@media (max-width: 600px) { form { transform: translateY(-5svh); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }



#answer img {
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 80dvh;
}



::selection {
  background: var(--ink);
  color: var(--paper);
}



/* single line of text */
#answer .text-work.text-single {
  width: 86vw;
  max-width: 86vw;
  font-size: max(10px, var(--text-size, 10px));
  text-align: center;
  text-align-last: center;
  white-space: nowrap;
  overflow-wrap: normal;
}





/* Single tokens retain one line whenever they fit at10px or larger. */
#answer .text-work.text-single.text-single-wrap { white-space:pre-wrap; overflow-wrap:anywhere; }

/* loader slow shuffle */
/* Only visible during a wait before the shuffle begins. */
#answer .shuffle-loading {
  font: inherit;
  font-size: 36px;
  font-weight: 400;
  animation: shuffle-wait 1.2s ease-in-out infinite;
}
@keyframes shuffle-wait {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #answer .shuffle-loading { animation: none; }
}





textarea:placeholder-shown:not(.show-caret) {
  caret-color: transparent;
}




#answer .text-work.text-one-line {
  text-align: center;
  text-align-last: center;
}




/* FIXED SITE LINKS */

#site-links {
  --link-inset: 12px;
  --link-color: #aaa5a0;
  --link-size: 11px;

  position: fixed;
  inset: 0;
  z-index: 10;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));

  padding:
    max(var(--link-inset), env(safe-area-inset-top))
    max(var(--link-inset), env(safe-area-inset-right))
    max(var(--link-inset), env(safe-area-inset-bottom))
    max(var(--link-inset), env(safe-area-inset-left));

  box-sizing: border-box;
  pointer-events: none;

  opacity: 1;
  visibility: visible;
  transition: opacity 450ms ease, visibility 0s;
}

#site-links .site-link {
  font-family: inherit;
  font-size: var(--link-size);
  font-weight: 400;
  line-height: 1.2;
  color: var(--link-color);
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  transition: color 200ms ease;
}

#site-links .site-link:hover,
#site-links .site-link:focus-visible {
  color: #625d58;
}

/* POSITIONS */

#site-links .top-left {
  grid-area: 1 / 1;
  place-self: start start;
}

#site-links .top-middle {
  grid-area: 1 / 2;
  place-self: start center;
}

#site-links .top-right {
  grid-area: 1 / 3;
  place-self: start end;
}

#site-links .middle-left {
  grid-area: 2 / 1;
  place-self: center start;
}

#site-links .middle-middle {
  grid-area: 2 / 2;
  place-self: center center;
}

#site-links .middle-right {
  grid-area: 2 / 3;
  place-self: center end;
}

#site-links .bottom-left {
  grid-area: 3 / 1;
  place-self: end start;
}

#site-links .bottom-middle {
  grid-area: 3 / 2;
  place-self: end center;
}

#site-links .bottom-right {
  grid-area: 3 / 3;
  place-self: end end;
}

/* DISAPPEAR AFTER THE FIRST ANSWER */

#site-links.is-dismissed {
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms ease, visibility 0s 450ms;
}

#site-links.is-dismissed .site-link {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #site-links,
  #site-links.is-dismissed,
  #site-links .site-link {
    transition: none;
  }
}



#site-links .site-link.bottom-middle {
  font-weight: 400;
  font-size: 9px;
}



img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
/* Fade only the invitation; actual typing remains immediately visible. */
#question::placeholder { transition: opacity .9s ease-in-out; }
#question.home-prompt-fading::placeholder { opacity: 0; }
@media(prefers-reduced-motion:reduce) { #question::placeholder { transition:none; } }

/* Keep the invitation centered, with a quiet, touch-sized send target. */
.question-row { position: relative; }
#question { padding-inline: 24px; }
#ask-arrow { position: absolute; left: calc(50% + var(--ask-arrow-offset, 198px)); top: 50%; transform: translate(-50%, -50%); transition: left .45s cubic-bezier(.22, 1, .36, 1); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; opacity: .4; cursor: pointer; touch-action: manipulation; }
#ask-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#ask-arrow:hover, #ask-arrow:focus-visible { opacity: 1; }
#ask-arrow:focus-visible { outline: 1px solid currentColor; outline-offset: -6px; }

#ask-arrow:disabled { pointer-events: none; }

@media(prefers-reduced-motion:reduce) { #ask-arrow { transition:none; } }

/* The title keeps its typography; an invisible 44px target offers another way in. */
#invitation-toggle { position:relative; display:inline-block; padding:0; margin:0; border:0; background:transparent; color:inherit; font:inherit; letter-spacing:inherit; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
#invitation-toggle::before { content:""; position:absolute; inset:calc((1lh - 44px) / 2) 0; }
#invitation-toggle:disabled { opacity:1; color:inherit; -webkit-text-fill-color:currentColor; cursor:default; }
#invitation-toggle:focus-visible { outline:1px solid currentColor; outline-offset:6px; }

/* Four quiet routes, available whenever the homepage question is shown. */
#home-tools {
  -webkit-user-select: none;
  user-select: none;
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  color: var(--ink);
  font-family: inherit;
}
#home-tools summary {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  min-width: 44px;
  min-height: 32px;
  padding: 0 0 2px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  opacity: .55;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--link-fade);
}
#home-tools summary::-webkit-details-marker { display: none; }
#home-tools summary svg {
  flex: none;
  width: 7px;
  height: 5px;
  margin-bottom: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .65;
  pointer-events: none;
  transition: transform 180ms ease;
}
#home-tools[open] summary svg { transform: rotate(180deg); }
#home-tools summary:is(:active,:focus-visible), #home-tools[open] summary { opacity: 1; }
#home-tools summary:focus-visible, #home-tools a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
#home-tools nav {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 0;
  display: grid;
  min-width: 112px;
  animation: home-tools-enter 200ms ease both;
}
#home-tools a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px 0 0;
  font-size: 11px;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
  --link-rest-opacity: .75;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@keyframes home-tools-enter { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) { #home-tools summary:hover { opacity: 1; } }
@media (min-width: 601px) and (hover: hover) and (pointer: fine) {
  #home-tools summary, #home-tools a { min-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  #home-tools summary, #home-tools summary svg { transition: none; }
  #home-tools nav { animation: none; }
}

/* Privacy returns whenever the homepage question is shown. */
#home-privacy {
  box-sizing: border-box;
  padding-bottom: 2px;
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  font-family: inherit;
  font-size: 9px;
  line-height: 1.2;
  color: #aaa5a0;
  text-decoration: none;
  --link-rest-opacity: .5;
  visibility: visible;
  transition: opacity var(--link-fade), visibility 0s, color 200ms ease;
}
#home-privacy:hover,
#home-privacy:focus-visible { color: #625d58; }
#home-privacy.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 450ms ease, visibility 0s 450ms;
}
@media (prefers-reduced-motion: reduce) {
  #home-privacy { transition: none; }
}
