@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-color: #081923;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --accent: #3498db;
    --accent-hover: #a8cedc;
    --font-main: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #222;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-track:hover {
    cursor: default;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
    cursor: default;
}

.action {
    background: none;
    border: none;
    text-decoration: none;
    font: inherit;
    color: inherit;
}

.action:hover {
    cursor: pointer;
    color: #a8cedc;
}

#share {
    cursor: pointer;
    margin-bottom: 10px;
}

.nobr {
    white-space: nowrap;
}

ul,
ol,
li {
    margin-bottom: 12px;
}

ul,
ol {
    padding-left: 26px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.post-nav .logo {
    height: 40px;
    width: 40px;
    transition: var(--transition);
}

.post-nav .logo:hover {
    opacity: 0.8;
}

.post-nav .back-link {
    margin: 0;
}

header {
    padding: 4rem 0 2rem;
    text-align: center;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #3498db 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p,
header h2 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 5rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.blog-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-header {
    margin-top: 2rem;
    max-width: 800px;
}

.post-header h1 {
    font-size: 3rem;
    margin: 1.5rem 0;
}

.post-hero {
    width: 100%;
    height: 500px;
    border-radius: 2rem;
    object-fit: cover;
    margin: 3rem 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content h2 {
    color: #fff;
    margin: 3rem 0 1.5rem;
    font-size: 2rem;
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
}

.post-content a:hover {
    color: var(--accent-hover);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-hover);
    transform: translateX(-4px);
}

footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .post-header h1 {
        font-size: 2.25rem;
    }

    .post-hero {
        height: 300px;
    }
}

.hide {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

#subpage {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #081923;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 100;
}

#subpage-content {
    max-width: 720px;
    width: 96%;
    margin: 0 auto;
    padding-top: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #fff;
}

#subpage-content header {
    text-align: center;
    padding: 2rem 0 1rem 0;
}

#subpage-content header h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0.8rem 0 0.6rem;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

#subpage-content h2 {
    margin: 1.5rem 0 0.5rem;
}

#subpage-content p,
#subpage-content ul,
#subpage-content li {
    margin-bottom: 12px;
}

#subpage-content ul {
    padding-left: 26px;
}

#subpage-content .indent {
    margin-left: 28px;
}

#subpage-close {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    padding: 5px;
    z-index: 101;
    background-color: #222;
    border-radius: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-subpage {
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#close-subpage:hover svg line {
    stroke: #fff;
}