/* ============================================================
   MrSked Ghost Theme — mrsked.css
   Inspired by the MrSked visual planner app
   Design tokens mirror the Next.js app design system
   ============================================================ */

/* ---- Design tokens ----------------------------------------- */
:root {
    /* Brand palette (matches MrSked Next.js app) */
    --brand-orange: #f15a3a;
    /* Primary CTA / navbar bg */
    --brand-orange-dark: #e14a2a;
    --brand-yellow: #f2b622;
    /* Accent / highlights */
    --brand-yellow-dark: #e1a51f;
    --brand-cream: #fef8ea;
    /* Subtle section backgrounds */
    --brand-navy: #152d52;
    /* Headings / dark text */
    --brand-navy-light: #566d8f;
    /* Secondary text */
    --brand-red: #fb390d;
    /* Accent emphasis */

    /* Neutral */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Typography */
    --font-primary: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --max-width: 1184px;
    --content-width: 720px;

    /* Spacing */
    --nav-height: 72px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);

    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --duration: 200ms;
}

/* ---- Reset & base ------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--brand-navy);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
    list-style: none;
}

/* ---- Utility ----------------------------------------------- */
.gh-canvas {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--brand-orange);
    height: var(--nav-height);
    box-shadow: 0 2px 8px rgba(241, 90, 58, .25);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
}

/* Logo */
.site-nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.3px;
    transition: opacity var(--duration) var(--ease);
}

.site-nav-logo:hover {
    opacity: .85;
}

.site-nav-logo img {
    height: 36px;
    width: auto;
}

.site-nav-logo-text {
    color: var(--white);
}

/* Navigation links */
.site-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}

.site-nav-links .nav,
.site-nav-links ul {
    display: flex;
    gap: 28px;
    align-items: center;
}

.site-nav-links a {
    color: var(--white);
    font-size: .95rem;
    font-weight: 600;
    opacity: .9;
    transition: opacity var(--duration) var(--ease);
}

.site-nav-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Actions */
.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-nav-search {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease);
    display: flex;
    align-items: center;
}

.site-nav-search:hover {
    background: rgba(255, 255, 255, .15);
}

.site-nav-btn {
    background: var(--white);
    color: var(--brand-orange);
    font-weight: 700;
    font-size: .9rem;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.site-nav-btn:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
}

/* Burger (mobile) */
.site-nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.site-nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 88vw);
    background: var(--white);
    z-index: 200;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--brand-navy);
    padding: 4px;
    line-height: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-navy);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-links a:hover {
    color: var(--brand-orange);
}

.mobile-subscribe {
    display: block;
    text-align: center;
    background: var(--brand-orange);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 199;
    display: none;
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.mobile-overlay.is-open {
    display: block;
    opacity: 1;
}

/* ============================================================
   BLOG HERO (index page)
   ============================================================ */
.blog-hero {
    position: relative;
    background: var(--brand-navy);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

/* Animated gradient background (like Next.js homepage) */
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(241, 90, 58, .45) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 80% 30%, rgba(242, 182, 34, .25) 0%, transparent 65%),
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(21, 45, 82, .8) 0%, transparent 60%);
    animation: hero-gradient-shift 8s ease-in-out infinite alternate;
}

@keyframes hero-gradient-shift {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: .85;
        transform: scale(1.04);
    }
}

/* Optional cover image overlay */
.blog-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .12;
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.blog-hero-content {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 80px 24px 88px;
    text-align: center;
}

.blog-hero-logo {
    height: 52px;
    width: auto;
    margin-inline: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.blog-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.blog-hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, .75);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 32px;
    line-height: 1.6;
}

.blog-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-orange);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    box-shadow: 0 4px 20px rgba(241, 90, 58, .5);
}

.blog-hero-btn:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(241, 90, 58, .55);
}

/* ============================================================
   POST FEED (index / archive listing)
   ============================================================ */
.post-feed-section {
    background: var(--white);
    padding: 64px 0 80px;
}

.post-feed-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
}

.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* ============================================================
   POST CARD
   ============================================================ */
.post-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.post-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}

.post-card:hover .post-card-image {
    transform: scale(1.04);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.post-card-content-link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-header {
    margin-bottom: 12px;
}

.post-card-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-orange);
    background: rgba(241, 90, 58, .08);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    margin-bottom: 10px;
}

.post-card-featured {
    margin-left: 6px;
    font-size: .8rem;
}

.post-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.35;
    transition: color var(--duration) var(--ease);
}

.post-card:hover .post-card-title {
    color: var(--brand-orange);
}

.post-card-excerpt {
    font-size: .9rem;
    color: var(--brand-navy-light);
    line-height: 1.65;
    margin-top: 8px;
    flex: 1;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.post-card-date,
.post-card-reading-time {
    font-size: .8rem;
    color: var(--gray-600);
}

/* Card without image gets an orange accent bar */
.post-card-no-image .post-card-content {
    padding-top: 28px;
    border-top: 4px solid var(--brand-orange);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
}

.pagination a {
    background: var(--brand-orange);
    color: var(--white);
    font-weight: 700;
    font-size: .9rem;
    padding: 10px 28px;
    border-radius: var(--radius-full);
    transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.pagination a:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-1px);
}

.pagination .page-number {
    font-size: .9rem;
    color: var(--brand-navy-light);
}

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.site-content {
    min-height: calc(100vh - var(--nav-height) - 280px);
}

.article {
    padding-bottom: 80px;
}

.article-header.gh-canvas {
    max-width: var(--content-width);
    padding-top: 60px;
    padding-bottom: 40px;
}

.article-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-pill {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-orange);
    background: rgba(241, 90, 58, .1);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    transition: background var(--duration) var(--ease);
}

.tag-pill:hover {
    background: rgba(241, 90, 58, .2);
}

.tag-featured {
    font-size: .8rem;
    font-weight: 700;
    color: var(--brand-yellow);
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: 1.15rem;
    color: var(--brand-navy-light);
    line-height: 1.65;
    margin-bottom: 28px;
}

/* Byline */
.article-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.byline-avatars {
    display: flex;
}

.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--white);
    margin-left: -8px;
    background: var(--brand-orange);
    color: var(--white);
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.byline-avatars .author-avatar:first-child {
    margin-left: 0;
}

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

.author-avatar-placeholder {
    background: var(--brand-orange);
    color: var(--white);
}

.byline-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .875rem;
    color: var(--brand-navy-light);
}

.byline-authors {
    font-weight: 600;
    color: var(--brand-navy);
}

.byline-sep {
    opacity: .4;
}

/* Feature image */
.article-image {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
    margin-bottom: 56px;
}

.article-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.article-image figcaption {
    margin-top: 12px;
    font-size: .85rem;
    color: var(--gray-600);
    text-align: center;
}

/* ---- Rich article body (Ghost Koenig card styles) ---------- */
.gh-content.gh-canvas {
    max-width: var(--content-width);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.gh-content>*+* {
    margin-top: 1.5em;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: var(--brand-navy);
    line-height: 1.3;
    letter-spacing: -.02em;
    font-weight: 700;
}

.gh-content h2 {
    font-size: 1.6rem;
    margin-top: 2.4em;
}

.gh-content h3 {
    font-size: 1.3rem;
    margin-top: 2em;
}

.gh-content h4 {
    font-size: 1.1rem;
    margin-top: 1.8em;
}

.gh-content a {
    color: var(--brand-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gh-content a:hover {
    color: var(--brand-orange-dark);
}

.gh-content p img {
    border-radius: var(--radius-md);
}

.gh-content blockquote {
    border-left: 4px solid var(--brand-orange);
    padding-left: 20px;
    color: var(--brand-navy-light);
    font-style: italic;
    font-size: 1.1rem;
    background: var(--brand-cream);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.gh-content pre {
    background: var(--brand-navy);
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: .875rem;
    line-height: 1.6;
}

.gh-content code {
    background: rgba(241, 90, 58, .08);
    color: var(--brand-red);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
}

.gh-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.gh-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-yellow) 100%);
    border-radius: 2px;
    opacity: .35;
    margin: 2.4em 0;
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.5em;
}

.gh-content ul {
    list-style: disc;
}

.gh-content ol {
    list-style: decimal;
}

.gh-content li+li {
    margin-top: .4em;
}

/* Ghost cards */
.kg-card {
    margin: 2em 0;
}

.kg-image-card img {
    border-radius: var(--radius-md);
    width: 100%;
}

.kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kg-callout-card {
    display: flex;
    gap: 16px;
    background: var(--brand-cream);
    border-left: 4px solid var(--brand-yellow);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.kg-video-card video {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ---- Required Koenig width helpers (GScan mandatory) ------- */
.kg-width-wide {
    position: relative;
    width: 85vw;
    max-width: 1100px;
    margin-left: calc(50% - min(42.5vw, 550px));
    margin-right: calc(50% - min(42.5vw, 550px));
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
}

/* ============================================================
   POST CTA (Subscribe after article)
   ============================================================ */
.post-cta {
    background: var(--brand-navy);
    position: relative;
    overflow: hidden;
    margin-top: 64px;
}

.post-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(241, 90, 58, .35) 0%, transparent 70%);
    pointer-events: none;
}

.post-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-inline: auto;
    padding: 72px 24px;
    text-align: center;
}

.post-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.post-cta p {
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    margin-bottom: 32px;
}

.post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-orange);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    box-shadow: 0 4px 20px rgba(241, 90, 58, .5);
}

.post-cta-btn:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(241, 90, 58, .55);
}

/* ============================================================
   READ MORE (end of post)
   ============================================================ */
.read-more-section {
    background: var(--gray-50);
    padding: 64px 0;
    border-top: 1px solid var(--gray-200);
}

.read-more-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
}

.read-more-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 32px;
    letter-spacing: -.02em;
}

.read-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ============================================================
   TAG / AUTHOR ARCHIVE HEADERS
   ============================================================ */
.tag-header,
.author-header {
    background: var(--brand-cream);
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-200);
}

.tag-header-inner,
.author-header-inner {
    padding-block: 0;
}

.tag-header-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .08;
}

.tag-header-content {
    position: relative;
    z-index: 1;
}

.tag-title,
.author-name {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.tag-description,
.author-bio {
    color: var(--brand-navy-light);
    font-size: 1rem;
    max-width: 560px;
    margin-bottom: 12px;
}

.tag-count,
.author-post-count {
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand-orange);
    background: rgba(241, 90, 58, .1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.author-header-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.author-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-orange);
    flex-shrink: 0;
}

.author-avatar-default {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--brand-cream);
    padding: 72px 0;
    border-top: 1px solid rgba(21, 45, 82, .1);
}

.site-footer-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 16px;
}

.footer-logo-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 1.5rem;
    color: var(--brand-navy);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 16px;
}

.footer-copy {
    font-size: .875rem;
    color: var(--brand-navy-light);
    margin-bottom: 12px;
}

.site-footer-links h4,
.site-footer-cta h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 16px;
}

.site-footer-links .nav,
.site-footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer-links a {
    font-size: .9rem;
    color: var(--brand-navy-light);
    transition: color var(--duration) var(--ease);
}

.site-footer-links a:hover {
    color: var(--brand-orange);
}

.site-footer-cta p {
    font-size: .9rem;
    color: var(--brand-navy-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-subscribe-btn {
    display: inline-flex;
    align-items: center;
    background: var(--brand-yellow);
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.footer-subscribe-btn:hover {
    background: var(--brand-yellow-dark);
    transform: translateY(-1px);
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
    padding: 120px 24px;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--brand-orange);
    line-height: 1;
    letter-spacing: -.04em;
    margin-bottom: 16px;
    opacity: .15;
}

.error-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 12px;
}

.error-desc {
    color: var(--brand-navy-light);
    font-size: 1rem;
    margin-bottom: 40px;
}

.error-btn {
    display: inline-flex;
    background: var(--brand-orange);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    transition: background var(--duration) var(--ease);
}

.error-btn:hover {
    background: var(--brand-orange-dark);
}

/* ============================================================
   ARTICLE COMMENTS
   ============================================================ */
.article-comments.gh-canvas {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .site-nav-links,
    .site-nav-actions {
        display: none;
    }

    .site-nav-burger {
        display: flex;
    }

    .blog-hero {
        min-height: 360px;
    }

    .blog-hero-content {
        padding: 60px 20px 68px;
    }

    .post-feed {
        grid-template-columns: 1fr;
    }

    .article-header.gh-canvas {
        padding-top: 40px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .author-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .post-feed {
        grid-template-columns: 1fr;
    }

    .read-more-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .post-cta-inner {
        padding: 48px 20px;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   SMOOTH SCROLL TRANSITIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

    .post-card,
    .site-nav-btn,
    .blog-hero-btn,
    .post-cta-btn,
    .footer-subscribe-btn {
        will-change: transform;
    }
}