* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --black: #0a0a0a; --yellow: #f5c800; --yellow-dark: #d4ad00; --white: #fff; --muted: #888; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--black); color: var(--white); }

/* Nav (same as the home page, plus a Blog link) */
nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #1a1a1a; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 36px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { color: #ccc; text-decoration: none; font-weight: 600; font-size: 0.875rem; transition: color 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--yellow); }
.nav-btn { background: var(--yellow); color: var(--black); padding: 0.5rem 1.25rem; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.875rem; transition: background 0.2s; }
.nav-btn:hover { background: var(--yellow-dark); }

.btn-primary { background: var(--yellow); color: var(--black); padding: 0.875rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.section-label { color: var(--yellow); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.75rem; text-decoration: none; }
a.section-label:hover { color: var(--yellow-dark); }

/* Blog index */
.blog-head { max-width: 860px; margin: 0 auto; padding: 4rem 2rem 2.5rem; text-align: center; }
.blog-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.posts { max-width: 860px; margin: 0 auto; padding: 0 2rem 5rem; display: grid; gap: 1.25rem; }
.post-card { display: block; background: #0d0d0d; border: 1px solid #1e1e1e; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
.post-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.post-card img { width: 100%; height: auto; display: block; border-bottom: 1px solid #1e1e1e; }
.post-card-body { padding: 1.75rem; display: flex; flex-direction: column; }
.post-card time { display: block; color: var(--yellow); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }
.post-card h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.6rem; }
.post-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1rem; }
.post-card .more { color: var(--yellow); font-size: 0.875rem; font-weight: 700; }

/* Article */
.article { max-width: 700px; margin: 0 auto; padding: 3.5rem 2rem 2rem; }
.article-head { margin-bottom: 2rem; }
.article h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 1rem; }
.article h1 em { color: var(--yellow); font-style: normal; }
.byline { color: var(--muted); font-size: 0.85rem; }
.byline a { color: #ccc; text-decoration: none; }
.byline a:hover { color: var(--yellow); }
.article .lead { font-size: 1.25rem; font-weight: 500; line-height: 1.6; color: var(--white); margin-bottom: 2rem; }
.poster { max-width: 1100px; margin: 0 auto 2.5rem; padding: 0 2rem; }
.poster a { display: block; border: 1px solid #1e1e1e; border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.poster a:hover { border-color: var(--yellow); }
.poster img { width: 100%; height: auto; display: block; }
.poster figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 0.6rem; text-align: center; }
.inline-fig { margin: 0 0 1.75rem; }
.inline-fig img { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; border: 1px solid #1e1e1e; border-radius: 12px; }
.inline-fig figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 0.6rem; text-align: center; }
.article h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 2.75rem 0 1rem; }
.article p { color: #ccc; font-size: 1.0625rem; line-height: 1.75; margin-bottom: 1.25rem; }
.article strong { color: var(--white); }
.article p a, .article li a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.article p a:hover, .article li a:hover { color: var(--yellow-dark); }
.article ul { margin: 0 0 1.25rem 1.25rem; color: #ccc; font-size: 1.0625rem; line-height: 1.75; }
.article li { margin-bottom: 0.4rem; padding-left: 0.25rem; }
.article li::marker { color: var(--yellow); }
.article code { background: rgba(245,200,0,0.1); color: var(--yellow); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
.codeblock pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.codeblock { position: relative; margin-bottom: 1.5rem; }
.codeblock pre { background: #111; border: 1px solid #1e1e1e; border-radius: 12px; padding: 1.25rem; padding-top: 2.75rem; white-space: pre-wrap; overflow-wrap: anywhere; font: 0.85rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #ccc; }
.codeblock .label { position: absolute; top: 0.8rem; left: 1.25rem; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.copy-btn { position: absolute; top: 0.55rem; right: 0.6rem; background: transparent; color: #ccc; border: 1px solid #2a2a2a; border-radius: 6px; padding: 0.25rem 0.7rem; font: 600 0.75rem inherit; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.copy-btn:hover { border-color: #444; background: rgba(255,255,255,0.04); }
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid #1e1e1e; color: #ccc; }
th { color: var(--yellow); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }

/* CTA */
.cta { padding: 2rem 2rem 4rem; text-align: center; }
.cta-box { max-width: 600px; margin: 0 auto; background: #0d0d0d; border: 1px solid #1e1e1e; border-radius: 16px; padding: 3rem 2rem; }
.cta-box h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.cta-box p { color: #999; margin-bottom: 2rem; }

footer { padding: 1.75rem 2rem; text-align: center; border-top: 1px solid #1a1a1a; color: #555; font-size: 0.8rem; }
footer a { color: #888; text-decoration: none; }
footer a:hover { color: var(--yellow); }

@media (max-width: 700px) {
  nav { padding: 1rem 1.25rem; }
  .nav-right { gap: 1rem; }
  .blog-head { padding: 3rem 1.25rem 2rem; }
  .posts { padding: 0 1.25rem 4rem; }
  .article { padding: 2.5rem 1.25rem 1.5rem; }
  .poster { padding: 0 1.25rem; }
  .cta { padding: 1.5rem 1.25rem 3rem; }
}
