/* Source: design-source/html/blog-post.html */
:root {
    --bg:#f7f6f2; --bg-2:#ffffff; --bg-paper:#f1ede2; --bg-dark:#0b0b0c;
    --line:#e3e1d9; --line-2:#d8d6cf;
    --ink-0:#0b0b0c; --ink-1:#1a1a1e; --ink-2:#3d3d44; --ink-3:#8a8a92;
    --accent:#ff6a3d; --moss:#6b7d5a;
  }
  * { box-sizing: border-box; }
  html, body { margin:0; padding:0; background: var(--bg); color: var(--ink-1); }
  body { font-family:"Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.55; }
  ::selection { background: var(--accent); color: #fff; }
  a { color: inherit; text-decoration: none; }
  .container { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }

  .lg { font-family:"Inter Tight", sans-serif; font-weight: 600; letter-spacing: -0.055em; line-height: 1; display: inline-flex; align-items: baseline; color: var(--ink-0); }
  .lg .acc { color: var(--accent); }

  /* NAV */
  .nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(247,246,242,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .nav { display: flex; align-items: center; gap: 32px; padding: 18px 0; }
  .nav .logo-link { font-size: 34px; }
  .nav .crumb { font-family:"JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line-2); }
  .nav .crumb b { color: var(--ink-0); font-weight: 600; }
  .nav .links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
  .nav .links a { font-size: 17px; font-weight: 500; color: var(--ink-1); transition: color 150ms ease; }
  .nav .links a:hover { color: var(--ink-0); }
  .nav .links a.active { color: var(--accent); font-weight: 700; }
  .nav .phone { font-family:"JetBrains Mono", monospace; font-size: 15px; color: var(--ink-0); padding: 10px 18px; border: 1.5px solid var(--ink-0); border-radius: 999px; transition: all 150ms ease; font-weight: 600; }
  .nav .phone:hover { background: var(--ink-0); color: #fff; }
  @media (max-width: 1024px) { .nav .links, .nav .crumb { display: none; } }

  /* PROGRESS */
  .progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 100; pointer-events: none; }
  .progress .bar { height: 100%; width: 0%; background: var(--accent); transition: width 80ms ease; }

  /* ARTICLE HEADER — slim */
  .post-head { padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
  .post-head .crumbs { font-family:"JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
  .post-head .crumbs a:hover { color: var(--accent); }
  .post-head .crumbs .sep { margin: 0 10px; opacity: 0.4; }
  .post-head .crumbs .cat-tag { color: var(--accent); font-weight: 700; }

  h1.post-title {
    font-family:"Source Serif 4", Georgia, serif; font-weight: 500;
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.04; letter-spacing: -0.02em;
    color: var(--ink-0); margin: 0 0 18px;
    text-wrap: balance; max-width: 22ch;
  }
  h1.post-title em { font-style: italic; color: var(--accent); font-weight: 500; }
  .post-head .dek {
    font-family:"Source Serif 4", Georgia, serif;
    font-size: clamp(17px, 1.5vw, 20px); font-weight: 400; line-height: 1.5;
    color: var(--ink-2); margin: 0; max-width: 62ch;
  }
  .post-head .dek em { font-style: italic; color: var(--ink-2); }
  .byline-row { margin-top: 22px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
  .byline { display: flex; gap: 12px; align-items: center; }
  .byline .av {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-paper); border: 1px solid var(--line);
    overflow: hidden; flex-shrink: 0;
  }
  .byline .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .byline .who { line-height: 1.3; font-size: 13.5px; color: var(--ink-2); }
  .byline .who b { color: var(--ink-0); font-weight: 600; }
  .byline .who span { color: var(--ink-3); }
  .byline .who .sep { margin: 0 8px; color: var(--line-2); }
  .meta-blocks { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; font-family:"JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
  .meta-blocks div b { color: var(--ink-0); font-weight: 600; }

  /* COVER FIGURE */
  .cover {
    margin: 32px auto 0;
    max-width: 1100px;
    padding: 0 clamp(20px, 4vw, 56px);
  }
  .cover .fig {
    aspect-ratio: 5 / 2;
    background: var(--bg-paper);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line);
    background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(11,11,12,0.04) 14px 15px);
  }
  .cover .fig::before {
    content: "PHOTO — HOUSTON SKYLINE FROM BUFFALO BAYOU, 6:42 PM";
    position: absolute;
    bottom: 18px; left: 18px;
    font-family:"JetBrains Mono", monospace;
    font-size: 11px; letter-spacing: 0.16em;
    color: var(--ink-3);
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--line-2);
  }
  .cover .fig .deco {
    position: absolute;
    right: 32px; top: 28px;
    font-family:"Source Serif 4", serif; font-style: italic;
    font-size: 220px; color: var(--accent); opacity: 0.18;
    line-height: 0.85;
  }
  .cover .cap {
    margin-top: 14px;
    font-family:"JetBrains Mono", monospace;
    font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3);
    text-transform: uppercase;
  }
  .cover .cap b { color: var(--ink-0); }

  /* ARTICLE BODY */
  .article {
    padding: 80px 0;
    border-bottom: 1px solid var(--line);
  }
  .article .layout {
    display: grid;
    grid-template-columns: minmax(0, 680px) 240px;
    gap: 56px;
    align-items: start;
    justify-content: center;
  }
  @media (max-width: 1100px) {
    .article .layout { grid-template-columns: 1fr; gap: 32px; }
  }

  /* TOC sidebar */
  .toc { position: sticky; top: 90px; max-height: calc(100vh - 120px); overflow: auto; }
  @media (max-width: 1100px) { .toc { position: relative; top: 0; } }
  .toc h5 { font-family:"JetBrains Mono", monospace; font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 10px; }
  .toc ol li { counter-increment: toc; padding-left: 26px; position: relative; }
  .toc ol li::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute; left: 0; top: 1px;
    font-family:"JetBrains Mono", monospace; font-size: 10.5px;
    color: var(--ink-3); letter-spacing: 0.06em; font-weight: 700;
  }
  .toc ol li a { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; transition: color 150ms ease; }
  .toc ol li a:hover, .toc ol li.active a { color: var(--accent); }

  /* BODY */
  .body {
    max-width: 680px;
  }
  .body p {
    font-family:"Source Serif 4", Georgia, serif;
    font-size: 20px; line-height: 1.65;
    color: var(--ink-1); margin: 0 0 24px;
    font-weight: 400;
  }
  .body p strong { color: var(--ink-0); font-weight: 600; }
  .body p em { font-style: italic; color: var(--ink-2); }
  .body > p:first-of-type::first-letter {
    font-family:"Source Serif 4", Georgia, serif;
    font-weight: 500;
    font-size: 4.6em;
    line-height: 0.85;
    float: left;
    margin: 0.06em 0.12em 0 0;
    color: var(--accent);
  }
  .body h2 {
    font-family:"Source Serif 4", Georgia, serif;
    font-weight: 600; font-size: 36px;
    letter-spacing: -0.018em; line-height: 1.15;
    color: var(--ink-0);
    margin: 56px 0 20px;
    scroll-margin-top: 100px;
    text-wrap: balance;
  }
  .body h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
  .body h2 .num {
    display: block;
    font-family:"JetBrains Mono", monospace;
    font-size: 12px; letter-spacing: 0.18em;
    color: var(--accent); margin-bottom: 8px;
    font-weight: 700;
  }
  .body h3 {
    font-family:"Source Serif 4", Georgia, serif;
    font-weight: 600; font-size: 24px;
    letter-spacing: -0.012em; line-height: 1.2;
    color: var(--ink-0);
    margin: 36px 0 14px;
  }

  .body blockquote {
    margin: 40px 0;
    padding: 20px 0 20px 28px;
    border-left: 3px solid var(--accent);
    font-family:"Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: 26px;
    line-height: 1.4;
    color: var(--ink-0);
    text-wrap: balance;
  }

  .body ul, .body ol {
    font-family:"Source Serif 4", Georgia, serif;
    font-size: 19px; line-height: 1.6;
    color: var(--ink-1);
    margin: 0 0 28px;
    padding-left: 0;
    list-style: none;
  }
  .body ul li, .body ol li {
    padding-left: 28px; position: relative;
    margin-bottom: 12px;
  }
  .body ul li::before {
    content: ""; position: absolute;
    left: 6px; top: 14px;
    width: 8px; height: 1.5px;
    background: var(--accent);
  }
  .body ol { counter-reset: ol; }
  .body ol li { counter-increment: ol; }
  .body ol li::before {
    content: counter(ol) ".";
    position: absolute; left: 0; top: 0;
    font-family:"JetBrains Mono", monospace;
    font-size: 13px; font-weight: 700;
    color: var(--accent);
    width: 22px;
  }

  /* PULL QUOTE FULL */
  .pull-full {
    margin: 64px calc(-50vw + 50%);
    background: var(--bg-paper);
    border-block: 1px solid var(--line);
    padding: 80px 0;
  }
  @media (max-width: 1100px) { .pull-full { margin: 48px calc(-1 * (clamp(20px, 4vw, 56px))); } }
  .pull-full .pq {
    max-width: 880px; margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
    font-family:"Source Serif 4", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink-0);
    text-wrap: balance;
  }
  .pull-full .pq em { color: var(--accent); }
  .pull-full .att {
    max-width: 880px; margin: 24px auto 0;
    padding: 0 clamp(20px, 4vw, 56px);
    font-family:"JetBrains Mono", monospace;
    font-size: 12px; letter-spacing: 0.14em;
    color: var(--ink-3); text-transform: uppercase;
  }
  .pull-full .att b { color: var(--ink-0); }

  .author-card .av-lg { overflow: hidden; }

  /* DATA TABLE */
  .data-fig {
    margin: 40px 0;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }
  .data-fig .hd {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-paper);
    display: flex; justify-content: space-between; align-items: center;
    font-family:"JetBrains Mono", monospace;
    font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3);
    text-transform: uppercase;
  }
  .data-fig .hd b { color: var(--ink-0); font-weight: 600; }
  .data-fig table { width: 100%; border-collapse: collapse; }
  .data-fig th, .data-fig td { padding: 14px 22px; text-align: left; font-size: 14.5px; border-bottom: 1px dashed var(--line-2); }
  .data-fig tr:last-child th, .data-fig tr:last-child td { border-bottom: 0; }
  .data-fig th { font-family:"JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; font-weight: 500; background: var(--bg); }
  .data-fig td { font-family:"Inter Tight", sans-serif; color: var(--ink-1); }
  .data-fig td.num { font-family:"JetBrains Mono", monospace; text-align: right; font-weight: 600; color: var(--ink-0); }
  .data-fig td.num.up { color: var(--moss); }
  .data-fig td.num.down { color: var(--accent); }
  .data-fig td b { color: var(--ink-0); font-weight: 600; }

  /* FIGURE / DIAGRAM */
  .figure {
    margin: 40px 0;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px;
  }
  .figure .label { font-family:"JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
  .figure .cap { font-family:"JetBrains Mono", monospace; font-size: 11px; color: var(--ink-3); margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); letter-spacing: 0.06em; }
  .figure .cap b { color: var(--ink-0); }

  /* CALLOUT */
  .callout {
    margin: 40px 0;
    background: var(--ink-0);
    color: #fff;
    padding: 32px 36px;
    border-radius: 14px;
    position: relative;
  }
  .callout .lab { font-family:"JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
  .callout p { font-family:"Source Serif 4", Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.5; color: #fff; margin: 0; max-width: 50ch; }
  .callout p strong { color: var(--accent); font-weight: 500; font-style: normal; }

  /* META side */
  .article .meta {
    display: none;
  }
  .meta-block { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
  .meta-block h6 { font-family:"JetBrains Mono", monospace; font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .meta-block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-family:"JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.04em; }
  .meta-block ul a { color: var(--ink-1); }
  .meta-block ul a:hover { color: var(--accent); }
  .share-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .share-row a {
    padding: 8px 14px;
    border: 1.5px solid var(--line-2);
    border-radius: 999px;
    font-family:"JetBrains Mono", monospace;
    font-size: 11.5px;
    color: var(--ink-1);
    letter-spacing: 0.06em;
    transition: all 150ms ease;
  }
  .share-row a:hover { border-color: var(--ink-0); color: var(--ink-0); }

  /* AUTHOR FOOTER */
  .author-band { padding: 80px 0; border-bottom: 1px solid var(--line); background: var(--bg-paper); }
  .author-card {
    max-width: 880px; margin: 0 auto;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px;
    display: grid; grid-template-columns: 96px 1fr;
    gap: 32px; align-items: start;
  }
  @media (max-width: 600px) { .author-card { grid-template-columns: 1fr; padding: 28px; } }
  .author-card .av-lg {
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--bg-paper); border: 1px solid var(--line);
    display: grid; place-items: center;
    font-family:"Source Serif 4", serif; font-style: italic;
    font-weight: 500; font-size: 48px; color: var(--accent);
  }
  .author-card .lab { font-family:"JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
  .author-card h3 { font-family:"Source Serif 4", Georgia, serif; font-weight: 600; font-size: 28px; letter-spacing: -0.018em; color: var(--ink-0); margin: 0 0 12px; line-height: 1.2; }
  .author-card p { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 0 0 18px; }
  .author-card .links { display: flex; gap: 16px; font-family:"JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.06em; }
  .author-card .links a { color: var(--ink-1); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
  .author-card .links a:hover { color: var(--accent); border-color: var(--accent); }

  /* RELATED */
  .related-wrap { padding: 80px 0; border-bottom: 1px solid var(--line); }
  .related-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
  .related-head h2 { font-family:"Source Serif 4", Georgia, serif; font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); margin: 0; color: var(--ink-0); letter-spacing: -0.018em; }
  .related-head h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
  .related-head a.all { font-family:"JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-1); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; font-weight: 600; }
  .related-head a.all:hover { color: var(--accent); border-color: var(--accent); }

  .rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
  @media (max-width: 980px) { .rel-grid { grid-template-columns: 1fr; } }
  .rel-card { background: var(--bg-2); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; cursor: pointer; transition: background 200ms ease; }
  .rel-card:hover { background: var(--bg-paper); }
  .rel-card .cat-tag { font-family:"JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
  .rel-card h3 { font-family:"Source Serif 4", Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.012em; color: var(--ink-0); margin: 0; transition: color 200ms ease; }
  .rel-card:hover h3 { color: var(--accent); }
  .rel-card h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
  .rel-card .foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--line-2);
    font-family:"JetBrains Mono", monospace;
    font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em;
  }
  .rel-card .foot b { color: var(--ink-0); font-weight: 600; }

  /* CTA bottom */
  .post-cta { padding: 80px 0; }
  .post-cta-card {
    background: var(--ink-0); color: #fff;
    border-radius: 24px; padding: 64px 56px;
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 48px; align-items: end;
    position: relative; overflow: hidden;
  }
  .post-cta-card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,106,61,0.2), transparent 60%); filter: blur(40px); }
  @media (max-width: 880px) { .post-cta-card { grid-template-columns: 1fr; padding: 44px 32px; } }
  .post-cta-card h2 { font-family:"Source Serif 4", Georgia, serif; font-weight: 500; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.02em; color: #fff; margin: 0; max-width: 16ch; text-wrap: balance; position: relative; }
  .post-cta-card h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
  .post-cta-card p { font-size: 17px; line-height: 1.6; color: #d4d4d8; margin: 0 0 24px; max-width: 44ch; position: relative; }
  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: all 180ms ease; cursor: pointer; }
  .post-cta-card .pri { background: #fff; color: var(--ink-0); }
  .post-cta-card .pri:hover { background: var(--accent); color: #fff; }
  .post-cta-card .sec { color: #fff; border: 1.5px solid rgba(255,255,255,0.2); background: transparent; }
  .post-cta-card .sec:hover { border-color: rgba(255,255,255,0.5); }
  .post-cta-card .row-cta { position: relative; display: flex; flex-direction: column; gap: 16px; }
  .post-cta-card .row-cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }

  /* FOOTER */
  footer.site { padding: 72px 0 28px; background: var(--bg); border-top: 1px solid var(--line); }
  footer.site .top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
  @media (max-width: 880px) { footer.site .top { grid-template-columns: 1fr 1fr; } }
  footer.site .brand .logo-link { font-size: 36px; display: inline-block; margin-bottom: 14px; }
  footer.site .brand p { font-size: 16px; line-height: 1.55; color: var(--ink-1); margin: 0 0 14px; max-width: 36ch; }
  footer.site .brand .addr { font-family:"JetBrains Mono", monospace; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }
  footer.site .footer-heading { font-family:"JetBrains Mono", monospace; font-weight: 500; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
  footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
  footer.site ul a { font-size: 15px; color: var(--ink-1); }
  footer.site ul a:hover { color: var(--accent); }
  footer.site .bottom { padding-top: 22px; display: flex; justify-content: space-between; font-family:"JetBrains Mono", monospace; font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-3); flex-wrap: wrap; gap: 12px; }

/* WordPress dynamic additions */
.cover .fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.byline .avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.article .body img { max-width: 100%; height: auto; border-radius: 14px; }
.article .body a { color: var(--accent); border-bottom: 1px solid rgba(255, 106, 61, 0.35); }
.article .body a:hover { border-color: var(--accent); }
.article .body .wp-caption { max-width: 100%; }
.article .body .wp-caption-text { font-family:"JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; margin-top: 10px; }
