/*
   Penova blog styles — shared across every /blog/*.html page.
   Inherits the homepage palette + type system; only post-specific
   typography (article body, comparison tables, callouts) lives here.
*/

:root {
  --ink-0: #0b0a08;
  --ink-1: #111110;
  --ink-2: #1a1a17;
  --ink-3: #26251f;
  --rule: #2a2823;
  --snow: #efe9db;
  --snow-2: #d4cebe;
  --snow-3: #948e80;
  --snow-4: #5e5a52;
  --amber: #f0a94a;
  --amber-dim: #b8802f;
  --jade: #7fa388;
  --ember: #c65d5d;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink-0);
  color: var(--snow);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.94 0 0 0 0 0.91 0 0 0 0 0.86 0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
  opacity: 0.7;
}
main, nav, footer { position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--ink-0); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* NAV — same shape as homepage so layout is consistent */
nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 32px;
  max-width: 1180px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.brand { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.brand em { font-style: italic; color: var(--amber); font-variation-settings: "SOFT" 100; }
.nav-links { display: flex; gap: 32px; font-size: 13px; color: var(--snow-3); letter-spacing: 0.02em; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--snow); }
.nav-meta { font-family: var(--mono); font-size: 11px; color: var(--snow-4); letter-spacing: 0.08em; text-transform: uppercase; }

/* ARTICLE HEADER */
.post-head {
  padding: 60px 0 36px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.post-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.post-head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.post-head h1 em { font-style: italic; color: var(--amber); }
.post-deck {
  font-size: 18px;
  color: var(--snow-2);
  line-height: 1.6;
  max-width: 640px;
}
.post-meta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--snow-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-meta span + span::before {
  content: "·";
  margin-right: 16px;
  color: var(--snow-4);
}

/* ARTICLE BODY */
article p {
  font-size: 16.5px;
  color: var(--snow-2);
  line-height: 1.7;
  margin-bottom: 1.2em;
}
article h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--snow);
  margin: 48px 0 16px;
}
article h2 em { font-style: italic; color: var(--amber); }
article h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--snow);
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}
article ul, article ol {
  margin: 0 0 1.2em 1.4em;
  color: var(--snow-2);
}
article li { margin-bottom: 0.4em; line-height: 1.65; }
article a { color: var(--amber); border-bottom: 1px solid rgba(240, 169, 74, 0.3); transition: border-color 0.15s, color 0.15s; }
article a:hover { color: var(--snow); border-bottom-color: var(--snow); }
article strong { color: var(--snow); font-weight: 500; }
article em { font-style: italic; color: var(--snow-2); }
article code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--ink-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--snow-2);
}
article blockquote {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--snow);
  border-left: 2px solid var(--amber);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
}
article blockquote em { color: var(--amber); }

/* COMPARISON TABLE */
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.cmp th, .cmp td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cmp tr:last-child td { border-bottom: none; }
.cmp th {
  background: var(--ink-2);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--snow-3);
}
.cmp td { color: var(--snow-2); }
.cmp td.us { color: var(--amber); font-weight: 500; }
.cmp .yes { color: var(--jade); }
.cmp .no { color: var(--snow-4); }
.cmp .partial { color: var(--snow-3); }

/* CTA CARD */
.post-cta {
  margin: 48px 0;
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240, 169, 74, 0.08), rgba(240, 169, 74, 0.02));
  border: 1px solid rgba(240, 169, 74, 0.3);
  text-align: center;
}
.post-cta h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}
.post-cta h3 em { font-style: italic; color: var(--amber); }
.post-cta p {
  font-size: 14.5px;
  color: var(--snow-3);
  margin-bottom: 18px;
}
.post-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--snow);
  color: var(--ink-0);
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: transform 0.15s ease;
}
.post-cta a:hover { transform: translateY(-1px); }

/* INLINE CTA — slimmer, drops mid-article after the comparison table
   so a reader who's already decided doesn't have to scroll to the end. */
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(240, 169, 74, 0.06);
  border: 1px solid rgba(240, 169, 74, 0.25);
  flex-wrap: wrap;
}
.cta-inline .cta-msg {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--snow);
  margin: 0;
}
.cta-inline .cta-msg em { font-style: italic; color: var(--amber); }
.cta-inline a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--snow);
  color: var(--ink-0);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.cta-inline a:hover { transform: translateY(-1px); }
.cta-inline .small {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--snow-3);
  letter-spacing: 0.06em;
}

/* RELATED POSTS / FURTHER READING */
.related {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.related-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.related-card {
  display: block;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--ink-2);
  transition: transform 0.18s ease, border-color 0.18s;
}
.related-card:hover { transform: translateY(-2px); border-color: var(--snow-4); }
.related-card .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.related-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--snow);
  margin-bottom: 6px;
}
.related-card p {
  font-size: 13px;
  color: var(--snow-3);
  line-height: 1.55;
}

/* BLOG INDEX */
.posts {
  padding: 40px 0 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.post-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.post-row time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--snow-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-row h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--snow);
}
.post-row a:hover h2 { color: var(--amber); }
.post-row .excerpt { font-size: 15px; color: var(--snow-3); line-height: 1.6; }

/* FOOTER */
footer { padding: 44px 0 60px; text-align: center; border-top: 1px solid var(--rule); margin-top: 48px; }
footer a { color: var(--snow-3); transition: color 0.2s; }
footer a:hover { color: var(--snow); }
.foot-links { display: flex; justify-content: center; gap: 24px; font-size: 13px; margin-bottom: 16px; }
.foot-meta { font-family: var(--mono); font-size: 11px; color: var(--snow-4); letter-spacing: 0.06em; }

@media (max-width: 760px) {
  nav { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 24px; }
  .nav-links { gap: 18px; }
  .nav-meta { display: none; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .related-grid { grid-template-columns: 1fr; }
}
