@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/onest-latin.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;
}

:root {
  --ink: #181b19;
  --muted: #526057;
  --green: #238653;
  --mint: #e9f5eb;
  color: var(--ink);
  background: #fff;
  font-family: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-padding-top: 24px; }
::selection { color: var(--ink); background: var(--mint); }
.page-width { width: min(38rem, calc(100% - 48px)); margin-inline: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #185f3b; text-decoration-thickness: 2px; }
a:active { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 2px; }
p { margin: 0 0 1.1rem; }
strong { font-weight: 600; }
ul { padding-left: 1.3rem; margin: 0 0 1.1rem; }
li + li { margin-top: .75rem; }

.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: #fff; }
.skip-link:focus { top: 12px; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; margin-bottom: 30px; font-size: .875rem; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.125rem; font-weight: 700; }
h1, h2 { text-wrap: balance; font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1.25rem; max-width: 28ch; }
h2 { font-size: 1.375rem; line-height: 1.35; margin: 0 0 .8rem; scroll-margin-top: 24px; }
.lead { font-size: 1.125rem; line-height: 1.6; }
.opening-note { color: var(--muted); }
.contents { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 22px; margin-top: 26px; margin-bottom: 42px; font-size: .875rem; }
section + section { margin-top: 46px; }
.source { font-size: .875rem; color: var(--muted); }
.source-list li + li { margin-top: .6rem; }
.site-footer { margin-top: 52px; padding-block: 26px 36px; color: var(--muted); font-size: .8125rem; }
.site-footer p { margin-bottom: .65rem; }

@media (max-width: 600px) {
  :root { font-size: 16px; }
  .page-width { width: calc(100% - 36px); }
  .masthead { padding-block: 20px; margin-bottom: 28px; gap: 16px; }
  .masthead > a:last-child { max-width: 11ch; text-align: right; line-height: 1.4; }
  h1 { font-size: 1.75rem; }
  .lead { font-size: 1.0625rem; }
  .contents { gap: 12px 20px; margin-bottom: 34px; }
  section + section { margin-top: 36px; }
}
