/* ─────────────────────────────────────────
   Jane Doe Theme — main.css
───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream: #faf8f4;
    --warm-white: #fffdf9;
    --sand: #f0ebe1;
    --terracotta: #c4714a;
    --terracotta-light: #d4896a;
    --terracotta-pale: #f5ede7;
    --ink: #1f1a14;
    --ink-muted: #6b6058;
    --ink-faint: #a89e95;
    --border: #e6dfd5;
    --serif: 'Lora', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --max-w: 900px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); }

/* ── NAV — mobile first ──────────────────── */

/* Header bar */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 1.2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
}

/* Logo */
.site-logo {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
    z-index: 1;
}
.site-logo:hover { color: var(--terracotta); }

/* Desktop nav — hidden by default (mobile first) */
.site-nav--desktop { display: none; }

/* Desktop nav menu list */
.nav-menu {
    display: flex; gap: 2rem;
    list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a { color: var(--terracotta); }

/* ── HAMBURGER BUTTON ────────────────────── */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none; border: none;
    cursor: pointer; padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    z-index: 1;
}
.nav-toggle:hover { background: var(--sand); }
.nav-toggle__bar {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

/* Animate hamburger → X when open */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0; width: 0;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MOBILE MENU DRAWER ──────────────────── */
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 88vw);
    height: 100dvh;
    background: var(--warm-white);
    z-index: 300;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__inner {
    display: flex; flex-direction: column;
    height: 100%; padding: 0;
}

/* Drawer top bar */
.mobile-menu__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.4rem;
    height: 56px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.mobile-menu__logo {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: 0.01em;
}
.mobile-menu__close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
    border-radius: 6px; color: var(--ink-muted);
    transition: background 0.2s, color 0.2s;
}
.mobile-menu__close:hover { background: var(--sand); color: var(--terracotta); }

/* Drawer nav links */
.mobile-menu__nav {
    flex: 1;
    padding: 1.6rem 0;
}
.mobile-nav-menu {
    list-style: none; margin: 0; padding: 0;
}
.mobile-nav-menu li { border-bottom: 1px solid var(--border); }
.mobile-nav-menu li:first-child { border-top: none; }
.mobile-nav-menu a {
    display: block;
    padding: 1.1rem 1.6rem;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    letter-spacing: 0.01em;
}
.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item a {
    color: var(--terracotta);
    padding-left: 2rem;
}

/* Stagger animation for nav items */
.mobile-menu.is-open .mobile-nav-menu li {
    animation: mobile-item-in 0.3s ease both;
}
.mobile-menu.is-open .mobile-nav-menu li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.is-open .mobile-nav-menu li:nth-child(2) { animation-delay: 0.10s; }
.mobile-menu.is-open .mobile-nav-menu li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.is-open .mobile-nav-menu li:nth-child(4) { animation-delay: 0.20s; }
.mobile-menu.is-open .mobile-nav-menu li:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.is-open .mobile-nav-menu li:nth-child(6) { animation-delay: 0.30s; }
@keyframes mobile-item-in {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Drawer footer */
.mobile-menu__footer {
    padding: 1.4rem 1.6rem 2rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.mobile-menu__contact {
    display: block;
    font-size: 0.88rem;
    color: var(--terracotta);
    text-decoration: none;
    margin-bottom: 0.6rem;
}
.mobile-menu__copy {
    font-size: 0.75rem;
    color: var(--ink-faint);
}

/* ── OVERLAY BACKDROP ────────────────────── */
.mobile-menu__overlay {
    position: fixed; inset: 0;
    background: rgba(31, 26, 20, 0.5);
    backdrop-filter: blur(2px);
    z-index: 250;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.mobile-menu__overlay.is-visible {
    opacity: 1; pointer-events: auto;
}

/* ── DESKTOP — show horizontal nav, hide hamburger ── */
@media (min-width: 768px) {
    .site-header { padding: 0 2rem; height: 60px; }
    .nav-toggle  { display: none; }
    .site-nav--desktop { display: block; }
}

/* ── HERO ───────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 2rem 60px;
    background: var(--warm-white);
    position: relative;
    overflow: hidden;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero-blob--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #f2cdb8 0%, transparent 70%);
    top: -100px; right: -100px; opacity: 0.5;
    animation: blob-drift 12s ease-in-out infinite alternate;
}
.hero-blob--2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #e8d5c0 0%, transparent 70%);
    bottom: 0; left: 10%; opacity: 0.4;
    animation: blob-drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(30px,-20px) scale(1.05); }
}
.hero__inner {
    max-width: var(--max-w); margin: 0 auto; width: 100%;
    position: relative; z-index: 1;
}
.hero__tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    background: var(--terracotta-pale);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 1.8rem;
    animation: fade-up 0.8s ease both;
}
.hero__title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 500;
    line-height: 1.18;
    color: var(--ink);
    margin-bottom: 1.4rem;
    animation: fade-up 0.8s 0.1s ease both;
}
.hero__title em { color: var(--terracotta); font-style: italic; }
.hero__sub {
    font-size: 1.1rem;
    color: var(--ink-muted);
    max-width: 500px;
    margin-bottom: 2.4rem;
    animation: fade-up 0.8s 0.2s ease both;
    font-weight: 300;
}
.hero__ctas {
    display: flex; gap: 1rem; flex-wrap: wrap;
    animation: fade-up 0.8s 0.3s ease both;
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--sans);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn--primary { background: var(--terracotta); color: #fff; }
.btn--primary:hover {
    background: var(--terracotta-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196,113,74,0.3);
    color: #fff;
}
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn--outline:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    transform: translateY(-1px);
}

/* ── SECTIONS (shared) ───────────────────── */
.site-section { padding: 90px 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.6rem;
    display: block;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 500;
    line-height: 1.22;
    color: var(--ink);
    margin-bottom: 0;
}
.section-divider {
    width: 40px; height: 2px;
    background: var(--terracotta);
    margin: 1.4rem 0 2.4rem;
    border-radius: 2px;
    border: none;
}

/* ── ABOUT ───────────────────────────────── */
.about-section { background: var(--cream); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
    align-items: start;
}
.about-photo-wrap { position: relative; }
.about-photo {
    width: 100%; aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: var(--sand);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.about-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.about-photo-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--ink-faint); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.about-photo-placeholder svg { opacity: 0.35; }
.about-stat-card {
    position: absolute; bottom: -16px; right: -16px;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.about-stat-card strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--terracotta);
}
.about-stat-card span { font-size: 0.75rem; color: var(--ink-muted); }
.about-text p { color: var(--ink-muted); margin-bottom: 1rem; font-size: 0.97rem; }
.skills-list {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 1.6rem; list-style: none; padding: 0;
}
.skills-list li {
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--sand);
    color: var(--ink-muted);
    border: 1px solid var(--border);
}

/* ── CV ──────────────────────────────────── */
.cv-section-wrap { background: var(--warm-white); }
.cv-group { margin-bottom: 3rem; }
.cv-group-title {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.cv-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem 2rem;
    margin-bottom: 1.8rem;
}
.cv-date { font-size: 0.78rem; color: var(--ink-faint); padding-top: 3px; letter-spacing: 0.02em; }
.cv-role { font-weight: 500; font-size: 0.97rem; color: var(--ink); }
.cv-org  { font-size: 0.87rem; color: var(--terracotta); margin-bottom: 0.3rem; }
.cv-desc { font-size: 0.87rem; color: var(--ink-muted); }
.cv-download {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 2rem;
}

/* ── PORTFOLIO ───────────────────────────── */
.portfolio-section { background: var(--cream); }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
}
.project-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.project-thumb {
    height: 160px;
    background: var(--sand);
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb-placeholder {
    background: linear-gradient(135deg, var(--terracotta-pale) 0%, #e8d0be 100%);
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.project-type {
    position: absolute; top: 12px; left: 12px;
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-muted);
    background: rgba(255,255,255,0.85);
    padding: 3px 10px; border-radius: 100px;
}
.project-body { padding: 1.2rem 1.4rem 1.4rem; }
.project-title { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.4rem; }
.project-desc  { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 1rem; line-height: 1.6; }
.project-link  {
    font-size: 0.78rem; color: var(--terracotta); text-decoration: none;
    font-weight: 500; letter-spacing: 0.02em;
}
.project-link:hover { text-decoration: underline; }

/* ── BLOG ────────────────────────────────── */
.blog-section { background: var(--warm-white); }
.blog-list { list-style: none; padding: 0; }
.blog-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem 2rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    text-decoration: none;
    color: inherit;
}
.blog-item:hover .blog-title { color: var(--terracotta); }
.blog-date    { font-size: 0.78rem; color: var(--ink-faint); padding-top: 3px; }
.blog-title   { font-family: var(--serif); font-size: 1.08rem; margin-bottom: 0.3rem; transition: color 0.2s; }
.blog-excerpt { font-size: 0.84rem; color: var(--ink-muted); }
.blog-tag {
    font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--terracotta); background: var(--terracotta-pale);
    padding: 3px 10px; border-radius: 100px; white-space: nowrap; align-self: start;
}

/* ── CONTACT ─────────────────────────────── */
.contact-section { background: var(--cream); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
}
.contact-intro { font-size: 0.97rem; color: var(--ink-muted); margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
    display: flex; align-items: center; gap: 0.8rem;
    font-size: 0.9rem; color: var(--ink-muted);
    text-decoration: none; transition: color 0.2s;
}
.contact-link:hover { color: var(--terracotta); }
.contact-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--sand);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.2s;
}
.contact-link:hover .contact-icon { background: var(--terracotta-pale); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-success {
    background: #eaf7ec; border: 1px solid #b4e1bc;
    color: #2d6a38; border-radius: 8px; padding: 12px 16px;
    font-size: 0.9rem; margin-bottom: 1rem;
}
.form-group   { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label   { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.form-input,
.form-textarea {
    background: var(--warm-white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--ink);
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--terracotta); }
.form-textarea { resize: vertical; min-height: 110px; }

/* ── FOOTER ──────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: var(--ink-faint);
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: 0.82rem;
}
.site-footer a { color: var(--terracotta-light); text-decoration: none; }

/* ── PAGE TEMPLATE ───────────────────────── */
.page-wrap {
    padding: 100px 2rem 80px;
}
.page-wrap__inner {
    max-width: 760px;
    margin: 0 auto;
}
.entry-header { margin-bottom: 0; }
.entry-title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 0;
}
.entry-body p   { color: var(--ink-muted); margin-bottom: 1.2rem; font-size: 0.97rem; }
.entry-body h2  { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin: 2.4rem 0 0.8rem; }
.entry-body h3  { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; color: var(--ink); margin: 2rem 0 0.6rem; }
.entry-body a   { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.entry-body ul,
.entry-body ol  { padding-left: 1.4rem; margin-bottom: 1.2rem; color: var(--ink-muted); }
.entry-body li  { margin-bottom: 0.4rem; font-size: 0.97rem; }

/* ── SINGLE POST WRAP ────────────────────── */
.post-wrap {
    padding: 80px 2rem 80px;
    background: var(--cream);
}
.post-wrap__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}
.post-wrap__inner--has-sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
}

/* ── POST CONTENT ────────────────────────── */
.post-content { min-width: 0; }

.post-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-faint); text-decoration: none;
    margin-bottom: 2rem; transition: color 0.2s;
}
.post-back:hover { color: var(--terracotta); }

.post-cat {
    display: inline-block;
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--terracotta); background: var(--terracotta-pale);
    padding: 4px 12px; border-radius: 100px;
    margin-bottom: 1.2rem; text-decoration: none;
}
.post-cat:hover { background: var(--terracotta); color: #fff; }

.post-title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 500; line-height: 1.2;
    color: var(--ink); margin-bottom: 1.2rem;
}
.post-meta {
    display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
    font-size: 0.82rem; color: var(--ink-faint);
    margin-bottom: 2.4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }

.post-image {
    width: 100%; aspect-ratio: 16/9;
    border-radius: 12px; overflow: hidden;
    margin-bottom: 2.8rem;
    background: var(--sand);
}
.post-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-body { font-size: 1.02rem; line-height: 1.85; color: var(--ink-muted); }
.post-body p         { margin-bottom: 1.4rem; }
.post-body h2        { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin: 2.6rem 0 0.8rem; line-height: 1.3; }
.post-body h3        { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; color: var(--ink); margin: 2rem 0 0.6rem; }
.post-body a         { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong    { color: var(--ink); font-weight: 500; }
.post-body em        { font-style: italic; }
.post-body ul,
.post-body ol        { padding-left: 1.4rem; margin-bottom: 1.4rem; }
.post-body li        { margin-bottom: 0.4rem; }
.post-body blockquote {
    border-left: 3px solid var(--terracotta);
    margin: 2rem 0; padding: 0.6rem 0 0.6rem 1.6rem;
    font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--ink);
}
.post-body code {
    background: var(--sand); border: 1px solid var(--border);
    border-radius: 4px; padding: 2px 7px;
    font-size: 0.88em; font-family: 'Courier New', monospace; color: var(--ink);
}
.post-body pre {
    background: var(--ink); color: #f0ebe1;
    border-radius: 10px; padding: 1.4rem 1.6rem;
    overflow-x: auto; margin-bottom: 1.6rem;
    font-size: 0.87rem; line-height: 1.7;
}
.post-body pre code { background: none; border: none; padding: 0; color: inherit; }
.post-body img      { border-radius: 8px; margin: 1.6rem 0; }

.post-divider {
    width: 40px; height: 2px; background: var(--terracotta);
    border: none; border-radius: 2px; margin: 2.6rem 0;
}

/* Author card */
.post-author {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--warm-white); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.4rem 1.6rem; margin-top: 2.4rem;
}
.post-author__avatar        { flex-shrink: 0; }
.post-author__avatar img    { width: 52px; height: 52px; border-radius: 50%; }
.post-author__name          { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--ink); }
.post-author__bio           { font-size: 0.84rem; color: var(--ink-muted); }

/* Related posts */
.post-related          { margin-top: 3rem; }
.post-related__title   { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1.2rem; }
.post-related__grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.related-card {
    background: var(--warm-white); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.2rem 1.4rem;
    text-decoration: none; color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover         { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.related-card__cat          { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.4rem; }
.related-card__title        { font-family: var(--serif); font-size: 0.97rem; line-height: 1.35; color: var(--ink); }

/* ── SIDEBAR ─────────────────────────────── */
.post-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.widget {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
}
.widget-title {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}
/* Recent posts widget */
.widget_recent_entries ul { list-style: none; padding: 0; margin: 0; }
.widget_recent_entries li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    line-height: 1.4;
}
.widget_recent_entries li:last-child { border-bottom: none; padding-bottom: 0; }
.widget_recent_entries a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.widget_recent_entries a:hover { color: var(--terracotta); }
.post-date { display: block; font-size: 0.75rem; color: var(--ink-faint); margin-top: 2px; }

/* Categories widget */
.widget_categories ul { list-style: none; padding: 0; margin: 0; }
.widget_categories li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.widget_categories li:last-child { border-bottom: none; }
.widget_categories a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.widget_categories a:hover { color: var(--terracotta); }

/* Text / HTML widget */
.widget_text p,
.widget_block p { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 0.6rem; }
.widget_text a,
.widget_block a { color: var(--terracotta); }

/* Search widget */
.widget_search .search-form { display: flex; gap: 0; }
.widget_search .search-field {
    flex: 1; padding: 9px 12px;
    border: 1.5px solid var(--border); border-right: none;
    border-radius: 6px 0 0 6px;
    font-family: var(--sans); font-size: 0.88rem; color: var(--ink);
    background: var(--cream); outline: none;
}
.widget_search .search-field:focus { border-color: var(--terracotta); }
.widget_search .search-submit {
    padding: 9px 14px;
    background: var(--terracotta); color: #fff; border: none;
    border-radius: 0 6px 6px 0; cursor: pointer; font-size: 0.82rem;
    font-family: var(--sans); transition: background 0.2s;
}
.widget_search .search-submit:hover { background: var(--terracotta-light); }

/* ── FOOTER ──────────────────────────────── */
.site-footer { background: var(--ink); color: var(--ink-faint); }

.footer-widgets {
    padding: 3.5rem 2rem 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-widgets__inner {
    max-width: 1000px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
}
.footer-widget-title {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Footer widget text/links */
.site-footer .widget p,
.site-footer .widget { font-size: 0.86rem; color: var(--ink-faint); line-height: 1.7; background: none; border: none; padding: 0; border-radius: 0; }
.site-footer .widget a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.site-footer .widget a:hover { color: var(--terracotta-light); }
.site-footer .widget ul { list-style: none; padding: 0; margin: 0; }
.site-footer .widget li { padding: 0.3rem 0; font-size: 0.86rem; }
.site-footer .widget-title,
.site-footer .footer-widget-title {
    font-family: var(--serif); font-size: 0.95rem; font-weight: 500;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: none;
}

/* Footer bottom bar */
.footer-bar { padding: 1.4rem 2rem; }
.footer-bar__inner {
    max-width: 1000px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.8rem;
}
.footer-copy { font-size: 0.8rem; color: var(--ink-faint); }
.footer-copy a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-copy a:hover { color: var(--terracotta-light); }
.footer-nav { display: flex; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.footer-nav a { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--terracotta-light); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
    .post-wrap__inner--has-sidebar {
        grid-template-columns: 1fr;
    }
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .footer-widgets__inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col--about {
        grid-column: 1 / -1;
    }
}
@media (max-width: 700px) {
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cv-item       { grid-template-columns: 1fr; gap: 0.2rem; }
    .blog-item     { grid-template-columns: 1fr; }
    .blog-date,
    .blog-tag      { display: none; }
    .about-stat-card { display: none; }
    .post-related__grid { grid-template-columns: 1fr; }
    .footer-widgets__inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bar__inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .footer-nav { flex-wrap: wrap; gap: 1rem; }
}

/* ── SKIP TO CONTENT ─────────────────────── */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 10px 20px;
    background: var(--terracotta);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

/* ── 404 PAGE ────────────────────────────── */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 80px;
    background: var(--warm-white);
}
.error-404__inner {
    max-width: 520px;
    text-align: center;
}
.error-404__inner .section-label {
    display: block;
    margin-bottom: 1.2rem;
}
.error-404__title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1.2rem;
}
.error-404__message {
    font-size: 1rem;
    color: var(--ink-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ── ARCHIVE ─────────────────────────────── */
.archive-wrap { padding: 100px 2rem 80px; }
.archive-wrap__inner { max-width: var(--max-w); margin: 0 auto; }
.archive-header { margin-bottom: 0; }
.archive-title { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 500; line-height: 1.2; color: var(--ink); margin-bottom: 0.6rem; }
.archive-desc { font-size: 0.97rem; color: var(--ink-muted); margin-top: 0.6rem; }
.archive-empty { color: var(--ink-faint); font-size: 0.97rem; padding: 2rem 0; }
.archive-pagination { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.archive-pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.archive-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; font-size: 0.88rem; color: var(--ink-muted); text-decoration: none; border: 1px solid var(--border); transition: all 0.2s; }
.archive-pagination .page-numbers:hover { border-color: var(--terracotta); color: var(--terracotta); }
.archive-pagination .page-numbers.current { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.archive-pagination .prev, .archive-pagination .next { width: auto; padding: 0 14px; font-size: 0.82rem; letter-spacing: 0.04em; }
