/* Даргинский словарь. Один шрифт — Literata (переменный файл, веса 200–900 настоящие),
   одна акцентная краска, без разрядки и капса. Палитра — та же, что на akhmed524.ru. */

@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/literata-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("fonts/literata-cyrillic-wght-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/literata-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("fonts/literata-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/literata-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+2113; }

:root {
  --bg: #f9f8f6;
  --ink: #0c1754;
  --text: #1c1f33;
  --muted: #62667c;
  --line: #e4ddd3;
  --accent: #2545ff;
  --err: #a8321f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11121b; --ink: #eceefb; --text: #d5d8ea; --muted: #9a9eb8; --line: #2a2c3d; --accent: #93a4ff; --err: #f0a090; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Literata", serif; font-size: 17px; line-height: 1.5; font-weight: 400; }
input, button { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }

.wrap { max-width: 43rem; margin: 0 auto; padding: 18px 18px 96px; }

.top { display: flex; justify-content: space-between; align-items: baseline; }
.name { font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.name:hover { text-decoration: none; }
.out { color: var(--muted); font-size: .9rem; }

.find { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 14px 0 12px; margin-top: 6px; }
.field { display: flex; align-items: stretch; border-bottom: 2px solid var(--ink); }
.field input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.45rem; padding: 6px 0 8px; outline: none; -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: var(--muted); opacity: .75; }
.field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.field button { border: 0; background: transparent; font: inherit; color: var(--accent); cursor: pointer; padding: 0 0 0 16px; }
.field .pal { font-size: 1.35rem; font-weight: 500; padding: 0 14px; }
.field .go { font-size: 1rem; padding-left: 4px; }

.modes { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; font-size: .95rem; }
.modes label { color: var(--muted); cursor: pointer; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.modes label.on { color: var(--ink); font-weight: 500; border-bottom-color: var(--accent); }
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.modes label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

section { margin-top: 30px; }
h2 { margin: 0; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 500; color: var(--muted); }
h4 { margin: 24px 0 0; font-size: .92rem; font-weight: 400; font-style: italic; color: var(--muted); }

.e { padding: 13px 0 14px; border-bottom: 1px solid var(--line); }
.e .hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.e h3 { margin: 0; font-size: 1.3rem; line-height: 1.3; font-weight: 600; color: var(--ink); }
.e .forms { color: var(--muted); font-style: italic; font-size: .9rem; }
.e .forms b { font-weight: 400; }
.e .src { margin-left: auto; color: var(--muted); font-size: .8rem; }
.e .body { margin-top: 5px; overflow-wrap: anywhere; }
.e .body p + p { margin-top: 2px; }
.e .body b { font-weight: 600; color: var(--ink); }
.e .gloss { font-size: 1.05rem; }
.e.d h3 { font-size: 1.2rem; }
.note { margin-top: 3px; color: var(--muted); font-size: .86rem; }

details summary { margin-top: 6px; color: var(--accent); cursor: pointer; font-size: .9rem; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { display: none; }
details p:first-of-type { margin-top: 2px; }

.none { padding: 14px 0; color: var(--muted); }

.ex { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ex p[lang="dar"] { color: var(--ink); }
.ex .tr { margin-top: 2px; }
mark { background: none; color: var(--accent); font-weight: 500; }

.intro p { color: var(--muted); }
.intro h2 { margin-top: 30px; }
.intro ul { margin: 12px 0 0; padding-left: 1.1em; }
.intro li { margin: 5px 0; }

#results.wait { opacity: .55; transition: opacity .15s .15s; }

/* вход по коду */
.pin { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; }
.pin form { width: 100%; max-width: 19rem; }
.pin h1 { margin: 0 0 28px; font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.pin label { display: block; color: var(--muted); font-size: .92rem; }
.pin input[type="password"] { width: 100%; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.8rem; padding: 6px 0; outline: none; }
.pin .err { min-height: 1.5em; margin-top: 8px; color: var(--err); font-size: .9rem; }
.pin button { margin-top: 10px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-weight: 500; padding: 10px 22px; cursor: pointer; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 14px 16px 96px; }
  .field input { font-size: 1.3rem; }
  .field .go { display: none; }
  .e .src { font-size: .76rem; }
}
