/* ==========================================================================
   Inkwell – Main Stylesheet
   ========================================================================== */

/* ── Custom properties ────────────────────────────────────────────────────── */
:root {
    --color-bg:          #faf9f7;
    --color-surface:     #ffffff;
    --color-border:      #e8e4df;
    --color-text:        #2d2926;
    --color-text-muted:  #7a736c;
    --color-accent:      #6b8c6e;
    --color-accent-dark: #4e6951;
    --color-accent-bg:   #eef4ef;
    --color-link:        #6b8c6e;

    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:   'Lato', system-ui, -apple-system, sans-serif;

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

    --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
    --shadow-md:   0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:   0 8px 32px rgba(0,0,0,.12);

    --max-width:   1200px;
    --sidebar-w:   320px;
    --gap:         2rem;
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5em; }
p { margin: 0 0 1em; }

.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;
}

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── News ticker ──────────────────────────────────────────────────────────── */
.news-ticker {
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    height: 2rem;
    overflow: hidden;
    font-size: .72rem;
    letter-spacing: .02em;
}

.ticker-label {
    flex-shrink: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 0 .9rem;
    background: var(--color-accent-dark);
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 28s linear infinite;
    will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    color: #fff;
    padding: 0 .5rem;
    text-decoration: none;
    transition: opacity .2s;
}
.ticker-item:hover { opacity: .75; text-decoration: none; }

.ticker-sep {
    color: rgba(255,255,255,.5);
    padding: 0 .35rem;
    user-select: none;
}

/* ── Site Header ──────────────────────────────────────────────────────────── */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-branding { flex: 1; }

.site-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
}
.site-title a { color: var(--color-text); }
.site-title a:hover { text-decoration: none; color: var(--color-accent); }

.site-tagline {
    margin: .25rem 0 0;
    font-size: .85rem;
    font-style: italic;
    color: var(--color-text-muted);
    letter-spacing: .01em;
}

.site-logo img { max-height: 60px; width: auto; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.main-navigation { display: flex; align-items: center; }

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .25rem;
}

.nav-menu li a {
    display: block;
    padding: .4rem .75rem;
    color: var(--color-text);
    font-size: .9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
}
.nav-menu li a:hover {
    color: var(--color-accent);
    background: var(--color-accent-bg);
    text-decoration: none;
}

/* Header search */
.header-search { display: flex; align-items: center; position: relative; }

.search-toggle {
    background: none; border: none; cursor: pointer;
    color: var(--color-text); padding: .4rem;
    border-radius: var(--radius-sm);
    display: flex; align-items: center;
    transition: color .2s, background .2s;
}
.search-toggle:hover { color: var(--color-accent); background: var(--color-accent-bg); }
.search-toggle[aria-expanded="true"] { color: var(--color-accent); }

.header-search-form {
    display: flex; align-items: center;
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 0; opacity: 0; pointer-events: none;
    transition: width .25s ease, opacity .2s ease;
    z-index: 10;
}
.header-search-form.is-open {
    width: 220px; opacity: 1; pointer-events: auto;
}

.header-search-input {
    flex: 1; border: none; outline: none;
    padding: .45rem .75rem;
    font-size: .85rem; font-family: var(--font-sans);
    background: transparent; color: var(--color-text);
    min-width: 0;
}
.header-search-submit {
    background: none; border: none; cursor: pointer;
    color: var(--color-text-muted); padding: .45rem .65rem;
    display: flex; align-items: center;
    transition: color .2s;
}
.header-search-submit:hover { color: var(--color-accent); }

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: .15rem;
    flex-shrink: 0;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: color .2s, background .2s;
}
.social-icon:hover {
    color: var(--color-accent);
    background: var(--color-accent-bg);
    text-decoration: none;
}

/* Nav home icon vertical alignment */
.nav-menu li a svg { vertical-align: middle; margin-top: -2px; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    border-radius: var(--radius-sm);
}
.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* ── Flash messages ───────────────────────────────────────────────────────── */
.flash-message {
    text-align: center;
    padding: .9rem 1.5rem;
    font-size: .9rem;
    font-weight: 500;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-info    { background: #d1ecf1; color: #0c5460; }

/* ── Content area ─────────────────────────────────────────────────────────── */
.content-area { padding-top: 3rem; padding-bottom: 4rem; }

.posts-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: var(--gap);
    align-items: start;
}

/* ── Post cards grid ──────────────────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.post-card__image-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card__image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.post-card:hover .post-card__image { transform: scale(1.04); }

.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
    gap: .75rem;
}

.post-card__meta { display: flex; gap: .5rem; flex-wrap: wrap; }

.post-card__category {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-accent);
    background: var(--color-accent-bg);
    padding: .2rem .6rem;
    border-radius: 99px;
}
.post-card__category:hover { text-decoration: none; background: var(--color-accent); color: #fff; }

.post-card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.3;
}
.post-card__title a { color: var(--color-text); }
.post-card__title a:hover { color: var(--color-accent); text-decoration: none; }

.post-card__excerpt {
    flex: 1;
    color: var(--color-text-muted);
    font-size: .92rem;
    line-height: 1.6;
}
.post-card__excerpt p { margin: 0; }

.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .75rem;
    border-top: 1px solid var(--color-border);
    font-size: .82rem;
    color: var(--color-text-muted);
}

.post-card__author { display: flex; align-items: center; gap: .5rem; }
.post-card__author-avatar { border-radius: 50%; width: 28px; height: 28px; object-fit: cover; }
.post-card__author-name { font-weight: 600; color: var(--color-text); }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
    border-radius: var(--radius-md);
    font-size: .9rem; font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: background .2s, color .2s;
}
.page-numbers:hover { background: var(--color-accent-bg); color: var(--color-accent); text-decoration: none; }
.page-numbers.current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.page-numbers.dots { border: none; background: none; pointer-events: none; }

/* ── Archive / Search header ──────────────────────────────────────────────── */
.archive-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
}
.archive-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin: 0 0 .5rem;
}
.archive-description { color: var(--color-text-muted); }

/* ── Single post ──────────────────────────────────────────────────────────── */
.single-post__header { margin-bottom: 2rem; }

.single-post__categories { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }

.category-badge {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-accent);
    background: var(--color-accent-bg);
    padding: .2rem .75rem;
    border-radius: 99px;
}
.category-badge:hover { background: var(--color-accent); color: #fff; text-decoration: none; }

.single-post__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.single-post__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.single-post__author { display: flex; align-items: center; gap: .75rem; }
.single-post__author-avatar { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
.single-post__author-name { font-weight: 700; display: block; font-size: .9rem; }
.single-post__date { font-size: .82rem; color: var(--color-text-muted); }

.single-post__featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    aspect-ratio: 2/1;
}
.single-post__featured-image img { width: 100%; height: 100%; object-fit: cover; }

.single-post__content,
.entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 70ch;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-serif);
    margin-top: 2em;
    margin-bottom: .6em;
    line-height: 1.25;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-accent);
    background: var(--color-accent-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-muted);
}
.entry-content blockquote p { margin: 0; }

.entry-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: .9rem;
    line-height: 1.6;
}

.entry-content code {
    font-size: .9em;
    background: var(--color-accent-bg);
    color: var(--color-accent-dark);
    padding: .1em .35em;
    border-radius: var(--radius-sm);
}
.entry-content pre code { background: none; color: inherit; padding: 0; }

.entry-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem auto;
}

/* Post footer */
.single-post__footer { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--color-border); }

.single-post__tags { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 2rem; }
.tags-label { font-size: .82rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; }

.tag-pill {
    font-size: .78rem;
    padding: .25rem .7rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    color: var(--color-text-muted);
    transition: background .2s, color .2s, border-color .2s;
}
.tag-pill:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); text-decoration: none; }

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.nav-previous, .nav-next { display: flex; flex-direction: column; }
.nav-next { text-align: right; }
.post-navigation a { font-family: var(--font-serif); font-weight: 700; line-height: 1.3; }
.post-navigation a:hover { text-decoration: none; color: var(--color-accent); }

/* Author bio box */
.author-bio-box {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.author-bio-box__avatar { border-radius: 50%; width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; }
.author-bio-box__name { margin: 0 0 .35rem; font-family: var(--font-serif); font-size: 1.1rem; }
.author-bio-box__bio { margin: 0; font-size: .9rem; color: var(--color-text-muted); line-height: 1.6; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 80px; }

.widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1.2rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* About author */
.author-card { text-align: center; }
.author-card .author-avatar {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 auto .75rem;
    border: 3px solid var(--color-border);
}
.author-name { margin: 0 0 .5rem; font-family: var(--font-serif); font-size: 1.1rem; }
.author-bio { margin: 0; font-size: .875rem; color: var(--color-text-muted); line-height: 1.6; }

/* Subscribe widget */
.subscribe-intro { font-size: .875rem; color: var(--color-text-muted); margin-bottom: 1rem; }

.subscribe-form .form-group { margin-bottom: .75rem; }

.subscribe-form input[type="text"],
.subscribe-form input[type="email"] {
    width: 100%;
    padding: .6rem .9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color .2s;
}
.subscribe-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-surface);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .65rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: .9rem; font-weight: 700; font-family: var(--font-sans);
    cursor: pointer; border: none; transition: background .2s, transform .1s;
}
.btn-primary { background: var(--color-accent); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--color-accent-dark); text-decoration: none; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.subscribe-message {
    margin: .75rem 0 0;
    font-size: .82rem;
    min-height: 1.2em;
    text-align: center;
}
.subscribe-message.success { color: #155724; }
.subscribe-message.error   { color: #721c24; }

/* Categories */
.category-list {
    list-style: none;
    margin: 0; padding: 0;
}
.category-list li {
    border-bottom: 1px solid var(--color-border);
}
.category-list li:last-child { border-bottom: none; }
.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .25rem;
    color: var(--color-text);
    font-size: .9rem;
    transition: color .2s;
}
.category-list li a:hover { color: var(--color-accent); text-decoration: none; }
.category-list li.current a { color: var(--color-accent); font-weight: 700; }
.cat-count {
    font-size: .75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    padding: .1rem .5rem;
    color: var(--color-text-muted);
}

/* Archive calendar */
.archive-calendar { font-size: .75rem; }

#wp-calendar {
    width: 100%;
    border-collapse: collapse;
    line-height: 1.4;
}

#wp-calendar caption {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-muted);
    padding-bottom: .4rem;
    text-align: center;
}

#wp-calendar th {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: .2rem 0;
    text-align: center;
}

#wp-calendar td {
    text-align: center;
    padding: .18rem .1rem;
    color: var(--color-text-muted);
    font-size: .72rem;
}

#wp-calendar td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: .72rem;
}
#wp-calendar td a:hover {
    background: var(--color-accent-dark);
    text-decoration: none;
}

#wp-calendar td#today {
    color: var(--color-accent);
    font-weight: 700;
}

#wp-calendar tfoot td {
    padding-top: .4rem;
    font-size: .7rem;
}
#wp-calendar tfoot #prev { text-align: left; }
#wp-calendar tfoot #next { text-align: right; }
#wp-calendar tfoot a { color: var(--color-accent); font-weight: 600; }
#wp-calendar tfoot a:hover { text-decoration: underline; }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-cloud a {
    font-size: .8rem !important;
    padding: .2rem .65rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    color: var(--color-text-muted);
    line-height: 1.6;
    transition: background .2s, color .2s;
}
.tag-cloud a:hover { background: var(--color-text); color: #fff; text-decoration: none; }

/* ── Comments ─────────────────────────────────────────────────────────────── */
.comments-wrapper { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--color-border); }

.comments-title, .comment-reply-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-body {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.comment-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.comment-author img { border-radius: 50%; width: 40px; height: 40px; }
.comment-author .fn { font-weight: 700; font-size: .9rem; }
.comment-metadata time { font-size: .78rem; color: var(--color-text-muted); }
.comment-content { font-size: .95rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .6rem .9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    margin-top: .25rem;
    transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none; border-color: var(--color-accent); background: var(--color-surface);
}
.comment-form label { font-size: .85rem; font-weight: 600; }
.comment-form .form-submit .submit {
    background: var(--color-accent);
    color: #fff; border: none;
    padding: .65rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700; font-size: .9rem;
    cursor: pointer;
    transition: background .2s;
}
.comment-form .form-submit .submit:hover { background: var(--color-accent-dark); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,.7);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: .25rem; flex-wrap: wrap;
}
.footer-menu li a {
    color: rgba(255,255,255,.6); font-size: .85rem; padding: .25rem .5rem; border-radius: var(--radius-sm);
}
.footer-menu li a:hover { color: #fff; text-decoration: none; }

.copyright { margin: 0; font-size: .82rem; color: rgba(255,255,255,.5); }
.copyright a { color: rgba(255,255,255,.7); }
.copyright a:hover { color: #fff; }

.footer-widgets {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 1.5rem;
}

/* ── Search form ──────────────────────────────────────────────────────────── */
.search-form { display: flex; gap: .5rem; }
.search-field {
    flex: 1;
    padding: .6rem .9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
}
.search-field:focus { outline: none; border-color: var(--color-accent); }
.search-submit {
    padding: .6rem 1rem;
    background: var(--color-accent); color: #fff; border: none;
    border-radius: var(--radius-md); font-weight: 700; cursor: pointer;
    transition: background .2s;
}
.search-submit:hover { background: var(--color-accent-dark); }

/* ── 404 / not found ──────────────────────────────────────────────────────── */
.not-found .page-title { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 1rem; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media ( max-width: 1024px ) {
    :root { --sidebar-w: 280px; }
}

@media ( max-width: 768px ) {
    .posts-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        order: -1;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .post-navigation {
        grid-template-columns: 1fr;
    }
    .nav-next { text-align: left; }
    .author-bio-box { flex-direction: column; align-items: center; text-align: center; }

    /* Mobile nav */
    .menu-toggle { display: flex; }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 1rem;
    }
    .main-navigation.is-open { display: block; }
    .nav-menu { flex-direction: column; gap: 0; }
    .nav-menu li a { padding: .65rem 1rem; }

    .header-inner { position: relative; flex-wrap: wrap; }
}

@media ( max-width: 480px ) {
    .header-inner { gap: .75rem; }
    .content-area { padding-top: 2rem; }
}
