@font-face { font-family: 'Selawik'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/selawik-light.woff2') format('woff2'); }
@font-face { font-family: 'Selawik'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/selawik-bold.woff2') format('woff2'); }

:root {
    --ink: #101116;
    --muted: #606575;
    --paper: #ffffff;
    --soft: #f4f6fa;
    --line: #dfe3ec;
    --blue: #3b82f6;
    --violet: #a855f7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: "Archivo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; line-height: 1.7; overflow-x: hidden; }
a { color: var(--blue); }

.site-header { background: #000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); color: #fff; left: 0; line-height: 1.6; padding: 1rem 0; position: fixed; right: 0; top: 0; width: 100%; z-index: 1000; }
.site-nav { align-items: center; display: flex; justify-content: space-between; margin: 0 auto; max-width: 1464px; min-height: 70px; padding: 0 2rem; }
.logo-text { font-family: "Selawik", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; align-items: center; display: flex; font-size: 1.5rem; letter-spacing: 0.15em; text-decoration: none; white-space: nowrap; }
.logo-icon { flex-shrink: 0; height: 40px; margin-right: 0.75rem; width: 40px; }
.logo-eureka { color: #7c6cf6; -webkit-text-stroke: 0.045em #7c6cf6; background: linear-gradient(135deg, var(--blue), var(--violet)); background-clip: text; font-weight: 900; margin-right: 0.3rem; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-engine { color: #fff; font-weight: 300; }
.nav-links { align-items: center; display: flex; gap: 2rem; height: 100%; list-style: none; }
.nav-links li { align-items: center; display: flex; }
.nav-links a { align-items: center; color: #fff; display: flex; font-weight: 500; font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: color 0.3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: linear-gradient(135deg, var(--blue), var(--violet)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mobile-menu-toggle { background: transparent; border: 0; cursor: pointer; display: none; flex-direction: column; padding: 5px; }
.mobile-menu-toggle span { background: #fff; border-radius: 3px; display: block; height: 3px; margin: 3px 0; transition: 0.3s; width: 25px; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.blog-hero { align-items: flex-end; background: #000; color: #fff; display: flex; min-height: 560px; overflow: hidden; padding: 150px 2rem 76px; position: relative; }
.blog-hero::before { background-image: linear-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, 0.12) 1px, transparent 1px); background-size: 64px 64px; content: ""; inset: 0; mask-image: linear-gradient(to bottom, transparent, #000); position: absolute; }
.blog-hero-inner { margin: 0 auto; max-width: 1400px; position: relative; width: 100%; z-index: 1; }
.eyebrow { color: #a7c7ff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; margin-bottom: 1rem; text-transform: uppercase; }
.blog-hero .eyebrow { color: var(--violet); }
.blog-hero h1 { background: linear-gradient(135deg, var(--blue), var(--violet)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1.15; margin-bottom: 1.25rem; padding-bottom: 0.1em; }
.blog-hero p { color: #c9cedb; font-size: 1.2rem; max-width: 680px; }
.blog-index { margin: 0 auto; max-width: 1464px; padding: 80px 2rem 100px; }
.section-heading { align-items: end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1rem; }
.section-heading h2 { font-size: 2rem; }
.section-heading span { color: var(--muted); font-size: 0.9rem; }
.post-card { align-items: center; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); width: 100%; }
.post-card-media { aspect-ratio: 16 / 9; background: #0a0b0f; border: 1px solid var(--line); border-radius: 4px; display: block; grid-column: 2; grid-row: 1; overflow: hidden; }
.post-card-media img { display: block; height: 100%; object-fit: cover; transition: transform 0.5s ease; width: 100%; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-copy { grid-column: 1; grid-row: 1; }
.post-card + .post-card { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 3rem; }
.post-card-copy { padding: 1rem 0; }
.post-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 0.9rem; gap: 0.65rem; margin-bottom: 1rem; }
.post-card h2 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; margin-bottom: 1.25rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue); }
.post-card p { color: #454a58; font-size: 1.1rem; margin-bottom: 1.6rem; }
.read-link { align-items: center; display: inline-flex; font-weight: 800; gap: 0.5rem; text-decoration: none; }
.read-link::after { content: "\2192"; transition: transform 0.2s ease; }
.read-link:hover::after { transform: translateX(4px); }

.article-hero { background: #000; color: #fff; padding: 150px 2rem 76px; position: relative; }
.article-hero-inner { margin: 0 auto; max-width: 1120px; }
.article-hero h1, .article-body h2, .article-body h3, .article-footer-cta h2 { background: linear-gradient(135deg, var(--blue), var(--violet)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 0.12em; }
.article-hero h1 { font-size: clamp(2.7rem, 7vw, 5.7rem); line-height: 1.12; margin-bottom: 1.25rem; }
.article-hero .standfirst { color: #c9cedb; font-size: 1.2rem; max-width: 760px; }
.article-meta { color: #9da4b5; display: flex; flex-wrap: wrap; font-size: 0.92rem; gap: 0.75rem; margin-top: 2rem; }
.article-layout { display: grid; gap: 4rem; grid-template-columns: minmax(0, 760px) 180px; justify-content: center; padding: 72px 2rem 100px; }
.article-body > * + * { margin-top: 1.35rem; }
.article-body h2 { font-size: 2.15rem; line-height: 1.25; margin-top: 4rem; }
.article-body h3 { font-size: 1.45rem; line-height: 1.3; margin-top: 2.8rem; }
.article-body p, .article-body li { color: #303541; font-size: 1.08rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; }
.article-body li + li { margin-top: 0.55rem; }
.article-body blockquote { border-left: 4px solid var(--blue); color: #272b35; font-size: 1.15rem; font-weight: 600; padding: 0.4rem 0 0.4rem 1.5rem; }
.article-body pre { background: #0d0f14; border-left: 4px solid var(--violet); color: #dbe8ff; overflow-x: auto; padding: 1.25rem; }
.article-body code { font-family: "IBM Plex Mono", Consolas, "Courier New", monospace; }
.article-body :not(pre) > code { background: #eef1f6; border-radius: 4px; overflow-wrap: anywhere; padding: 0.1em 0.3em; }
.article-figure { margin: 2.8rem 0; }
.article-figure picture { display: block; }
.article-figure img { background: #090a0e; border: 1px solid #242733; display: block; height: auto; width: 100%; }
.article-figure figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem; }
.article-figure-light img { background: #eef0f4; border-color: var(--line); }
.glossary-content { border-top: 1px solid var(--line); padding: 1rem 1.2rem; }
.article-body .glossary-content ul { margin: 0; }
.article-body .glossary-content li { font-size: 1rem; }
.cost-overview { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 2rem 0 1rem; padding: 1.25rem 0; }
.cost-overview div { border-left: 2px solid var(--blue); padding: 0 1rem; }
.cost-overview span { color: var(--muted); display: block; font-size: 0.82rem; margin-bottom: 0.2rem; }
.cost-overview strong { color: var(--ink); display: block; font-size: 1.35rem; }
.article-details { border: 1px solid var(--line); margin: 1rem 0 2rem; }
.article-details summary { align-items: center; cursor: pointer; display: grid; gap: 0.15rem 1rem; grid-template-columns: 1fr auto; list-style: none; padding: 1rem 3.5rem 1rem 1.2rem; position: relative; }
.article-details summary::-webkit-details-marker { display: none; }
.article-details summary::after { color: var(--blue); content: "+"; font-size: 1.7rem; line-height: 1; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); }
.article-details[open] summary::after { content: "\2212"; }
.article-details summary:hover, .article-details summary:focus-visible { background: var(--soft); }
.article-details summary span { color: var(--ink); font-weight: 800; }
.article-details summary small { color: var(--muted); font-size: 0.82rem; grid-column: 1; }
.cost-details .article-table-wrapper { border-top: 1px solid var(--line); margin: 0; }
.article-table-wrapper { margin: 2rem 0; overflow-x: auto; }
.article-body table { border-collapse: collapse; font-size: 0.96rem; width: 100%; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 0.7rem 0.8rem; text-align: left; vertical-align: top; }
.article-body th { background: var(--soft); color: var(--ink); font-weight: 800; }
.article-body th:last-child, .article-body td:last-child { text-align: right; white-space: nowrap; }
.article-body tfoot td { border-top: 2px solid var(--ink); font-weight: 800; }
.technical-note { background: var(--soft); border: 1px solid var(--line); padding: 1.5rem; }
.technical-note strong:first-child { color: var(--blue); }
.article-aside { align-self: start; position: sticky; top: 120px; }
.article-aside p { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.7rem; text-transform: uppercase; }
.article-aside a { color: var(--ink); display: block; font-size: 0.9rem; padding: 0.45rem 0; text-decoration: none; }
.article-aside a:hover { color: var(--blue); }
.article-footer-cta { background: #0a0b0f; color: #fff; padding: 64px 2rem; text-align: center; }
.article-footer-cta h2 { font-size: 2rem; margin-bottom: 0.7rem; }
.article-footer-cta p { color: #aeb4c3; margin-bottom: 1.4rem; }

.site-footer { background: #000; color: #fff; line-height: 1.6; padding: 2rem; text-align: center; }
.site-footer p { color: #fff; margin-bottom: 1rem; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { align-items: center; display: flex; gap: 1rem; justify-content: center; margin-top: 3rem; }
.footer-links a { color: #fff; text-decoration: none; transition: all 0.3s; }
.footer-links a:hover { background: linear-gradient(135deg, var(--blue), var(--violet)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; }
.footer-links span { color: rgba(255, 255, 255, 0.5); }
.footer-follow { align-items: center; display: flex; gap: 0.9rem; justify-content: center; margin-top: 1.25rem; }
.footer-follow-label { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.site-footer .footer-follow a { align-items: center; border: 1px solid rgba(147, 197, 253, 0.4); border-radius: 50%; color: #fff; display: inline-flex; height: 40px; justify-content: center; transition: all 0.3s; width: 40px; }
.site-footer .footer-follow a:hover { background: linear-gradient(135deg, var(--blue), var(--violet)); border-color: transparent; text-decoration: none; transform: translateY(-2px); }
.site-footer .footer-credit { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin-bottom: 0; margin-top: 1rem; }
.footer-credit a { color: #a855f7; text-decoration: none; transition: color 0.3s; }
.footer-credit a:hover { color: #3b82f6; text-decoration: underline; }
.back-to-top { align-items: center; background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%); border: 0; border-radius: 50%; bottom: 30px; box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4); color: #fff; cursor: pointer; display: flex; height: 50px; justify-content: center; opacity: 0; position: fixed; right: 30px; transition: all 0.3s; visibility: hidden; width: 50px; z-index: 999; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%); box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5); transform: translateY(-5px); }

@media (max-width: 900px) {
    .article-layout { display: block; }
    .article-aside { display: none; }
}

@media (max-width: 768px) {
    .site-nav { padding: 0 1rem; }
    .mobile-menu-toggle { display: flex; }
    .nav-links { background-color: #000; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); flex-direction: column; gap: 0; height: calc(100vh - 70px); left: -100%; overflow-y: auto; padding: 2rem 0; position: fixed; text-align: center; top: 70px; transition: 0.3s; width: 100%; }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 1.5rem 0; }
    .nav-links a { font-size: 1.2rem; }
    .blog-hero { min-height: 480px; padding: 120px 1.25rem 58px; }
    .blog-index, .article-layout { padding-left: 1.25rem; padding-right: 1.25rem; }
    .section-heading { align-items: start; flex-direction: column; gap: 0.3rem; }
    .article-hero { padding: 120px 1.25rem 58px; }
    .article-body h2 { font-size: 1.75rem; }
    .cost-overview { gap: 1.2rem 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
.share-bar { align-items: center; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.share-hero { margin-top: 1.75rem; }
.share-end { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.share-label { color: var(--muted); font-family: "IBM Plex Mono", Consolas, "Courier New", monospace; font-size: 0.8rem; letter-spacing: 0.15em; margin-right: 0.4rem; text-transform: uppercase; }
.share-hero .share-label { color: #9da4b5; }
.share-btn { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); cursor: pointer; display: inline-flex; font: inherit; font-size: 0.85rem; gap: 0.45rem; line-height: 1; padding: 0.55rem 0.8rem; text-decoration: none; transition: 0.2s ease; }
.share-hero .share-btn { border-color: rgba(147, 197, 253, 0.35); color: #e6ecff; }
.share-btn:hover, .share-btn:focus-visible { background: linear-gradient(135deg, var(--blue), var(--violet)); border-color: transparent; box-shadow: 0 0 18px rgba(168, 85, 247, 0.45); color: #fff; }
.share-btn.copied { background: #16a34a; border-color: transparent; color: #fff; }
@media (max-width: 768px) { .share-btn span { display: none; } .share-btn { padding: 0.65rem; } .share-btn.copied span { display: inline; } }

button, input, textarea, select { font-family: inherit; }
.nav-links a, .eyebrow, .article-aside p, .post-meta, .article-meta { font-family: "IBM Plex Mono", Consolas, "Courier New", monospace; }
h1, h2, h3, h4 { font-weight: 800; }
@media (min-width: 769px) { .nav-links .nav-social { display: none !important; } }
@media (max-width: 768px) {
    .nav-links .nav-social { display: flex; gap: 1rem; justify-content: center; }
    .nav-social a { align-items: center; border: 1px solid rgba(147, 197, 253, 0.4); border-radius: 50%; height: 44px; justify-content: center; width: 44px; }
}
.footer-logo { display: flex; justify-content: center; margin: 0 auto 1.5rem; width: fit-content; }
.blog-hero .rss-link { color: #c9cedb; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 0.85rem; letter-spacing: 0.12em; text-decoration: underline; text-transform: uppercase; }
.blog-hero .rss-link:hover { color: #fff; }
@media (max-width: 900px) { .post-card { grid-template-columns: 1fr; gap: 1.25rem; } .post-card-media, .post-card-copy { grid-column: 1; } .post-card-media { grid-row: 1; } .post-card-copy { grid-row: 2; } }
