/* Blog styles — standalone so the server can serve them without the Vite
   build. Tokens, nav, footer and buttons mirror src/styles.css; the
   .post-content block styles raw WordPress HTML. */

:root {
  --paper: #f7f7f9;
  --paper-deep: #eeeef2;
  --surface: #ffffff;
  --ink: #17171b;
  --ink-soft: #56565f;
  --ink-faint: #8d8d97;
  --line: #e3e3e8;
  --line-soft: #eeeef1;
  --accent: #e5533c;
  --accent-ink: #c23a25;
  --dot: #dadae1;
  --font-ui: 'Archivo', sans-serif;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;
  --shadow-card: 0 1px 2px rgba(18, 18, 23, 0.05), 0 12px 32px -16px rgba(18, 18, 23, 0.22);
}

* {
  margin: 0;
  box-sizing: border-box;
}

body.blog {
  font-family: var(--font-ui);
  background:
    radial-gradient(circle, var(--dot) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------- nav (echoes .lp-nav) ---------- */

.lp-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 18, 23, 0.06);
}
.lp-nav .spacer {
  flex: 1;
}
.lp-nav-links {
  display: flex;
  gap: 22px;
  margin-left: 28px;
}
.lp-nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.lp-nav-links a:hover {
  color: var(--ink);
}

.home-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.home-mark .logo {
  width: 30px;
  height: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s;
  box-shadow: 2px 2px 0 rgba(18, 18, 23, 0.9);
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(18, 18, 23, 0.9);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent-ink);
  color: #fff;
  box-shadow: 2px 2px 0 var(--accent-ink);
}
.btn.ghost {
  border-color: var(--line);
  box-shadow: none;
  background: transparent;
  font-weight: 500;
}
.btn.ghost:hover {
  background: var(--surface);
  transform: none;
}

/* ---------- blog index ---------- */

.blog-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 24px 120px;
  min-height: 60vh;
}

.blog-head {
  margin-bottom: 40px;
}
.blog-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.02em;
}
.blog-tagline {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 16px;
}
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.blog-cat {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-soft);
  text-decoration: none;
}
.blog-cat:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.blog-cat.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.blog-card:hover {
  transform: translate(-1px, -1px);
  box-shadow:
    3px 3px 0 rgba(18, 18, 23, 0.9),
    var(--shadow-card);
}
.blog-card-media {
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.blog-card-body p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.blog-card-body time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
}
.blog-page-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.blog-empty {
  text-align: center;
  padding: 90px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.blog-empty h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
}
.blog-empty p {
  color: var(--ink-soft);
}

/* ---------- single post ---------- */

.post {
  max-width: 720px;
  margin: 0 auto;
}
.post-back {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  text-decoration: none;
}
.post-back:hover {
  color: var(--ink);
}
.post-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-top: 14px;
}
.post-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}
.post-hero {
  margin-top: 28px;
}
.post-hero img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.post-hero:empty {
  display: none;
}

/* raw WordPress content */
.post-content {
  margin-top: 36px;
  font-size: 16.5px;
  line-height: 1.72;
  color: #26262c;
}
.post-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.post-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 32px 0 12px;
}
.post-content h4 {
  font-weight: 700;
  font-size: 17px;
  margin: 26px 0 10px;
}
.post-content p,
.post-content ul,
.post-content ol {
  margin: 0 0 18px;
}
.post-content ul,
.post-content ol {
  padding-left: 26px;
}
.post-content li {
  margin-bottom: 6px;
}
.post-content a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.post-content figure {
  margin: 26px 0;
}
.post-content figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 8px;
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--ink-soft);
  font-style: italic;
}
.post-content pre {
  background: #1c1a15;
  color: #f2efe6;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
.post-content :not(pre) > code {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.post-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 14.5px;
}
.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}
.post-content th {
  background: var(--paper-deep);
  font-weight: 600;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.post-content iframe,
.post-content video {
  max-width: 100%;
  border-radius: 10px;
}

/* ---------- footer (echoes .lp-footer) ---------- */

.lp-footer {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.lp-foot-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 40px 56px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.lp-foot-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}
.lp-foot-brand .home-mark {
  color: var(--paper);
}
.lp-foot-note {
  font-size: 13.5px;
  color: rgba(240, 240, 245, 0.55);
  font-style: italic;
}
.lp-foot-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lp-foot-col b {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 240, 245, 0.45);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.lp-foot-col a {
  font-size: 14px;
  color: rgba(240, 240, 245, 0.75);
  text-decoration: none;
}
.lp-foot-col a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .lp-nav {
    padding: 12px 18px;
  }
  .lp-nav-links {
    display: none;
  }
  .blog-main {
    padding: 36px 18px 80px;
  }
}
