/*
Theme Name: Omolink Blog
Author: Oozecode
Description: Blog. The same theme on blog.omolink.com and blog.machobb.com.
Version: 1.0.0
Text Domain: omoblog
*/

:root {
    --bg: #070707;
    --red: #f0c014;
    --ink: #f4f4f4;
    --muted: #a3a3a3;
    --line: #242424;
    --max: 1080px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Outfit, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

a { color: inherit; }

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

.wrap {
    width: min(var(--max), 100%);
    margin: 0 auto;
    padding: 8px 24px 64px;
}

.top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #000;
    border-bottom: 1px solid var(--line);
}

.bar {
    width: min(var(--max), 100%);
    margin: 0 auto;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "brand langs"
        "brand nav";
    align-items: center;
    gap: 12px 16px;
}

.brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.brand a { text-decoration: none; }

.brand .custom-logo-link { display: block; }

.brand .custom-logo,
.brand-logo {
    height: 96px;
    width: auto;
    max-width: none;
    display: block;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
}

.nav .ig a,
.nav .x a {
    display: flex;
    align-items: center;
    letter-spacing: 0;
    text-transform: none;
    line-height: 0;
    color: #fff;
}

.nav .ig svg,
.nav .x svg { width: 22px; height: 22px; display: block; fill: currentColor; }

.nav .x svg { width: 18px; height: 18px; }

.nav .ig span,
.nav .x span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav .ig a:hover,
.nav .x a:hover { color: var(--red); }

.nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.nav li { position: relative; list-style: none; }

.nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 6;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 220px;
    margin: 0;
    padding: 12px 14px;
    list-style: none;
    background: #000;
    border: 1px solid var(--line);
}

.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { display: flex; }

.nav a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav .current-menu-item a,
.nav .current_page_item a { color: var(--red); }

.nav { grid-area: nav; margin-left: 0; width: 100%; }

.langs {
    grid-area: langs;
    display: flex;
    gap: 12px;
    margin-left: 0;
    list-style: none;
}

.langs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.langs li { list-style: none; }

.langs a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.langs .current-lang a { color: var(--red); }

@media (max-width: 720px) {
    .bar { grid-template-columns: 1fr 1fr; }
    .brand { align-items: flex-start; align-self: center; width: 100%; }
    .brand a,
    .brand .custom-logo-link { display: block; width: 100%; }
    .brand .custom-logo,
    .brand-logo {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
    }
    .langs { align-self: end; justify-content: flex-end; width: 100%; }
    .langs ul { justify-content: flex-end; width: 100%; }
    .nav { align-self: start; }
    .nav > ul { justify-content: flex-end; width: 100%; gap: 8px 14px; }
    .nav .sub-menu {
        position: static;
        display: flex;
        min-width: 0;
        padding: 8px 0 0;
        border: 0;
        background: transparent;
    }
    .nav a { font-size: 14px; letter-spacing: 0.04em; }
}

@media (min-width: 721px) {
    .bar {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "brand nav langs";
        column-gap: 28px;
        align-items: center;
        padding: 12px 24px;
    }
    .brand { align-items: center; }
    .nav { min-width: 0; width: auto; justify-self: end; }
    .nav > ul { justify-content: flex-end; }
    .langs { margin-left: 22px; }
}

.lead {
    margin: 28px 0 20px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.post-shot { display: block; }

.post-shot img {
    width: 100%;
    border-radius: 8px;
}

.post-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

.post-card h2 a { text-decoration: none; }

.meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.excerpt { margin: 0; }

.entry a { color: var(--red); }

.navigation { margin-top: 28px; }

.navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-weight: 700;
}

.navigation a { text-decoration: none; }

.empty { color: var(--muted); }

.foot {
    border-top: 1px solid var(--line);
}

.foot-inner {
    padding-top: 20px;
    padding-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
}

.foot p { margin: 0; }

@media (min-width: 721px) {
    .post-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 22px;
    }
    .post-shot { flex: 0 0 280px; }
}
