/*
Theme Name: Talk-to-Build · Mike Kwal
Theme URI: https://mikekwal.com
Author: MK-Way
Author URI: https://mk-way.com
Description: Minimal future-proof WordPress theme with Mike Kwal brand applied — Electric Lime, Deep Onyx, Pure White, DM Sans. Canvas template for AI-built pages, standard template for blog/pages.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: talk-to-build
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* ========== BRAND TOKENS ========== */
:root {
  --lime: #D1E000;
  --onyx: #1C1917;
  --white: #FFFFFF;
  --gray-50: #F7F7F6;
  --gray-100: #ECECEA;
  --gray-200: #D9D9D5;
  --gray-400: #8B8B85;
  --gray-600: #4A4A45;
  --green: #16A34A;
  --amber: #F59E0B;
  --red: #DC2626;
}

/* ========== BASE RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--onyx);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--onyx); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gray-600); }

/* ========== LAYOUT ========== */
.site { display: flex; flex-direction: column; min-height: 100vh; background: var(--white); }
.site-content {
  flex: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  width: 100%;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--onyx);
  padding: 20px 0;
}
.site-header .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: none;
}
.site-title a { text-decoration: none; color: var(--onyx); }
.site-brand {
  display: inline-block;
  line-height: 0;
}
.site-brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .site-brand-logo { height: 44px; }
}
.site-description {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  display: block;
}

/* ========== NAVIGATION ========== */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
.main-navigation a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--onyx);
}
.main-navigation a:hover { color: var(--gray-600); }
.main-navigation .current-menu-item a { border-bottom: 2px solid var(--lime); padding-bottom: 4px; }

/* ========== ENTRY (POSTS + PAGES) ========== */
.entry-header { margin-bottom: 32px; }
.entry-meta {
  font-size: 13px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 12px;
}
.entry-meta a { color: var(--gray-600); text-decoration: none; }
.entry-meta a:hover { color: var(--onyx); }
.entry-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--onyx);
}
.entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-600);
}
.entry-content > * { margin-bottom: 1.2em; }
.entry-content p { color: var(--gray-600); }
.entry-content strong { color: var(--onyx); font-weight: 700; }
.entry-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  color: var(--onyx);
  line-height: 1.25;
}
.entry-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--onyx);
  line-height: 1.3;
}
.entry-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--onyx);
}
.entry-content ul,
.entry-content ol { margin: 16px 0 16px 24px; }
.entry-content li { margin-bottom: 8px; color: var(--gray-600); }
.entry-content blockquote {
  border-left: 4px solid var(--lime);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--gray-50);
  font-style: italic;
  color: var(--onyx);
}
.entry-content code {
  background: var(--gray-100);
  color: var(--onyx);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', Menlo, Monaco, monospace;
  font-size: 0.9em;
}
.entry-content pre {
  background: var(--onyx);
  color: var(--gray-100);
  padding: 20px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', Menlo, Monaco, monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  margin: 24px 0;
}
.entry-content pre code { background: transparent; color: inherit; padding: 0; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.entry-content th,
.entry-content td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.entry-content th {
  background: var(--onyx);
  color: var(--lime);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 48px 0;
}
.entry-content a {
  color: var(--onyx);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--lime);
  text-underline-offset: 4px;
}
.entry-content a:hover { background: var(--lime); }

/* ========== BLOG ARCHIVE / INDEX ========== */
.archive-header,
.blog-header { margin-bottom: 48px; }
.archive-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.archive-description { color: var(--gray-600); font-size: 16px; }

.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.post-card:last-child { border-bottom: none; }
.post-card .post-meta {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 8px;
}
.post-card .post-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.post-card .post-title a { text-decoration: none; color: var(--onyx); }
.post-card .post-title a:hover { color: var(--gray-600); }
.post-card .post-excerpt { color: var(--gray-600); font-size: 15px; }
.post-card .read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--onyx);
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
}
.post-card .read-more:hover { color: var(--gray-600); }

/* ========== FRONT PAGE / HOMEPAGE ========== */
.home-hero {
  padding: 64px 0 48px;
  text-align: left;
}
.home-hero .label {
  display: inline-block;
  background: var(--lime);
  color: var(--onyx);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 24px;
}
.home-hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--onyx);
}
.home-hero .tagline {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 24px;
}
.brand-hierarchy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 48px 0 64px;
}
.brand-card {
  display: block;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--onyx);
  transition: border-color 0.15s, transform 0.15s;
}
.brand-card:hover {
  border-color: var(--onyx);
  transform: translateY(-2px);
}
.brand-card .name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.brand-card .description {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}
.section-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 64px 0 24px;
  color: var(--gray-400);
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 32px 0;
  margin-top: 80px;
  background: var(--white);
}
.site-footer .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p { font-size: 13px; color: var(--gray-400); margin: 0; }

/* ========== WORDPRESS BLOCK COMPATIBILITY ========== */
.wp-block-group { max-width: 880px; margin: 0 auto; }
.wp-block-image figcaption {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 8px;
  text-align: center;
}

/* ========== UTILITIES ========== */
.button,
.entry-content .button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--onyx);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
}
.button:hover { background: var(--gray-600); color: var(--white); }
.button.lime {
  background: var(--lime);
  color: var(--onyx);
}
.button.lime:hover { background: var(--onyx); color: var(--lime); }

/* ========== ARTICLE META STRIP (top of post — like SOP page) ========== */
.entry-content .article-meta-strip,
.article-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin: 0 0 24px;
  font-size: 14px;
}
.article-meta-strip .meta-col {
  color: var(--gray-600);
  line-height: 1.4;
}
.article-meta-strip .meta-col strong {
  display: block;
  color: var(--onyx);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 700;
}

/* ========== TL;DR BLOCK (Onyx, rounded, checklist-style — like SOP "Where things stand") ========== */
.entry-content .tldr-block,
.tldr-block {
  background: var(--onyx);
  color: var(--white);
  padding: 32px 36px;
  border-radius: 16px;
  margin: 0 0 48px;
  font-size: 16px;
  line-height: 1.6;
}
.tldr-block .tldr-heading,
.entry-content .tldr-block .tldr-heading {
  color: var(--lime);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.tldr-block .tldr-summary,
.entry-content .tldr-block .tldr-summary {
  color: var(--white);
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
}
.tldr-block .tldr-summary strong { color: var(--lime); }
.tldr-block .tldr-summary a { color: var(--lime); text-decoration-color: var(--lime); }

.tldr-block .tldr-checklist,
.entry-content .tldr-block .tldr-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tldr-block .tldr-checklist li,
.entry-content .tldr-block .tldr-checklist li {
  padding: 14px 0;
  border-bottom: 1px solid #2C2926;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #E5E5E0;
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}
.tldr-block .tldr-checklist li:last-child {
  border-bottom: none;
}
.tldr-block .tldr-checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M6.173 11.21L3.5 8.537l1.06-1.06 1.613 1.613 4.207-4.207 1.06 1.06z'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
  margin-top: 1px;
}
.tldr-block .tldr-checklist li strong,
.entry-content .tldr-block .tldr-checklist li strong {
  color: var(--white);
  font-weight: 700;
}
.tldr-block .tldr-checklist li code,
.entry-content .tldr-block .tldr-checklist li code {
  background: #2C2926;
  color: var(--lime);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 13px;
}

/* ========== HOMEPAGE BYLINE ========== */
.home-hero .byline {
  font-size: 14px;
  color: var(--gray-400);
  margin: 16px 0 0;
  font-weight: 500;
}
.home-hero .byline a {
  color: var(--gray-600);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
}

/* ========== IMPLEMENTATION CALLOUT (Plug Into Claude Code) ========== */
.entry-content .implementation-callout,
.implementation-callout {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--lime);
  padding: 24px 28px;
  border-radius: 8px;
  margin: 0 0 40px;
}
.implementation-callout .callout-heading {
  font-size: 19px;
  font-weight: 700;
  color: var(--onyx);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.implementation-callout p {
  color: var(--gray-600);
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}
.implementation-callout p:last-of-type { margin-bottom: 16px; }
.implementation-callout .callout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.implementation-callout .action-primary {
  display: inline-block;
  padding: 11px 20px;
  background: var(--onyx);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  border-bottom: none;
}
.implementation-callout .action-primary:hover {
  background: var(--lime);
  color: var(--onyx);
}
.implementation-callout .action-secondary {
  display: inline-block;
  padding: 11px 20px;
  color: var(--onyx);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
}
.implementation-callout .action-secondary:hover {
  border-color: var(--onyx);
}

/* ========== READING PROGRESS BAR ========== */
.t2b-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gray-100);
  z-index: 999999;
  pointer-events: none;
}
body.admin-bar .t2b-progress { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .t2b-progress { top: 46px; }
}
#t2b-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--lime);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(209, 224, 0, 0.6);
}

/* ========== ENTRY HEADER (author meta + share row) ========== */
.entry-categories {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-tag {
  display: inline-block;
  background: var(--lime);
  color: var(--onyx);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  text-decoration: none;
}
.cat-tag:hover { background: var(--onyx); color: var(--lime); }
.entry-lead {
  font-size: 19px;
  color: var(--gray-600);
  margin: 16px 0 32px;
  line-height: 1.5;
  max-width: 720px;
}
.author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 20px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--onyx);
  flex-shrink: 0;
}
.author-meta-text { line-height: 1.3; }
.author-name { font-weight: 700; font-size: 15px; color: var(--onyx); }
.author-meta-line {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}
.author-meta-line .dot { margin: 0 4px; }
.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 32px;
  font-size: 13px;
}
.share-label {
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 11px;
  margin-right: 4px;
}
.share-row a {
  color: var(--onyx);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
}
.share-row a:hover { background: var(--lime); border-color: var(--lime); color: var(--onyx); }

/* ========== FEATURED IMAGE ========== */
.entry-featured {
  margin: 0 0 40px;
}
.entry-featured img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

/* ========== PULL QUOTES ========== */
.entry-content .pull-quote,
.entry-content blockquote.pull-quote {
  border: none;
  background: transparent;
  border-top: 3px solid var(--lime);
  border-bottom: 3px solid var(--lime);
  padding: 32px 0;
  margin: 48px 0;
  font-size: 28px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--onyx);
  text-align: left;
}

/* ========== INLINE CALLOUTS ========== */
.entry-content .callout,
.callout {
  background: var(--white);
  border-left: 4px solid var(--amber);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 4px;
  border-right: 1px solid var(--gray-200);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.callout.info { border-left-color: var(--lime); }
.callout.tip { border-left-color: var(--green); }
.callout.warning { border-left-color: var(--amber); }
.callout.danger { border-left-color: var(--red); }
.callout-title {
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--onyx);
}
.callout p:last-child { margin-bottom: 0; }

/* ========== ENTRY FOOTER (author bio + related) ========== */
.entry-footer {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}
.author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 64px;
}
.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--onyx);
  flex-shrink: 0;
}
.author-bio-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--onyx);
  margin-bottom: 8px;
}
.author-bio-blurb {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 12px;
}
.author-bio-blurb a {
  color: var(--onyx);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.author-bio-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.author-bio-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--onyx);
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 1px;
}
.author-bio-links a:hover { color: var(--gray-600); }

/* ========== RELATED POSTS ========== */
.related-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  display: block;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--onyx);
  transition: border-color 0.15s, transform 0.15s;
}
.related-card:hover {
  border-color: var(--onyx);
  transform: translateY(-2px);
}
.related-meta {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 8px;
}
.related-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--onyx);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .main-navigation ul { flex-wrap: wrap; }
  .site-content { padding: 40px 18px 64px; }
  .home-hero h1 { font-size: 36px; }
  .home-hero .tagline { font-size: 17px; }
  .entry-title { font-size: 30px; }
  .entry-content h2 { font-size: 24px; }
  .entry-content { font-size: 16px; }
  .brand-hierarchy { grid-template-columns: 1fr; }
}

/* Smaller phones — fix all overflow + stacking issues */
@media (max-width: 640px) {
  .site-content { padding: 32px 16px 48px; }
  .entry-title { font-size: 28px; line-height: 1.18; }
  .entry-lead { font-size: 17px; }

  /* Implementation callout — stack buttons + tighten padding */
  .implementation-callout { padding: 20px 18px; }
  .implementation-callout .callout-heading { font-size: 17px; line-height: 1.3; }
  .implementation-callout .callout-actions { flex-direction: column; gap: 10px; align-items: stretch; }
  .implementation-callout .action-primary,
  .implementation-callout .action-secondary {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 15px;
  }

  /* TL;DR block — tighten + readable */
  .tldr-block { padding: 24px 20px; }
  .tldr-block .tldr-heading { font-size: 19px; }
  .tldr-block .tldr-checklist li { font-size: 15px; padding: 12px 0; gap: 10px; }
  .tldr-block .tldr-checklist li::before { width: 20px; height: 20px; background-size: 16px; }

  /* Article meta strip — single column on phone */
  .article-meta-strip { grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 16px; }
  .article-meta-strip .meta-col { font-size: 13px; }

  /* Share row — fit on phone */
  .share-row { gap: 8px; flex-wrap: wrap; }
  .share-row .share-label { font-size: 10px; }
  .share-row a { padding: 4px 10px; font-size: 12px; }

  /* Author bio — stack vertically */
  .author-bio { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 14px; }
  .author-bio-avatar { width: 64px; height: 64px; }

  /* Author meta block — keep horizontal but tighten */
  .author-meta { gap: 12px; }
  .author-avatar { width: 44px; height: 44px; }
  .author-name { font-size: 14px; }
  .author-meta-line { font-size: 12px; }

  /* Related posts — single column */
  .related-list { grid-template-columns: 1fr; }

  /* Pull quote — smaller on phone */
  .entry-content .pull-quote { font-size: 22px; padding: 24px 0; margin: 32px 0; }

  /* Tables — horizontal scroll on tiny screens */
  .entry-content table { font-size: 13px; }
  .entry-content th, .entry-content td { padding: 8px 10px; }

  /* Code blocks — wrap on phone */
  .entry-content pre { font-size: 12px; padding: 14px; }
  .entry-content pre code { white-space: pre-wrap; word-break: break-word; }

  /* Footer — stack */
  .site-footer .container { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .article-meta-strip { grid-template-columns: 1fr; }
  .entry-title { font-size: 24px; }
  .home-hero h1 { font-size: 30px; }
}
