@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --bg-950: #f6f9ff;
    --bg-900: #eef4fc;
    --bg-800: #e1ebf8;
    --ink-100: #111827;
    --ink-200: #243145;
    --ink-300: #3f4f66;
    --ink-inverse-100: #ffffff;
    --ink-inverse-200: #d8e3f2;
    --ink-inverse-300: #a9b9cf;
    --steel-400: #6b7280;
    --accent-500: #2563eb;
    --accent-600: #1d4ed8;
    --accent-700: #1b43b9;
    --container-width: 1220px;
    --content-width: 68ch;
    --radius-card: 1rem;
    --radius-panel: 1.25rem;
    --shadow-panel: 0 16px 38px -24px rgba(6, 18, 45, 0.38);
    --font-body: 'Source Sans 3', 'Segoe UI', 'Segoe UI Variable Text', Tahoma, Geneva, Verdana, sans-serif;
    --font-display: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    line-height: 1.55;
    color: var(--ink-100);
    background: radial-gradient(circle at 8% -8%, rgba(37, 99, 235, 0.16), transparent 42%),
        radial-gradient(circle at 92% 8%, rgba(29, 78, 216, 0.1), transparent 38%),
        linear-gradient(180deg, #f9fbff 0%, #edf4fc 100%);
}

a,
button,
input,
textarea {
    transition: all 0.2s ease;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: 0.015em;
}

h1,
h2 {
    font-family: var(--font-display);
    line-height: 1.04;
    letter-spacing: 0.02em;
}

h4,
h5,
h6 {
    font-family: var(--font-body);
    line-height: 1.25;
    letter-spacing: 0.01em;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-500), 0 0 0 4px var(--bg-900);
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    border-radius: 0.5rem;
    background: var(--accent-600);
    color: #ffffff;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0.6rem;
}

.site-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
}

.site-header .site-container {
    height: 4.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 2.35rem;
    width: auto;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 0.35rem 0.65rem;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--ink-300);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--ink-100);
}

.main-nav a[aria-current="page"] {
    color: var(--ink-100);
}

.shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    padding: 0.52rem 0.9rem;
    background: var(--accent-500);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.shop-link:hover {
    background: var(--accent-600);
}

.shop-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.shop-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #ffffff;
    color: var(--ink-200);
    text-decoration: none;
}

.shop-icon-link svg {
    width: 1rem;
    height: 1rem;
}

.shop-icon-link:hover {
    border-color: var(--accent-500);
    color: var(--accent-600);
}

.site-main {
    padding: 2rem 0 2.6rem;
}

.blog-hero {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-panel);
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-panel);
    margin-bottom: 1.35rem;
}

.blog-kicker {
    display: inline-block;
    margin: 0 0 0.7rem;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.1);
    border-radius: 0.5rem;
    padding: 0.3rem 0.7rem;
    color: var(--ink-200);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero h1 {
    margin: 0;
    color: var(--ink-100);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.blog-hero p {
    margin: 0.85rem 0 0;
    max-width: var(--content-width);
    color: var(--ink-300);
}

.posts-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.post-card {
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.11);
}

.post-card-link {
    text-decoration: none;
}

.post-card-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.post-card-content {
    padding: 1rem;
}

.post-card-title {
    margin: 0;
    font-size: 1.28rem;
    color: var(--ink-100);
    line-height: 1.15;
}

.post-card-date {
    display: block;
    margin-top: 0.5rem;
    color: var(--steel-400);
    font-size: 0.8rem;
}

.post-card-excerpt {
    margin: 0.45rem 0 0;
    color: var(--ink-300);
    font-size: 0.92rem;
}

.post-header {
    padding: 1.35rem 1.35rem 1.1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--bg-900);
}

.post h1,
.post-card h1 {
    margin: 0;
    color: var(--ink-100);
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    line-height: 1.06;
}

.post-meta {
    margin-top: 0.75rem;
    color: var(--ink-300);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.tag {
    text-decoration: none;
    border: 1px solid rgba(47, 107, 255, 0.35);
    background: rgba(47, 107, 255, 0.12);
    color: var(--ink-200);
    border-radius: 0.4rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.featured-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.post-content {
    padding: 1.35rem;
    color: var(--ink-200);
}

.post-content h2,
.post-content h3 {
    color: var(--ink-100);
}

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

.post-content blockquote {
    margin: 1.2rem 0;
    border-left: 3px solid var(--accent-500);
    padding-left: 0.9rem;
    color: var(--ink-200);
}

.post-content pre,
.post-content code {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.4rem;
}

.post-content pre {
    padding: 0.85rem;
    overflow-x: auto;
}

.post-content code {
    padding: 0.12rem 0.35rem;
}

.post-footer {
    padding: 1.35rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--bg-900);
}

.social-sharing h2,
.related-posts h2 {
    margin: 0 0 0.7rem;
    color: var(--ink-100);
    font-size: 1.45rem;
}

.social-buttons {
    display: flex;
    gap: 0.55rem;
}

.social-button {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.16);
    color: var(--ink-200);
    background: #ffffff;
}

.social-button:hover {
    background: var(--accent-500);
    color: #ffffff;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
}

.post-navigation a {
    text-decoration: none;
    color: var(--ink-200);
}

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

.related-posts {
    margin-top: 1.4rem;
}

.related-posts-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.related-post-card {
    border-radius: 0.8rem;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.related-post-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.related-post-content {
    padding: 0.8rem;
}

.related-post-title {
    margin: 0;
    color: var(--ink-100);
    font-size: 1rem;
}

.related-post-date {
    margin: 0.5rem 0 0;
    color: var(--steel-400);
    font-size: 0.8rem;
}

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #0d1626;
    margin-top: 1.8rem;
    padding: 1.8rem 0 1rem;
}

.footer-content {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-title,
.site-footer h4 {
    margin: 0;
    color: var(--ink-inverse-100);
}

.footer-description,
.site-footer p,
.site-footer a {
    color: var(--ink-inverse-300);
    text-decoration: none;
    font-size: 0.92rem;
}

.site-footer a:hover {
    color: var(--ink-inverse-100);
}

.site-footer ul {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
}

.site-footer li+li {
    margin-top: 0.35rem;
}

.footer-bottom {
    border-top: 1px solid rgba(169, 185, 207, 0.25);
    margin-top: 1.1rem;
    padding-top: 0.8rem;
    text-align: center;
}

@media (max-width: 960px) {
    .main-nav {
        display: none;
    }

    .site-main {
        padding-top: 1.1rem;
    }

    .site-header .site-container {
        height: auto;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .shop-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .shop-actions {
        gap: 0.35rem;
    }

    .shop-icon-link {
        width: 2.2rem;
        height: 2.2rem;
    }
}

@media (max-width: 640px) {
    .logo-image {
        height: 2.2rem;
    }

    .blog-hero {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .blog-hero h1 {
        font-size: 1.7rem;
    }

    .post-header,
    .post-content,
    .post-footer {
        padding: 1rem;
    }

    .post-navigation {
        flex-direction: column;
    }

    .social-buttons {
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}