/* ═══════════════════════════════════════════
   BLOG PAGE — pebble
═══════════════════════════════════════════ */

/* ── NAV ── */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: calc(100% - 48px);
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 52px;
    background: var(--pebble-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--pebble-border);
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(27, 43, 36, 0.06), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.blog-nav-logo {
    font-family: var(--pebble-sans);
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--pebble-ink);
    text-decoration: none;
}

.blog-nav-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.blog-nav-logo .brand-cursive {
    font-size: 22px;
    vertical-align: middle;
}

.blog-nav-cta {
    font-family: var(--pebble-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--pebble-bg);
    background: var(--pebble-ink);
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    letter-spacing: -0.01em;
}

.blog-nav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ── PAGE SHELL ── */
.blog-page {
    min-height: 100vh;
    background: var(--pebble-bg);
    padding-top: 100px;
    padding-bottom: 120px;
}

/* ── HEADER ── */
.blog-header {
    max-width: 760px;
    margin: 0 auto 72px;
    padding: 0 24px;
    text-align: center;
}

.blog-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pebble-mono);
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pebble-ink-mute);
    margin-bottom: 20px;
}

.blog-header-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #2e6b4f;
    border-radius: 50%;
}

.blog-header-title {
    font-family: var(--pebble-serif);
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--pebble-ink);
    margin-bottom: 16px;
    font-weight: 400;
    font-style: italic;
}

.blog-header-sub {
    font-family: var(--pebble-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--pebble-ink-soft);
    max-width: 500px;
    margin: 0 auto;
}

/* ── FEATURED CARD ── */
.blog-featured {
    max-width: 900px;
    margin: 0 auto 72px;
    padding: 0 24px;
}

.blog-post-card {
    background: var(--pebble-surface);
    border: 1px solid var(--pebble-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow .3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pebble-shadow);
}

.blog-post-card.featured {
    display: grid;
    grid-template-columns: 1fr 440px;
}

.blog-post-illustration {
    background: linear-gradient(135deg, #c8ddd0 0%, #b0cdb9 50%, #9abcaa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .blog-post-illustration {
    background: linear-gradient(135deg, #1f3a2d 0%, #162b21 50%, #0f1e17 100%);
}

/* animated stones */
.blog-stone {
    position: absolute;
    background: rgba(27, 43, 36, 0.18);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: stone-float 8s ease-in-out infinite;
}

[data-theme="dark"] .blog-stone {
    background: rgba(243, 238, 227, 0.1);
}

.blog-stone-1 { width: 90px; height: 62px; top: 25%; left: 18%; animation-delay: 0s; }
.blog-stone-2 { width: 56px; height: 38px; top: 55%; left: 55%; animation-delay: -3s; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.blog-stone-3 { width: 34px; height: 22px; top: 30%; left: 65%; animation-delay: -5s; border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%; }

@keyframes stone-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%       { transform: translateY(-14px) rotate(8deg); }
    66%       { transform: translateY(7px) rotate(-5deg); }
}

.blog-post-body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-post-tag {
    font-family: var(--pebble-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #F3EEE3;
    background: #1B2B24;
    padding: 4px 10px;
    border-radius: 4px;
}

.blog-post-tag.green {
    background: #2e6b4f;
}

.blog-post-date {
    font-family: var(--pebble-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--pebble-ink-mute);
}

.blog-post-title {
    font-family: var(--pebble-serif);
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--pebble-ink);
    font-weight: 400;
    font-style: italic;
}

.blog-post-excerpt {
    font-family: var(--pebble-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--pebble-ink-soft);
    font-weight: 300;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pebble-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--pebble-ink);
    text-decoration: none;
    margin-top: 8px;
    transition: gap .2s;
}

.blog-read-more:hover { gap: 14px; }

.blog-read-more svg {
    flex-shrink: 0;
    transition: transform .2s;
}

.blog-read-more:hover svg { transform: translateX(4px); }

/* ── FULL ARTICLE ── */
.blog-article-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-article-header {
    margin-bottom: 48px;
}

.blog-article-header .blog-post-tag {
    margin-bottom: 16px;
    display: inline-block;
}

.blog-article-title {
    font-family: var(--pebble-serif);
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--pebble-ink);
    margin-bottom: 16px;
    font-weight: 400;
    font-style: italic;
}

.blog-article-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--pebble-border);
    border-bottom: 1px solid var(--pebble-border);
    margin-bottom: 40px;
}

.blog-author-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2e6b4f, #1b2b24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pebble-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(243, 238, 227, 0.9);
    font-style: normal;
    flex-shrink: 0;
}

.blog-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-author-name {
    font-family: var(--pebble-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--pebble-ink);
}

.blog-author-role {
    font-family: var(--pebble-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: var(--pebble-ink-mute);
    text-transform: uppercase;
}

.blog-read-time {
    font-family: var(--pebble-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--pebble-ink-mute);
    margin-left: auto;
}

/* ── PROSE ── */
.blog-prose {
    font-family: var(--pebble-sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--pebble-ink-soft);
    font-weight: 300;
}

.blog-prose h2 {
    font-family: var(--pebble-serif);
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--pebble-ink);
    margin: 52px 0 16px;
    font-weight: 400;
}

.blog-prose h3 {
    font-family: var(--pebble-sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--pebble-ink);
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
}

.blog-prose p { margin-bottom: 24px; }

.blog-prose strong {
    font-weight: 500;
    color: var(--pebble-ink);
}

.blog-prose em {
    font-family: var(--pebble-serif);
    font-size: 1.05em;
    font-style: italic;
}

.blog-prose a {
    color: var(--pebble-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--pebble-border);
    transition: text-decoration-color .2s;
}

.blog-prose a:hover { text-decoration-color: var(--pebble-ink); }

.blog-prose ul, .blog-prose ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.blog-prose li { margin-bottom: 10px; }

.blog-prose blockquote {
    border-left: 3px solid var(--pebble-ink);
    margin: 36px 0;
    padding: 4px 0 4px 28px;
    font-family: var(--pebble-serif);
    font-size: 19px;
    font-style: italic;
    color: var(--pebble-ink);
    line-height: 1.55;
}

/* ── CALLOUT ── */
.blog-callout {
    background: var(--pebble-surface);
    border: 1px solid var(--pebble-border);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 36px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.blog-callout.green {
    background: rgba(46, 107, 79, 0.08);
    border-color: rgba(46, 107, 79, 0.2);
}

.blog-callout-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #2e6b4f;
}

.blog-callout-text {
    font-family: var(--pebble-sans);
    font-size: 14px;
    line-height: 1.65;
    color: var(--pebble-ink-soft);
    font-weight: 400;
}

.blog-callout-text strong {
    color: var(--pebble-ink);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-family: var(--pebble-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ── FEEDBACK CTA ── */
.blog-feedback-cta {
    margin: 56px 0 0;
    padding: 48px 44px;
    /* Always dark card regardless of theme */
    background: #1B2B24;
    border-radius: 20px;
}

.blog-feedback-cta-eyebrow {
    font-family: var(--pebble-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(243, 238, 227, 0.45);
    margin-bottom: 14px;
}

.blog-feedback-cta-title {
    font-family: var(--pebble-serif);
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #F3EEE3;
    margin-bottom: 10px;
    font-weight: 400;
    font-style: italic;
}

.blog-feedback-cta-sub {
    font-family: var(--pebble-sans);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(243, 238, 227, 0.65);
    margin: 0 0 28px;
}

/* ── FEEDBACK FORM ── */
.blog-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.blog-feedback-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-feedback-label {
    font-family: var(--pebble-mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243, 238, 227, 0.55);
}

.blog-feedback-optional {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
}

.blog-feedback-input {
    font-family: var(--pebble-sans);
    font-size: 14px;
    font-weight: 300;
    color: #F3EEE3;
    background: rgba(243, 238, 227, 0.07);
    border: 1px solid rgba(243, 238, 227, 0.15);
    border-radius: 10px;
    padding: 11px 14px;
    outline: none;
    transition: border-color .2s, background .2s;
    width: 100%;
    box-sizing: border-box;
}

.blog-feedback-input::placeholder {
    color: rgba(243, 238, 227, 0.3);
}

.blog-feedback-input:focus {
    border-color: rgba(243, 238, 227, 0.4);
    background: rgba(243, 238, 227, 0.1);
}

.blog-feedback-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.blog-feedback-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-feedback-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pebble-sans);
    font-size: 14px;
    font-weight: 500;
    color: #1B2B24;
    background: #F3EEE3;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: -0.01em;
}

.blog-feedback-submit:hover {
    background: #fff;
    transform: translateY(-1px);
}

.blog-feedback-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.blog-feedback-status {
    font-family: var(--pebble-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-feedback-status.success { color: #5FA26B; }
.blog-feedback-status.error   { color: #C4756A; }

/* ── DIVIDER ── */
.blog-divider {
    border: none;
    border-top: 1px solid var(--pebble-border);
    margin: 56px 0;
}

/* ── FOOTER ── */
.blog-footer {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 32px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid var(--pebble-border);
}

.blog-footer-brand {
    font-family: var(--pebble-serif);
    font-size: 20px;
    font-style: italic;
    color: var(--pebble-ink);
}

.blog-footer-links {
    display: flex;
    gap: 20px;
}

.blog-footer-links a {
    font-family: var(--pebble-mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pebble-ink-mute);
    text-decoration: none;
    transition: color .2s;
}

.blog-footer-links a:hover { color: var(--pebble-ink); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    .blog-post-card.featured {
        grid-template-columns: 1fr;
    }
    .blog-post-illustration { min-height: 220px; }
    .blog-post-body { padding: 32px 28px; }
}

@media (max-width: 600px) {
    .blog-header { margin-bottom: 48px; }
    .blog-post-body { padding: 28px 20px; }
    .blog-feedback-cta { padding: 32px 20px; }
    .blog-feedback-row { grid-template-columns: 1fr; }
    .blog-footer { flex-direction: column; gap: 20px; text-align: center; }
    .blog-footer-links { justify-content: center; }
}
