@font-face {
    font-family: "Blog Gotham";
    src: url("../rbx2021/assets/15de880c4b-6eafc48312528e2515d622428b6b95cc-GothamSSm-Book.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Blog Gotham";
    src: url("../rbx2021/assets/5677a1093a-3c102ace52ea35b16da4383819acfa38-GothamSSm-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Blog Cyrillic";
    src: url("../rbx/fonts/source-sans-3-cyrillic.woff2") format("woff2");
    font-display: swap;
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
    color-scheme: dark;
    --blue: #009dff;
    --text-secondary: #cccdd3;
    --blog-background: #18191b;
    scroll-padding-top: 44px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding-top: 44px;
    color: #fff;
    background: #000;
    font: 16px/1.5 "Blog Gotham", "Blog Cyrillic", Arial, sans-serif;
    overflow-wrap: anywhere;
}

a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }
button, input { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.skip-to-content {
    position: fixed;
    z-index: 20;
    top: 4px;
    left: 8px;
    padding: 6px 12px;
    background: #000;
}

.skip-to-content:not(:focus) { clip-path: inset(50%); }

.blog-header {
    position: fixed;
    z-index: 10;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 25px;
    background: #000;
}

.blog-brand, .blog-header summary {
    display: grid;
    min-width: 44px;
    height: 44px;
    place-items: center;
}

.blog-brand img { display: block; width: 110px; height: auto; }
.blog-desktop-menu { display: none; }
.blog-language { position: relative; margin-left: auto; }
.blog-mobile-menu nav, .blog-language form {
    position: absolute;
    top: 100%;
    right: 0;
    width: max-content;
    min-width: 140px;
    max-width: calc(100vw - 24px);
    padding: 14px 0;
    background: #181818;
}

.blog-mobile-menu nav { min-width: min(210px, 100vw); padding: 28px 0; }

.blog-mobile-menu a, .blog-language button {
    display: block;
    text-align: left;
    width: 100%;
    padding: 9px 22px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 0;
    background: transparent;
}

.blog-header :is(a, button):is(:hover, [aria-current]) { color: var(--blue); }

.blog-mobile-menu summary span,
.blog-mobile-menu summary span::before,
.blog-mobile-menu summary span::after {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.blog-mobile-menu summary span { position: relative; }
.blog-mobile-menu summary span::before,
.blog-mobile-menu summary span::after { content: ""; position: absolute; left: 0; }
.blog-mobile-menu summary span::before { top: -6px; }
.blog-mobile-menu summary span::after { top: 6px; }

.blog-globe-icon {
    width: 17px;
    height: 17px;
    background: url("../rbx2021/assets/blog-globe-2021.png") center / contain no-repeat;
}

.hero-block {
    display: grid;
    place-items: center;
    height: 26vw;
    min-height: 432px;
    max-height: calc(100vh - 96px);
    background: linear-gradient(rgb(0 0 0 / 30%), rgb(0 0 0 / 30%)),
                url("../rbx2021/assets/blog-banner-2021.webp") center 90% / cover no-repeat;
}

.hero-block h1 {
    margin: 0;
    translate: 0 -12px;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-shadow: 0 0 30px #000;
}

.blog-content, .blog-post { background: var(--blog-background); }

.control {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: 20px;
    max-width: 460px;
    padding: 80px 25px 0;
    margin: 0 auto;
}

.blog-filter, .searchform { width: min(100%, 172px); position: relative; }

.blog-filter summary, .searchform input[type="search"] {
    width: 100%;
    min-height: 42px;
    padding: 5px 38px 5px 14px;
    border: 1px solid var(--blue);
    border-radius: 0;
    font-size: 13px;
    background: #000;
}

.blog-filter summary, .searchform input::placeholder {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.blog-filter summary { display: flex; align-items: center; }
.blog-filter summary::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 16px;
    width: 8px;
    height: 8px;
    border: solid var(--blue);
    border-width: 0 2px 2px 0;
    rotate: 45deg;
}

.blog-filter ul {
    position: absolute;
    z-index: 2;
    width: 100%;
    margin: 0;
    border: 1px solid var(--blue);
    border-top: 0;
    background: #000;
}

.blog-filter a { display: block; padding: 8px 14px; font-size: 13px; }
.blog-filter a:is(:hover, :focus-visible, [aria-current]) { background: #164462; }

.searchform button {
    position: absolute;
    inset: 1px 1px 1px auto;
    display: grid;
    width: 37px;
    place-items: center;
    color: var(--blue);
    background: #000;
    border: 0;
}

.blog-search-icon {
    position: relative;
    width: 13px;
    height: 13px;
    margin: -4px 4px 0 0;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.blog-search-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    top: 10px;
    left: 8px;
    rotate: 45deg;
    background: currentColor;
}

.news-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 42px 50px;
    width: 100%;
    max-width: 1300px;
    margin: 80px auto 0;
    padding: 0 25px 72px;
}

.news-list a { display: block; }

.img-holder, .blog-post-cover {
    overflow: hidden;
    background: #232527;
}

.img-holder { margin-bottom: 24px; }
.img-holder img, .blog-post-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.img-holder img { transition: transform .5s; }
.news-list a:hover img { transform: scale(1.05); }

.blurb h2 {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.blog-description { margin: 0 0 27px; color: var(--text-secondary); white-space: pre-wrap; }

.blog-meta { margin: 0; font-size: 12px; color: var(--blue); }
.blog-empty { margin: 0; padding: 80px 25px; text-align: center; color: var(--text-secondary); }
.blog-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 0 25px 72px; }
.blog-pager a, .blog-back { color: var(--blue); }
.blog-pager a:hover, .blog-back:hover { text-decoration: underline; }

.blog-post-cover { max-width: 1300px; margin: auto; }
.blog-post-cover img { max-height: 65vh; }
.blog-post-body { max-width: 900px; margin: 0 auto; padding: 42px 25px 70px; }
.blog-post-body h1 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 52px); line-height: 1.15; }
.blog-post-body .blog-meta { margin-bottom: 34px; }
.blog-post-body .blog-description { font-size: 18px; }
.blog-description a { color: var(--blue); text-decoration: underline; }

.blog-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 62px 25px 42px;
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
}

.blog-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.blog-footer a:hover { color: var(--blue); }

@media (min-width: 768px) {
    .blog-desktop-menu { display: flex; gap: 32px; margin-left: 51px; font-size: 12px; color: var(--text-secondary); }
    .blog-mobile-menu { display: none; }
    .blog-language { margin-right: 38px; }
    .hero-block { min-height: 332px; background-position: center; }
    .control { flex-wrap: nowrap; gap: 52px; }
    .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-list li:nth-child(-n+2) { grid-column: span 2; }
    .news-list li:nth-child(-n+2) h2 { font-size: 36px; }
}

@media (min-width: 968px) {
    .hero-block h1 { font-size: 60px; }
    .news-list { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 84px; }
    .news-list li { grid-column: span 2; }
    .news-list li:nth-child(-n+2) { grid-column: span 3; }
    .news-list li:nth-child(-n+2) .img-holder { margin-bottom: 40px; }
}

@media (max-width: 767px) {
    .control { display: grid; justify-items: center; }
    .blog-filter, .searchform { width: 172px; }
    .searchform input[type="search"] { font-size: 16px; }
}

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