/* The start: a new session from nothing. A calm page, one input that glows from the clock, the
   hints, the two routes (sage by hand, lake the AI), the styles; and the AI building it in view */
.st { display: grid; gap: 40px; max-width: 820px; padding-top: 22px; padding-bottom: 48px; }
.st-top { display: grid; gap: 14px; }
.st-q { font: var(--display, 400) 36px/1.08 var(--serif); letter-spacing: var(--title-track, -0.01em); color: var(--ink); text-wrap: balance; }
/* the input glows: a halo breathing with --glow and a warm light turning round its edge with --turn,
   both from the clock (K.glow); still when the clock stands */
.st-ask { position: relative; margin-top: 6px; padding: 2px; border-radius: calc(22px * var(--round, 1));
  background: conic-gradient(from var(--turn, 0deg), #f1d7a6 0deg, var(--go) 60deg, #f1d7a6 140deg, var(--line) 220deg, #f1d7a6 360deg);
  box-shadow: 0 0 calc(14px + 26px * var(--glow, 0)) calc(2px + 6px * var(--glow, 0)) rgb(233 162 59 / calc(0.10 + 0.16 * var(--glow, 0))); }
.st-field { display: block; min-height: 120px; padding: 18px 20px; border: 0; border-radius: calc(20px * var(--round, 1)); background: var(--sheet); font: 400 23px/1.4 var(--serif); }
.st-field::placeholder { color: #a39e92; }
.st-field:focus { outline: 0; }
.st-hints { display: grid; gap: 10px; margin-top: 6px; }
.st-hint-list { display: flex; flex-wrap: wrap; gap: 8px; }
.st-hint { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--pill, 999px); background: var(--sheet); color: var(--soft); font: 400 15px/1.3 var(--sans); text-align: left; cursor: pointer; }
.st-hint:hover { border-color: #c4bba9; color: var(--ink); }
.st-hint.is-on { border-color: var(--go); background: var(--go-soft); color: var(--go-ink); }

.st-ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.st-then { font-size: 15px; color: var(--soft); }
.st-cost { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--soft); }
.st-cost svg { flex: none; width: 16px; height: 16px; color: var(--ai); }
.st-cost b { color: var(--ink); font-weight: 600; }
.st-way { display: grid; align-content: start; gap: 6px; }
.st-way-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.st-way p { max-width: 40em; font-size: 14px; line-height: 1.5; color: var(--muted); }
.st-styles { display: grid; gap: 10px; }
.st-h2 { font: var(--display, 400) 26px/1.15 var(--serif); letter-spacing: var(--title-track, normal); }
.st-sub { font-size: 15px; line-height: 1.5; color: var(--soft); max-width: 38em; }
.st-style-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 6px 0 0; padding: 0; list-style: none; }
.st-style-list li { display: grid; align-content: start; grid-template-columns: 12px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 13px 0; border-top: 1px solid var(--line); }
.st-style-list i { grid-row: 1 / 3; width: 10px; height: 10px; margin-top: 6px; border-radius: 3px; background: var(--c); }
.st-style-list b { font: var(--display, 400) 19px/1.25 var(--serif); letter-spacing: var(--title-track, normal); font-weight: 400; }
.st-style-list span { font-size: 14px; line-height: 1.45; color: var(--soft); }
.st-end { height: 8px; }

@container app (min-width: 700px) {
  .st { gap: 52px; padding-top: 56px; padding-bottom: 80px; }
  .st-q { font-size: 48px; }
  .st-field { min-height: 112px; padding: 20px 24px; font-size: 26px; }
  .st-ways { gap: 12px; }
  .st-style-list { grid-template-columns: 1fr 1fr; column-gap: 36px; }
}

/* the end of a session that does not come back yet: the palette for what comes next, open */
.sv-spot.is-next { background: var(--paper); border-style: dashed; border-color: #c4bba9; }
.sv-spot.is-next .sv-pal-sub { margin-top: 6px; }
.cu-woven.is-later { color: var(--soft); }

/* the AI building it, in view: what it is doing, the curve drawing, the blocks landing. One screen
   tall: the blocks written fold to a row, the one being written stays open */
.st-build { display: grid; gap: 18px; max-width: 1040px; padding-top: 18px; padding-bottom: 40px; }
.st-build-head { display: grid; gap: 6px; }
.st-build-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.st-build-title { font: var(--display, 400) 26px/1.1 var(--serif); letter-spacing: var(--title-track, -0.01em); text-wrap: balance; }
/* the AI reading what they asked for, word by word */
.st-build-title .is-unread { color: #b3ad9f; }
.st-build-wish q { font: italic 400 18px/1.45 var(--serif); color: var(--soft); }
.st-doing { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; gap: 2px 12px; min-height: 48px; padding: 10px 16px; border-radius: calc(16px * var(--round, 1)); background: var(--ai-soft); color: var(--ai-ink); font-size: 15.5px; line-height: 1.35; }
.st-doing i { width: 10px; height: 10px; border-radius: 50%; background: var(--ai); box-shadow: 0 0 0 calc(2px + 5px * var(--glow, 0)) rgb(79 134 168 / calc(0.35 - 0.25 * var(--glow, 0))); }
.st-doing b { font-weight: 600; }
.st-doing small { grid-column: 2; font: 400 11.5px/1.4 var(--mono); color: color-mix(in srgb, var(--ai-ink) 70%, var(--ai)); }
.st-plan { display: grid; gap: 6px; margin: 0; }
.st-plan-area { position: relative; }
.st-plan-curve { height: 52px; }
/* awake, where the curve starts: dashed ahead of what is drawn */
.st-awake { position: absolute; right: 1.333%; top: 7.27%; border-top: 2px dashed #c4bba9; }
/* the curve keeps 8 of its 600 clear each side: the strip and the axis start where it does */
.st-plan .sv-strip, .st-plan .cu-axis-x { margin-inline: 1.333%; }
.st-plan-curve .curve { width: 100%; height: 100%; }
.st-body { display: grid; gap: 10px; align-items: start; }
.st-built { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.st-row { display: grid; gap: 0; padding: 9px 14px 9px 18px; border-radius: calc(14px * var(--round, 1)); background: color-mix(in srgb, var(--c) 10%, var(--sheet)); box-shadow: inset 4px 0 0 var(--c); }
.st-row-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.st-row-k b { font: var(--display, 400) 19px/1.25 var(--serif); letter-spacing: var(--title-track, normal); }
.st-row-k span { font: 400 11px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
/* a band's label sits above its words: the lines leave room for it, a wrapped line too */
.st-row .st-line { padding-top: 14px; font-size: 15px; line-height: 2.2; color: var(--soft); }
/* once every word is in, the directions colour in: the page makes room for every block, so each band
   colours in in view (the title was read already; on a phone the curve's strip stays, without the curve) */
.st-build.is-set .st-build-title { display: none; }
.st-build.is-set .st-plan-area, .st-build.is-set .st-row-k span { display: none; }
.st-line.is-off, .st-now .st-more { display: none; }
.st-now { order: -1; gap: 10px; padding-top: 20px; padding-bottom: 20px; }
.st-now .sv-name { font-size: 26px; }
.st-now .sv-said { display: none; }
.st-lines { display: grid; gap: 2px; }
.st-line { padding-top: 12px; font: 400 18px/2 var(--serif); text-wrap: pretty; }
.st-more { padding-top: 6px; font: 400 11.5px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
/* a direction's band colours in, from --in */
.st-band { background: color-mix(in srgb, var(--ember-soft) calc(var(--in) * 100%), transparent); box-shadow: inset 0 calc(-2px * var(--in)) 0 var(--ember); }
.st-band > i { opacity: var(--in); }
/* a band never breaks across lines, so its label always sits over its own words */
.st-band { white-space: nowrap; }
.st-build.is-set { gap: 12px; }
.st-build.is-set .st-built { gap: 6px; }
.st-build.is-set .st-row { padding-top: 6px; padding-bottom: 6px; }
.st-build.is-set .st-row .st-line { padding-top: 8px; line-height: 2.2; }
@container app (min-width: 700px) {
  .st-build { gap: 20px; padding-top: 34px; }
  .st-build-title { font-size: 38px; }
  .st-plan-curve { height: 84px; }
  .st-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
  .st-row .st-line { padding-top: 14px; font-size: 16px; line-height: 2.1; }
  .st-build.is-set .st-plan-area, .st-build.is-set .st-row-k span { display: block; }
  .st-build.is-set .st-row-k span { display: inline; }
  .st-build.is-set { gap: 20px; }
  .st-build.is-set .st-built { gap: 8px; }
  .st-build.is-set .st-row { padding-top: 9px; padding-bottom: 9px; }
  .st-build.is-set .st-row .st-line { padding-top: 12px; line-height: 2.25; }
  .st-build.is-set .st-built { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-line.is-off { display: block; }
  .st-now .st-more { display: block; }
  .st-now .sv-said { display: block; }
  .st-now { grid-column: 2; grid-row: 1; }
  .st-built { grid-column: 1; grid-row: 1; }
}

/* a wide screen: the question, its input and the way forward in one column, the styles under it,
   four across */
@container app (min-width: 1500px) {
  .st { max-width: 1240px; padding-inline: 56px; }
  .st-top { max-width: 920px; }
  .st-style-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-build { max-width: none; padding-inline: 56px; }
}
