@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-card: #161616;
  --bg-elevated: #1c1c1c;
  --text: #e5e5e5;
  --text-strong: #ffffff;
  --text-dim: #a3a3a3;
  --text-fade: #525252;
  --accent: #22c55e;
  --accent-light: #4ade80;
  --accent-dim: #16a34a;
  --accent-deep: #15803d;
  --accent-subtle: rgba(34,197,94,0.06);
  --accent-glow: rgba(34,197,94,0.15);
  --border: #262626;
  --border-strong: #333333;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; overflow-x: hidden; }
em { font-style: italic; }

/* ─── NAV (mirrors landing) ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 32px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(10,10,10,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav a.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav .mark {
  width: 28px; height: 32px;
  background: var(--accent);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px; font-weight: 600; color: #0a0a0a;
}
nav .brand { font-family: var(--serif); font-size: 18px; letter-spacing: 0.03em; color: #fff; }
nav .brand .en { color: var(--accent); }
nav .nav-links { margin-left: auto; display: flex; gap: 24px; align-items: center; }
nav .nav-links a { color: var(--text-dim); text-decoration: none; font-family: var(--mono); font-size: 13px; transition: color 0.2s; }
nav .nav-links a:hover { color: var(--text); }
nav .nav-links a.nav-cta {
  background: var(--accent); color: #0a0a0a; font-family: var(--mono); font-size: 13px; font-weight: 500;
  padding: 8px 16px; text-decoration: none; transition: background 0.2s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
nav .nav-links a.nav-cta:hover { background: var(--accent-light); color: #0a0a0a; }

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent); margin-bottom: 16px;
}

/* ─── Page header ─── */
.page-header {
  padding: 140px 24px 56px;
  max-width: 880px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 400;
  letter-spacing: 0.01em; line-height: 1.2; color: var(--text-strong);
  margin-bottom: 18px;
}
.page-header h1 .green { color: var(--accent); }
.page-header p {
  color: var(--text-dim); font-size: 19px; max-width: 640px; line-height: 1.7;
}

/* ─── Listing ─── */
.posts {
  max-width: 880px; margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid; gap: 20px;
}
.post-card {
  background: var(--border); border: none; padding: 28px 32px; position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  display: block; text-decoration: none; transition: transform 0.15s ease;
}
.post-card::before {
  content: ''; position: absolute; inset: 1px;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  background: var(--bg-card); z-index: 0;
}
.post-card > * { position: relative; z-index: 1; }
.post-card:hover { transform: translateY(-1px); }
.post-card .post-meta {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.post-card h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.25;
  color: var(--text-strong); margin-bottom: 10px;
}
.post-card p {
  color: var(--text-dim); font-size: 16px; line-height: 1.65;
}
.post-card .read-more {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 13px; color: var(--accent);
}

.posts-empty {
  font-family: var(--mono); font-size: 14px; color: var(--text-dim);
  padding: 48px 0; text-align: center;
}

/* ─── Article (post page) ─── */
article.post {
  max-width: 720px; margin: 0 auto;
  padding: 140px 24px 80px;
}
article.post .post-back {
  display: inline-block; margin-bottom: 32px;
  font-family: var(--mono); font-size: 13px; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
}
article.post .post-back:hover { color: var(--accent); }
article.post .post-meta {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
article.post h1 {
  font-family: var(--serif); font-size: clamp(32px, 4.5vw, 48px); font-weight: 400;
  letter-spacing: 0.005em; line-height: 1.2; color: var(--text-strong);
  margin-bottom: 24px;
}
article.post .lede {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--text-dim); line-height: 1.6;
  margin-bottom: 40px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

article.post h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  color: var(--text-strong); margin-top: 48px; margin-bottom: 16px; line-height: 1.3;
}
article.post h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--text-strong); margin-top: 32px; margin-bottom: 12px; line-height: 1.35;
}
article.post p {
  font-size: 17px; color: var(--text); line-height: 1.75; margin-bottom: 20px;
}
article.post a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
article.post a:hover { color: var(--accent-light); }
article.post strong { color: var(--text-strong); font-weight: 600; }
article.post em { color: var(--text); }

article.post ul, article.post ol { margin: 0 0 20px 24px; }
article.post li { font-size: 17px; color: var(--text); line-height: 1.7; margin-bottom: 8px; }

article.post blockquote {
  border-left: 3px solid var(--accent); padding: 4px 20px;
  margin: 28px 0; font-family: var(--serif); font-style: italic;
  color: var(--text-dim); font-size: 18px; line-height: 1.65;
}

article.post code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 3px; color: var(--accent-light);
}
article.post pre {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 18px 20px; margin: 24px 0;
  overflow-x: auto; font-family: var(--mono); font-size: 13px;
  line-height: 1.6; color: var(--text);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
article.post pre code {
  background: transparent; border: none; padding: 0; color: inherit; font-size: inherit;
}

article.post hr {
  border: none; border-top: 1px solid var(--border); margin: 48px 0;
}

article.post img, article.post video {
  max-width: 100%; height: auto; display: block;
  margin: 32px 0; border: 1px solid var(--border);
}
article.post figure { margin: 32px 0; }
article.post figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  text-align: center; margin-top: 8px;
}

article.post .post-footer {
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 13px; color: var(--text-dim);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
article.post .post-footer a { color: var(--text-dim); text-decoration: none; }
article.post .post-footer a:hover { color: var(--accent); }

/* ─── CTA strip (reusable on blog pages) ─── */
.blog-cta {
  max-width: 720px; margin: 0 auto 80px;
  padding: 0 24px;
}
.blog-cta-inner {
  background: var(--border); border: none; padding: 32px;
  position: relative; text-align: center;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.blog-cta-inner::before {
  content: ''; position: absolute; inset: 1px;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  background: var(--bg-card); z-index: 0;
}
.blog-cta-inner > * { position: relative; z-index: 1; }
.blog-cta-inner h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  color: var(--text-strong); margin-bottom: 8px;
}
.blog-cta-inner p {
  font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-bottom: 20px;
}
.blog-cta-inner a {
  display: inline-block; background: var(--accent); color: #0a0a0a;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  padding: 12px 24px; text-decoration: none; transition: background 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.blog-cta-inner a:hover { background: var(--accent-light); }

/* ─── Bottom post CTA (mirrors landing page) ─── */
.post-cta {
  max-width: 880px; margin: 0 auto 80px;
  padding: 72px 24px 64px;
  text-align: center;
}
.post-cta h2 {
  font-family: var(--serif); font-size: 40px; font-weight: 400;
  color: var(--text-strong); margin-bottom: 16px; line-height: 1.15;
}
.post-cta h2 em { font-style: italic; color: var(--text-dim); }
.post-cta > p {
  color: var(--text-dim); font-size: 16px; margin-bottom: 32px;
  font-family: var(--mono);
}
.post-cta .cta-pill {
  display: flex; align-items: stretch; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  margin: 0 auto; width: 100%; max-width: 560px;
}
.post-cta .cta-pill .cta-question {
  flex: 1; padding: 16px 24px;
  font-family: var(--mono); font-size: 15px; color: var(--text);
  white-space: nowrap; overflow: hidden;
  display: flex; align-items: center;
}
.post-cta .cta-pill a {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 32px; min-width: 160px;
  background: var(--accent); color: #0a0a0a;
  font-family: var(--mono); font-size: 15px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background 0.2s;
}
.post-cta .cta-pill a:hover { background: var(--accent-light); }
.post-cta .cta-note {
  font-family: var(--mono); font-size: 13px;
  color: var(--text-dim); margin: 24px 0 16px;
}
.post-cta .waitlist-form {
  display: flex; gap: 0; max-width: 560px; width: 100%; margin: 0 auto;
}
.post-cta .waitlist-form input[type="email"] {
  flex: 1; padding: 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-right: none;
  color: var(--text); font-family: var(--mono); font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.post-cta .waitlist-form input[type="email"]::placeholder { color: var(--text-dim); }
.post-cta .waitlist-form input[type="email"]:focus { border-color: var(--accent); }
.post-cta .waitlist-form button {
  padding: 16px 32px; min-width: 160px;
  background: var(--accent); border: none; color: #0a0a0a;
  font-family: var(--mono); font-size: 15px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.post-cta .waitlist-form button:hover:not(:disabled) { background: var(--accent-light); }
.post-cta .waitlist-form button:disabled { cursor: default; opacity: 0.95; }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border); padding: 32px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 700px) {
  nav { padding: 14px 20px; }
  nav .nav-links a:not(.nav-cta) { display: none; }
  .page-header { padding: 110px 20px 48px; }
  .posts { padding: 48px 20px 64px; }
  article.post { padding: 110px 20px 64px; }
  article.post h1 { font-size: 32px; }
  article.post .lede { font-size: 19px; }
  article.post p, article.post li { font-size: 16px; }
  .post-cta { padding: 56px 20px 48px; }
  .post-cta h2 { font-size: 32px; }
  .post-cta .cta-pill { flex-direction: column; }
  .post-cta .cta-pill .cta-question { padding: 14px 16px; text-align: center; white-space: normal; box-sizing: border-box; justify-content: center; }
  .post-cta .cta-pill a { padding: 14px; clip-path: none; box-sizing: border-box; }
  .post-cta .waitlist-form { flex-direction: column; }
  .post-cta .waitlist-form input[type="email"] { border-right: 1px solid var(--border); }
  .post-cta .waitlist-form button { clip-path: none; padding: 14px; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}
