/* ==========================================================================
   visit.css — coming back, the receipt (home only;
   the chapter layout around them is story.css)

   Mobile first: the base layer is the phone; min-width blocks only add room.
   Type rule holds: Nohemi at 16px and above, Montserrat at 14px and
   below — never both in one line of copy.
   ========================================================================== */

/* ---------- coming back ------------------------------------------------
   "It's nice to see you again" is decided by [data-return] before paint, the
   same way the comma follows the name: a state, never a rewrite. */

.hero__again { display: none; }
html[data-return="yes"] .hero__meet { display: none; }
html[data-return="yes"] .hero__again { display: inline; }

/* on the theme panel: the panel's dark text, in the small face (14px) */
.hero__resume {
  margin-top: 0.7rem;
  font-family: var(--font-small);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--on-accent);
  text-wrap: pretty;
}
.hero__resume a {
  color: inherit;          /* the accent would vanish on its own colour */
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

/* ---------- the receipt ------------------------------------------------- */


.visit__lede {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
  text-wrap: pretty;
}

.receipt {
  list-style: none;
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  padding: 0;
  border-top: 1px dashed var(--rule-strong);
}
.receipt__row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.25rem 0.9rem;
  align-items: baseline;
  padding-block: 0.7rem;
  border-bottom: 1px dashed var(--rule);
  animation: receipt-in var(--phrase) var(--tempo) both;
}
.receipt__time {
  font-family: var(--font-small);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.receipt__line {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.receipt__row--more .receipt__line { color: var(--ink-faint); }
.receipt__flag {
  grid-column: 2;
  justify-self: start;
  font-family: var(--font-small);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
@keyframes receipt-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}




.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-top: 1rem;
}
.visit__forget {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink-faint);
  font-family: var(--font-small);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--beat);
}
.visit__forget:hover { color: var(--ink); }
.visit__status {
  margin-top: 0.4rem;
  font-family: var(--font-small);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.visit__status:empty { display: none; }

/* ---------- the mission ------------------------------------------------- */

.mission {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  width: 100%;
}
.mission__q,
.mission__input { display: none; }
html.js .mission__q,
html.js .mission__input { display: block; }

.mission__q {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 480;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.mission__input {
  width: 100%;
  min-height: 52px;
  padding: 0.4rem 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--ink-faint);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 440;
  letter-spacing: -0.01em;
  transition: border-color var(--beat) var(--tempo);
}
.mission__input::placeholder { color: var(--ink-faint); opacity: 1; }
.mission__input:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.mission__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.mission__send {
  max-width: 100%;
  height: auto;
  min-height: 56px;
  padding-block: 0.7rem;
  text-align: left;
  white-space: normal;
}
.mission__send span {
  overflow-wrap: anywhere;
}
.mission__note {
  font-family: var(--font-small);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
}

@media (prefers-reduced-motion: reduce) {
  .receipt__row { animation: none; }
}
