/* Blog pages: same tokens, nav and footer as the home page. */
:root {
  --ink: #0B1F24; --soft: rgb(11 31 36 / 0.68); --line: rgb(11 31 36 / 0.1);
  --surface: #F1F2F0; --accent: #FF5A1F; --dark: #0B1F24;
  --gutter: clamp(1.25rem, 3.65vw, 3.3rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); line-height: 1.55; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, video, iframe { max-width: 100%; display: block; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); }
.lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); line-height: 1.45; color: var(--soft); max-width: 46ch; }

/* nav: fixed pill, identical to the home */
.nav { position: fixed; z-index: 60; top: 14px; left: 50%; translate: -50% 0; width: min(1180px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 1.2rem; padding: 7px 7px 7px 16px;
  background: rgb(255 255 255 / 0.72); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px -12px rgb(11 31 36 / 0.18); }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.logo svg { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__links a { font-size: 0.875rem; letter-spacing: 0.03em; text-decoration: none; color: var(--soft); transition: color 140ms var(--ease); }
.nav__links a:hover, .nav__links a.on { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; text-decoration: none; font-size: 0.875rem; font-weight: 500;
  padding: 0.72rem 1.05rem; border-radius: 8px; background: var(--accent); color: #fff; transition: background-color 150ms var(--ease); }
.btn:hover { background: #E84A12; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); }

/* article */
.page { padding: 9rem var(--gutter) 6rem; }
.post-body { max-width: 44rem; margin: 0 auto; }
.post-body h1 { font-weight: 400; font-size: clamp(2.3rem, 1.3rem + 3vw, 3.8rem); line-height: 1.02; letter-spacing: -0.045em; margin: 0.8rem 0 1.2rem; text-wrap: balance; }
.post-body > .lede { margin: 0 0 3rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line); }
.post-body h2 { font-weight: 400; font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.15; margin: 3rem 0 0.8rem; }
.post-body p, .post-body li { color: rgb(11 31 36 / 0.82); }
.post-body ul, .post-body ol { padding-left: 1.2rem; }
.post-body li { margin: 0.4rem 0; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body li::marker { color: var(--accent); }
.video { aspect-ratio: 16/9; margin: 2rem 0; border-radius: 12px; overflow: hidden; background: var(--surface); }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }

/* blog index: cards */
.blog-head { max-width: 1340px; margin: 0 auto 3rem; }
.blog-head h1 { font-weight: 400; font-size: clamp(2.6rem, 1.3rem + 4vw, 4.6rem); letter-spacing: -0.05em; line-height: 1; margin: 0 0 1rem; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1340px; margin: 0 auto; }
.post { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 17rem; padding: 1.5rem;
  border-radius: 18px; border: 1px solid var(--line); text-decoration: none; transition: border-color 150ms var(--ease), transform 150ms var(--ease); }
.post:hover { border-color: var(--ink); transform: translateY(-2px); }
.post .mono { display: flex; justify-content: space-between; margin: 0; }
.post h3 { font-weight: 400; font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.03em; margin: 0; }
.post p { margin: 0.6rem 0 0; color: var(--soft); font-size: 0.95rem; }

/* footer */
.foot { background: var(--dark); color: #fff; padding: 5rem var(--gutter) 2rem; }
.foot__cta { max-width: 1340px; margin: 0 auto; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.foot__cta h2 { font-weight: 400; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); letter-spacing: -0.045em; line-height: 1; margin: 0; max-width: 14ch; }
.foot__base { max-width: 1340px; margin: 4rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: rgb(255 255 255 / 0.55);
  font-family: "Geist Mono", monospace; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.foot .logo { color: #fff; }

@media (max-width: 960px) {
  .nav__links, .nav .btn--ghost { display: none; }
  .nav .btn { margin-left: auto; }
  .posts { grid-template-columns: 1fr; }
}

/* article extras */
.post-body .mono a { text-decoration: none; color: var(--accent); }
.post-body pre { background: #0B1F24; color: #E7ECEF; padding: 1.2rem 1.3rem; border-radius: 12px; overflow-x: auto; font-size: 0.86rem; line-height: 1.55; margin: 1.6rem 0; }
.post-body code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.9em; }
.post-body :not(pre) > code { background: var(--surface); padding: 0.1em 0.35em; border-radius: 5px; }
.post-body a { color: var(--ink); text-decoration-color: var(--accent); }
.post-body table { border-collapse: collapse; table-layout: fixed; width: 100%; margin: 1.6rem 0; font-size: 0.9rem; line-height: 1.45; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.post-body th { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
.post-body td code { overflow-wrap: anywhere; }
.cta-box { margin: 4rem 0 0; padding: 1.8rem; border-radius: 18px; background: var(--dark); color: #fff; }
.cta-box .mono { color: rgb(255 255 255 / 0.6); margin: 0; }
.cta-box h2 { color: #fff; margin: 0.8rem 0 0.5rem; }
.cta-box p { color: rgb(255 255 255 / 0.7); }
.cta-box .btn { margin-top: 0.6rem; color: #fff; text-decoration: none; }
.related { max-width: 1340px; margin: 6rem auto 0; }
.related h2 { font-weight: 400; font-size: 2rem; letter-spacing: -0.03em; margin: 0 0 1.5rem; }

/* blog pages */
.pager { max-width: 1340px; margin: 3rem auto 0; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.pager__nums { display: flex; gap: 0.4rem; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.6rem; border-radius: 8px;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.9rem; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 150ms var(--ease); }
.pager a:hover { background: var(--surface); }
.pager .on { background: var(--ink); color: #fff; box-shadow: none; }
.pager .pager__arrow { font-family: "Geist", system-ui, sans-serif; font-size: 1.35rem; }
.pager .off { opacity: 0.3; }
.pager__count { text-align: center; margin: 1rem 0 0; }
