/* The free lettering page's own parts (plan 3I2): the bend slider, its value beside its label, the quiet reset
   button, and the empty sheet. Everything else is tools.css. The slider's track has a mark at its middle, where
   the lettering is straight. No font is declared here: each lettering font loads only when it is picked. */

.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-row label { font-weight: 600; font-size: 15px; letter-spacing: .01em; color: var(--ink); }
.field-row output {
  font-family: var(--measure); font-weight: 600; font-size: 16px; letter-spacing: .02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* The bend slider: a 44 tall target, a 6 high track marked at straight, a 28 thumb in the strong action colour. */
input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px; background: linear-gradient(90deg, transparent calc(50% - 1px), var(--edge) calc(50% - 1px),
    var(--edge) calc(50% + 1px), transparent calc(50% + 1px)), var(--chrome-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 3px; background: linear-gradient(90deg, transparent calc(50% - 1px), var(--edge) calc(50% - 1px),
    var(--edge) calc(50% + 1px), transparent calc(50% + 1px)), var(--chrome-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: var(--act-strong); border: 3px solid var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--act-strong); border: 3px solid var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
input[type="range"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
@media (prefers-color-scheme: dark) {
  input[type="range"]::-webkit-slider-runnable-track { background-color: var(--chrome); }
  input[type="range"]::-moz-range-track { background-color: var(--chrome); }
  input[type="range"]::-webkit-slider-thumb { border-color: var(--chrome-2); }
  input[type="range"]::-moz-range-thumb { border-color: var(--chrome-2); }
}

.bend-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.bend-foot .hint { margin: 0; }
.button.quiet, button.button.quiet {
  min-height: 44px; padding: 0 14px; font-size: 16px; font-weight: 600; flex: none;
}

/* The sheet before anything is typed: one quiet line where the lettering will be. */
.sheet-empty { display: grid; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.sheet-empty p { margin: 0; max-width: 24ch; font-size: 16px; line-height: 1.4; color: #4C5666; }
.sheet-empty[hidden] { display: none; }
.tool[data-state="loading"] .tool-sheet canvas { opacity: .55; transition: opacity .2s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .tool[data-state="loading"] .tool-sheet canvas { transition: none; } }

#font-hint a { overflow-wrap: anywhere; }
