:root {
  --chrome: rgba(0, 0, 0, 0.82);
  --chrome-solid: #111;
  --ink: #242424;
  --muted: #6e6e6e;
  --paper: rgba(255, 255, 255, 0.94);
  --paper-solid: #fff;
  --wash: #f2f2ef;
  --line: #dedbd5;
  --accent: #d66000;
  --accent-dark: #9d4300;
  --focus: #f0a83b;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #e9e8e4;
  color: var(--ink);
  font: 16px/1.58 "Open Sans", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(242, 242, 239, 0.96) 54rem),
    url("https://olegmenshikov.ru/wp-content/uploads/2014/10/moonzund.jpg") center top / cover no-repeat;
}

a {
  color: #2d5d7b;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--paper-solid);
  color: #000;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 3rem, 1160px);
  min-height: 66px;
  margin: 1.5rem auto 0;
  background: var(--chrome);
  color: #fff;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 230px;
  padding: 0.75rem 1.4rem;
  color: #fff;
  font: 700 2rem/0.92 "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  margin-top: 0.24rem;
  color: #bdbdbd;
  font: 700 0.82rem/1 "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
  text-transform: none;
}

.site-chrome nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.site-chrome nav a {
  display: flex;
  align-items: center;
  padding: 0 1.15rem;
  color: #bdbdbd;
  font: 700 0.83rem/1 "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
  text-decoration: none;
}

.site-chrome nav a:hover,
.site-chrome nav a:focus-visible {
  background: #000;
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: 560px;
  margin-top: -90px;
  padding: 8rem 1.5rem 3rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.1) 100%),
    url("https://olegmenshikov.ru/wp-content/uploads/2015/07/interview-1024x683.jpg") center / cover no-repeat;
}

.hero-content {
  align-self: end;
  width: min(100%, 1040px);
  margin: 0 auto;
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font: 700 0.82rem/1.2 "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.92;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 0.96;
  text-transform: uppercase;
}

h3 {
  font-size: 1.7rem;
  line-height: 1.04;
}

.lead {
  max-width: 760px;
  margin: 1.25rem 0 0;
  color: #e7e7e7;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.hero-actions a,
.filter-button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  padding: 0.58rem 0.78rem;
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.hero-actions a:hover,
.filter-button:hover,
.filter-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.stats-band,
.section,
.page-footer {
  width: min(100% - 3rem, 1160px);
  margin-inline: auto;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -2rem;
  background: var(--chrome-solid);
  color: #fff;
  box-shadow: var(--shadow);
}

.stats-band div {
  min-height: 100px;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid #333;
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  color: var(--accent);
  font: 700 2.5rem/1 "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
}

.stats-band span {
  color: #cfcfcf;
  font-size: 0.9rem;
}

.section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.7rem;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.answer-grid,
.group-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.answer-grid article,
.group-list a,
.work-card,
details {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
}

.answer-grid article {
  padding: 1.25rem;
}

.answer-grid p,
.work-card p {
  margin: 0.7rem 0 0;
}

.routes {
  display: grid;
  gap: 1.25rem;
}

.route-panel {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.route-copy {
  padding: 0.35rem 1rem 0.35rem 0;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.work-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  min-height: 150px;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  background: #222;
}

.work-card div {
  padding: 1rem 1rem 1rem 0;
}

.card-meta,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.group-list a {
  display: grid;
  min-height: 88px;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.group-list a:hover {
  border-color: var(--accent);
}

.group-list span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-button {
  border-color: #bbb;
  background: #fff;
  color: var(--ink);
}

.search-box {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-box input {
  min-height: 43px;
  width: 100%;
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 0 0.8rem;
  font: inherit;
}

.table-count {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.82rem 0.9rem;
  border-bottom: 1px solid #e9e6df;
  text-align: left;
  vertical-align: top;
}

th {
  background: #1f1f1f;
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

td span {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.85rem;
}

tr.is-key td:first-child strong,
tr.is-main-role td:first-child strong,
.year-note {
  color: var(--accent-dark);
}

.year-note {
  display: inline;
  margin-left: 0.35rem;
  border-bottom: 1px dotted currentColor;
  cursor: help;
}

tr.is-hidden {
  display: none;
}

.watch-note {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 1.5rem;
  align-items: start;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
}

.watch-note p:last-child {
  margin: 0;
  color: #e5e5e5;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

details {
  padding: 1rem 1.2rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.sources ul {
  columns: 2;
  padding-left: 1.2rem;
}

.sources li {
  margin-bottom: 0.45rem;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 3rem 2rem;
  padding: 1.1rem 1.4rem;
  background: var(--chrome);
  color: #ddd;
}

.page-footer p {
  margin: 0;
}

.page-footer a {
  color: #fff;
}

@media (max-width: 900px) {
  .site-chrome {
    position: relative;
    flex-direction: column;
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .site-chrome nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .site-chrome nav a {
    justify-content: center;
    min-height: 44px;
    padding: 0 0.4rem;
  }

  .hero {
    min-height: 590px;
    margin-top: -145px;
    padding-top: 9.25rem;
  }

  .stats-band,
  .section,
  .page-footer {
    width: calc(100% - 1rem);
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .section,
  .page-footer {
    padding: 1.25rem;
  }

  .section-head,
  .route-panel,
  .toolbar,
  .watch-note {
    grid-template-columns: 1fr;
  }

  .answer-grid,
  .group-list,
  .route-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand {
    min-width: 0;
    font-size: 1.65rem;
  }

  .site-chrome nav {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions a {
    width: auto;
    padding-inline: 0.45rem;
    text-align: center;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid #333;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-card img {
    height: 180px;
  }

  .work-card div {
    padding: 1rem;
  }

  .sources ul {
    columns: 1;
  }

  .page-footer {
    flex-direction: column;
  }
}
