/* The look every reader tool shares. Accent = the link blue of kukarella.com articles. */
:root {
  --text: #1f2430;
  --muted: #5a6271;
  --line: #dde1e8;
  --line-strong: #b9c0cc;
  --accent: #2958c6;
  --accent-soft: #eef3fc;
  --panel: #f6f7f9;
  --radius: 12px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; background: #fff; }

/* Inside an article a tool is a card of its own, so the reader sees where it starts and where it ends — the owner,
   2026-10-02: «Он никак не отбит от текста… с трудом понимаю… где он начинается, где он заканчивается». */
.tool {
  padding: 18px 16px 22px;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #f7f9fd;
}
.tool-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: 1.5rem; margin: 0 0 8px; }
.subtitle { margin: 0; color: var(--muted); font-size: 0.9375rem; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Inputs */
.inputs { margin-top: 20px; }
.field { margin: 0 0 18px; }
.field > label:not(.choice), legend { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.hint { margin: 6px 0 0; font-size: 0.8125rem; color: var(--muted); }

input[type='number'] {
  width: 100%;
  max-width: 11rem;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
input[type='range'], input[type='radio'] { accent-color: var(--accent); }

.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input { flex: 1; min-width: 0; }
.slider-row output { min-width: 3.5rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9375rem;
  cursor: pointer;
}
.choice input { margin: 3px 0 0; flex: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

.small { margin: 10px 0 0; font-size: 0.8125rem; color: var(--muted); }
