@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-cyr.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-lat.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2019, U+2026, U+2212;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyr.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-lat.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2019, U+2026, U+2212;
}

:root {
  --ink: #1d1b3a;
  --ink-soft: #2a2852;
  --text: #24233a;
  --muted: #5d5c78;
  --teal: #0f7f86;
  --teal-dark: #0b6267;
  --saffron: #f0b429;
  --bg: #f4f5fa;
  --paper: #ffffff;
  --rule: #dcdeea;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --base: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --col: 43rem;
  --frame: 74rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.72 var(--base);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  padding: .55rem 1rem;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 700;
  border-radius: 4px;
}
.skip:focus { top: .75rem; }

/* masthead */
.masthead { background: var(--ink); color: #fff; }
.masthead-row {
  max-width: var(--frame);
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  text-decoration: none;
}
.logo img { width: 38px; height: 38px; flex-shrink: 0; }
.logo-word {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}
.logo:hover { color: #fff; }

.nav-toggle { display: none; }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.6rem;
}
.menu-list a {
  display: block;
  padding: .55rem 0;
  color: #d9d8ee;
  text-decoration: none;
  font-weight: 600;
  font-size: .96rem;
  box-shadow: inset 0 -2px 0 transparent;
}
.menu-list a:hover { color: #fff; box-shadow: inset 0 -2px 0 #6b69a3; }
.menu-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--saffron); }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .85rem;
    font: 700 .95rem var(--base);
    color: #fff;
    background: var(--ink-soft);
    border: 1px solid #45436f;
    border-radius: 6px;
    cursor: pointer;
  }
  .bars { display: grid; gap: 4px; }
  .bars span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .15s; }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  #menu { flex-basis: 100%; }
  .js #menu { display: none; }
  .js #menu.open { display: block; }
  .menu-list { flex-direction: column; border-top: 1px solid #3b3966; }
  .menu-list li + li { border-top: 1px solid #3b3966; }
  .menu-list a { padding: .8rem .2rem; box-shadow: none; }
  .menu-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--saffron); padding-left: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bars span { transition: none; }
}

/* article head */
.intro {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.intro-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 2rem;
}
.crumbs ol {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--muted);
}
.crumbs li + li::before { content: "›"; margin: 0 .5rem; color: #9a99b5; }
.crumbs a { color: var(--teal-dark); }
.intro h1 {
  margin: 0;
  padding-left: 1rem;
  border-left: 6px solid var(--teal);
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.12;
  color: var(--ink);
  overflow-wrap: break-word;
}
.stamp { margin: .9rem 0 0 1.4rem; font-size: .88rem; color: var(--muted); }

/* body copy */
.copy {
  max-width: var(--col);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.copy p { margin: 0 0 1.1rem; }
.copy > p:first-child { font-size: 1.15rem; line-height: 1.66; color: var(--ink); }
.copy h2 {
  margin: 2.9rem 0 .9rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  line-height: 1.2;
  color: var(--ink);
}
.copy h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: .55rem;
  background: var(--saffron);
}
.copy h3 {
  margin: 1.9rem 0 .5rem;
  font-size: 1.16rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--ink);
}
.copy ul,
.copy ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.copy li { margin-bottom: .45rem; }
.copy li::marker { color: var(--teal); font-weight: 800; }

figure { margin: 2rem 0; }
figure img { width: 100%; border-radius: 6px; background: #e2e3ee; }

/* tables */
.table-wrap {
  margin: 1.6rem 0;
  overflow-x: auto;
  background: var(--paper);
  border-top: 4px solid var(--teal);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 0 0 1px var(--rule);
}
table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
caption { text-align: left; padding: .8rem 1rem .5rem; font-weight: 800; color: var(--ink); }
thead th {
  text-align: left;
  padding: .6rem 1rem;
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid var(--rule);
}
tbody th,
tbody td { padding: .65rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--ink); }

/* footer */
.foot { background: var(--ink); color: #c7c6de; font-size: .93rem; }
.foot-inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 2.3rem 1.25rem 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.4rem 3rem;
}
.foot-name { margin: 0 0 .4rem; font-family: var(--head); font-size: 1.3rem; font-weight: 600; color: #fff; }
.foot p { margin: 0 0 .6rem; max-width: 34rem; }
.age {
  display: inline-block;
  margin-right: .45rem;
  padding: 0 .4rem;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 800;
  border-radius: 3px;
}
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: .35rem; }
.foot-links a { color: #fff; }
.foot-copy {
  grid-column: 1 / -1;
  padding-top: 1.1rem;
  border-top: 1px solid #3b3966;
  font-size: .85rem;
  color: #9a99b5;
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .copy > p:first-child { font-size: 1.06rem; }
  .foot-inner { grid-template-columns: 1fr; }
  table { font-size: .9rem; }
}
