﻿:root {
    --bg-page: #f5f7fb;
    --bg-hero: linear-gradient(135deg, #0f172a 0%, #1f2937 45%, #374151 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #f3f4f6;
    --bg-footer: #0f172a;
    --bg-footer-alt: #111c33;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-inverse: #f8fafc;
    --accent: #6b7280;
    --accent-strong: #374151;
    --border-soft: #e2e8f0;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.06);
    --shadow-card-hover: 0 22px 40px rgba(15, 23, 42, 0.12);
    --radius-lg: 28px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--accent);
}

img {
    /* width: 100%; */
    height: auto;
    display: block;
}

.maxwidth {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

.layout {
    background: var(--bg-page);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(245, 247, 251, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand__mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-hero);
    overflow: hidden;
}

.brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand__initials {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-inverse);
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand__title {
    font-size: 1.25rem;
    font-weight: 600;
}

.brand__tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.site-header__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem 1.5rem;
    font-size: 0.95rem;
}

.site-header__link {
    font-weight: 500;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-header__link:hover,
.site-header__link:focus {
    background: rgba(107, 114, 128, 0.12);
    color: var(--accent);
}

.site-main {
    flex: 1 0 auto;
    padding-bottom: 4rem;
}

.site-content {
    margin-top: 2.5rem;
}

.breadcrumbs {
    padding: 1.2rem 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumbs li::after {
    content: '/';
    margin-left: 0.75rem;
    color: rgba(148, 163, 184, 0.7);
}

.breadcrumbs li:last-child::after {
    content: none;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 500;
}

.hero {
    margin-top: 3rem;
    padding: 3.5rem clamp(1.5rem, 6vw, 4rem);
    border-radius: var(--radius-lg);
    background: var(--bg-hero);
    color: var(--text-inverse);
    display: grid;
    gap: 1.6rem;
    box-shadow: var(--shadow-soft);
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.72);
}

.hero__title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    margin: 0;
}

.hero__lead {
    margin: 0;
    max-width: 540px;
    color: rgba(248, 250, 252, 0.88);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero__cta {
    background: var(--text-inverse);
    color: var(--accent-strong);
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 0.2s ease;
}

.hero__cta:hover {
    transform: translateY(-2px);
}

.hero__link {
    color: var(--text-inverse);
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.35);
}

.hero__search,
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero__search {
    max-width: 520px;
}

.hero__search input,
.search-form input {
    width: 100%;
    border-radius: 999px;
    border: none;
    font: inherit;
    padding: 0.75rem 3.2rem 0.75rem 1.15rem;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.hero__search input {
    background: rgba(115, 123, 139, 0.18);
    color: var(--text-inverse);
}

.hero__search input::placeholder {
    color: rgba(248, 250, 252, 0.65);
}

.search-form input {
    background: rgba(241, 245, 249, 0.16);
    color: var(--text-inverse);
}

.search-form input::placeholder {
    color: rgba(248, 250, 252, 0.72);
}

.hero__search input:focus,
.search-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.25);
}

.search-button {
    position: absolute;
    right: 0.55rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--text-inverse);
    color: var(--accent-strong);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-button svg {
    width: 18px;
    height: 18px;
}

.search-button:hover,
.search-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.section-heading {
    margin-top: 3rem;
    display: grid;
    gap: 0.8rem;
}

.section-heading__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.section-heading__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.section-heading__lead {
    margin: 0;
    color: var(--text-secondary);
}

.post-feed {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-hover);
}

.post-card__image {
    aspect-ratio: 16 / 10;
    background: #1f2937;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    padding: 1.6rem;
    display: grid;
    gap: 0.9rem;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    align-items: center;
}

.post-card__category {
    font-weight: 600;
    color: var(--accent-strong);
}

.post-card__title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.post-card__excerpt {
    margin: 0;
    color: var(--text-secondary);
}

.post-card__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
}

.post-card__tags a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.18);
    color: var(--accent-strong);
    font-size: 0.75rem;
}

.empty-state {
    padding: 3rem;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.15);
}

.paginator {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.paginator ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.paginator li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--bg-card);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 0 0.8rem;
}

.article-layout {
    margin-top: 2.5rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.3fr);
    align-items: flex-start;
}

.article {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.article__media img {
    width: 100%;
    height: clamp(260px, 40vw, 420px);
    object-fit: cover;
}

.article__header {
    padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 1.5rem;
    display: grid;
    gap: 0.9rem;
}

.article__category {
    align-self: flex-start;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-strong);
}

.article__title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.1;
}

.article__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.article__tags a {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.28);
    color: var(--accent-strong);
    font-size: 0.75rem;
}

.article__content {
    padding: 0 0 clamp(2rem, 5vw, 3rem);
    font-size: 1.02rem;
}

.article__content > * {
    margin-inline: clamp(1.5rem, 4vw, 3rem);
}

.article__content img {
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}

.article__sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 1.5rem;
}

.article__sidebar .plugin {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.04);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.article__sidebar .plugin-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin: 0 0 0.6rem;
}

.article__sidebar .plugin-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer {
    background: var(--bg-footer);
    color: var(--text-inverse);
    padding: 4rem 0 2.5rem;
}

.site-footer__inner {
    display: grid;
    gap: 2.5rem;
}

.site-footer__brand {
    display: grid;
    gap: 0.8rem;
    max-width: 320px;
}

.site-footer__eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: rgba(248, 250, 252, 0.55);
}

.site-footer__copy {
    margin: 0;
    line-height: 1.5;
    color: rgba(248, 250, 252, 0.75);
}

.site-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.12);
    color: var(--text-inverse);
    font-weight: 600;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.site-footer__grid h4 {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
}

.site-footer__grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    color: rgba(248, 250, 252, 0.72);
}

.site-footer__grid li a:hover {
    color: var(--text-inverse);
}

.site-footer__meta {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.65);
}

.site-footer__meta a {
    color: inherit;
}

@media (max-width: 960px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article__sidebar {
        position: static;
    }

    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header__nav {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding: 2.5rem;
    }

    .hero__search,
    .search-form {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .site-header {
        position: static;
    }

    .post-card__body {
        padding: 1.25rem;
    }

    .article__header {
        padding: 1.75rem 1.5rem 1.25rem;
    }

    .article__content > * {
        margin-inline: 1.5rem;
    }
}
