@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-cyr.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-lat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2019, U+2026, U+2212;
}
@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-cyr.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-lat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2019, U+2026, U+2212;
}

:root {
  --wine: #7a2335;
  --wine-deep: #4a1421;
  --brass: #c9a24a;
  --brass-soft: #f1e6c8;
  --ink: #1f2328;
  --text: #2a2d33;
  --muted: #646a73;
  --page: #f3f4f1;
  --sheet: #ffffff;
  --line: #dddfd8;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", "Segoe UI", Roboto, Arial, sans-serif;
  --read: 42rem;
  --outer: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
}

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

a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--wine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.to-content {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 40;
  padding: .55rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
}
.to-content:focus { top: .8rem; }

/* top bar */
.topbar {
  background: var(--sheet);
  border-bottom: 4px solid var(--wine);
}
.topbar-in {
  max-width: var(--outer);
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: block; font: 700 1.35rem/1 var(--serif); white-space: nowrap; }
.brand-note { display: block; margin-top: .2rem; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.brand:hover { color: var(--ink); }

.menu-button { display: none; }

.primary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.3rem;
}
.primary-list a {
  display: block;
  padding: .45rem 0;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.primary-list a:hover { border-bottom-color: var(--line); }
.primary-list a[aria-current="page"] { color: var(--wine); border-bottom-color: var(--wine); }

@media (max-width: 960px) {
  .js .menu-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .85rem;
    font: 600 .95rem var(--sans);
    color: var(--ink);
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
  }
  .menu-glyph { position: relative; width: 16px; height: 12px; }
  .menu-glyph::before,
  .menu-glyph::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .menu-glyph::before { top: 1px; box-shadow: 0 4px 0 currentColor; }
  .menu-glyph::after { bottom: 1px; }
  .menu-button[aria-expanded="true"] .menu-glyph::before { top: 5px; box-shadow: none; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-glyph::after { bottom: 5px; transform: rotate(-45deg); }
  #primary-nav { flex-basis: 100%; }
  .js #primary-nav { display: none; }
  .js #primary-nav.is-shown { display: block; }
  .primary-list { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .primary-list li + li { border-top: 1px solid var(--line); }
  .primary-list a { padding: .75rem .25rem; border-bottom: 0; }
  .primary-list a[aria-current="page"] { padding-left: .8rem; box-shadow: inset 3px 0 0 var(--wine); }
}

/* hero */
.hero {
  background: var(--wine);
  background-image: linear-gradient(160deg, #8a2a3f 0%, #7a2335 45%, #5f1a2a 100%);
  color: #fff;
}
.hero-in {
  max-width: var(--read);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 2.2rem;
}
.trail ol {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: .9rem;
}
.trail li + li::before { content: "—"; margin: 0 .5rem; color: var(--brass-soft); }
.trail a { color: #fff; }
.trail [aria-current="page"] { color: var(--brass-soft); }
.hero h1 {
  margin: 0;
  font: 700 clamp(1.8rem, 1.2rem + 2.4vw, 2.75rem)/1.18 var(--serif);
  overflow-wrap: break-word;
}
.updated { margin: 1rem 0 0; font-size: .88rem; color: var(--brass-soft); }

/* reading area */
.read {
  max-width: var(--read);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3.5rem;
}
.read p { margin: 0 0 1.1rem; }
.read > p:first-child { font: 400 1.2rem/1.65 var(--serif); color: var(--ink); }
.read h2 {
  margin: 2.8rem 0 .9rem;
  font: 700 clamp(1.4rem, 1.15rem + 1vw, 1.85rem)/1.25 var(--serif);
  color: var(--ink);
}
.read h3 {
  margin: 1.9rem 0 .5rem;
  font: 700 1.15rem/1.35 var(--sans);
  color: var(--wine-deep);
}
.read ul,
.read ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.read li { margin-bottom: .45rem; }
.read li::marker { color: var(--brass); font-weight: 700; }

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

/* tables */
.table-wrap {
  margin: 1.6rem 0;
  overflow-x: auto;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 4px;
}
table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
caption {
  text-align: left;
  padding: .85rem 1rem .6rem;
  font: 700 1rem var(--serif);
  color: var(--ink);
  border-bottom: 3px solid var(--brass);
}
thead th {
  text-align: left;
  padding: .6rem 1rem;
  background: var(--brass-soft);
  color: var(--wine-deep);
  font-weight: 700;
  font-size: .88rem;
}
tbody th,
tbody td { padding: .65rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
tbody th { font-weight: 700; color: var(--ink); }

/* footer */
.bottom { background: var(--wine-deep); color: #e7d9dc; font-size: .93rem; }
.bottom-in {
  max-width: var(--outer);
  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;
}
.bottom-title { margin: 0 0 .4rem; font: 700 1.2rem var(--serif); color: #fff; }
.bottom p { margin: 0 0 .6rem; max-width: 34rem; }
.age-mark {
  display: inline-block;
  margin-right: .45rem;
  padding: 0 .45rem;
  border: 2px solid var(--brass);
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
}
.bottom-links { list-style: none; margin: 0; padding: 0; }
.bottom-links li { margin-bottom: .35rem; }
.bottom-links a { color: #fff; }
.bottom-copy {
  grid-column: 1 / -1;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .85rem;
  color: #c8b3b8;
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .read > p:first-child { font-size: 1.08rem; }
  .brand-note { display: none; }
  .bottom-in { grid-template-columns: 1fr; }
  table { font-size: .9rem; }
}
