/*
Theme Name: AI for DBAs
Theme URI: https://aifordbas.com
Author: Ward
Description: Hand-drawn, sketch-aesthetic theme for AI for DBAs — paper-cream palette, locked sketch-robot background, wobbly hand-drawn borders, and orange circuit accents.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: ai, database-administration, sketch, hand-drawn, light, marketing, one-page
Text Domain: aifordbas
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Kalam:wght@400;700&family=Caveat:wght@500;700&display=swap');

/* =========================================================
 * 1. TOKENS
 * ========================================================= */
:root {
    --bg:          #F4ECD8;
    --bg-soft:     rgba(248, 248, 246, 0.78);
    --bg-deep:     rgba(241, 240, 235, 0.92);
    --ink:         #2B2B2B;
    --ink-soft:    #4a4a4a;
    --ink-faint:   #8a8a85;
    --orange:      #F47B20;
    --orange-soft: #fde2cd;

    --shadow:      4px 4px 0 0 rgba(43, 43, 43, 0.9);
    --shadow-sm:   2px 2px 0 0 rgba(43, 43, 43, 0.85);

    --radius-card:   18px 22px 16px 24px / 24px 16px 22px 18px;
    --radius-step:   18px 22px 16px 20px / 20px 16px 22px 18px;
    --radius-cta:    28px 22px 26px 24px / 24px 26px 22px 28px;
    --radius-btn:    14px 18px 12px 16px / 16px 12px 18px 14px;
    --radius-tag:    20px 18px 22px 16px / 18px 22px 16px 20px;

    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Kalam', 'Caveat', cursive;
    --font-marker:  'Caveat', 'Kalam', cursive;

    --container:    1180px;
    --container-narrow: 800px;
}

/* =========================================================
 * 2. RESET
 * ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* =========================================================
 * 3. BASE TYPOGRAPHY + LOCKED BACKGROUND
 * ========================================================= */
body {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;

    /* Locked sketch-robot background, anchored bottom-left. */
    background-color: var(--bg);
    background-image: url('/WTM64-content/themes/aifordbas/files/robot-bg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: left bottom;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right,  rgba(43,43,43,0.022) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(43,43,43,0.022) 1px, transparent 1px);
    background-size: 32px 32px;
}

a { color: inherit; text-decoration: none; }

.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.5px; }
.marker  { font-family: var(--font-marker);  font-weight: 700; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

/* Hidden global SVG defs holder (filters live in parts/header.html) */
.aifd-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* =========================================================
 * 4. NAV
 * ========================================================= */
.site-header,
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(244, 236, 216, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px dashed rgba(43, 43, 43, 0.18);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 28px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
}
.logo svg { width: 38px; height: 38px; }
.logo .dot { color: var(--orange); }

/* WardPress site-title sits inside the .logo anchor */
.logo .wp-block-site-title,
.logo .site-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    margin: 0;
    line-height: 1;
}
.logo .wp-block-site-title a,
.logo .site-title a { color: inherit; }

.nav-links {
    display: flex; gap: 28px;
    font-size: 15px;
}
.nav-links a {
    position: relative;
    padding: 4px 2px;
    color: var(--ink-soft);
    transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
    content: "";
    position: absolute; left: -2px; right: -4px; bottom: -2px;
    height: 4px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 4' preserveAspectRatio='none'><path d='M1 2 Q 10 0, 20 2 T 40 2 T 60 2 T 79 2' stroke='%23F47B20' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}

.search-form {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-tag);
    padding: 4px 10px;
}
.search-form .search-field {
    border: 0; background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    outline: none;
    width: 140px;
    padding: 4px 0;
}
.search-form .search-field::placeholder { color: var(--ink-faint); }
.search-form .search-submit {
    background: transparent; border: 0; cursor: pointer;
    color: var(--ink);
    font-size: 16px;
    padding: 0 2px;
}
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px);
    -webkit-clip-path: inset(50%); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    font-size: 18px;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--ink);
}

/* =========================================================
 * 5. BUTTONS
 * ========================================================= */
.btn,
.btn-primary,
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 15px; font-weight: 600;
    cursor: pointer; user-select: none;
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-btn);
    filter: url(#roughen-light);
    text-decoration: none;
}
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 rgba(43,43,43,0.9); }
.btn:active,
.btn-primary:active,
.btn-secondary:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 0 rgba(43,43,43,0.9); }

.btn-primary {
    background: var(--orange);
    color: #fff;
    border-color: var(--ink);
}
.btn-secondary,
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* =========================================================
 * 6. HERO
 * ========================================================= */
.hero {
    padding: 70px 0 110px;
    position: relative;
    min-height: 80vh;
}
.hero-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: center;
    min-height: 70vh;
}
.hero-stage {
    position: relative;
    min-height: 460px;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 7.5vw, 92px);
    line-height: 0.92;
    margin: 0 0 22px;
    letter-spacing: -1.2px;
}
.hero h1 .accent {
    color: var(--orange);
    position: relative;
    display: inline-block;
}
.hero h1 .accent::after {
    content: "";
    position: absolute; left: -4px; right: -8px; bottom: -6px;
    height: 8px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 5 Q 25 1, 50 4 T 100 4 T 150 4 T 198 4' stroke='%23F47B20' stroke-width='3' fill='none' stroke-linecap='round' opacity='0.5'/></svg>") no-repeat center / 100% 100%;
}
.hero p.lede {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--orange-soft);
    color: var(--ink);
    font-family: var(--font-marker);
    font-size: 18px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-tag);
    margin-bottom: 22px;
    filter: url(#roughen-light);
}
.hero-tag .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(244, 123, 32, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   rgba(244,123,32,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(244,123,32,0); }
    100% { box-shadow: 0 0 0 0   rgba(244,123,32,0); }
}

.float-code {
    position: absolute;
    top: -10px; left: -40px;
    width: 200px;
    z-index: 4;
    transform: rotate(-6deg);
    pointer-events: none;
}
.float-pen {
    position: absolute;
    bottom: -20px; right: 20px;
    width: 150px;
    z-index: 4;
    transform: rotate(8deg);
    pointer-events: none;
}
.hero-monitor {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 28px 0 0 auto;
    display: block;
    z-index: 3;
}
.hero-circuits {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* =========================================================
 * 7. SECTION SURFACES + CIRCUIT DIVIDER
 * ========================================================= */
.section-circuit { height: 60px; width: 100%; display: block; }

.surface {
    background: var(--bg-soft);
    border-top: 1px dashed rgba(43, 43, 43, 0.15);
    border-bottom: 1px dashed rgba(43, 43, 43, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.surface-deep {
    background: var(--bg-deep);
    border-top: 1px dashed rgba(43, 43, 43, 0.18);
    border-bottom: 1px dashed rgba(43, 43, 43, 0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* =========================================================
 * 8. FEATURES
 * ========================================================= */
.features { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
    font-family: var(--font-marker);
    color: var(--orange);
    font-size: 22px;
    margin-bottom: 4px;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 50px);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.section-head p {
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--radius-card);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    filter: url(#roughen);
}
.feature-card:nth-child(1) { transform: rotate(-0.6deg); }
.feature-card:nth-child(2) { transform: rotate(0.4deg); }
.feature-card:nth-child(3) { transform: rotate(-0.3deg); }
.feature-card:hover {
    transform: translate(-2px, -2px) rotate(0deg);
    box-shadow: 6px 6px 0 0 rgba(43, 43, 43, 0.9);
}
.feature-icon { width: 64px; height: 64px; margin-bottom: 18px; }
.feature-card h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Live-blog cards rendered into the .features section via wtm64:query.
   .wp-block-query wraps the cards; display:contents makes it transparent
   so .feature-grid lays the cards out as direct grid children. */
.feature-grid > .wp-block-query { display: contents; }
.post-feature-card { display: flex; flex-direction: column; min-height: 280px; }
.post-feature-card h3,
.post-feature-card .wp-block-post-title {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.18;
    margin: 0 0 10px;
    color: var(--ink);
}
.post-feature-card h3 a,
.post-feature-card .wp-block-post-title a { color: var(--ink); transition: color .15s; }
.post-feature-card h3 a:hover,
.post-feature-card .wp-block-post-title a:hover { color: var(--orange); }
.post-feature-card .entry-meta {
    font-family: var(--font-marker);
    font-size: 16px;
    color: var(--ink-faint);
    margin: 0 0 12px;
}
.post-feature-card .wp-block-post-excerpt,
.post-feature-card .wp-block-post-excerpt p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.55;
}

/* =========================================================
 * 9. HOW IT WORKS
 * ========================================================= */
.how { padding: 80px 0; }
.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 18px;
    align-items: stretch;
}
.step {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--radius-step);
    padding: 28px 22px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    filter: url(#roughen);
}
.step .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    background: var(--orange); color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    margin-bottom: 14px;
    transform: rotate(-4deg);
}
.step h4 { font-family: var(--font-display); font-size: 22px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.step-arrow { width: 80px; align-self: center; }

/* =========================================================
 * 10. DASHBOARD PREVIEW
 * ========================================================= */
.dashboard-section { padding: 90px 0; }
.dashboard-wrap { max-width: 980px; margin: 0 auto; position: relative; }
.dashboard-svg { width: 100%; height: auto; display: block; }

/* =========================================================
 * 11. CTA
 * ========================================================= */
.cta { padding: 90px 0; position: relative; }
.cta-card {
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--radius-cta);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 8px 8px 0 0 var(--orange);
    position: relative;
    overflow: visible;
    filter: url(#roughen);
}
.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    margin: 0 0 12px;
    color: #fff;
}
.cta-card h2 .accent { color: var(--orange); }
.cta-card p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
    margin: 0 auto 28px;
}
.cta-card .btn-primary {
    background: var(--orange); color: #fff;
    border-color: #fff;
    box-shadow: 4px 4px 0 0 rgba(255, 255, 255, 0.4);
}
.cta-robot-peek {
    position: absolute;
    right: -20px; bottom: -10px;
    width: 180px;
    transform: rotate(6deg);
    z-index: 5;
}

/* =========================================================
 * 12. FOOTER
 * ========================================================= */
.site-footer,
.footer {
    padding: 60px 0 40px;
    border-top: 1px dashed rgba(43, 43, 43, 0.18);
    background: var(--bg-deep);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.site-footer .container,
.footer .container { padding: 0 28px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.footer-grid h5 {
    font-family: var(--font-display);
    font-size: 18px;
    margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a {
    color: var(--ink-soft);
    font-size: 14px;
    transition: color .15s;
}
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px;
    border-top: 1px dashed rgba(43, 43, 43, 0.18);
    font-size: 13px;
    color: var(--ink-faint);
}
.footer-bottom p { margin: 0; }
.site-info { color: var(--ink-faint); font-size: 13px; }
.site-info .wp-block-site-title,
.site-info .site-title { display: inline; font-size: 13px; font-family: var(--font-body); font-weight: 500; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 14px; }
.footer-links a:hover { color: var(--orange); }

/* =========================================================
 * 13. SCROLL FADE
 * ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
 * 14. WARDPRESS BLOCK HELPERS — single, archive, page, blog
 * ========================================================= */
.site-main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 60px 28px 80px;
    position: relative;
    z-index: 1;
}
.site-main .entry-content,
.site-main .page-content {
    background: var(--bg-soft);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 2px solid var(--ink);
    border-radius: var(--radius-card);
    padding: 48px 44px;
    box-shadow: var(--shadow);
    filter: url(#roughen);
}

.entry-title,
.page-content h1,
.entry-content h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin: 0 0 18px;
    color: var(--ink);
}
.entry-content h2,
.page-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    margin: 36px 0 14px;
    color: var(--ink);
}
.entry-content h3,
.page-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin: 28px 0 10px;
}
.entry-content p,
.page-content p {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.7;
}
.entry-content a,
.page-content a {
    color: var(--orange);
    border-bottom: 1.5px dashed var(--orange);
}
.entry-content a:hover,
.page-content a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.entry-content blockquote {
    border-left: 4px solid var(--orange);
    background: rgba(255, 255, 255, 0.6);
    padding: 14px 20px;
    margin: 22px 0;
    font-family: var(--font-marker);
    font-size: 20px;
    color: var(--ink);
    border-radius: 6px 14px 14px 6px;
}
.entry-content code,
.entry-content pre {
    font-family: 'Menlo', 'Consolas', monospace;
    background: rgba(43, 43, 43, 0.06);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 14px;
}
.entry-content pre {
    padding: 16px 18px;
    overflow-x: auto;
    border: 1.5px dashed rgba(43, 43, 43, 0.25);
    line-height: 1.55;
}
.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol { padding-left: 26px; margin: 0 0 16px; color: var(--ink-soft); }
.entry-content li,
.page-content li { margin-bottom: 6px; line-height: 1.6; }
.entry-content img,
.page-content img,
.wp-post-image { max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: var(--radius-card); filter: url(#roughen); }

.entry-meta {
    display: flex; align-items: center; gap: 8px;
    color: var(--ink-faint);
    font-family: var(--font-marker);
    font-size: 17px;
    margin-bottom: 24px;
}
.entry-meta a { color: var(--orange); }
.entry-summary { color: var(--ink-soft); margin: 8px 0 0; }
.entry-summary p { margin: 0; }

.post {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px dashed rgba(43, 43, 43, 0.18);
}
.post:last-child { border-bottom: 0; }
.post .entry-title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; }
.post .entry-title a { color: var(--ink); }
.post .entry-title a:hover { color: var(--orange); }

/* =========================================================
 * 15. BLOG GRID + CARDS (templates/home.html)
 * ========================================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}
.blog-card {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--radius-card);
    padding: 24px 22px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    filter: url(#roughen);
    display: flex;
    flex-direction: column;
}
.blog-card:nth-child(3n+1) { transform: rotate(-0.5deg); }
.blog-card:nth-child(3n+2) { transform: rotate(0.4deg); }
.blog-card:nth-child(3n)   { transform: rotate(-0.3deg); }
.blog-card:hover {
    transform: translate(-2px, -2px) rotate(0deg);
    box-shadow: 6px 6px 0 0 rgba(43, 43, 43, 0.9);
}
.blog-card .wp-post-image { margin: -24px -22px 18px; border-radius: 0; border-width: 0 0 2px 0; max-height: 200px; object-fit: cover; }
.blog-card h2 {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.15;
    margin: 0 0 8px;
}
.blog-card h2 a { color: var(--ink); }
.blog-card h2 a:hover { color: var(--orange); }
.blog-card .entry-meta { font-size: 14px; margin-bottom: 12px; }

/* =========================================================
 * 16. RESPONSIVE
 * ========================================================= */
@media (max-width: 900px) {
    body {
        background-attachment: scroll;
        background-size: 160% auto;
        background-position: -10% top;
    }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
    .hero { padding-top: 280px; }
    .hero-stage { min-height: 320px; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step-arrow { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .nav-inner { padding: 14px 20px; }
    .float-code { left: 0; width: 160px; }
    .float-pen { right: 0; width: 110px; }
    .menu-toggle { display: inline-block; }
    .main-navigation.toggled .nav-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: absolute;
        top: 100%; right: 16px;
        background: rgba(244, 236, 216, 0.96);
        border: 1.5px solid var(--ink);
        border-radius: var(--radius-card);
        padding: 16px 22px;
        box-shadow: var(--shadow-sm);
    }
    .site-main .entry-content,
    .site-main .page-content { padding: 32px 24px; }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 52px; }
    .hero { padding-top: 220px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .cta-robot-peek { width: 120px; right: -10px; bottom: -10px; }
    .nav-inner { gap: 8px; }
    .search-form .search-field { width: 90px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 44px; }
    .cta-card { padding: 40px 22px; }
    .site-main .entry-content,
    .site-main .page-content { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .pulse  { animation: none; }
    html { scroll-behavior: auto; }
}
