/* Fynto blog — shares the landing page's tokens (assets/tw.config.js) and
   mirrors its component styles. Article typography is plain CSS scoped to
   .post so the text reads correctly before Tailwind's JIT finishes. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; color-scheme: light; }
body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    margin: 0; padding: 0;
    background: #f4f5f2; color: #1c2532;
    overflow-x: hidden;
}
h1, h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400; letter-spacing: -0.01em;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #eceee9; }
::-webkit-scrollbar-thumb { background: #cfd4cc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8b95a1; }

.grain::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015; pointer-events: none; z-index: 1000;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5;
    width: 600px; height: 600px; top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(14, 107, 92, 0.07) 0%, transparent 70%);
}

.nav-blur {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.section-label {
    font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
    color: #0e6b5c; font-weight: 600;
}
.card {
    background: #ffffff; border: 1px solid #dfe3dc; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(28, 37, 50, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.card:hover { border-color: #cfd4cc; box-shadow: 0 8px 24px rgba(28, 37, 50, 0.07); }
.btn-primary {
    background: #0e6b5c; color: #ffffff; transition: all 0.3s ease; position: relative;
}
.btn-primary:hover {
    transform: translateY(-2px); background: #0b584c;
    box-shadow: 0 20px 40px -10px rgba(14, 107, 92, 0.3);
}
.btn-secondary {
    background: transparent; color: #1c2532; border: 1px solid #cfd4cc; transition: all 0.3s ease;
}
.btn-secondary:hover { border-color: #0e6b5c; background: rgba(14, 107, 92, 0.04); color: #0e6b5c; }
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-menu.open { max-height: 40rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 2px solid #0e6b5c; outline-offset: 2px; }
.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: #0e6b5c; color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px;
}
.skip-link:focus { left: 16px; }

/* ---------- Article ---------- */
.post { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.post-header { padding: 7.5rem 0 1.5rem; border-bottom: 1px solid #dfe3dc; margin-bottom: 40px; }
.post-header .section-label { display: inline-block; margin-bottom: 18px; }
.post-header h1 {
    font-size: clamp(34px, 5.5vw, 60px); line-height: 1.05; margin: 0 0 18px; text-wrap: balance;
}
.post-header .standfirst { font-size: 20px; line-height: 1.5; color: #4c5866; margin: 0 0 22px; }
.post-header .backlink { display: inline-flex; margin-bottom: 28px; }
.byline { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; font-size: 14px; color: #5f6b79; }
.byline .author { color: #1c2532; font-weight: 500; }


.post-body { font-size: 17px; line-height: 1.65; color: #1c2532; }
.post-body h2 { font-size: 34px; line-height: 1.15; margin: 64px 0 14px; }
.post-body > h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 8px; }
.post-body p { margin: 0 0 20px; }
.post-body a { color: #0e6b5c; text-decoration: underline; text-decoration-color: #dfe3dc; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: #0e6b5c; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 20px; }
.post-body ul { list-style: disc; }
.post-body ul li::marker { color: #8b95a1; }
.post-body li { margin-bottom: 8px; }
.post-body strong { font-weight: 600; }
.post-body code {
    font-family: 'IBM Plex Mono', monospace; font-size: .88em;
    background: #eceee9; border-radius: 4px; padding: 1px 5px;
}
.post-body pre {
    background: #ffffff; border: 1px solid #dfe3dc; border-radius: 8px;
    padding: 18px 20px; margin: 0 0 8px; overflow-x: auto;
}
.post-body pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.55; }
.post-body pre .k { color: #2b5aa8; }
.post-body pre .s { color: #0e6b5c; }
.post-body .caption { font-size: 13.5px; color: #5f6b79; margin: 8px 0 28px; }
.post-body .caption .fig { font-family: 'IBM Plex Mono', monospace; color: #0e6b5c; margin-right: 6px; }

figure.figure { margin: 8px 0 32px; }
@media (min-width: 900px) { figure.figure { margin-left: -48px; margin-right: -48px; } }
@media (min-width: 1100px) { figure.figure.breakout { margin-left: -160px; margin-right: -160px; } }
figure.figure .frame { padding: 20px; transition: none; border-radius: 8px; box-shadow: none; }
figure.figure .frame:hover { border-color: #dfe3dc; box-shadow: none; }
figure.figure .scroll { overflow-x: auto; }
figure.figure svg { display: block; height: auto; max-width: 100%; }
figure.figure .wide svg { min-width: 560px; }
figure.figure figcaption { font-size: 13.5px; color: #5f6b79; margin: 10px 4px 0; }
figure.figure figcaption .fig { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: #0e6b5c; margin-right: 6px; }
figure.figure figcaption .fig::after { content: '.'; }

.tablewrap { overflow-x: auto; margin: 0 0 28px; }
@media (max-width: 640px) { .tablewrap { margin: 0 -24px 28px; padding: 0 24px; } .post-body table { min-width: 560px; } }
.post-body table { border-collapse: collapse; width: 100%; font-size: 15px; border-top: 2px solid #1c2532; }
.post-body th {
    font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: #4c5866; font-weight: 600;
    background: transparent; text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid #dfe3dc;
}
.post-body td { padding: 12px 12px 12px 0; border-bottom: 1px solid #dfe3dc; vertical-align: top; }
.post-body td:first-child { font-weight: 500; }

ol.steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; }
ol.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 22px; }
ol.steps li::before {
    content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 5px;
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: #0e6b5c;
}

dl.glossary { margin: 0 0 24px; }
dl.glossary .row { display: grid; gap: 6px 16px; padding: 12px 0; border-top: 1px solid #dfe3dc; }
dl.glossary .row:last-child { border-bottom: 1px solid #dfe3dc; }
dl.glossary dt { font-size: 15px; }
@media (min-width: 640px) { dl.glossary .row { grid-template-columns: 176px 1fr; } }
dl.glossary dt { font-weight: 600; margin: 0; }
dl.glossary dd { margin: 0; color: #4c5866; font-size: 15px; }

.backlink { font-size: 14px; color: #4c5866; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.backlink:hover { color: #0e6b5c; }

/* ---------- Index ---------- */
.blog-index { max-width: 680px; margin: 0 auto; padding: 7.5rem 24px 6rem; }
.blog-index h1 { font-size: clamp(36px, 4.5vw, 48px); line-height: 1.05; margin: 0 0 32px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 32px 0; border-top: 1px solid #dfe3dc; }
.post-list li:last-child { border-bottom: 1px solid #dfe3dc; }
.post-list a { font-family: 'Instrument Serif', Georgia, serif; font-size: 30px; line-height: 1.15; color: #1c2532; text-decoration: none; }
.post-list a:hover { color: #0e6b5c; text-decoration: underline; text-decoration-color: #dfe3dc; text-underline-offset: 4px; }
.post-list p { font-size: 16px; line-height: 1.6; color: #4c5866; margin: 10px 0 8px; }
.post-list time { display: block; margin-top: 6px; font-size: 13px; color: #5f6b79; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card, .btn-primary, .btn-secondary { transition: none; }
}
