/* ==========================================================================
   Laconic 2.0 — Journal-style theme for "I'm Not Anthony"
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400;1,6..72,500&family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&display=swap');

/* ---------- Custom Properties ---------- */
:root {
    --font-body: 'Newsreader', 'Georgia', serif;
    --font-mono: 'IBM Plex Mono', 'Menlo', monospace;
    --color-bg: #faf9f7;
    --color-text: #1a1a1a;
    --color-text-muted: #7a7672;
    --color-text-faint: #b0aca6;
    --color-border: #e6e3de;
    --color-surface: #f2f0ec;
    --content-width: 720px;
    --side-padding: 24px;
    --line-height: 1.72;
    --header-height: 56px;
}

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--line-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection {
    background-color: var(--color-accent, #e32400);
    color: #fff;
}

a {
    color: var(--color-accent, #e32400);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* Focus states — red accent ring for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-accent, #e32400);
    outline-offset: 3px;
}

/* On dark backgrounds (header/footer), use white focus ring */
.site-header :focus-visible,
.site-footer :focus-visible {
    outline-color: #fff;
}

/* Reading progress bar — post pages only */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent, #e32400);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: width 0.1s linear, opacity 0.3s ease;
}

.reading-progress.is-visible {
    opacity: 1;
}

/* ---------- Layout ---------- */
.l-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    width: 100%;
}

/* ==========================================================================
   HEADER — Dark bar with red accent underline
   ========================================================================== */
.site-header {
    position: relative;
    z-index: 100;
}

.site-header__bar {
    background-color: var(--color-text);
    height: var(--header-height);
    border-bottom: 3px solid var(--color-accent, #e32400);
}

.site-header__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__brand {
    flex-shrink: 0;
}

.site-header__logo-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.site-header__logo-link:hover {
    opacity: 0.85;
}

.site-header__logo {
    height: 40px;
    width: auto;
}

.site-header__title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: color 0.2s ease;
}

.site-header__title:hover {
    color: var(--color-accent, #e32400);
}

/* Desktop nav */
.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav li {
    padding: 0;
}

.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent, #e32400);
    transition: width 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.site-nav a:hover {
    color: #fff;
}

.site-nav a:hover::after {
    width: 100%;
}

/* Burger button */
.site-header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.2s ease;
}

/* Burger active state */
.site-header.is-open .burger-line:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-open .burger-line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile nav dropdown */
.site-header__mobile-nav {
    display: none;
    background-color: var(--color-text);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem var(--side-padding) 1.5rem;
    border-bottom: 3px solid var(--color-accent, #e32400);
}

.site-header.is-open .site-header__mobile-nav {
    display: block;
}

/* When mobile nav is open, move the red line from bar to mobile nav */
.site-header.is-open .site-header__bar {
    border-bottom-color: transparent;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav li {
    padding: 0;
}

.mobile-nav a {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s ease, padding-left 0.25s ease;
}

.mobile-nav a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

/* ==========================================================================
   HERO — Latest post, editorial entrance
   ========================================================================== */
.hero {
    padding-top: 3.5rem;
    padding-bottom: 0.5rem;
}

.hero__image-link {
    display: block;
    margin-bottom: 2rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(26, 26, 26, 0.06);
}

.hero__image {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero__image-link:hover .hero__image {
    transform: scale(1.015);
}

.hero__content {
    max-width: 620px;
}

.hero__title {
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.hero__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero__title a:hover {
    color: var(--color-accent, #e32400);
}

.hero__excerpt {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.hero__meta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-text-faint);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

/* ==========================================================================
   DIVIDER — Red accent thread
   ========================================================================== */
.divider {
    border: none;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--color-accent, #e32400),
        var(--color-accent, #e32400) 60px,
        var(--color-border) 60px
    );
    margin: 3rem 0 2.5rem;
}

/* ==========================================================================
   RECENT POSTS — Image cards, mid-tier between hero and journal list
   ========================================================================== */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recent-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--color-border);
}

.recent-card:first-child {
    padding-top: 0;
}

.recent-card:last-child {
    border-bottom: none;
}

.recent-card__image-link {
    flex-shrink: 0;
    width: 160px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 10px rgba(26, 26, 26, 0.05);
}

.recent-card__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.recent-card__image-link:hover .recent-card__image {
    transform: scale(1.03);
}

.recent-card__content {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}

.recent-card__title {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 0.3rem;
}

.recent-card__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-card__title a:hover {
    color: var(--color-accent, #e32400);
}

.recent-card__excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.recent-card__meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Subtle divider variant (between recent cards and journal list) */
.divider--subtle {
    background: var(--color-border);
    height: 1px;
    margin: 2.5rem 0 2rem;
}

/* ==========================================================================
   JOURNAL LIST — Timeline-style post listing
   ========================================================================== */
.journal-list {
    list-style: none;
}

.journal-item {
    display: flex;
    gap: 2rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.journal-item:first-child {
    padding-top: 0;
}

.journal-item:last-child {
    border-bottom: none;
}

.journal-item__date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-text-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 100px;
    padding-top: 0.3rem;
    flex-shrink: 0;
}

.journal-item__content {
    flex: 1;
    min-width: 0;
}

.journal-item__title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin-bottom: 0.25rem;
}

.journal-item__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.journal-item__title a:hover {
    color: var(--color-accent, #e32400);
}

.journal-item__excerpt {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    padding: 3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-faint);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pagination a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pagination a:hover {
    color: var(--color-accent, #e32400);
}

.pagination__current {
    letter-spacing: 0.08em;
}

/* ==========================================================================
   SINGLE POST / PAGE
   ========================================================================== */
.post {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

/* Subtle entrance for post page elements */
.post-header__title,
.post-header__accent,
.post-header__meta,
.post-header__excerpt,
.post-feature-image {
    animation: fadeUp 0.5s ease both;
}

.post-header__title { animation-delay: 0s; }
.post-header__accent { animation-delay: 0.06s; }
.post-header__meta { animation-delay: 0.12s; }
.post-header__excerpt { animation-delay: 0.18s; }
.post-feature-image { animation-delay: 0.2s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-header {
    margin-bottom: 2.75rem;
}

.post-header__title {
    font-family: var(--font-body);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}

.post-header__accent {
    width: 48px;
    height: 3px;
    background: var(--color-accent, #e32400);
    border-radius: 2px;
    margin-bottom: 1.1rem;
}

.post-header__meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-header__meta span {
    color: var(--color-border);
}

.post-header__tag {
    color: var(--color-accent, #e32400);
    text-transform: lowercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-header__tag:hover {
    color: var(--color-text);
}

.post-header__excerpt {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    font-style: italic;
    max-width: 580px;
    margin-top: 1rem;
}

/* Feature image */
.post-feature-image {
    margin-bottom: 3rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(26, 26, 26, 0.06);
}

.post-feature-image img {
    width: 100%;
}

.post-feature-image figcaption {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-text-faint);
    text-align: center;
    margin-top: 1rem;
    padding: 0 0.5rem;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   POST CONTENT (Ghost content)
   ========================================================================== */
.gh-content {
    font-size: 1.05rem;
    line-height: var(--line-height);
}

.gh-content > * {
    margin-bottom: 1.6rem;
}

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

/* Headings */
.gh-content h2 {
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.gh-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-top: 2.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.gh-content h4 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 2.25rem;
    margin-bottom: 0.5rem;
}

/* Links in content */
.gh-content a {
    color: var(--color-accent, #e32400);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(227, 36, 0, 0.35);
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.gh-content a:hover {
    color: var(--color-text);
    text-decoration-color: var(--color-text);
}

/* Blockquotes */
.gh-content blockquote {
    border-left: 3px solid var(--color-accent, #e32400);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin-left: 0;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.gh-content blockquote p {
    margin-bottom: 0;
}

/* Code */
.gh-content code {
    font-family: var(--font-mono);
    font-size: 0.82em;
    background: var(--color-surface);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.gh-content pre {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 1.5rem 1.75rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.65;
    box-shadow: 0 2px 20px rgba(26, 26, 26, 0.08);
    border-top: 2px solid var(--color-accent, #e32400);
}

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

/* Lists */
.gh-content ul,
.gh-content ol {
    padding-left: 1.5rem;
}

.gh-content li {
    margin-bottom: 0.4rem;
}

.gh-content li::marker {
    color: var(--color-text-faint);
}

/* Images in content */
.gh-content .kg-image-card,
.gh-content .kg-gallery-card {
    margin-top: 2.25rem;
    margin-bottom: 2.25rem;
}

.gh-content .kg-image-card img {
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(26, 26, 26, 0.05);
}

.gh-content .kg-width-wide {
    max-width: 900px;
    margin-left: calc(50% - min(450px, 50vw) + var(--side-padding));
    margin-right: calc(50% - min(450px, 50vw) + var(--side-padding));
}

.gh-content .kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.gh-content .kg-width-full img {
    border-radius: 0;
    box-shadow: none;
}

.gh-content figcaption {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-text-faint);
    text-align: center;
    margin-top: 0.85rem;
    letter-spacing: 0.02em;
}

/* Horizontal rule */
.gh-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--color-accent, #e32400),
        var(--color-accent, #e32400) 40px,
        var(--color-border) 40px
    );
    margin: 3.5rem 0;
}

/* Footnotes — rendered by theme JS from [^ text ] syntax */
.footnote-ref a {
    font-family: var(--font-mono);
    font-size: 0.7em;
    color: var(--color-accent, #e32400);
    text-decoration: none;
    padding: 0 0.1em;
    vertical-align: super;
}

.footnote-ref a:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-accent, #e32400);
}

.gh-content .footnotes {
    margin-top: 3rem;
}

.gh-content .footnotes hr {
    margin: 0 0 1.25rem;
}

.gh-content .footnotes ol {
    padding-left: 1.5rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.gh-content .footnotes li {
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

.gh-content .footnotes li:target {
    color: var(--color-text);
}

.footnote-backref {
    font-size: 0.85em;
    color: var(--color-text-faint);
    text-decoration: none;
    margin-left: 0.15rem;
}

.footnote-backref:hover {
    color: var(--color-accent, #e32400);
}

/* Bookmark cards */
.gh-content .kg-bookmark-card {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.gh-content .kg-bookmark-card:hover {
    border-color: var(--color-text-faint);
    box-shadow: 0 2px 16px rgba(26, 26, 26, 0.06);
}

.gh-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: var(--color-text);
}

.gh-content .kg-bookmark-content {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

.gh-content .kg-bookmark-title {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.gh-content .kg-bookmark-description {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-content .kg-bookmark-metadata {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--color-text-faint);
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gh-content .kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.gh-content .kg-bookmark-thumbnail {
    width: 200px;
    min-height: 100%;
    object-fit: cover;
}

.gh-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Callout cards */
.gh-content .kg-callout-card {
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    background: var(--color-surface);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Embed / video */
.gh-content .kg-embed-card {
    margin-top: 2.25rem;
    margin-bottom: 2.25rem;
}

.gh-content .kg-embed-card iframe {
    width: 100%;
    border-radius: 4px;
}

/* Tables */
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.gh-content th,
.gh-content td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.gh-content th {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

/* ==========================================================================
   POST FOOTER
   ========================================================================== */
.post-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
    position: relative;
}

.post-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--color-accent, #e32400);
}

.post-footer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    margin-bottom: 2.5rem;
}

.post-footer__tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-faint);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-footer__tag::before {
    content: '#';
    color: var(--color-border);
    margin-right: 0.1em;
}

.post-footer__tag:hover {
    color: var(--color-accent, #e32400);
}

/* Author box */
.post-author {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--color-surface);
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.post-author__avatar-link {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.post-author__avatar-link:hover {
    opacity: 0.85;
}

.post-author__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author__info {
    min-width: 0;
    padding-top: 0.15rem;
}

.post-author__name {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-author__name:hover {
    color: var(--color-accent, #e32400);
}

.post-author__bio {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 0.25rem;
}

.post-author__social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.post-author__social-link {
    color: var(--color-text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.04);
    transition: color 0.2s ease, background 0.2s ease;
}

.post-author__social-link:hover {
    color: var(--color-accent, #e32400);
    background: rgba(227, 36, 0, 0.07);
}

.post-author__social-link svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   TAG / AUTHOR ARCHIVE
   ========================================================================== */
.archive-header {
    padding-top: 3.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid var(--color-accent, #e32400);
}

.archive-header__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.archive-header__title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.archive-header__description {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-top: 0.6rem;
    line-height: 1.6;
    max-width: 520px;
}

.archive-header__count {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-text-faint);
    margin-top: 0.6rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ==========================================================================
   SITE FOOTER — Dark, mirrors header
   ========================================================================== */
.site-footer {
    margin-top: auto;
    padding: 3rem 0;
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    border-top: 3px solid var(--color-accent, #e32400);
}

.site-footer__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.site-footer__tagline {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.site-footer__copy {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.site-footer__copy a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__copy a:hover {
    color: var(--color-accent, #e32400);
}

/* ==========================================================================
   ERROR PAGE
   ========================================================================== */
.error-page {
    text-align: center;
    padding: 8rem 0;
}

.error-page__code {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 400;
    color: var(--color-accent, #e32400);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.error-page__message {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.error-page__link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    /* Show burger, hide desktop nav */
    .site-nav {
        display: none;
    }

    .site-header__burger {
        display: flex;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 2.5rem;
    }

    .hero__title {
        font-size: 1.85rem;
    }

    .hero__excerpt {
        font-size: 1rem;
    }

    /* Recent cards: shrink image */
    .recent-card__image-link {
        width: 120px;
    }

    .recent-card__title {
        font-size: 1.05rem;
    }

    /* Journal list: stack date above title */
    .journal-item {
        flex-direction: column;
        gap: 0.1rem;
    }

    .journal-item__date {
        min-width: unset;
        padding-top: 0;
        font-size: 0.62rem;
    }

    .journal-item__title {
        font-size: 1.08rem;
    }

    /* Post */
    .post-header__title {
        font-size: 2rem;
    }

    .post {
        padding-top: 2.5rem;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 16px;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero__title {
        font-size: 1.65rem;
    }

    .recent-card__image-link {
        width: 100px;
    }

    .recent-card__excerpt {
        -webkit-line-clamp: 1;
    }

    .pagination {
        padding: 2rem 0;
    }

    .gh-content .kg-width-wide {
        margin-left: calc(-1 * var(--side-padding));
        margin-right: calc(-1 * var(--side-padding));
    }

    .gh-content .kg-bookmark-container {
        flex-direction: column;
    }

    .gh-content .kg-bookmark-thumbnail {
        width: 100%;
        height: 150px;
    }

    .post-author {
        padding: 1.25rem;
        gap: 1rem;
    }

    .post-author__avatar {
        width: 48px;
        height: 48px;
    }

    .post-author__social-link {
        width: 30px;
        height: 30px;
    }

    .post-author__social-link svg {
        width: 14px;
        height: 14px;
    }

    .error-page {
        padding: 5rem 0;
    }

    .error-page__code {
        font-size: 3.5rem;
    }
}

@media (max-width: 400px) {
    :root {
        --side-padding: 16px;
    }
}

/* Desktop: ensure burger hidden, nav shown */
@media (min-width: 769px) {
    .site-header__burger {
        display: none !important;
    }

    .site-header__mobile-nav {
        display: none !important;
    }

    .site-nav {
        display: flex;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .post-header__title,
    .post-header__accent,
    .post-header__meta,
    .post-header__excerpt,
    .post-feature-image {
        animation: none;
    }

    .reading-progress {
        transition: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .post-footer__tags,
    .site-nav {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .gh-content a {
        color: #000;
        text-decoration: underline;
    }

    .gh-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
