/* Shared styles for the inner pages (blog, articles, about, legal, 404).
   Matches the landing page: white paper, black ink lines, lime and green accents. */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); ascent-override: 93.62%; descent-override: 31.21%; line-gap-override: 8.92%; size-adjust: 112.16%; }
:root {
  --bg: #FFFFFF; --bg-soft: #F7F8F6; --ink: #0B0B0B; --ink-soft: #3B3F38; --muted: #5E6559;
  --line: rgba(11, 11, 11, .07); --rule: #E3E6E0; --lime: #C6F45A; --green: #22C55E; --accent: #15803D; --white: #FFFFFF;
  --font: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background-color: var(--bg);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; padding-inline: clamp(20px, 4vw, 64px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Header (same as the landing page) */
.site-header { position: sticky; top: 16px; z-index: 50; padding-top: 16px; transition: transform .25s ease; }
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav { display: flex; align-items: stretch; justify-content: space-between; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); position: relative; }
.brand { display: flex; align-items: center; padding: 12px 20px; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--ink); transition: right .25s; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 14px; padding: 0 26px; background: var(--lime); border-left: 1.5px solid var(--ink); font-weight: 600; text-decoration: none; }
.nav-cta:hover { background: #b5ea3c; }
.menu-btn { display: none; background: none; border: 0; padding: 0 18px; cursor: pointer; }
.arrow { width: 14px; height: 14px; }

/* Page heading */
.page-head { padding: 64px 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--green); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.page-head h1 { font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 14px; max-width: 22em; }
.page-head .lede { font-size: 1.08rem; color: var(--ink-soft); margin: 0; max-width: 40em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .88rem; margin-top: 16px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Article body */
.article { display: grid; grid-template-columns: minmax(0, 44rem); gap: 0; padding-bottom: 40px; }
.cover { border: 1.5px solid var(--ink); background: var(--white); margin: 0 0 34px; max-width: 56rem; }
.cover img { width: 100%; }
.prose { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(22px, 4vw, 48px); font-size: 1.02rem; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin: 2em 0 .6em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.05rem; font-weight: 600; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose img { border: 1.5px solid var(--ink); margin: 1.6em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--green); color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* Blog listing */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); border: 1.5px solid var(--ink); background: var(--white); margin-bottom: 40px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); margin: 0 -1.5px -1.5px 0; }
.post-card img { aspect-ratio: 700 / 430; object-fit: cover; width: 100%; border-bottom: 1.5px solid var(--ink); background: var(--ink); }
.post-card .body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.post-card h2 { font-size: 1.15rem; font-weight: 500; line-height: 1.3; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.post-card time { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.post-card:hover h2 { text-decoration: underline; text-underline-offset: 3px; }

/* Related + CTA strip */
.more { padding: 10px 0 50px; }
.more h2 { font-weight: 400; font-size: 1.4rem; margin: 0 0 16px; }
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--lime); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 24px clamp(20px, 3vw, 34px); margin: 10px 0 50px; }
.cta-strip p { margin: 0; font-size: 1.15rem; font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: 1.5px solid var(--ink); font-weight: 600; text-decoration: none; background: var(--ink); color: var(--white); }
.btn:hover { box-shadow: 4px 4px 0 var(--green); }

/* Footer (same as the landing page) */
footer { padding: 50px 0 40px; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px 40px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); padding-top: 32px; font-size: .9rem; color: var(--muted); }
.foot-about { max-width: 26em; display: grid; gap: 12px; }
.foot-about p { margin: 0; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-cols h2 { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.foot-cols nav { display: grid; gap: 8px; }
.foot-bottom { width: 100%; padding-top: 18px; border-top: 1px solid var(--rule); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: absolute; left: 0; right: 0; top: calc(100% + 10px); background: var(--white); border: 1.5px solid var(--ink); padding: 22px; box-shadow: 5px 5px 0 var(--ink); }
  .nav-cta { padding: 0 16px; font-size: .9rem; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 16px; }
  .brand img { height: 28px; }
  .nav-cta span { display: none; }
  .page-head { padding-top: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Course pages */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.chips li, .chip { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: 5px 11px; border: 1.5px solid var(--ink); background: var(--white); }
.chips li:first-child { background: var(--lime); }
.chip { justify-self: start; background: var(--lime); }
.course-card img { aspect-ratio: 3 / 2; object-fit: contain; background: var(--white); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 28px; align-items: start; padding-bottom: 40px; }
.course-side { position: sticky; top: 110px; border: 1.5px solid var(--ink); background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.course-side img { width: 100%; border-bottom: 1.5px solid var(--ink); }
.side-body { padding: 20px 22px 24px; display: grid; gap: 14px; }
.side-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.stores .soon { font-size: .85rem; color: var(--muted); }
.syllabus { list-style: none; padding: 0; margin: 0 0 1.4em; counter-reset: unit; border: 1.5px solid var(--ink); }
.syllabus > li { padding: 14px 18px; counter-increment: unit; }
.syllabus > li + li { border-top: 1px solid var(--rule); }
.syllabus h3 { margin: 0 0 6px !important; font-size: 1rem !important; }
.syllabus h3::before { content: "Unit " counter(unit) " · "; color: var(--muted); font-weight: 500; }
.syllabus ol { margin: 0 !important; padding-left: 1.3em; }
.split-info { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(20px, 3vw, 34px); margin: 34px 0; }
.split-info h2, .faq-block h2 { font-weight: 400; font-size: 1.5rem; margin: 0 0 14px; }
.steps-list { margin: 0 0 22px; padding-left: 1.2em; color: var(--ink-soft); display: grid; gap: 8px; }
.steps-list strong { color: var(--ink); }
.faq-block { margin: 10px 0 40px; max-width: 52rem; }
.faq-block details { border: 1.5px solid var(--ink); background: var(--white); padding: 14px 18px; }
.faq-block details + details { border-top: 0; }
.faq-block summary { cursor: pointer; font-weight: 500; }
.faq-block details p { margin: 10px 0 0; color: var(--ink-soft); }
@media (max-width: 900px) { .course-layout { grid-template-columns: 1fr; } .course-side { position: static; } }
