/* AIReady Leaders — Writing/blog styles
   Mirrors the design tokens from index.html. Edit in one place.
*/

:root {
  --green-deep: #14352A;
  --green: #1E4638;
  --cream: #F3EFE8;
  --cream-2: #EAE5D6;
  --yellow: #F4D35E;
  --muted: #4A5853;
  --line: #D8D1C2;
  --card: #FFFFFF;
  --ink: #1F2A26;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); }

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -0.01em; margin: 0; }

.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar (mini nav) ---------- */
.topbar {
  background: var(--green-deep);
  color: var(--cream);
  padding: 10px 0;
  font-size: 0.85rem;
}
.topbar a { color: var(--yellow); margin-left: 8px; }
.topbar .container { max-width: 1200px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.nav {
  position: sticky;
  top: 0;
  background: rgba(243, 239, 232, 0.95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav .container { max-width: 1200px; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.logo { font-family: "Fraunces", serif; font-size: 1.25rem; color: var(--green-deep); font-weight: 500; }
.logo em { font-style: normal; color: var(--green); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--green-deep); font-size: 0.95rem; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { color: var(--green); font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--green-deep); color: var(--cream); }
.btn-primary:hover { background: var(--green); color: var(--cream); transform: translateY(-1px); }
.btn-arrow::after { content: "→"; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(3px); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Page hero ---------- */
.page-head {
  padding: 64px 0 36px;
  text-align: center;
}
.page-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 14px;
}
.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--green-deep);
  line-height: 1.05;
}
.page-head .lead {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ---------- Index list ---------- */
.post-list {
  padding: 16px 0 80px;
}
.post-card {
  display: block;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s ease;
}
.post-list .post-card:last-child { border-bottom: 1px solid var(--line); }
.post-card:hover { padding-left: 12px; color: inherit; }
.post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}
.post-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--green-deep);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}
.post-excerpt {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 600px;
}

/* ---------- Post hero image ---------- */
.post-hero {
  width: 100%;
  max-width: 900px;
  margin: 12px auto 36px;
  aspect-ratio: 21 / 9;
  background: var(--cream-2);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.post-hero img,
.post-hero svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Related posts (More from AIReady Leaders) ---------- */
.related {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 40px 24px 16px;
  border-top: 1px solid var(--line);
}
.related .related-eyebrow {
  text-align: center;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 36px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.related-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.2s ease;
}
.related-card:hover { opacity: 0.85; color: inherit; }
.related-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
.related-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 0.78rem;
  font-weight: 500;
  overflow: hidden;
  flex-shrink: 0;
}
.related-avatar img { width: 100%; height: 100%; object-fit: cover; }
.related-author-name { color: var(--ink); font-weight: 500; }
.related-info {
  font-variant-numeric: tabular-nums;
}
.related-info .sep { margin: 0 8px; color: var(--line); }
.related-info .kind { color: var(--green); font-weight: 500; }
.related-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--green-deep);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 12px;
}
.related-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 720px) {
  .related-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Single post ---------- */
.post {
  padding: 28px 0 80px;
}
.post .breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.post-header {
  margin-bottom: 32px;
  text-align: left;
}
.post-header .post-meta { margin-bottom: 12px; }
.post-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-deep);
  line-height: 1.1;
  margin-bottom: 14px;
}
.post-header .lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
}

.post-body { font-size: 1.05rem; line-height: 1.7; color: var(--ink); }
.post-body p { margin: 0 0 1.1rem; }
.post-body h2 {
  font-size: 1.6rem;
  color: var(--green-deep);
  margin: 2.2rem 0 0.9rem;
}
.post-body h3 {
  font-size: 1.25rem;
  color: var(--green-deep);
  margin: 1.8rem 0 0.7rem;
}
.post-body ul, .post-body ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote {
  border-left: 3px solid var(--yellow);
  padding: 4px 0 4px 18px;
  margin: 1.4rem 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--green-deep);
  font-size: 1.15rem;
  line-height: 1.45;
}
.post-body code {
  background: var(--cream-2);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.4rem 0;
}
.post-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reusable visual blocks for posts ---------- */

/* Big stat row: 3 numbers + labels side by side */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1.6rem 0;
}
.stat-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}
.stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--green-deep);
  line-height: 1;
  font-weight: 500;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 620px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* Yellow-accented insight callout */
.callout {
  background: rgba(244, 211, 94, 0.18);
  border-left: 4px solid var(--yellow);
  padding: 18px 22px;
  border-radius: 4px;
  margin: 1.6rem 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--green-deep);
}
.callout strong { font-weight: 600; }

/* Strong "bottom line" closing block */
.bottom-line {
  background: var(--green-deep);
  color: var(--cream);
  padding: 22px 26px;
  border-radius: 14px;
  margin: 2rem 0;
}
.bottom-line .label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 8px;
}
.bottom-line p { margin: 0; line-height: 1.55; font-size: 1rem; }

/* Side-by-side compare cards */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 1.6rem 0;
}
.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.compare-card h4 {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--green-deep);
  font-weight: 500;
  margin-bottom: 10px;
}
.compare-card ul { padding-left: 18px; margin: 0; }
.compare-card li { font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; line-height: 1.45; }
@media (max-width: 620px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* 3-column card grid (artifacts, functions, etc.) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1.6rem 0;
}
.card-grid .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.card-grid .card h4 {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  color: var(--green-deep);
  margin: 0 0 6px;
  font-weight: 500;
}
.card-grid .card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Checklist with yellow circle ticks */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0;
}
.checklist li {
  position: relative;
  padding: 4px 0 4px 32px;
  line-height: 1.5;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--yellow);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' stroke='%2314352A' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* Code-style prompt block (for in-depth prompts) */
.prompt-code {
  background: #14352A;
  border-radius: 14px;
  margin: 1.6rem 0;
  overflow: hidden;
}
.prompt-code .tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F4D35E;
  font-weight: 600;
  padding: 16px 24px 0;
  font-family: "Inter", sans-serif;
}
.prompt-code pre {
  margin: 0;
  padding: 10px 24px 22px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #F3EFE8;
  white-space: pre-wrap;
  overflow-x: auto;
  word-wrap: break-word;
}
.prompt-code pre code { background: transparent; padding: 0; color: inherit; font-family: inherit; }

/* Styled prompt block (try-this-prompt style) */
.prompt-block {
  background: var(--cream-2);
  border-left: 3px solid var(--green);
  padding: 16px 18px;
  border-radius: 4px;
  margin: 1.2rem 0;
  font-size: 0.95rem;
  color: var(--green-deep);
  line-height: 1.55;
  font-style: italic;
  font-family: "Fraunces", serif;
  font-weight: 400;
}
.prompt-block .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 6px;
  font-style: normal;
  font-family: "Inter", sans-serif;
}

/* Sources list at end */
.sources {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.sources a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA at end of post ---------- */
.post-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}
.post-cta h3 {
  font-size: 1.4rem;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.post-cta p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 36px 0;
  margin-top: 48px;
}
footer .container { max-width: 1200px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 0.85rem; opacity: 0.8; }
footer a { color: var(--yellow); }
