/* ==========================================================================
   Collision Pro — Ghost 5 Theme
   Professional Collision Repair Industry Blog
   ========================================================================== */

/* CSS Variables
   ========================================================================== */
:root {
    --red: #c0392b;
    --red-dark: #a93226;
    --red-light: #e74c3c;
    --charcoal: #1a1a1a;
    --charcoal-light: #2c2c2c;
    --charcoal-mid: #3a3a3a;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --text: #2d2d2d;
    --text-light: #666666;
    --text-lighter: #999999;
    --border: #e0e0e0;
    --border-dark: #cccccc;

    --font-heading: 'Oswald', Impact, Arial Narrow, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --header-height: 72px;
    --max-width: 1200px;
    --content-width: 780px;
    --gutter: 20px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--red-dark);
}

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

ul, ol {
    list-style: none;
}

/* Site Layout
   ========================================================================== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

.outer {
    padding: 0 var(--gutter);
}

.inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Header
   ========================================================================== */
.site-header {
    background: var(--charcoal);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.site-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    line-height: 1;
}

.site-logo:hover .site-name {
    color: var(--red);
}

/* Navigation
   ========================================================================== */
.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav ul,
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav ul li a,
.nav-list .nav-item a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav ul li a:hover,
.nav-list .nav-item a:hover,
.nav-list .nav-current a {
    color: var(--white);
    background: var(--red);
}

.search-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 7px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* Hamburger
   ========================================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section
   ========================================================================== */
.hero {
    background: var(--charcoal);
    background-image: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 50%, #2a1a1a 100%);
    padding: 80px var(--gutter);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red);
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    border: 2px solid var(--red);
}

.hero-btn:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
}

/* Search bar in hero */
.hero-search {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.9);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 100%;
    max-width: 480px;
    justify-content: center;
}

.hero-search-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.hero-search-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.hero-search-btn:hover svg {
    opacity: 1;
}

/* Posts Section
   ========================================================================== */
.posts-section {
    padding: 56px var(--gutter);
    background: var(--off-white);
}

.posts-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

/* Post Card
   ========================================================================== */
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Full-card link wrapper */
.post-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.post-card-image-wrap {
    display: block;
    overflow: hidden;
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

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

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

.post-card-tags {
    margin-bottom: 10px;
    min-height: 22px;
}

.post-tag {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
}

.post-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--charcoal);
    flex: 1;
    transition: color 0.2s ease;
}

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

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.post-card-meta time {
    font-weight: 600;
}

.sep {
    color: var(--border-dark);
}

/* Article (Single Post)
   ========================================================================== */
.article {
    background: var(--white);
}

.article-header {
    padding: 56px var(--gutter) 40px;
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: left;
}

.article-meta {
    margin-bottom: 14px;
}

.article-tag {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.article-tag:hover {
    background: var(--red-dark);
    color: var(--white);
}

.article-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 18px;
    letter-spacing: 0.01em;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-name {
    font-weight: 600;
    color: var(--text);
}

.article-image {
    max-width: var(--content-width);
    margin: 0 auto 40px;
    padding: 0 var(--gutter);
}

.article-image img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-image figcaption {
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Article Content
   ========================================================================== */
.article-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--gutter) 56px;
}

.gh-content,
.article-content {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}

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

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.gh-content h2 { font-size: 1.9rem; }
.gh-content h3 { font-size: 1.5rem; }
.gh-content h4 { font-size: 1.25rem; }
.gh-content h5 { font-size: 1.1rem; }
.gh-content h6 { font-size: 1rem; }

.gh-content p {
    margin-bottom: 1.4em;
}

.gh-content a {
    color: var(--red);
    text-decoration: underline;
    text-decoration-color: rgba(192,57,43,0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

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

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

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

.gh-content li {
    margin-bottom: 0.5em;
}

.gh-content blockquote {
    border-left: 4px solid var(--red);
    margin: 2em 0;
    padding: 16px 24px;
    background: var(--off-white);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1rem;
}

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

.gh-content pre {
    background: var(--charcoal);
    color: #e0e0e0;
    padding: 20px 24px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.gh-content code {
    background: rgba(192,57,43,0.08);
    color: var(--red);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
}

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

.gh-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 3em 0;
}

.gh-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

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

.gh-content table th {
    background: var(--charcoal);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
}

.gh-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.gh-content table tr:nth-child(even) td {
    background: var(--off-white);
}

/* Ghost Card Styles
   ========================================================================== */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: auto calc(50% - 50vw);
    transform: translateX(calc(50vw - 50%));
}

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

.kg-image-card,
.kg-gallery-card {
    margin: 1.5em 0;
}

.kg-image-card img {
    border-radius: 6px;
}

.kg-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.kg-gallery-image img {
    border-radius: 4px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Article Footer
   ========================================================================== */
.article-footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px var(--gutter) 56px;
    border-top: 2px solid var(--border);
}

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

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--charcoal);
    border: 2px solid var(--charcoal);
    padding: 8px 18px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* Archive Pages
   ========================================================================== */
.tag-archive,
.author-archive {
    padding: 56px var(--gutter);
}

.archive-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
}

.archive-hero-img {
    width: 100%;
    max-width: 400px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 0 auto 24px;
}

.archive-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.archive-desc {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Author Archive specific
   ========================================================================== */
.author-header {
    display: flex;
    align-items: center;
    gap: 32px;
    text-align: left;
    justify-content: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--red);
    flex-shrink: 0;
}

.author-info {
    text-align: left;
}

.author-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.author-social a {
    font-size: 0.82rem;
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 3px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.author-social a:hover {
    border-color: var(--red);
    color: var(--red);
}

/* Pagination
   ========================================================================== */
.pagination {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination .newer-posts,
.pagination .older-posts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--charcoal);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 20px;
    border: 2px solid var(--charcoal);
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .newer-posts:hover,
.pagination .older-posts:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.pagination .page-number {
    font-size: 0.82rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Error Pages
   ========================================================================== */
.error-page {
    padding: 100px var(--gutter);
    text-align: center;
    background: var(--off-white);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 8rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 16px;
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.65;
}

.error-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--white);
    background: var(--red);
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.error-link:hover {
    background: var(--red-dark);
    color: var(--white);
}

/* Footer
   ========================================================================== */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.6);
    padding: 48px var(--gutter) 32px;
    border-top: 3px solid var(--red);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: start;
}

.footer-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 280px;
}

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

.footer-nav a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

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

.footer-copy {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* Ghost Search
   ========================================================================== */
.gh-search-modal {
    font-family: var(--font-body) !important;
}

/* Responsive — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-copy {
        grid-column: 1 / -1;
    }
}

/* Responsive — Mobile
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* Header mobile */
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--charcoal-light);
        padding: 16px var(--gutter);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        border-bottom: 3px solid var(--red);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav ul,
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 2px;
    }

    .site-nav ul li,
    .nav-list .nav-item {
        width: 100%;
    }

    .site-nav ul li a,
    .nav-list .nav-item a {
        display: block;
        padding: 10px 14px;
        font-size: 1rem;
        border-radius: 4px;
    }

    .search-btn {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 4px;
        border: none;
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .hamburger {
        display: flex;
    }

    .site-header {
        position: relative;
    }

    /* Hero mobile */
    .hero {
        padding: 56px var(--gutter);
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    /* Posts grid mobile */
    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .posts-section {
        padding: 36px var(--gutter);
    }

    /* Article mobile */
    .article-title {
        font-size: 2rem;
    }

    .article-header {
        padding: 36px var(--gutter) 24px;
    }

    /* Author archive header */
    .author-header {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    .author-social {
        justify-content: center;
    }

    /* Footer mobile */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-nav ul,
    .footer-nav .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Article footer */
    .article-footer-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

/* Responsive — Small Mobile
   ========================================================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

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

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

    .error-code {
        font-size: 5rem;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .pagination .newer-posts,
    .pagination .older-posts {
        width: 100%;
        justify-content: center;
    }
}

/* Print
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .article-footer,
    .hero {
        display: none;
    }

    .article-content {
        max-width: 100%;
        padding: 0;
    }

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