/* ============================================================
   Yene AI — blog styles
   Design tokens + base typography mirror public/index.html so the
   blog stays on-brand. Shared by /blog/ and every post page.
   ============================================================ */
:root {
    --paper: #f6f7f4;
    --ink: #15201b;
    --ink-soft: #566059;
    --line: #e0e4dc;
    --card: #ffffff;
    --green: #11784c;
    --green-deep: #0c5c3a;
    --green-tint: #e7f1ea;
    --gold: #d9941f;
    --gold-tint: #faefd7;
    --radius: 16px;
    --shadow:
        0 1px 2px rgba(21, 32, 27, 0.04),
        0 8px 24px -12px rgba(21, 32, 27, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- header ---------- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 8px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}
.nav-link {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-deep);
    text-decoration: none;
    padding: 4px 6px;
}
.nav-link:hover {
    text-decoration: underline;
}

/* ---------- shared type ---------- */
h1 {
    font-family: "Bricolage Grotesque";
    font-weight: 800;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 14px 0;
}
h2 {
    font-family: "Bricolage Grotesque";
    font-weight: 700;
    font-size: clamp(20px, 5vw, 25px);
    letter-spacing: -0.02em;
    margin: 34px 0 8px;
}
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
}
.hl {
    color: var(--gold);
    background: linear-gradient(transparent 62%, var(--gold-tint) 62%);
    padding: 0 1px;
    font-weight: 600;
}

/* ---------- back link ---------- */
.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-deep);
    text-decoration: none;
    padding: 6px 0;
    margin-top: 8px;
}
.back:hover {
    text-decoration: underline;
}

/* ============================ INDEX ============================ */
.index-head {
    padding: 20px 0 4px;
}
.index-head .lead {
    font-size: 17px;
    color: var(--ink-soft);
    margin-top: 6px;
}
.post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 26px 0 8px;
}
.post-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 22px 24px;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.08s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}
.post-card:hover {
    transform: translateY(-2px);
    border-color: #c9cfc6;
    box-shadow:
        0 2px 4px rgba(21, 32, 27, 0.05),
        0 14px 32px -14px rgba(21, 32, 27, 0.24);
}
.post-card h3 {
    font-family: "Bricolage Grotesque";
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 8px;
}
.post-card p {
    color: var(--ink-soft);
    font-size: 15px;
}
.post-meta {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 10px;
    display: block;
}
.post-card .more {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-deep);
}

/* ============================ ARTICLE ============================ */
.article {
    padding: 8px 0 10px;
}
.article .post-meta {
    margin: 14px 0 2px;
}
.article > p {
    font-size: 17px;
    color: #2a352e;
    margin: 16px 0;
}
.article .lead {
    font-size: 19px;
    color: var(--ink-soft);
    margin: 14px 0 6px;
}
.article ul {
    margin: 14px 0 14px 20px;
}
.article li {
    font-size: 17px;
    color: #2a352e;
    margin: 8px 0;
}
.article a.plain {
    color: var(--green-deep);
    font-weight: 600;
    text-decoration: none;
}
.article a.plain:hover {
    text-decoration: underline;
}
.article strong {
    font-weight: 600;
    color: var(--ink);
}

blockquote {
    margin: 28px 0;
    padding: 6px 0 6px 22px;
    border-left: 4px solid var(--gold);
    font-family: "Bricolage Grotesque";
    font-weight: 700;
    font-size: clamp(21px, 5.5vw, 27px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* ---------- CTA block ---------- */
.cta {
    margin: 40px 0 8px;
    background: var(--green-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 28px;
    text-align: center;
}
.cta h2 {
    margin: 0 0 6px;
}
.cta p {
    color: var(--ink-soft);
    font-size: 15px;
    margin-bottom: 18px;
}
.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    padding: 15px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: var(--green);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(17, 120, 76, 0.7);
    transition:
        transform 0.08s ease,
        background 0.15s ease;
}
.btn:hover {
    background: var(--green-deep);
}
.btn:active {
    transform: translateY(1px);
}

/* ---------- footer ---------- */
footer {
    margin-top: auto;
    padding: 30px 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-soft);
}
footer .dotsep {
    margin: 0 7px;
    opacity: 0.5;
}
footer a {
    color: var(--green-deep);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .post-card,
    .btn {
        transition: none;
    }
}
