:root,
:after,
:before {
  --color-white: hsl(0, 0%, 100%);
  --color-primary: hsl(220, 100%, 68%);
  --color-secondary: hsl(31, 92%, 62%);
  --color-prism-background: hsl(240, 1%, 92%);
  --color-typographic-base-font: hsl(220, 17%, 17%);
  --color-typographic-link-p-font: hsl(220, 100%, 68%);
  --color-typographic-link-s-font: hsl(31, 92%, 62%);
  --color-page-border: hsl(240, 1%, 92%);
  --color-page-background: hsl(0, 0%, 100%);
  --color-sidebar-border: hsl(240, 1%, 92%);
  --color-sidebar-border-fade: hsl(0, 0%, 100%);
  --color-contacts-border: hsl(240, 1%, 92%);
  --color-button-border: hsl(240, 1%, 92%);
  --color-button-color: hsl(220, 17%, 17%);
  --color-theme-switcher: hsl(220, 17%, 30%);
  --color-theme-switcher-hover: hsl(220, 100%, 68%);
}

:root.dark,
.dark *:after,
.dark *:before {
  --color-white: hsl(0, 0%, 100%);
  --color-primary: hsl(220, 100%, 68%);
  --color-secondary: hsl(31, 92%, 62%);
  --color-prism-background: hsl(220, 17%, 12%);
  --color-typographic-base-font: hsl(0, 0%, 100%);
  --color-typographic-link-p-font: hsl(220, 100%, 68%);
  --color-typographic-link-s-font: hsl(31, 92%, 62%);
  --color-page-border: hsl(220, 17%, 30%);
  --color-page-background: hsl(220, 17%, 17%);
  --color-sidebar-border: hsl(220, 17%, 30%);
  --color-sidebar-border-fade: hsl(220, 17%, 17%);
  --color-contacts-border: hsl(220, 17%, 30%);
  --color-button-border: hsl(220, 17%, 30%);
  --color-button-color: hsl(0, 0%, 100%);
  --color-theme-switcher: hsl(240, 1%, 92%);
  --color-theme-switcher-hover: hsl(220, 100%, 68%);
}

html {
  font-size: 100;
}

body {
  background: var(--color-page-background);
  color: var(--color-typographic-base-font);
  font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.625;
  margin: 0 0 0 calc(100vw - 100%);
  text-rendering: optimizelegibility;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

h2,
h1,
h3,
h4,
h5,
h6 {
  font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  font-weight: 600;
}

h1 {
  font-size: 40px;
  line-height: 52px;
  margin-top: 104px;
  margin-bottom: 26px;
}

h2 {
  font-size: 27px;
  line-height: 39px;
  margin-top: 52px;
  margin-bottom: 13px;
}

h3 {
  font-size: 22px;
  line-height: 26px;
  margin-top: 52px;
  margin-bottom: 13px;
}

h4 {
  font-size: 19.2px;
  line-height: 26px;
  margin-top: 39px;
  margin-bottom: 13px;
}

h5 {
  font-size: 16px;
  line-height: 26px;
  margin-top: 65px;
  margin-bottom: 13px;
}

h6 {
  font-size: 16px;
  line-height: 26px;
  margin-top: 65px;
  margin-bottom: 13px;
}

img {
  border: 0;
  display: block;
  max-width: 100%;
}

hr {
  background-image: linear-gradient(to bottom, transparent 1px, transparent 11px, hsl(220, 17%, 17%) 11px, hsl(220, 17%, 17%) 15px, transparent 15px, transparent 26px);
  background-size: 100% 26px;
  border: 0;
  color: var(--color-typographic-base-font);
  display: block;
  height: 26px;
  margin: 52px auto;
  width: 100px;
}

a {
  color: var(--color-typographic-link-p-font);
  text-decoration: none;
}
a:hover, a:focus, a:active {
  color: var(--color-typographic-link-s-font);
}

b,
strong {
  font-weight: 600;
}

ul {
  list-style: square;
  margin-bottom: 26px;
}
ul li {
  margin-bottom: 10px;
  padding: 0 5px;
}

p {
  line-height: 26px;
  margin-bottom: 26px;
}

blockquote {
  font-style: italic;
  padding: 0;
  text-align: center;
}

figure {
  display: block;
  height: auto;
  width: 100%;
}

figcaption {
  line-height: 19.5px;
  margin-top: 6.5px;
  color: var(--color-typographic-base-font);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 0;
  text-align: center;
}

@media screen and (min-width: 685px) {
  figure.float-left,
  figure.float-right {
    max-width: 310px;
    padding: 0px 26px 0px;
  }
  .float-right {
    float: right;
  }
  .float-left {
    float: left;
  }
}
code[class*=language-],
pre[class*=language-] {
  color: #657b83;
  font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
  font-size: 1em;
  -ms-hyphens: none;
  -moz-hyphens: none;
  -webkit-hyphens: none;
  hyphens: none;
  line-height: 1.5;
  -o-tab-size: 4;
  -moz-tab-size: 4;
  tab-size: 4;
  text-align: left;
  white-space: pre;
  word-break: normal;
  word-spacing: normal;
  word-wrap: normal;
}

pre[class*=language-] {
  border-radius: 0.3em;
  margin: 0.5em 0;
  overflow: auto;
  padding: 1em;
}

:not(pre) > code[class*=language-],
pre[class*=language-] {
  background-color: var(--color-prism-background);
}

:not(pre) > code[class*=language-] {
  border-radius: 0.3em;
  padding: 0.1em;
}

code[class*=language-] ::-moz-selection,
code[class*=language-]::-moz-selection,
pre[class*=language-] ::-moz-selection,
pre[class*=language-]::-moz-selection {
  background: #073642;
}

code[class*=language-] ::selection,
code[class*=language-]::selection,
pre[class*=language-] ::selection,
pre[class*=language-]::selection {
  background: #073642;
}

.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
  color: #93a1a1;
}

.token.punctuation {
  color: #586e75;
}

.namespace {
  opacity: 0.7;
}

.token.boolean,
.token.constant,
.token.deleted,
.token.number,
.token.property,
.token.symbol,
.token.tag {
  color: #268bd2;
}

.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string,
.token.url {
  color: #2aa198;
}

.token.entity {
  background: #eee8d5;
  color: #657b83;
  cursor: help;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #859900;
}

.token.class-name,
.token.function {
  color: #b58900;
}

.token.regex,
.token.important,
.token.variable {
  color: #cb4b16;
}

.token.bold,
.token.important {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.layout {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  max-width: 1070px;
}

.page {
  margin-bottom: 52px;
}
.page .inner {
  padding: 26px 19.5px 0px;
}
.page .title {
  font-size: 40px;
  font-weight: 600;
  line-height: 52px;
  margin-top: 0px;
  margin-bottom: 37.7px;
}
.page .body {
  font-size: 16px;
  line-height: 26px;
  margin: 0px 0px 26px;
}

@media screen and (min-width: 685px) {
  .page {
    width: 58.3333333333%;
  }
  .page .inner {
    padding: 32.5px 19.5px 0px;
  }
}
@media screen and (min-width: 960px) {
  .page {
    width: 66.6666666667%;
  }
  .page .inner {
    padding: 39px 26px 0px;
  }
}
.feed .item {
  margin-bottom: 32.5px;
}
.feed .item:last-child {
  margin-bottom: 13px;
}
.feed .item .title {
  font-size: 27px;
  line-height: 39px;
  margin-top: 0px;
  margin-bottom: 13px;
}
.feed .item .title .link {
  color: var(--color-typographic-base-font);
}
.feed .item .title .link:hover, .feed .item .title .link:focus {
  border-bottom: 1px solid hsl(220, 17%, 17%);
  color: var(--color-typographic-base-font);
}
.feed .item .description {
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 19.5px;
}
.feed .item .meta .time {
  color: var(--color-typographic-base-font);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.feed .item .meta .divider {
  margin: 0px 13px;
}
.feed .item .meta .category .link {
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.feed .item .meta .category .link:hover, .feed .item .meta .category .link:focus {
  color: hsl(220, 100%, 68%);
}
.feed .item .more {
  color: var(--color-primary);
  font-size: 16px;
}
.feed .item .more:hover, .feed .item .more:focus {
  border-bottom: 1px solid hsl(220, 100%, 68%);
  color: var(--color-primary);
}

.pagination {
  display: flex;
  margin-top: 52px;
}
.pagination .previous {
  text-align: left;
  width: 50%;
}
.pagination .previous .previous-link {
  color: var(--color-secondary);
  font-size: 26px;
  font-weight: bold;
}
.pagination .previous .previous-link:hover, .pagination .previous .previous-link:focus {
  color: var(--color-primary);
}
.pagination .previous .previous-link.disable {
  color: hsl(220, 17%, 30%);
  pointer-events: none;
}
.pagination .next {
  text-align: right;
  width: 50%;
}
.pagination .next .next-link {
  color: var(--color-secondary);
  font-size: 26px;
  font-weight: bold;
}
.pagination .next .next-link:hover, .pagination .next .next-link:focus {
  color: var(--color-primary);
}
.pagination .next .next-link.disable {
  color: hsl(220, 17%, 30%);
  pointer-events: none;
}

.post .content {
  margin: 0px auto;
}
.post .footer {
  max-width: 640px;
  padding: 0px 13px;
  margin: 0px auto;
}
.post .comments {
  max-width: 640px;
  padding: 0px 13px;
  margin: 0px auto;
}
.post .buttons {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 26px 0px 0px;
}
.post .buttons .button-articles {
  margin: 0px 13px 0px 0px;
}

@media screen and (min-width: 960px) {
  .post .footer {
    padding: 0px;
  }
  .post .comments {
    padding: 0px;
  }
  .post .buttons {
    left: 30px;
    max-width: none;
    position: fixed;
    top: 30px;
    margin: 0px 13px 0px 0px;
  }
}
.post-meta .date {
  font-style: italic;
}

.post-author {
  border-top: 1px solid var(--color-page-border);
  max-width: 640px;
  padding-top: 26px;
  line-height: 26px;
  margin-top: 26px;
  margin-bottom: 52px;
}
.post-author .bio .twitter {
  display: block;
  text-decoration: underline;
}
.post-author .bio .twitter:hover, .post-author .bio .twitter:focus {
  color: var(--color-typographic-link-s-font);
}

@media screen and (min-width: 685px) {
  .post-author {
    margin-left: auto;
    margin-right: auto;
  }
}
.post-content {
  margin: 0px auto;
  max-width: 945px;
  padding: 0px 13px;
}
.post-content .title {
  font-size: 32px;
  font-weight: 600;
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
  text-align: center;
  line-height: 42.9px;
  margin-top: 26px;
  margin-bottom: 0px;
}
.post-content .body figure {
  margin-bottom: 26px;
}
.post-content .body figure blockquote {
  font-style: italic;
  text-align: center;
  margin-top: 0px;
  padding: 26px 0px;
}
.post-content .body figure blockquote p {
  font-size: 26.9072px;
  max-width: 640px;
  margin-top: 0px;
  margin-bottom: 26px;
  line-height: 39px;
}
.post-content .body a {
  text-decoration: underline;
}
.post-content .body * {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}
.post-content .body h2 > a {
  visibility: hidden;
}
.post-content .body h2 > a > svg {
  fill: var(--color-typographic-base-font);
}
.post-content .body img {
  max-width: 100%;
}

@media screen and (min-width: 960px) {
  .post-content {
    padding: 0px;
  }
  .post-content .title {
    font-size: 48px;
    line-height: 58.5px;
    margin-top: 58.5px;
    margin-bottom: 39px;
  }
  .post-content .body {
    font-size: 18px;
    line-height: 29.25px;
    margin-bottom: 29.25px;
  }
  .post-content .body p {
    font-size: 18px;
    line-height: 29.25px;
    margin-bottom: 29.25px;
  }
  .post-content .body h2 > a {
    visibility: unset;
    padding-right: 13px;
  }
}
.post-tags {
  margin-bottom: 13px;
}
.post-tags .list {
  list-style: none;
  padding: 0px;
}
.post-tags .list .item {
  display: inline-block;
  margin: 6.5px 0px;
}
@media screen and (min-width: 685px) {
  .post-tags .list .item:first-child {
    margin-left: 0px;
    padding-left: 0px;
  }
}

.sidebar {
  width: 100%;
}
.sidebar .inner {
  padding: 26px 19.5px 0px;
  position: relative;
}
.sidebar .inner:after {
  background: var(--color-sidebar-border);
  background: linear-gradient(to bottom, var(--color-sidebar-border) 0%, var(--color-sidebar-border) 48%, var(--color-sidebar-border-fade) 100%);
}

@media screen and (min-width: 685px) {
  .sidebar {
    width: 41.6666666667%;
  }
  .sidebar .inner {
    padding: 32.5px 19.5px 0px;
  }
  .sidebar .inner:after {
    bottom: 0;
    content: "";
    height: 540px;
    position: absolute;
    right: -10px;
    top: 30px;
    width: 1px;
  }
}
@media screen and (min-width: 960px) {
  .sidebar {
    width: 33.3333333333%;
  }
  .sidebar .inner {
    padding: 39px;
  }
}
.sidebar-author .photo {
  background-clip: padding-box;
  border-radius: 50%;
  display: inline-block;
  height: 75px;
  width: 75px;
  margin-bottom: 0px;
}
.sidebar-author .photo img {
  border-radius: 50%;
}
.sidebar-author .title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  line-height: 29.25px;
}
.sidebar-author .title .link {
  color: var(--color-typographic-base-font);
}
.sidebar-author .title .link:hover, .sidebar-author .title .link:focus {
  color: var(--color-typographic-base-font);
}
.sidebar-author .subtitle {
  color: hsl(220, 17%, 57%);
  line-height: 26px;
  margin-bottom: 26px;
}
.sidebar-author .title-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 13px 0px 13px;
}

.sidebar-menu {
  margin-bottom: 26px;
}
.sidebar-menu .list {
  list-style: none;
  margin: 0px;
  padding: 0px;
}
.sidebar-menu .list .item {
  margin: 13px 0px;
  padding: 0px;
}
.sidebar-menu .list .item .link {
  border: 0;
  color: var(--color-typographic-base-font);
  font-size: 16px;
  font-weight: normal;
}
.sidebar-menu .list .item .link:hover, .sidebar-menu .list .item .link:focus {
  border-bottom: 1px solid hsl(220, 100%, 68%);
  color: hsl(220, 100%, 68%);
}
.sidebar-menu .list .item .link.active {
  border-bottom: 1px solid var(--color-typographic-base-font);
  color: var(--color-typographic-base-font);
}

.sidebar-contacts {
  margin-bottom: 26px;
}
.sidebar-contacts .list {
  display: flex;
  flex-flow: row wrap;
  flex-grow: 0;
  flex-shrink: 0;
  list-style: none;
  max-width: 165px;
  padding: 0px;
  margin: 13px 0px;
}
.sidebar-contacts .list .item {
  align-content: center;
  align-items: center;
  border: 1px solid var(--color-contacts-border);
  border-radius: 50%;
  display: flex;
  height: 40px;
  justify-content: center;
  line-height: 40px;
  text-align: center;
  width: 40px;
  padding: 0px;
  margin: 6.5px;
}
.sidebar-contacts .list .item:nth-child(3n+1) {
  margin-left: 0px;
}
.sidebar-contacts .list .item .link {
  border: 0;
  color: var(--color-typographic-base-font);
  cursor: pointer;
  display: flex;
}
.sidebar-contacts .list .item .link:hover, .sidebar-contacts .list .item .link:focus {
  color: var(--color-typographic-link-p-font);
}

.sidebar-copyright {
  color: hsl(220, 17%, 57%);
  font-size: 14px;
}

.button {
  border: 1px solid var(--color-button-border);
  border-radius: 20px;
  color: var(--color-button-color);
  display: inline-block;
  font-size: 16px;
  font-weight: normal;
  height: 40px;
  line-height: 40px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-decoration: none;
  padding: 0px 26px;
}
.button:hover, .button:focus {
  color: hsl(220, 100%, 68%);
}

.icon {
  display: inline-block;
  fill: currentcolor;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  height: 1em;
  line-height: 1em;
  speak: none;
  stroke: currentcolor;
  stroke-width: 0;
  text-align: center;
  text-transform: none;
  width: 1em;
}

.theme-switcher {
  --color: var(--color-theme-switcher);
}
.theme-switcher .button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  outline: 0;
}
.theme-switcher .button svg {
  pointer-events: none;
  stroke: var(--color);
  transition: stroke 400ms;
}
.theme-switcher .button:hover {
  --color: var(--color-theme-switcher-hover);
}
.theme-switcher .moon {
  opacity: 0;
  stroke-dasharray: 0 1px;
  transition: stroke-dasharray 200ms ease-in, opacity 400ms ease-in;
}
.theme-switcher .sun {
  opacity: 1;
  stroke-dasharray: 1px 1px;
  transition: stroke-dasharray 200ms ease-in, opacity 400ms ease-in;
}
.dark .theme-switcher .moon {
  opacity: 1;
  stroke-dasharray: 1px 1px;
}
.dark .theme-switcher .sun {
  opacity: 0;
  stroke-dasharray: 0 1px;
}