/* Word frequency pages (russian-word-frequency.html, words/ru/*.html).
   Self-contained after reset.css, in the Daylight palette (see daylight.css). */

:root {
  --ink: #0E2A3B;
  --muted: #3D5566;
  --line: #DCE6EE;
  --paper: #FFFFFF;
  --paper-2: #EEF8FE;
  --sky: #1CB0F6;
  --sky-dd: #0B6FA8;
  --sky-ddd: #084E77;
  --green: #58CC02;
  --green-d: #3E8E00;
  --green-ink: #10300A;
  --green-bg: #E6F6D9;
  --green-text: #2F6E01;
}

body { font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 600; color: var(--ink); background: var(--paper); line-height: 1.5; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
a { color: var(--sky-dd); }
a:hover { color: var(--sky-ddd); }
:focus-visible { outline: 3px solid var(--sky-dd); outline-offset: 2px; }

.w-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .w-wrap { padding: 0 24px; } }
.w-muted { color: var(--muted); }
.w-num { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--muted); }
.w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w-skip { position: absolute; left: -9999px; }
.w-skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Nav */
.w-nav { border-bottom: 1px solid var(--line); background: #fff; }
.w-nav__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.w-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 900; color: var(--ink); text-decoration: none; }
.w-logo img { border-radius: 9px; }
.w-nav__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.w-nav__links a { color: var(--muted); font-weight: 800; text-decoration: none; padding: 8px 0; }
.w-nav__links a:hover { color: var(--sky-dd); }

/* Buttons: the site's chunky 3D style */
.w-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: none; border-radius: 16px; font: inherit; font-weight: 900; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; background: var(--sky-dd); color: #fff; box-shadow: 0 5px 0 var(--sky-ddd); transition: transform .1s ease, box-shadow .1s ease; }
.w-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 var(--sky-ddd); }
.w-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sky-ddd); }
.w-btn--green { background: var(--green); color: var(--green-ink); box-shadow: 0 5px 0 var(--green-d); }
.w-btn--green:hover { color: var(--green-ink); box-shadow: 0 7px 0 var(--green-d); }
.w-btn--ghost { background: #fff; color: var(--sky-dd); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.w-btn--ghost:hover { color: var(--sky-dd); box-shadow: 0 7px 0 var(--line); }

/* Search */
.w-search { position: relative; display: flex; gap: 8px; width: 100%; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 6px; box-shadow: 0 5px 0 var(--line); }
.w-search input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: 1.25rem; font-weight: 800; color: var(--ink); padding: 8px 12px; background: transparent; }
.w-search input::placeholder { color: #6B8090; font-weight: 700; }
.w-search:focus-within { border-color: var(--sky-dd); }
.w-search .w-btn { box-shadow: none; min-height: 48px; }
.w-search .w-btn:hover, .w-search .w-btn:active { transform: none; box-shadow: none; }
.w-search__list { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 5; list-style: none; margin: 0; padding: 6px; background: #fff; border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -22px rgba(14, 42, 59, .35); text-align: left; }
.w-search__list a { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.w-search__list a:hover, .w-search__list [aria-selected="true"] a { background: var(--paper-2); }
.w-search__word { font-size: 1.15rem; font-weight: 900; }
.w-search__list .w-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-search__empty { padding: 10px 12px; color: var(--muted); }

/* Landing */
.w-landing { background: var(--paper-2); padding: 56px 0 48px; }
.w-landing__inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.w-eyebrow { margin: 0; font-size: .85rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); }
.w-landing h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.w-lede { margin: 0; font-size: 1.15rem; color: var(--muted); }
.w-try { margin: 0; }
.w-stats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.w-stats li { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.w-stats b { font-size: 1.7rem; font-weight: 900; color: var(--sky-dd); }
.w-stats span { font-size: .9rem; color: var(--muted); line-height: 1.3; }
.w-band { padding: 48px 0 8px; }
.w-band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.w-band__head h2 { font-size: 1.8rem; }
.w-band__head p { margin: 0; }
.w-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.w-grid a { display: grid; grid-template-columns: 2.6em auto 1fr; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.w-grid a:hover { background: var(--paper-2); }
.w-grid [lang="ru"] { font-weight: 900; font-size: 1.05rem; }
.w-grid .w-muted { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-grid .w-num { font-size: .8rem; }

/* Word page */
.w-main { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.w-crumbs { font-size: .95rem; color: var(--muted); }
.w-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.w-hero__word { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.w-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.w-tag { font-size: .85rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.w-tag--band { background: var(--green-bg); color: var(--green-text); }
.w-hero h1 { font-size: clamp(3.4rem, 12vw, 6.5rem); line-height: 1; overflow-wrap: anywhere; }
.w-gloss { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: 1.5rem; }
.w-ipa { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.w-rank { flex: 1 1 280px; min-width: 0; border: 2px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 0 var(--line); }
.w-rank__label { font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.w-rank__num { font-size: 3.6rem; line-height: 1; font-weight: 900; color: var(--sky-dd); }

.w-scale { padding: 0 4px; }
.w-scale__bar { position: relative; height: 14px; border-radius: 999px; background: #EDF1F4; margin-top: 44px; }
.w-scale__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--green); }
.w-scale__mark { position: absolute; bottom: 22px; transform: translateX(-50%); white-space: nowrap; font-size: .85rem; font-weight: 900; color: #fff; background: var(--ink); border-radius: 8px; padding: 3px 9px; }
.w-scale__mark::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 14px; margin-left: -1.5px; background: var(--ink); }
.w-scale__ticks { position: relative; height: 22px; margin-top: 6px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.w-scale__ticks span { position: absolute; transform: translateX(-50%); }
.w-scale__ticks span:first-child { transform: none; }
.w-scale__ticks span:last-child { transform: translateX(-100%); }

.w-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.w-col-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.w-col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.w-cols h2, .w-near h2 { font-size: 1.5rem; margin-top: 8px; }
.w-senses { margin: 0; padding-left: 1.3em; font-size: 1.1rem; display: flex; flex-direction: column; gap: 6px; }
.w-ex { margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--paper-2); }
.w-ex p { margin: 0; font-size: 1.25rem; font-weight: 700; }
.w-ex b { color: var(--green-text); font-weight: 900; }
.w-ex figcaption { color: var(--muted); margin-top: 4px; }
.w-related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.w-related li { border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.w-related [lang="ru"] { font-weight: 900; }
.w-forms { list-style: none; margin: 0; padding: 0; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.w-forms li { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; gap: 12px; align-items: baseline; padding: 9px 14px; border-top: 1px solid var(--line); }
.w-forms li:first-child { border-top: none; }
.w-forms [lang="ru"] { font-weight: 900; font-size: 1.05rem; }
.w-forms .w-muted { font-size: .85rem; }
.w-table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: 16px; }
.w-table { width: 100%; border-collapse: collapse; }
.w-table th, .w-table td { text-align: left; padding: 8px 14px; border-top: 1px solid var(--line); }
.w-table thead th { border-top: none; background: var(--paper-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.w-table tbody th { font-weight: 700; color: var(--muted); }
.w-table td { font-weight: 900; }

.w-near ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.w-near a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: #F5F8FA; color: var(--ink); text-decoration: none; border: 2px solid transparent; }
.w-near a:hover { border-color: var(--line); }
.w-near a[aria-current="page"] { background: var(--paper-2); border-color: var(--sky-dd); }
.w-near [lang="ru"] { font-size: 1.2rem; font-weight: 900; }
.w-near .w-num { font-size: .8rem; }
.w-near .w-muted { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.w-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 24px; background: var(--paper-2); }
.w-cta > div:first-child { max-width: 580px; display: flex; flex-direction: column; gap: 8px; }
.w-cta h2 { font-size: 1.7rem; }
.w-cta p { margin: 0; color: var(--muted); }
.w-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.w-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; font-weight: 900; }
.w-pager a { text-decoration: none; }
.w-search-again { max-width: 640px; }

/* Footer */
.w-foot { border-top: 1px solid var(--line); background: #F7FAFC; padding: 32px 0 40px; font-size: .9rem; color: var(--muted); }
.w-foot p { margin: 0 0 10px; max-width: 820px; }

@media (max-width: 560px) {
  .w-search { flex-wrap: wrap; }
  .w-search input { flex-basis: 100%; }
  .w-search .w-btn { width: 100%; }
  .w-stats b { font-size: 1.35rem; }
  .w-rank__num { font-size: 3rem; }
  .w-cta { padding: 24px 20px; }
  .w-cta__btns .w-btn { width: 100%; }
  .w-scale__ticks .w-tick-500 { display: none; }
}
