/* The Smart Home Digest Theme
/* A modern dark theme for curated smart home news
/* ---------------------------------------------------------- */

/* Reset */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}
body{line-height:1}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-spacing:0;border-collapse:collapse}img{display:block;max-width:100%;height:auto}
html{box-sizing:border-box;font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}*,*:before,*:after{box-sizing:inherit}a{background-color:transparent}a:active,a:hover{outline:0}b,strong{font-weight:bold}i,em,dfn{font-style:italic}h1{margin:0.67em 0;font-size:2em}small{font-size:80%}
sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}

/* Variables */
:root {
    --color-bg: #0a0e17;
    --color-surface: #111827;
    --color-surface-hover: #1a2332;
    --color-border: #1e293b;
    --color-border-light: #2d3a4d;
    --color-text: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-accent: #06b6d4;
    --color-accent-hover: #22d3ee;
    --color-accent-glow: rgba(6, 182, 212, 0.15);
    --color-accent-subtle: rgba(6, 182, 212, 0.08);
    --color-green: #10b981;
    --color-orange: #f59e0b;
    --color-red: #ef4444;
    --color-white: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Courier, monospace;
    --font-serif: Georgia, Times, serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
    --transition: 0.2s ease;
}

/* Base */
html {
    font-size: 62.5%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Light mode overrides */
body:not(.dark-mode) {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-light: #cbd5e1;
    --color-text: #1e293b;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-accent: #0891b2;
    --color-accent-hover: #06b6d4;
    --color-accent-glow: rgba(8, 145, 178, 0.1);
    --color-accent-subtle: rgba(8, 145, 178, 0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

html.dark-mode body {
    --color-bg: #0a0e17;
    --color-surface: #111827;
    --color-text: #e2e8f0;
}

html.auto-color {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
}

@media (prefers-color-scheme: dark) {
    html.auto-color body {
        --color-bg: #0a0e17;
        --color-surface: #111827;
        --color-surface-hover: #1a2332;
        --color-border: #1e293b;
        --color-border-light: #2d3a4d;
        --color-text: #e2e8f0;
        --color-text-secondary: #94a3b8;
        --color-text-muted: #64748b;
        --color-accent: #06b6d4;
        --color-accent-hover: #22d3ee;
        --color-accent-glow: rgba(6, 182, 212, 0.15);
        --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
        --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
    }
}

/* Layout */
.viewport {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex-grow: 1;
}

.outer {
    position: relative;
    padding: 0 max(4vmin, 20px);
}

.inner {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

/* Header */
.site-header-content {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    padding-top: calc(19vmin + 44px);
    padding-bottom: 19vmin;
    text-align: center;
    color: var(--color-text);
}

.has-cover .site-header-content {
    min-height: 480px;
    color: var(--color-white);
}

.site-header-cover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header-content.left-aligned {
    padding-bottom: 0;
    text-align: left;
}

.has-cover .site-header-content.left-aligned {
    align-items: flex-end;
    padding-bottom: max(4vmin, 32px);
}

.site-header-content.no-content {
    padding-top: 0;
    padding-bottom: 2vmin;
}

.site-header-inner {
    position: relative;
}

.site-header-content.left-aligned .site-header-inner {
    align-items: flex-start;
}

.site-logo {
    flex-shrink: 0;
    margin: 0 auto;
    max-height: 400px;
}

.site-header-content.left-aligned .site-logo {
    margin-right: auto;
    margin-left: 0;
    max-height: 160px;
}

.site-title {
    z-index: 10;
    margin: 0;
    padding: 0;
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.has-cover .site-title {
    font-size: 6rem;
}

.site-description {
    display: inline-block;
    z-index: 10;
    max-width: 640px;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin-top: 16px;
}

.has-cover .site-description {
    color: rgba(255,255,255,0.85);
}

@media (max-width: 767px) {
    .site-header-content { padding-top: calc(19vmin + 32px); }
    .has-cover .site-header-content { min-height: 240px; }
    .site-title { font-size: 3.4rem !important; }
    .site-description { font-size: 2rem !important; }
}

/* Navigation */
.gh-head {
    height: 72px;
    font-size: 1.5rem;
    line-height: 1.3em;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    z-index: 150;
    backdrop-filter: blur(12px);
}

:is(.home-template, .paged:not(.tag-template):not(.author-template)).has-cover .gh-head {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2000;
    background-color: transparent;
    border-bottom-color: transparent;
    color: #fff;
}

.has-cover:not(.home-template) .gh-head {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.gh-head a { text-decoration: none; }

.gh-head-inner {
    display: grid;
    column-gap: 40px;
    grid-template-columns: auto 1fr auto;
    grid-auto-flow: row dense;
    align-items: center;
    height: 100%;
}

.is-head-left-logo .gh-head-inner { grid-template-columns: auto 1fr auto; }
.is-head-left-logo.home-template .gh-head:not(.is-header-hidden) .gh-head-logo { display: none; }
.is-head-left-logo.home-template .gh-head:not(.is-header-hidden) .gh-head-menu { margin-left: -40px; }

@media (min-width: 992px) {
    .is-head-left-logo .gh-head-menu { margin-right: 64px; margin-left: 16px; }
}

.is-head-middle-logo .gh-head-inner { grid-template-columns: 1fr auto 1fr; }
.is-head-middle-logo .gh-head-brand { grid-column-start: 2; }

.is-head-stacked .gh-head { height: auto; }
.is-head-stacked .gh-head-inner { grid-template-columns: 1fr auto 1fr; }
.is-head-stacked .gh-head-brand { grid-row-start: 1; grid-column-start: 2; }

@media (min-width: 992px) {
    .is-head-stacked .gh-head-inner { padding: 0; }
    .is-head-stacked .gh-head-brand { position: relative; display: flex; align-items: center; height: 80px; }
    .is-head-stacked .gh-head-menu { grid-row-start: 2; grid-column: 1 / 4; justify-content: center; height: 56px; margin: 0 48px; }
    .is-head-stacked .gh-head-menu::before, .is-head-stacked .gh-head-menu::after { position: absolute; top: 80px; left: 0; width: 100%; height: 1px; content: ""; background-color: var(--color-border); }
    .is-head-stacked .gh-head-menu::after { top: 136px; }
    .is-head-stacked .gh-head-actions { grid-row-start: 1; grid-column: 1 / 4; justify-content: space-between; }
}

/* Brand */
.gh-head-brand {
    display: flex;
    align-items: center;
    height: 40px;
    word-break: break-all;
}

.gh-head-logo {
    display: block;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    color: inherit;
    white-space: nowrap;
}

.gh-head-logo.no-image { margin-top: -5px; }
.has-cover .gh-head-logo { color: #fff; }
.gh-head-logo img { max-height: 44px; }

/* Nav Menu */
.gh-head-menu {
    display: flex;
    align-items: center;
    margin-top: 1px;
    font-weight: 500;
}

.gh-head-menu .nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-head-menu .nav li { margin: 0; padding: 0; }
.gh-head-menu .nav a { display: inline-block; line-height: 1.7; color: inherit; transition: color var(--transition); }
.gh-head-menu .nav a:hover { color: var(--color-accent); }

/* Nav Actions */
.gh-head-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    list-style: none;
    text-align: right;
}

.gh-head-members { display: flex; gap: 20px; align-items: center; }
.gh-head-link { font-weight: 500; color: inherit; }

.gh-head-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    height: 40px;
    font-weight: 600;
    font-size: 1.4rem;
    border-radius: 48px;
    color: var(--color-bg);
    background: var(--color-accent);
    transition: background var(--transition);
}

.gh-head-button:hover { background: var(--color-accent-hover); }
.has-cover .gh-head-button { color: var(--color-bg); background: var(--color-white); }

/* Search Button */
.gh-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    outline: none;
    color: inherit;
}

.gh-search:hover { color: var(--color-accent); }
.gh-head-brand .gh-search { margin-right: 8px; }
.gh-head-actions .gh-search { margin-right: -4px; }

@media (max-width: 767px) { .gh-head-actions .gh-search { display: none; } }
@media (min-width: 768px) { .gh-head-brand .gh-search { display: none; } }

/* Burger Menu */
.gh-burger {
    position: relative;
    display: none;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-right: -3px;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    appearance: none;
}

.gh-burger::before, .gh-burger::after {
    position: absolute;
    left: 3px;
    width: 24px;
    height: 1px;
    content: "";
    background-color: var(--color-text);
    transition: all 0.2s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.has-cover .gh-burger::before, .has-cover .gh-burger::after { background-color: #fff; }
.gh-burger::before { top: 11px; }
.gh-burger::after { bottom: 11px; }
.gh-head-open .gh-burger::before { top: 15px; transform: rotate(45deg); }
.gh-head-open .gh-burger::after { bottom: 14px; transform: rotate(-45deg); }

/* Mobile Menu */
@media (max-width: 767px) {
    #gh-head { height: 64px; }
    #gh-head .gh-head-inner { grid-template-rows: auto 1fr auto; grid-template-columns: 1fr; gap: 48px; }
    #gh-head .gh-head-brand { display: grid; grid-template-columns: 1fr auto auto; grid-column-start: 1; align-items: center; height: 64px; }
    #gh-head .gh-head-logo { font-size: 2rem; }
    #gh-head .gh-burger { display: block; }
    #gh-head .gh-head-menu, #gh-head .gh-head-actions { position: fixed; justify-content: center; visibility: hidden; opacity: 0; }
    #gh-head .nav { gap: 16px; align-items: center; }
    #gh-head .nav a { font-size: 2.4rem; font-weight: 600; }

    .gh-head-open #gh-head {
        position: fixed;
        inset: 0;
        z-index: 3999999;
        height: 100%;
        overflow-y: scroll;
        background: var(--color-surface);
    }

    .gh-head-open #gh-head .gh-head-menu,
    .gh-head-open #gh-head .gh-head-actions {
        position: static;
        visibility: visible;
        opacity: 1;
    }

    #gh-head .gh-head-menu { flex-direction: column; }
    #gh-head .nav { flex-direction: column; }
    #gh-head .gh-head-button { width: 100%; font-size: 1.6rem; }

    @media (max-width: 767px) {
        .gh-head-members { flex-direction: column-reverse; gap: 16px; width: 100%; }
    }
}

/* Featured Hero */
.featured-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 48px;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background: var(--color-surface);
}

.featured-hero-image {
    position: absolute;
    inset: 0;
}

.featured-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.featured-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 700px;
}

.featured-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-bg);
    background: var(--color-accent);
    border-radius: 4px;
    margin-bottom: 12px;
}

.featured-tag {
    display: inline-block;
    margin-left: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.featured-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.featured-hero-title a { color: #fff; text-decoration: none; }
.featured-hero-title a:hover { color: var(--color-accent); }

.featured-hero-excerpt {
    font-size: 1.6rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
}

.featured-hero-meta {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.5);
}

.featured-hero-meta .bull { margin: 0 6px; }

@media (max-width: 767px) {
    .featured-hero { min-height: 300px; }
    .featured-hero-content { padding: 24px; }
    .featured-hero-title { font-size: 2.4rem; }
}

/* Post Feed */
.post-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 991px) { .post-feed { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-feed { grid-template-columns: 1fr; } }

/* Post Card */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

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

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

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

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

.post-card-content-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.post-card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.post-card-primary-tag {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
}

.post-card-featured {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-orange);
}

.post-card-featured svg { width: 14px; height: 14px; }

.post-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin-bottom: 8px;
}

.post-card-excerpt {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.post-card-meta-length {
    display: inline-flex;
    align-items: center;
}

/* Large card for tag/author pages */
.post-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}

.post-card-large .post-card-image-link { aspect-ratio: auto; }

@media (max-width: 600px) {
    .post-card-large { grid-template-columns: 1fr; }
}

/* List layout */
.post-card-list {
    flex-direction: row;
    grid-column: 1 / -1;
}

.post-card-list .post-card-image-link {
    width: 280px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

@media (max-width: 600px) {
    .post-card-list { flex-direction: column; }
    .post-card-list .post-card-image-link { width: 100%; aspect-ratio: 16/10; }
}

/* Article */
.article {
    padding: max(8vmin, 40px) 0;
}

.gh-canvas {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 max(4vmin, 20px);
}

.article-header {
    margin-bottom: max(6vmin, 32px);
}

.article-tag a {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    text-decoration: none;
}

.article-tag a:hover { color: var(--color-accent-hover); }

.article-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 12px;
    color: var(--color-text);
}

.article-excerpt {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-top: 16px;
}

@media (max-width: 767px) {
    .article-title { font-size: 2.8rem; }
    .article-excerpt { font-size: 1.7rem; }
}

/* Article Byline */
.article-byline {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.article-byline-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-list { display: flex; list-style: none; margin: 0; padding: 0; }
.author-list-item { margin: 0; }

.author-avatar {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
}

.author-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name { font-size: 1.5rem; font-weight: 600; }
.author-name a { color: var(--color-text); text-decoration: none; }
.author-name a:hover { color: var(--color-accent); }

.byline-meta-content {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.byline-meta-content .bull { margin: 0 4px; }

/* Article Image */
.article-image {
    margin-top: 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

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

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

/* Ghost Content */
.gh-content {
    font-size: 1.8rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
}

.gh-content > * + * { margin-top: 2.4rem; }

.gh-content > [id] {
    font-weight: 700;
    color: var(--color-text);
}

.gh-content > [id]:not(:first-child) { margin-top: 4.8rem; }

.gh-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

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

.gh-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 24px;
    font-style: italic;
    color: var(--color-text-secondary);
}

.gh-content pre {
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    line-height: 1.6;
}

.gh-content :not(pre) > code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--color-accent-subtle);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-accent);
}

.gh-content hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 4rem 0;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

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

.gh-content table th {
    font-weight: 700;
    color: var(--color-text);
    background: var(--color-accent-subtle);
}

.gh-content ol,
.gh-content ul {
    padding-left: 2.4rem;
}

.gh-content li + li { margin-top: 0.8rem; }

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
    border-radius: var(--radius-sm);
}

/* Subscribe CTA */
.footer-cta {
    margin: max(8vmin, 40px) 0 0;
    padding: max(6vmin, 32px) 0;
    text-align: center;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.footer-cta-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 24px;
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    border-radius: 48px;
    text-decoration: none;
    color: inherit;
}

.footer-cta-button span {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    height: 40px;
    font-weight: 600;
    font-size: 1.4rem;
    border-radius: 48px;
    color: var(--color-bg);
    background: var(--color-accent);
}

.footer-cta-input {
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

/* Read More */
.read-more-wrap {
    margin: max(8vmin, 40px) 0;
}

.read-more {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 767px) {
    .read-more { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    font-size: 1.4rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    height: 40px;
    font-weight: 600;
    border-radius: 48px;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.page-number { color: var(--color-text-muted); }

/* Footer */
.site-footer {
    padding-top: 48px;
    padding-bottom: 48px;
    border-top: 1px solid var(--color-border);
}

.site-footer .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 1.3rem;
    color: var(--color-text-muted);
}

.copyright a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.copyright a:hover { color: var(--color-accent); }

.site-footer-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-nav a {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    text-decoration: none;
}

.site-footer-nav a:hover { color: var(--color-accent); }

/* Error Pages */
.error-content { padding: max(12vmin, 80px) 0; text-align: center; }
.error-code { font-size: 12rem; font-weight: 800; color: var(--color-accent); line-height: 1; }
.error-description { font-size: 2rem; color: var(--color-text-secondary); margin-top: 16px; }
.error-link {
    display: inline-block;
    margin-top: 32px;
    padding: 12px 28px;
    font-weight: 600;
    color: var(--color-bg);
    background: var(--color-accent);
    border-radius: 48px;
    text-decoration: none;
}
.error-link:hover { background: var(--color-accent-hover); }

/* Author Page */
.author-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    object-fit: cover;
}

/* Lightbox (PhotoSwipe) */
.pswp { --pswp-bg: rgba(0,0,0,0.9); }

/* Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* Responsive font for serif title option */
.has-serif-title .site-title,
.has-serif-title .post-card-title,
.has-serif-title .article-title {
    font-family: var(--font-serif);
}

.has-sans-body .gh-content {
    font-family: var(--font-sans);
}

/* Dropdown */
.gh-dropdown {
    position: absolute;
    top: 100%;
    right: -16px;
    z-index: 90;
    width: 200px;
    padding: 12px 0;
    margin-top: 24px;
    opacity: 0;
    visibility: hidden;
    text-align: left;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: translate3d(0, 6px, 0);
    transition: opacity 0.3s, transform 0.2s;
}

.is-dropdown-open .gh-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gh-head-menu .gh-dropdown li a {
    display: block;
    padding: 6px 20px;
    color: var(--color-text);
}

.gh-head-menu .gh-dropdown li a:hover {
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

@media (min-width: 992px) {
    body:not(.is-dropdown-loaded) .gh-head-menu .nav > li {
        opacity: 0;
    }
}

.gh-head-menu .nav-more-toggle {
    position: relative;
    width: 30px;
    height: 30px;
    margin: 0 -6px;
    padding: 0;
    font-size: inherit;
    background-color: transparent;
    text-transform: inherit;
    cursor: pointer;
    border: 0;
    color: inherit;
}

.gh-head-menu .nav-more-toggle svg { width: 24px; height: 24px; }
