/*
Theme Name: Zamacore Blog
Theme URI: https://zamacore.com/blog/
Author: Zama Systems LTD
Author URI: https://zamacore.com/
Description: A WordPress blog theme styled to match the Zamacore landing page UI.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zamacore-blog
Tags: blog, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
    --color-ink: #0f172a;
    --color-muted: #475569;
    --color-soft: #f8fafc;
    --color-line: #e2e8f0;
    --color-dark: #020617;
    --color-dark-2: #0f172a;
    --color-sky: #0369a1;
    --color-blue: #2563eb;
    --color-cyan: #06b6d4;
    --color-emerald: #10b981;
    --font-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-card: 0 12px 30px -22px rgba(15, 23, 42, 0.45);
    --shadow-card-hover: 0 20px 42px -24px rgba(14, 116, 144, 0.48);
    --radius-card: 1.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(191, 219, 254, 0.48) 0%, transparent 36%),
        radial-gradient(circle at 90% 22%, rgba(196, 181, 253, 0.28) 0%, transparent 30%),
        #f1f5f9;
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a:hover {
    color: var(--color-sky);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-ink);
    padding: 0.75rem 1rem;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.5);
}

.site-container {
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
}

.narrow-container {
    width: min(100% - 2rem, 54rem);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.75rem;
    gap: 1rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
    max-width: 13rem;
}

.site-brand__mark {
    display: inline-grid;
    place-items: center;
    width: 2.5rem !important;
    height: 2.5rem !important;
    max-width: 2.5rem !important;
    max-height: 2.5rem !important;
    flex: 0 0 2.5rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.8);
}

.site-brand__mark svg {
    display: block;
    width: 2rem;
    height: 2rem;
}

.site-brand__name {
    display: none;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.site-nav {
    display: none;
}

.site-nav__list,
.mobile-menu__list,
.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list {
    align-items: center;
    gap: 0.125rem;
}

.site-nav__list a {
    display: inline-flex;
    border-radius: 999px;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.75rem 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
    background: #f1f5f9;
    color: var(--color-ink);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-cta,
.mobile-menu__cta {
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.78rem 1.25rem;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover,
.mobile-menu__cta:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.28);
}

.menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

.menu-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-menu {
    border-top: 1px solid var(--color-line);
    background: #ffffff;
}

.mobile-menu .site-container {
    padding-block: 0.75rem 1rem;
}

.mobile-menu__list {
    display: grid;
    gap: 0.25rem;
}

.mobile-menu__list a {
    display: block;
    border-radius: 0.75rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.7rem 0.8rem;
}

.mobile-menu__list a:hover,
.mobile-menu__list .current-menu-item > a {
    background: #f1f5f9;
    color: var(--color-ink);
}

.mobile-menu__cta {
    display: flex;
    width: 100%;
    margin-top: 0.75rem;
}

.hero,
.blog-hero,
.single-hero,
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--color-dark);
    color: #f8fafc;
}

.blog-hero {
    background:
        radial-gradient(circle at 78% 24%, rgba(37, 99, 235, 0.32) 0%, transparent 32%),
        radial-gradient(circle at 16% 0%, rgba(16, 185, 129, 0.22) 0%, transparent 30%),
        linear-gradient(135deg, #020617 0%, #0f172a 55%, #061a25 100%);
}

.hero::before,
.single-hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -8rem;
    width: 26rem;
    height: 26rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.44) 0%, rgba(59, 130, 246, 0) 70%);
    pointer-events: none;
}

.hero::after,
.single-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -8rem;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.24) 0%, rgba(45, 212, 191, 0) 72%);
    pointer-events: none;
}

.blog-hero__inner,
.hero .site-container,
.single-hero__inner,
.page-hero .site-container {
    position: relative;
    z-index: 1;
    padding-block: 4.5rem;
}

.blog-hero h1,
.hero h1,
.single-hero h1,
.page-hero h1 {
    max-width: 58rem;
    margin: 1rem 0 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 4.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
}

.single-hero h1 {
    max-width: 54rem;
    font-size: clamp(2rem, 5vw, 4rem);
}

.blog-hero p,
.hero p,
.page-hero p {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(125, 211, 252, 0.42);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    color: #e0f2fe;
    padding: 0.28rem 0.78rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 700;
}

.breadcrumbs a {
    color: #e0f2fe;
    text-decoration: underline;
    text-decoration-color: rgba(224, 242, 254, 0.32);
    text-underline-offset: 0.2rem;
}

.breadcrumbs span[aria-current="page"] {
    max-width: min(36rem, 100%);
    overflow: hidden;
    color: #94a3b8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumbs__separator {
    color: #64748b;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    min-height: 2.8rem;
    padding: 0.8rem 1.25rem;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.35);
}

.btn.primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.btn.ghost {
    border-color: rgba(186, 230, 253, 0.6);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.section {
    position: relative;
    padding-block: 4rem;
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    border-bottom: 1px solid rgba(226, 232, 240, 0.45);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(248, 250, 252, 0.76) 100%);
    pointer-events: none;
}

.section > .site-container {
    position: relative;
    z-index: 1;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

.post-card,
.content-shell,
.sidebar-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(2px);
}

.post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card::before,
.content-shell::before,
.sidebar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: calc(100% - 3rem);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.86), rgba(14, 165, 233, 0.88));
}

.post-card:hover {
    border-color: rgba(186, 230, 253, 0.95);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.post-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e0f2fe;
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card__media img {
    transform: scale(1.035);
}

.post-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.9)),
        #0f172a;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 800;
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.post-card__meta,
.single-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.single-hero__meta {
    margin-top: 1.2rem;
    color: #cbd5e1;
}

.single-hero__meta a {
    color: #e0f2fe;
    text-decoration: underline;
    text-decoration-color: rgba(224, 242, 254, 0.45);
    text-underline-offset: 0.25rem;
}

.post-card h2 {
    margin: 0.75rem 0 0;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.18;
}

.post-card__excerpt {
    margin-top: 0.75rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.post-card__excerpt p {
    margin: 0;
}

.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(186, 230, 253, 0.95);
    border-radius: 999px;
    background: rgba(240, 249, 255, 0.9);
    color: #334155;
    padding: 0.28rem 0.78rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.post-card__link {
    color: var(--color-sky);
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.content-layout__sidebar {
    display: grid;
    align-content: start;
    gap: 1.25rem;
}

.sidebar-card {
    padding: 1.35rem;
}

.sidebar-card__title,
.sidebar-card h2 {
    margin: 0 0 0.9rem;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.sidebar-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-list a {
    color: #334155;
    font-weight: 700;
}

.sidebar-list a:hover {
    color: var(--color-sky);
}

.search-form {
    display: grid;
    gap: 0.65rem;
}

.search-field {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: #ffffff;
    color: var(--color-ink);
    outline: none;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.search-submit {
    border: 0;
    border-radius: 0.85rem;
    background: var(--color-dark-2);
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: 0.75rem 1rem;
}

.sidebar-cta {
    margin: 0;
}

.cta {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 41, 59, 0.8);
    border-radius: 2rem;
    background: var(--color-dark);
    padding: 1.5rem;
    color: #ffffff;
    box-shadow: 0 28px 56px -34px rgba(15, 23, 42, 0.95);
}

.cta::before {
    content: "";
    position: absolute;
    top: -8rem;
    right: -12rem;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(56, 189, 248, 0) 72%);
    pointer-events: none;
}

.cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: calc(100% - 3rem);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
}

.cta > * {
    position: relative;
    z-index: 1;
}

.cta h2,
.cta h3 {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
}

.cta p {
    margin: 0.75rem 0 1rem;
    color: #cbd5e1;
}

.featured-wrap {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 34rem;
    border: 1px solid rgba(226, 232, 240, 0.75);
    border-radius: 1.75rem;
    object-fit: cover;
    box-shadow: 0 28px 70px -44px rgba(15, 23, 42, 0.55);
}

.single-section {
    padding-top: 3rem;
}

.content-shell,
.article-content {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.article-content {
    color: #1e293b;
    font-size: 1.05rem;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content > *:last-child {
    margin-bottom: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--color-ink);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

.article-content h2 {
    margin-top: 2rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.article-content h3 {
    margin-top: 1.65rem;
    font-size: 1.35rem;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin-block: 1rem;
}

.article-content a {
    color: var(--color-sky);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(3, 105, 161, 0.28);
    text-underline-offset: 0.25rem;
}

.article-content blockquote {
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-cyan);
    border-radius: 1rem;
    background: #f0f9ff;
    color: #334155;
    padding: 1rem 1.25rem;
}

.article-content pre,
.article-content code {
    border-radius: 0.7rem;
    background: #0f172a;
    color: #e2e8f0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.article-content code {
    padding: 0.15rem 0.35rem;
}

.article-content pre {
    overflow-x: auto;
    padding: 1rem;
}

.article-content pre code {
    padding: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1.5rem;
    overflow: hidden;
    border-radius: 1rem;
}

.article-content th,
.article-content td {
    border: 1px solid var(--color-line);
    padding: 0.75rem;
    text-align: left;
}

.article-content th {
    background: #f1f5f9;
    color: var(--color-ink);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 800;
}

.article-tags a {
    display: inline-flex;
    border: 1px solid rgba(186, 230, 253, 0.95);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-sky);
    padding: 0.35rem 0.7rem;
}

.related-posts {
    margin-top: 1.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(1.25rem, 4vw, 1.6rem);
    box-shadow: var(--shadow-card);
}

.related-posts__head h2 {
    margin: 0.75rem 0 0;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0;
}

.related-posts__grid {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.related-card {
    border: 1px solid var(--color-line);
    border-radius: 1rem;
    background: #f8fafc;
    padding: 1rem;
}

.related-card h3 {
    margin: 0;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.related-card p {
    margin: 0.45rem 0 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.post-navigation a,
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-weight: 800;
    padding: 0.7rem 1rem;
}

.post-navigation a:hover,
.page-numbers:hover,
.page-numbers.current {
    border-color: #bae6fd;
    color: var(--color-sky);
}

.navigation.pagination {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.empty-state {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 2rem;
    background: #ffffff;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: var(--shadow-card);
}

.empty-state h2 {
    margin: 1rem 0 0;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
}

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

.comments-area {
    margin-top: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-card);
    background: #ffffff;
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: var(--shadow-card);
}

.comments-title,
.comment-reply-title {
    margin: 0 0 1rem;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
}

.comment-list {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
}

.comment-form input[type="submit"] {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: 0.8rem 1.25rem;
}

.site-footer {
    border-top: 1px solid var(--color-line);
    background: rgba(248, 250, 252, 0.82);
    color: var(--color-muted);
    padding-block: 2rem;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    display: grid;
    gap: 0.2rem;
}

.footer-brand strong {
    color: #1e293b;
}

.footer-links,
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.footer-menu li {
    list-style: none;
}

.copyright {
    color: #64748b;
}

.alignwide {
    margin-inline: max(-3rem, calc((760px - 100vw) / 2));
}

.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (min-width: 640px) {
    .site-brand__name {
        display: inline;
    }

    .header-cta {
        display: inline-flex;
    }

    .post-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-navigation div:last-child {
        text-align: right;
    }
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-posts__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-nav {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .content-layout {
        grid-template-columns: minmax(0, 1fr) 22rem;
        align-items: start;
    }

    .content-layout--article {
        grid-template-columns: minmax(0, 48rem) 22rem;
    }

    .blog-hero__inner,
    .hero .site-container,
    .single-hero__inner,
    .page-hero .site-container {
        padding-block: 5.75rem;
    }
}

@media (min-width: 1280px) {
    .site-container {
        width: min(100% - 4rem, 80rem);
    }
}

@media (max-width: 520px) {
    .site-container,
    .narrow-container {
        width: min(100% - 1.25rem, 80rem);
    }

    .blog-hero__inner,
    .hero .site-container,
    .single-hero__inner,
    .page-hero .site-container {
        padding-block: 3.5rem;
    }

    .hero-actions,
    .post-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .post-card__link {
        width: 100%;
    }

    .post-card__link {
        display: inline-flex;
        justify-content: center;
        border: 1px solid #bae6fd;
        border-radius: 999px;
        padding: 0.7rem 1rem;
    }
}
