/* === BLOG STYLES — inherits site design tokens === */

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

:root {
    --cream: #faf3e6;
    --white: #ffffff;
    --sand: #f0e8d8;
    --ink: #1e1e1e;
    --ink-soft: #484340;
    --ink-light: #7a7570;
    --ink-muted: #a09a94;
    --orange: #e8622c;
    --orange-light: #fdf0ea;
    --teal: #1a7f7f;
    --teal-deep: #163836;
    --teal-light: #e8f5f4;
    --gold: #cf9b1d;
    --gold-light: #fdf6e3;
    --coral: #f27649;
    --display: 'Fraunces', Georgia, serif;
    --body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    border-top: 5px solid var(--orange);
}

::selection { background: var(--orange); color: white; }

/* --- NAV --- */
nav {
    position: fixed;
    top: 5px;
    width: 100%;
    z-index: 100;
    padding: 0 clamp(20px, 5vw, 60px);
    background: rgba(250, 243, 230, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.nav-name {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-links a {
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-light);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
    background: var(--orange) !important;
    color: white !important;
    padding: 8px 22px !important;
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    border-radius: 4px;
    font-weight: 600 !important;
    transition: all 0.15s !important;
}

.nav-cta:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--ink) !important;
}

/* --- FOOTER --- */
footer {
    background: var(--ink);
    color: var(--ink-muted);
    padding: 28px clamp(20px, 5vw, 60px);
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

footer a {
    color: var(--sand);
    text-decoration: none;
}

footer a:hover { color: var(--orange); }

/* --- COLOR STRIPE --- */
.color-stripe {
    height: 5px;
    background: linear-gradient(90deg, var(--orange) 33.3%, var(--teal) 33.3% 66.6%, var(--gold) 66.6%);
}

/* === BLOG INDEX === */

.blog-hero {
    padding: 120px clamp(20px, 5vw, 60px) 60px;
    max-width: 860px;
    margin: 0 auto;
}

.blog-hero-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--teal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--teal-light);
    border: 1.5px solid var(--teal);
    border-radius: 3px;
    padding: 5px 14px;
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 560px;
}

/* --- POST LIST --- */

.blog-list {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px) 80px;
}

.blog-post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 16px;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.15s, box-shadow 0.15s;
}

.blog-post-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.blog-post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.blog-post-card-date {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

.blog-post-card-tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--orange);
    background: var(--orange-light);
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-post-card h2 {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.blog-post-card p {
    font-size: 0.9rem;
    color: var(--ink-light);
    line-height: 1.6;
}

.blog-post-card-read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--orange);
    margin-top: 12px;
}

/* === SINGLE POST === */

.post-header {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px clamp(20px, 5vw, 60px) 40px;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-light);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s;
}

.post-back:hover { color: var(--orange); }

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.post-date {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.post-tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--orange);
    background: var(--orange-light);
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-read-time {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.post-header h1 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.post-header .post-subtitle {
    font-size: 1.1rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

/* --- POST BODY --- */

.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px) 60px;
}

.post-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.post-body h2 {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 48px 0 16px;
    color: var(--ink);
}

.post-body h3 {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 36px 0 12px;
    color: var(--ink);
}

.post-body strong {
    color: var(--ink);
    font-weight: 600;
}

.post-body a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body a:hover {
    text-decoration-color: var(--orange);
}

.post-body ul, .post-body ol {
    margin: 0 0 24px 24px;
    color: var(--ink-soft);
}

.post-body li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.post-body blockquote {
    border-left: 4px solid var(--orange);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--orange-light);
    border-radius: 0 6px 6px 0;
}

.post-body blockquote p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 0;
    font-style: italic;
}

.post-body code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--sand);
    padding: 2px 6px;
    border-radius: 3px;
}

.post-body pre {
    background: var(--ink);
    color: var(--sand);
    padding: 20px 24px;
    border-radius: 8px;
    border: 2px solid var(--ink);
    overflow-x: auto;
    margin-bottom: 24px;
}

.post-body pre code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.post-body hr {
    border: none;
    height: 3px;
    background: var(--sand);
    margin: 48px 0;
    border-radius: 2px;
}

/* --- CALLOUT BOX --- */
.post-callout {
    background: var(--teal-light);
    border: 2px solid var(--teal);
    border-radius: 8px;
    padding: 24px 28px;
    margin: 32px 0;
}

.post-callout-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    font-weight: 600;
}

.post-callout p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* --- POST FOOTER / CTA --- */
.post-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px) 80px;
}

.post-footer-cta {
    background: var(--teal-deep);
    border: 2px solid var(--ink);
    border-radius: 8px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 4px 4px 0 var(--ink);
    position: relative;
    overflow: hidden;
}

.post-footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 0.6px, transparent 0.6px);
    background-size: 28px 28px;
    pointer-events: none;
}

.post-footer-cta h3 {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #f0ece4;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.post-footer-cta p {
    font-size: 0.9rem;
    color: #a5a098;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.post-footer-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: var(--orange);
    padding: 12px 28px;
    border: 2px solid var(--ink);
    border-radius: 5px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    transition: all 0.15s;
    position: relative;
    z-index: 2;
}

.post-footer-cta a:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

/* --- RESPONSIVE --- */
@media (max-width: 640px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .blog-post-card { padding: 20px 20px; }
    .post-body { padding: 0 20px 60px; }
}
