/* Artisan Craft — Fasty Blog template */
/* Warm handmade aesthetic: linen, terracotta, kraft, organic shapes */

:root {
    --ink: #3d2b1f;
    --ink-soft: #5c4636;
    --brown: #7a6b5d;
    --gray: #8c7e70;
    --line: #d8cfc2;
    --soft: #ebe4d9;
    --linen: #f5f0e8;
    --cream: #faf8f3;
    --accent: #c15627;
    --accent-dark: #a3441c;
    --kraft: #c9a87c;
    --kraft-dark: #a88b65;
    --hff: 'Bitter', Georgia, serif;
    --bff: 'Work Sans', system-ui, sans-serif;
    --radius-sm: 6px 14px 8px 16px;
    --radius-md: 10px 22px 14px 26px;
    --radius-lg: 16px 34px 22px 40px;
    --radius-circle: 50% 50% 52% 48% / 48% 52% 50% 50%;
    --container: 1200px;
    --shadow-soft: 0 4px 18px rgba(61, 43, 31, .08);
    --shadow-card: 0 8px 28px rgba(61, 43, 31, .10);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--bff);
    color: var(--ink-soft);
    background: var(--linen);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Subtle dotted linen texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: .035;
    background-image: radial-gradient(circle, var(--ink) 1px, transparent 1px);
    background-size: 18px 18px;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hff);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px dashed var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--linen);
    font-weight: 700;
    border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; top: 16px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    background: var(--cream);
    border-bottom: 2px dashed var(--line);
    position: relative;
}
.site-header::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 10px;
    background: radial-gradient(circle, transparent 4px, var(--linen) 5px);
    background-size: 14px 14px;
    opacity: .8;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 0 30px;
}
.site-logo {
    font-family: var(--hff);
    font-weight: 700;
    font-size: 34px;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--ink);
    text-align: center;
}
.site-logo .logo-svg { display: flex; align-items: center; }
.site-logo .logo-svg svg { height: 54px; width: auto; max-width: 320px; }
.site-logo img { max-height: 60px; width: auto; }

/* Navigation */
.main-nav {
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 3px solid var(--accent);
}
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-item > a {
    display: block;
    padding: 16px 18px;
    font-family: var(--bff);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--linen);
    transition: color .2s;
}
.nav-item > a:hover,
.nav-item.active > a { color: var(--kraft); }
.nav-right {
    position: absolute;
    right: 24px;
    display: flex;
    align-items: center;
}
.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    color: var(--linen);
    transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--ink); background: var(--kraft); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 14px 10px;
    margin-right: auto;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--linen);
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 42px 0 48px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .95fr;
    gap: 32px;
}
.hero-col-mid { display: flex; flex-direction: column; gap: 32px; }
.hero-col-side { display: flex; flex-direction: column; gap: 22px; }

.card-thumb {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--soft);
    box-shadow: var(--shadow-soft);
}
.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(61, 43, 31, .08);
    border-radius: inherit;
    pointer-events: none;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .6, .2, 1);
}
article:hover .card-thumb img { transform: scale(1.05); }

.hero-big .card-thumb { aspect-ratio: 4/4.5; }
.hero-mid .card-thumb { aspect-ratio: 16/10.4; }
.hero-big h2 { font-size: 28px; font-weight: 700; line-height: 1.22; margin: 10px 0 0; }
.hero-mid h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 8px 0 0; }

.meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-family: var(--bff);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brown);
}
.meta-line a { color: var(--brown); transition: color .2s; }
.meta-line a:hover { color: var(--accent); }
.meta-line .sep { color: var(--line); }

.kraft-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: block;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--kraft);
    color: var(--ink);
    font-family: var(--hff);
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(61, 43, 31, .18);
}
.kraft-badge--sm {
    top: 8px;
    left: 8px;
    height: 22px;
    line-height: 22px;
    padding: 0 8px;
    font-size: 11px;
}

.mini-card { display: flex; gap: 16px; align-items: center; }
.mini-card .card-thumb { width: 100px; height: 80px; flex-shrink: 0; border-radius: var(--radius-sm); }
.mini-card h4 { font-size: 15px; font-weight: 700; line-height: 1.32; margin-top: 4px; }

/* Category circles */
.cat-circles { padding: 0 0 44px; }
.cat-circles-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}
.cat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 136px;
    text-align: center;
    transition: transform .25s;
}
.cat-circle:hover { transform: translateY(-4px); }
.cc-img {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-circle);
    overflow: hidden;
    background: var(--soft);
    border: 2px dashed var(--line);
    padding: 4px;
}
.cc-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cat-circle h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.cat-circle span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brown);
}

/* Layout main + sidebar */
.layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 44px;
    padding-bottom: 60px;
}
.main-col { min-width: 0; }

/* Sections */
.section { padding-top: 36px; }
.section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}
.section-title {
    font-family: var(--hff);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.section-line {
    flex: 1;
    height: 2px;
    border-top: 2px dashed var(--line);
    position: relative;
    top: 1px;
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.card { display: flex; flex-direction: column; }
.card .card-thumb { aspect-ratio: 16/10.5; }
.card h3 { font-size: 17px; font-weight: 700; line-height: 1.32; margin-top: 10px; }
.card-excerpt {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-family: var(--bff);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
}
.rm-text { border-bottom: 1px dashed var(--accent); padding-bottom: 1px; }
.rm-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s;
}
.read-more:hover .rm-circle { transform: translateX(3px); }
.rm-circle svg { width: 13px; height: 13px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 34px; }
.widget-title {
    font-family: var(--hff);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--line);
}
.popular-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}
.popular-item .card-thumb { width: 88px; height: 70px; flex-shrink: 0; border-radius: var(--radius-sm); }
.popular-item h4 { font-size: 14px; font-weight: 700; line-height: 1.34; margin-top: 3px; }

.widget-box {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}
.nl-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.newsletter-widget-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-widget-form input,
.footer-newsletter input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--bff);
    font-size: 14px;
    color: var(--ink);
}
.newsletter-widget-form input:focus,
.footer-newsletter input:focus { border-color: var(--accent); outline: none; }
.newsletter-widget-form button,
.footer-newsletter button {
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    font-family: var(--bff);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: var(--radius-sm);
    transition: background .2s;
}
.newsletter-widget-form button:hover,
.footer-newsletter button:hover { background: var(--accent-dark); }

/* Category cards sidebar */
.cat-cards { display: flex; flex-direction: column; gap: 14px; }
.cat-card {
    position: relative;
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16/7;
    box-shadow: var(--shadow-soft);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cc-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: linear-gradient(90deg, rgba(61,43,31,.72), transparent 80%);
    color: #fff;
}
.cc-name { font-family: var(--hff); font-weight: 700; font-size: 15px; }
.cc-count {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kraft);
    color: var(--ink);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

/* Social stats */
.social-stats { display: flex; flex-direction: column; gap: 10px; }
.social-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
    transition: transform .2s, box-shadow .2s;
}
.social-stat:hover { transform: translateX(3px); box-shadow: var(--shadow-soft); }
.ss-left { display: flex; align-items: center; gap: 10px; }
.ss-left svg { width: 18px; height: 18px; }
.label { font-size: 13px; font-weight: 600; }
.count { font-family: var(--hff); font-weight: 700; font-size: 14px; color: var(--accent); }

/* Breadcrumb */
.breadcrumb { padding: 22px 0 6px; font-family: var(--bff); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--brown); }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.breadcrumb-item a { color: var(--brown); transition: color .2s; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; margin-right: 10px; color: var(--line); }
.breadcrumb-item.active { color: var(--ink); }

/* Article */
.article-head { padding: 8px 0 26px; }
.article-head h1 { font-size: 40px; font-weight: 700; line-height: 1.18; margin: 14px 0 16px; max-width: 820px; }
.article-excerpt { font-size: 18px; line-height: 1.55; color: var(--brown); max-width: 760px; }
.article-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--bff);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--brown);
}
.article-meta-row a { color: var(--brown); }
.article-meta-row a:hover { color: var(--accent); }
.article-meta-row .sep { color: var(--line); }
.avatar-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hff);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.share-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px dashed var(--line);
    border-radius: 28px;
    padding: 6px 10px;
    margin: 2px 0 28px;
    background: var(--cream);
}
.share-pill .share-label {
    font-family: var(--bff);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brown);
    padding: 0 8px;
}
.share-pill a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: color .2s, background .2s;
}
.share-pill a:hover { background: var(--soft); color: var(--accent); }
.share-pill svg { width: 15px; height: 15px; }

.article-featured { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.article-featured img { width: 100%; height: auto; }

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-soft);
}
.article-content > * + * { margin-top: 1.4em; }
.article-content h2 { font-size: 28px; margin-top: 2em; margin-bottom: .6em; }
.article-content h3 { font-size: 22px; margin-top: 1.8em; margin-bottom: .5em; }
.article-content p { margin-bottom: 1.1em; }
.article-content a { color: var(--accent); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }
.article-content a:hover { color: var(--accent-dark); }
.article-content ul, .article-content ol { padding-left: 1.6em; margin-bottom: 1.1em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content blockquote {
    margin: 1.8em 0;
    padding: 20px 26px;
    border-left: 4px solid var(--accent);
    background: var(--cream);
    border-radius: var(--radius-sm);
    font-family: var(--hff);
    font-size: 19px;
    font-style: italic;
    color: var(--ink);
}
.article-content img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.article-content figcaption { font-size: 13px; color: var(--brown); margin-top: 6px; }

.social-share {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 40px 0;
    padding: 18px 0;
    border-top: 2px dashed var(--line);
    border-bottom: 2px dashed var(--line);
}
.social-share .share-label {
    font-family: var(--bff);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brown);
}
.share-buttons { display: flex; gap: 10px; }
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    color: var(--ink);
    transition: background .2s, color .2s, transform .2s;
}
.share-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.share-btn svg { width: 16px; height: 16px; }

.author-box {
    display: flex;
    gap: 20px;
    padding: 26px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin: 36px 0;
    box-shadow: var(--shadow-soft);
}
.author-box-avatar {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-letter--xl { width: 76px; height: 76px; font-size: 30px; }
.author-box-info h3 { font-size: 19px; margin-bottom: 6px; }
.author-box-info p { font-size: 14.5px; color: var(--brown); line-height: 1.55; }
.author-box-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--accent);
}
.author-box-link:hover { color: var(--accent-dark); }

/* Author / category page headers */
.page-header {
    padding: 36px 0 30px;
    text-align: center;
}
.page-header h1 { font-size: 36px; margin-bottom: 10px; }
.page-header p { color: var(--brown); max-width: 640px; margin: 0 auto; }
.page-header-avatar {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    margin: 0 auto 18px;
    border: 3px dashed var(--line);
    padding: 4px;
}

/* Author list */
.author-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 50px;
}
.author-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform .25s, box-shadow .25s;
}
.author-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.author-card-avatar {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    margin: 0 auto 16px;
    border: 2px dashed var(--line);
    padding: 3px;
}
.author-card h3 { font-size: 19px; margin-bottom: 4px; }
.author-card p { font-size: 14px; color: var(--brown); line-height: 1.5; margin-bottom: 12px; }
.author-card-count {
    display: inline-block;
    padding: 5px 12px;
    background: var(--kraft);
    color: var(--ink);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Contact page */
.contact-page { padding: 30px 0 60px; }
.contact-intro { max-width: 640px; margin-bottom: 32px; color: var(--brown); }
.contact-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 36px;
    max-width: 680px;
    box-shadow: var(--shadow-soft);
}
.contact-card h2 { font-size: 24px; margin-bottom: 14px; }
.contact-card p { margin-bottom: 16px; color: var(--ink-soft); }
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: background .2s;
}
.contact-link:hover { background: var(--accent-dark); }

/* Static page content */
.page-content { padding: 8px 0 60px; }
.page-content h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.page-content p { margin-bottom: 1.1em; color: var(--ink-soft); }

/* 404 */
.error-page { padding: 80px 0 100px; text-align: center; }
.error-code {
    font-family: var(--hff);
    font-size: 110px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}
.error-page h1 { font-size: 32px; margin-bottom: 14px; }
.error-page p { color: var(--brown); margin-bottom: 28px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: background .2s;
}
.btn:hover { background: var(--accent-dark); }

/* Footer */
.site-footer {
    background: var(--ink);
    color: var(--linen);
    padding: 46px 0 0;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 14px;
    background: radial-gradient(circle, transparent 4px, var(--linen) 5px);
    background-size: 14px 14px;
    opacity: .8;
}
.footer-social-strip {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}
.footer-social-strip a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 240, 232, .1);
    color: var(--linen);
    transition: background .2s, color .2s;
}
.footer-social-strip a:hover { background: var(--kraft); color: var(--ink); }
.footer-social-strip svg { width: 18px; height: 18px; }
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px dashed rgba(245, 240, 232, .2);
}
.footer-logo {
    font-family: var(--hff);
    font-size: 26px;
    font-weight: 700;
    color: var(--linen);
    display: inline-block;
    margin-bottom: 12px;
}
.footer-desc { color: var(--brown); font-size: 14.5px; line-height: 1.55; }
.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 16px;
    color: var(--kraft);
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--linen); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--kraft); }
.footer-newsletter { display: flex; flex-direction: column; gap: 10px; }
.footer-newsletter input { background: rgba(245, 240, 232, .1); border: 1px solid rgba(245, 240, 232, .2); color: var(--linen); }
.footer-newsletter input::placeholder { color: rgba(245, 240, 232, .75); }
.footer-newsletter button { background: var(--accent); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 13px;
    color: var(--brown);
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: var(--linen); }
.footer-bottom-links a:hover { color: var(--kraft); }

/* Back to top */
#back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s, visibility .25s;
    z-index: 90;
    box-shadow: var(--shadow-card);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--accent-dark); }
#back-to-top svg { width: 20px; height: 20px; }

/* Search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 43, 31, .94);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 16vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 200;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-close {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--linen);
    font-size: 42px;
    line-height: 1;
}
.search-box { width: min(680px, 90vw); }
.search-box input {
    width: 100%;
    padding: 20px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--linen);
    font-family: var(--hff);
    font-size: 22px;
    color: var(--ink);
}
.search-box input:focus { outline: none; box-shadow: 0 0 0 3px var(--kraft); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 44px;
}
.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
}
.pagination a:hover { background: var(--soft); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Responsive */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .hero-col-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .author-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ink);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
    }
    .nav-menu.active { display: flex; }
    .nav-item > a { padding: 14px 24px; }
    .nav-toggle { display: flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-col-side { grid-template-columns: 1fr; }
    .hero-big .card-thumb { aspect-ratio: 16/10; }
    .cards-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .author-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .article-head h1 { font-size: 28px; }
    .page-header h1 { font-size: 28px; }
    .error-code { font-size: 80px; }
    .header-inner { padding: 26px 0 24px; }
    .site-logo { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.cc-initial{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-family:var(--hff);font-weight:700;font-size:40px;color:var(--terracotta)}
