.jont-page {
  width: min(var(--column), calc(100% - 80px));
  margin-inline: auto;
  padding-block: var(--section-gap) 80px;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}
.jont-intro { display: flex; flex-direction: column; gap: 16px; }
.jont-title { position: relative; min-height: 22px; color: var(--muted); }
.jont-icon { position: absolute; left: -30px; top: 0; width: 22px; height: 22px; }
.jont-icon img { display: block; }
.jont-back {
  position: absolute;
  left: 47px;
  top: 47px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 140ms ease-out;
}
.jont-back img { display: block; transform: rotate(-90deg); }
.jont-back:hover, .jont-back:focus-visible { background: rgba(29, 29, 31, .06); }
.jont-specimen {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jont-specimen p {
  flex-shrink: 0;
  font-family: Jont, monospace;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.jont-specimen .jont-wordmark {
  font-size: min(240px, 42.85cqw);
  font-weight: 700;
  letter-spacing: .007em;
  /* Align the ink to the column; Jont's J overhangs and T has trailing space. */
  text-indent: .03125em;
  white-space: nowrap;
  overflow: clip;
}
.jont-samples {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 272px;
  overflow: auto;
}
.jont-specimen [data-specimen='bold'] { font-size: 48px; font-weight: 700; }
.jont-specimen [data-specimen='regular'] { font-size: 24px; font-weight: 400; color: var(--muted); }
.jont-controls { display: flex; flex-direction: column; gap: 8px; }
.jont-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.jont-weights { display: flex; gap: 16px; }
.jont-weights button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: var(--muted);
  opacity: .4;
  cursor: pointer;
  transition: color 140ms ease-out, opacity 140ms ease-out;
}
.jont-weights button[aria-selected='true'] { color: var(--ink); opacity: 1; }
.jont-weights button:hover, .jont-weights button:focus-visible { opacity: 1; }
.jont-size-control { display: flex; align-items: center; gap: 8px; }
.jont-slider { position: relative; width: 151px; height: 22px; touch-action: none; }
.jont-slider-track {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 10px;
  height: 2px;
  background: #e5e5e5;
  pointer-events: none;
}
.jont-slider-handle {
  position: absolute;
  left: calc(11px + (100% - 22px) * var(--size-progress));
  top: 50%;
  width: var(--handle-size);
  height: var(--handle-size);
  transform: translate(-50%, -50%);
  background: var(--ink);
  pointer-events: none;
}
/* The invisible native thumb stays 44px wide; only the visible square grows. */
#jont-size {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 1;
  left: -11px;
  top: -11px;
  width: calc(100% + 22px);
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}
#jont-size::-webkit-slider-runnable-track { height: 44px; background: transparent; }
#jont-size::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; }
#jont-size::-moz-range-track { height: 44px; background: transparent; }
#jont-size::-moz-range-thumb { width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; }
.jont-slider:has(input:focus-visible) .jont-slider-handle { outline: 1px solid var(--ink); outline-offset: 4px; }
#jont-size-value {
  position: absolute;
  left: calc(11px + (100% - 22px) * var(--size-progress));
  top: -8px;
  transform: translate(-50%, -100%);
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--page);
  background: var(--ink);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease-out;
}
.jont-slider:hover #jont-size-value, .jont-slider:focus-within #jont-size-value { opacity: 1; }
#jont-editor {
  display: block;
  width: 100%;
  height: 118px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #ebebeb;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  resize: none;
}
#jont-editor::placeholder { color: #8f8f8f; opacity: 1; }
.jont-characters { display: flex; flex-direction: column; gap: var(--section-gap); }
.jont-divider { display: block; max-width: 100%; height: 1px; }
.jont-character-set {
  font-family: Jont, monospace;
  font-size: 35px;
  font-weight: 400;
  line-height: 43px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.jont-character-set-bold { font-weight: 700; }
.jont-download { align-self: flex-start; color: #3b82f6; text-decoration: none; }
.jont-download:hover { text-decoration: underline; text-underline-offset: 3px; }
.jont-page button:focus-visible, .jont-page a:focus-visible, #jont-editor:focus-visible, .jont-back:focus-visible, .jont-samples:focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 4px;
}
@media (max-width: 810px) { .jont-back { left: 0; outline-offset: -2px; } }
@media (max-width: 716px) { .jont-back { top: 7px; } }
@media (max-width: 640px) { .jont-samples { height: 560px; } }
@media (prefers-reduced-motion: reduce) {
  .jont-back, .jont-weights button, #jont-size-value { transition: none; }
}
@media (forced-colors: active) {
  .jont-slider-track, .jont-slider-handle { background: CanvasText; forced-color-adjust: none; }
}
