/* =====================================================
   THE WOOD LIFE — screen.css
   ===================================================== */

/* ---- Design Tokens ---- */
:root {
    --color-bg:           #282C30;
    --color-surface:      #303438;
    --color-surface-2:    #3A3E42;
    --color-border:       #484C50;
    --color-text:         #F0F0F0;
    --color-text-muted:   #888888;
    --color-text-faint:   #444444;
    --color-accent:       #FF4500;
    --color-accent-dark:  #CC3700;
    --color-accent-glow:  rgba(255, 69, 0, 0.35);
    --color-accent-dim:   rgba(255, 69, 0, 0.12);
    --color-white:        #FFFFFF;

    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --header-height:   64px;
    --content-width:   1200px;
    --text-width:      740px;

    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ---- Layout Utilities ---- */
.section-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.accent { color: var(--color-accent); }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--header-height);
    transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, box-shadow 0.4s var(--ease-out);
}
.site-header.scrolled {
    background: rgba(40, 44, 48, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--color-border);
}
.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-image { height: 38px; width: auto; object-fit: contain; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 0.06em;
    color: var(--color-white);
    text-transform: uppercase;
}
.site-nav ul { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    position: relative;
    transition: color 0.2s;
}
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 1.5px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out);
}
.site-nav a:hover,
.site-nav a.active { color: var(--color-white); }
.site-nav a:hover::after,
.site-nav a.active::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 6px 0;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--color-text);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    height: 100svh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: -15% -5%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: opacity 1s ease;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(40, 44, 48, 0.25) 0%,
        rgba(40, 44, 48, 0.55) 45%,
        rgba(40, 44, 48, 0.88) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    max-width: 960px;
}
.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 12vw, 10.5rem);
    line-height: 0.9;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
}
.hero-title .accent { color: var(--color-accent); }
.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 300;
    color: rgba(240, 240, 240, 0.65);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}
.hero-cta {
    display: inline-block;
    padding: 0.9rem 2.75rem;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}
.hero-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 36px var(--color-accent-glow);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.6s forwards;
}
.hero-scroll-hint span {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.scroll-track {
    width: 1px;
    height: 52px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
    order: -1;
}
.scroll-thumb {
    position: absolute;
    top: -100%; left: 0;
    width: 1px; height: 100%;
    background: var(--color-accent);
    animation: scrollLine 2.2s ease-in-out infinite;
}

/* =====================================================
   SECTION COMMON
   ===================================================== */
.section-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-white);
    flex-shrink: 0;
}
.accent-bar {
    flex: 1;
    min-width: 40px;
    height: 1px;
    background: linear-gradient(to right, var(--color-accent) 0%, transparent 100%);
}
.accent-bar--center {
    flex: none;
    width: 80px;
    margin: 1.25rem auto 0;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

/* =====================================================
   RECENT POSTS SECTION
   ===================================================== */
.recent-posts-section {
    padding: clamp(4rem, 9vw, 8rem) 0;
}

/* =====================================================
   POST GRID & CARDS
   ===================================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}
.post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
}
.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--color-accent);
}
.post-card-image-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.post-card-image {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s var(--ease-out);
}
.post-card:hover .post-card-image { transform: scale(1.05); }
.post-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(40, 44, 48, 0.55) 0%, transparent 60%);
}
.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}
.post-card-tags { margin-bottom: 0.25rem; }
.post-card-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: color 0.2s;
}
.post-card-tag:hover { color: var(--color-accent-dark); }
.post-card-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1.05;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}
.post-card-title a { color: var(--color-white); transition: color 0.2s; }
.post-card-title a:hover { color: var(--color-accent); }
.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    color: var(--color-text-faint);
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.post-card-readtime::before { content: '· '; }

/* =====================================================
   VIEW ALL / BUTTONS
   ===================================================== */
.view-all-wrap { text-align: center; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2.25rem;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-sm);
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline svg {
    width: 18px; height: 18px;
    transition: transform 0.25s var(--ease-out);
    flex-shrink: 0;
}
.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}
.btn-outline:hover svg { transform: translateX(5px); }

.btn-accent {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn-accent:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--color-accent-glow);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 4rem;
    margin-top: 5rem;
}
.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem) 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}
.footer-logo { display: block; margin-bottom: 0.75rem; }
.footer-logo img { height: 32px; width: auto; opacity: 0.65; }
.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}
.footer-desc {
    font-size: 0.85rem;
    color: var(--color-text-faint);
    max-width: 280px;
    line-height: 1.6;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.8rem; text-align: right; }
.footer-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--color-accent); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
}
.footer-bottom-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-faint);
}
.footer-bottom a { color: var(--color-text-muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--color-accent); }

/* =====================================================
   POST PAGE
   ===================================================== */
.post-header--image .post-header-image-wrap {
    position: relative;
    height: 72vh;
    min-height: 520px;
    overflow: hidden;
}
.post-header-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.post-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(40, 44, 48, 0.2) 0%,
        rgba(40, 44, 48, 0.75) 65%,
        var(--color-bg) 100%
    );
}
.post-header-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding-bottom: clamp(2rem, 5vw, 4rem);
    padding-top: 2rem;
}
.post-header--no-image .post-header-no-image {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 3rem;
}
.post-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.post-tag:hover { color: var(--color-accent-dark); }
.post-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-white);
    max-width: 900px;
    margin-bottom: 1rem;
}
.post-excerpt {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(240, 240, 240, 0.65);
    max-width: 600px;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.post-dot { color: var(--color-accent); }

.post-content-wrap {
    max-width: var(--text-width);
    margin: 0 auto;
    padding: 3.5rem clamp(1.25rem, 5vw, 3rem) 5rem;
}

/* ---- Koenig editor width helpers (required by Ghost) ---- */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 2rem calc(50% - 42.5vw);
}
.kg-width-full {
    position: relative;
    width: 100vw;
    margin: 2rem calc(50% - 50vw);
}
.kg-width-wide img,
.kg-width-full img { width: 100%; height: auto; }

/* ---- Ghost content styles ---- */
.gh-content {
    font-size: 1.075rem;
    line-height: 1.8;
    color: rgba(240, 240, 240, 0.82);
}
.gh-content > * + * { margin-top: 1.5rem; }
.gh-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-white);
    margin-top: 3rem;
    line-height: 1;
}
.gh-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-white);
    margin-top: 2.5rem;
    line-height: 1;
}
.gh-content h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-top: 2rem;
}
.gh-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s;
}
.gh-content a:hover { color: var(--color-accent-dark); }
.gh-content strong { color: var(--color-white); font-weight: 600; }
.gh-content em { font-style: italic; }
.gh-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1.25rem 1.75rem;
    background: var(--color-surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    margin: 2rem 0;
}
.gh-content ul,
.gh-content ol {
    margin-left: 1.5rem;
    list-style: revert;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.gh-content img {
    border-radius: var(--radius-md);
    width: 100%;
    height: auto;
    margin: 2rem 0;
}
.gh-content figure { margin: 2.5rem 0; }
.gh-content figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-faint);
    margin-top: 0.5rem;
}
.gh-content code {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    padding: 0.15em 0.45em;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--color-accent);
}
.gh-content pre {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}
.gh-content pre code { background: none; border: none; padding: 0; color: var(--color-text); }
.gh-content hr {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 3rem 0;
}

/* Post footer */
.post-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.post-share { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.post-share-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    margin-right: 0.25rem;
}
.share-btn {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: border-color 0.2s, color 0.2s;
}
.share-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-tag-link {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: border-color 0.2s, color 0.2s;
}
.post-tag-link:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Related posts */
.related-posts {
    padding: 4rem 0 5rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}
.related-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 2.25rem;
}

/* =====================================================
   PAGE
   ===================================================== */
.page-header {
    padding: calc(var(--header-height) + 4.5rem) 0 3rem;
}
.page-tag-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-white);
    margin-bottom: 1rem;
}
.page-excerpt {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 560px;
    line-height: 1.6;
}
.page-image {
    max-width: var(--content-width);
    margin: 0 auto 3rem;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.page-image img { border-radius: var(--radius-lg); width: 100%; }
.page-content-wrap {
    max-width: var(--text-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem) 7rem;
}

/* =====================================================
   ARCHIVE — tag & author
   ===================================================== */
.archive-header {
    padding: calc(var(--header-height) + 5rem) 0 4rem;
    text-align: center;
}
.archive-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}
.archive-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.88;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-white);
    margin-bottom: 1rem;
}
.archive-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 0.75rem;
    line-height: 1.65;
}
.archive-count {
    font-size: 0.8rem;
    color: var(--color-text-faint);
    margin-bottom: 1.75rem;
}
.author-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.75rem;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-dim);
}
.archive-posts { padding: 0 0 6rem; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.pagination a {
    padding: 0.5rem 1.4rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, color 0.2s;
}
.pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* =====================================================
   ERROR PAGE
   ===================================================== */
.error-page {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 2rem) 0 2rem;
}
.error-page .section-inner { display: flex; flex-direction: column; align-items: center; }
.error-code {
    font-family: var(--font-display);
    font-size: clamp(7rem, 22vw, 16rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 0.5rem;
}
.error-message {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 1rem;
}
.error-desc {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    max-width: 400px;
}

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   KEYFRAMES
   ===================================================== */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes scrollLine {
    0%   { top: -100%; }
    45%  { top: 0%; }
    55%  { top: 0%; }
    100% { top: 100%; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 860px) {
    .post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-nav ul { text-align: left; }
    .footer-bottom-inner { flex-direction: column; gap: 0.25rem; }
}

@media (max-width: 680px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0; bottom: 0;
        background: rgba(40, 44, 48, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(101%);
        transition: transform 0.4s var(--ease-out);
        z-index: 199;
    }
    .site-nav.open { transform: translateX(0); }
    .site-nav ul { flex-direction: column; align-items: center; gap: 2.5rem; }
    .site-nav a { font-size: 1.1rem; letter-spacing: 0.12em; }

    .post-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .accent-bar { flex: none; width: 56px; }

    .hero-title { font-size: clamp(3.5rem, 16vw, 5.5rem); }
}

@media (max-width: 420px) {
    .hero-title { font-size: clamp(3rem, 18vw, 4.5rem); }
    .hero-cta { padding: 0.8rem 1.75rem; }
}
