/* 13th Pencil Blog — brand chrome + readable post typography */

:root {
  --paper: #EDE5D6;
  --paper-2: #E2D8C4;
  --ink: #181A1C;
  --ink-2: #23272B;
  --grey: #5C6268;
  --lacquer: #F5B301;
  --eraser: #F4737E;
  --eraser-deep: #AE3450;
  --rule: rgba(24, 26, 28, 0.16);
  --rule-on-ink: rgba(237, 229, 214, 0.18);
  --dim: #CFC8BB;
  --dim-2: #A7ADB4;
  --stroke: #3A3F45;
  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --pad: clamp(20px, 5vw, 84px);
  --gap: clamp(28px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 112px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.tpb-menu-open,
html.tpb-menu-open body {
  overflow: hidden;
}

body.tpb-blog {
  background: var(--paper) !important;
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 400;
  font-size: clamp(17px, 1.05vw, 18.5px);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.tpb-blog a {
  color: inherit;
  text-decoration: none;
}

body.tpb-blog a.tpb-kicker,
body.tpb-blog .tpb-kicker {
  color: var(--eraser-deep);
}

body.tpb-blog a.tpb-kicker:hover,
body.tpb-blog .tpb-kicker:hover {
  color: var(--ink);
  border-bottom-color: var(--lacquer);
}

body.tpb-blog h1,
body.tpb-blog h2,
body.tpb-blog h3,
body.tpb-blog h4,
body.tpb-blog h5,
body.tpb-blog h6,
body.tpb-blog .entry-title,
body.tpb-blog .ast-archive-description .ast-archive-title {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: var(--ink);
}

/* Hide Astra’s default / builder chrome */
.ast-primary-header-bar,
.main-header-bar-wrap,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-header-break-point .main-header-bar,
#ast-desktop-header,
#ast-mobile-header,
.ast-desktop-header-content,
.ast-mobile-header-content,
.ast-main-header-wrap,
.site-header .main-header-bar,
.ast-builder-menu,
.ast-builder-menu-mobile,
.ast-builder-html-element,
.ast-footer-overlay,
.site-primary-footer-wrap,
.site-above-footer-wrap,
.site-below-footer-wrap,
.ast-footer-copyright,
footer#colophon .ast-builder-grid-row-container,
footer#colophon .site-primary-footer-wrap,
footer#colophon .site-above-footer-wrap,
footer#colophon .site-below-footer-wrap {
  display: none !important;
}

/* ---------- lockup ---------- */
.mark {
  width: 1em;
  height: 1em;
  flex: none;
  overflow: visible;
}
.mark .frame {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  opacity: 0.38;
}
.mark .shaft {
  fill: currentColor;
}
.mark .lead {
  fill: none;
  stroke: var(--eraser);
  stroke-width: 8;
  stroke-linecap: round;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.34em;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.wm__num {
  display: inline-flex;
  align-items: flex-start;
}
.wm__one {
  width: 0.3em;
  height: 0.78em;
  align-self: center;
  margin-right: 0.06em;
  overflow: visible;
}
.wm__one path {
  fill: currentColor;
}
.wm__th {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translateY(0.12em);
  margin-left: 0.06em;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  max-width: 100%;
}

/* ---------- header (always dark sticky, readable over paper) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(26px, 3vw, 36px) var(--pad);
  color: var(--paper);
  background: var(--ink);
  transition: color 0.4s var(--ease), background 0.4s var(--ease), transform 0.5s var(--ease);
}
.site-header.is-menu-open,
.site-header.is-on-paper {
  color: var(--paper);
  background: var(--ink);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  font-size: clamp(15px, 1.35vw, 19px);
  flex: none;
  min-width: 0;
  max-width: min(58vw, 280px);
  padding-top: 2px;
}
.site-header__logo .lockup {
  min-width: 0;
}
.site-header__right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 30px);
  flex: none;
}
.site-header__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.site-header__links > a,
.site-header__about {
  position: relative;
  padding: 4px 0;
}
.site-header__links > a::after,
.site-header__about::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--lacquer);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.site-header__links > a:hover::after,
.site-header__links > a:focus-visible::after,
.site-header__links > a[aria-current="page"]::after,
.site-header__item:hover .site-header__about::after,
.site-header__item:focus-within .site-header__about::after,
.site-header__item.is-open .site-header__about::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-header__item {
  position: relative;
  display: flex;
  align-items: center;
}
.site-header__item:hover::before,
.site-header__item.is-open::before,
.site-header__item:focus-within::before {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  top: 100%;
  height: 22px;
  z-index: 69;
}
.site-header__drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 14px 0 10px;
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
  z-index: 70;
}
.site-header__item.is-open .site-header__drop,
.site-header__item:hover .site-header__drop,
.site-header__item:focus-within .site-header__drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-header__drop-in {
  background: var(--ink);
  border: 1px solid var(--rule-on-ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  padding: 10px 0;
}
.site-header__drop a {
  display: block;
  padding: 0.55em 1.1em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--dim-2);
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.site-header__drop a:hover,
.site-header__drop a:focus-visible {
  color: var(--paper);
  background: rgba(237, 229, 214, 0.06);
}
.site-header__cta {
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 0.52em 1.1em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.site-header__cta:hover {
  background: var(--lacquer);
  border-color: var(--lacquer);
  color: #181a1c;
}
.site-header__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.site-header__burger span {
  display: block;
  width: 22px;
  height: 0;
  border-top: 2px solid currentColor;
  position: relative;
}
.site-header__burger span::before,
.site-header__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  border-top: 2px solid currentColor;
  transition: transform 0.35s var(--ease);
}
.site-header__burger span::before {
  top: -7px;
}
.site-header__burger span::after {
  top: 5px;
}

@media (max-width: 900px) {
  .site-header__links {
    display: none;
  }
  .site-header__burger {
    display: flex;
  }
}

@media (max-width: 700px) {
  .site-header {
    gap: 8px;
    padding: 22px 16px;
  }
  .site-header__logo {
    font-size: 13px;
    max-width: calc(100vw - 150px);
  }
  .site-header__cta {
    font-size: 0.72rem;
    padding: 0.46em 0.72em;
    white-space: nowrap;
  }
  .site-header__burger {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  .site-header__cta {
    display: none;
  }
  .site-header__logo {
    max-width: calc(100vw - 70px);
  }
}

/* ---------- mobile overlay menu ---------- */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1em;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
  pointer-events: none;
  visibility: hidden;
}
.site-menu.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
  visibility: visible;
}
.site-menu > a,
.site-menu__about-btn {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 8.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  padding: 0.1em 0;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.site-menu > a:hover,
.site-menu__about-btn:hover {
  color: var(--lacquer);
}
.site-menu > a[aria-current="page"] {
  color: var(--lacquer);
}
.site-menu a.site-menu__cta {
  color: var(--eraser);
}
.site-menu a.site-menu__sub {
  font-size: clamp(1.05rem, 3.4vw, 1.6rem);
  color: var(--dim-2);
  padding-left: 1.4em;
  text-transform: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: var(--f-display);
}
.site-menu a.site-menu__sub:hover {
  color: var(--paper);
}
.site-menu__about {
  display: flex;
  flex-direction: column;
}
.site-menu__about-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.site-menu__about-caret {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.12em);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.site-menu__about-btn[aria-expanded="true"] .site-menu__about-caret {
  transform: rotate(-135deg) translateY(0.08em);
}
.site-menu__about-list {
  display: none;
  flex-direction: column;
  padding: 0.15em 0 0.35em;
}
.site-menu__about-list.is-open {
  display: flex;
}
.site-menu__meta {
  margin-top: 1.8rem;
  font-family: var(--f-text);
  color: var(--dim);
  font-size: 1.05rem;
  line-height: 1.6;
}
.site-menu__meta a {
  border-bottom: 1px solid var(--lacquer);
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: var(--f-text) !important;
  padding: 0 !important;
}
.site-menu__desc {
  margin-top: 0.4rem;
  font-family: var(--f-text);
  font-style: italic;
  color: var(--dim-2);
  font-size: 1rem;
}

/* ---------- page shell (kill Astra nested containers) ---------- */
body.tpb-blog #page,
body.tpb-blog .site,
body.tpb-blog .site-content,
body.tpb-blog #content,
body.tpb-blog .ast-container {
  background: transparent;
}

body.tpb-blog #page,
body.tpb-blog .site,
body.tpb-blog .site-content,
body.tpb-blog #content.site-content,
body.tpb-blog .ast-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  float: none !important;
}

body.tpb-blog #content,
body.tpb-blog .site-content {
  padding-top: 0;
  padding-bottom: 0;
}

body.tpb-blog.ast-separate-container .ast-article-post,
body.tpb-blog.ast-separate-container .ast-article-single,
body.tpb-blog.ast-separate-container #content,
body.tpb-blog.ast-separate-container .site-content,
body.tpb-blog.ast-two-container #content .ast-container {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* When our templates own the page, hide leftover Astra content wrappers */
body.tpb-blog .tpb-main ~ .ast-container,
body.tpb-blog #primary > .ast-row {
  display: none;
}

/* ---------- editorial shell (mirrors main site section language) ---------- */
.tpb-main {
  padding-top: 0;
  padding-bottom: 0;
}

.panel--ink {
  background: var(--ink);
  color: var(--paper);
}

.tpb-hero {
  width: 100%;
  padding: calc(var(--header-h) + clamp(36px, 6vh, 64px)) 0 clamp(56px, 9vh, 96px);
}

.tpb-hero .tpb-tick {
  color: var(--dim-2);
}

.tpb-hero .tpb-display {
  color: var(--paper);
}

.tpb-hero .tpb-note {
  color: var(--dim);
}

.tpb-hero .tpb-sec-head {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 0.65fr);
}

.tpb-shell {
  width: min(1120px, calc(100% - (var(--pad) * 2)));
  max-width: 100%;
  margin: 0 auto;
}

.tpb-shell--body {
  padding-top: clamp(40px, 7vh, 72px);
  padding-bottom: clamp(40px, 7vh, 80px);
}

.tpb-shell--narrow {
  width: min(920px, calc(100% - (var(--pad) * 2)));
  padding-top: calc(var(--header-h) + clamp(36px, 6vh, 56px));
  padding-bottom: clamp(40px, 7vh, 80px);
}

.tpb-tick {
  margin: 0 0 0.85em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.tpb-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--grey);
}

.tpb-eyebrow a {
  transition: color 0.3s;
}

.tpb-eyebrow a:hover {
  color: var(--ink);
}

.tpb-eyebrow b {
  color: var(--lacquer);
  font-weight: 600;
}

.tpb-display {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  color: var(--ink);
  overflow: visible;
  padding: 0.08em 0 0.14em;
}

.tpb-display--sm {
  font-size: clamp(2rem, 5.6vw, 4.2rem);
}

.tpb-h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.8vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  color: var(--ink);
  overflow: visible;
  padding: 0.06em 0 0.1em;
}

.tpb-sec-head__title,
.tpb-hero .tpb-sec-head,
.tpb-hero .tpb-shell {
  overflow: visible;
}

.tpb-note {
  margin: 0;
  font-family: var(--f-text);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--grey);
  max-width: 34ch;
}

.tpb-sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(40px, 7vh, 84px);
  padding-bottom: clamp(28px, 4vh, 44px);
  border-bottom: 1px solid var(--rule);
}

.tpb-sec-head__title {
  min-width: 0;
}

.tpb-sec-head--compact {
  margin-bottom: clamp(28px, 4vh, 44px);
  padding-bottom: 0;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .tpb-sec-head,
  .tpb-hero .tpb-sec-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tpb-note {
    max-width: 42ch;
  }
}

@media (max-width: 700px) {
  :root {
    --pad: 18px;
    --header-h: 92px;
  }

  .tpb-hero {
    padding: calc(var(--header-h) + 32px) 0 48px;
  }

  .tpb-display {
    font-size: clamp(2rem, 9.5vw, 2.85rem);
    line-height: 1.08;
  }

  .tpb-h2 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
    line-height: 1.08;
  }

  .tpb-shell {
    width: calc(100% - (var(--pad) * 2));
  }

  .tpb-shell--body {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .tpb-shell--narrow {
    padding-top: calc(var(--header-h) + 24px);
  }

  .tpb-featured {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 48px;
    padding-bottom: 32px;
  }

  .tpb-featured__title {
    font-size: clamp(1.7rem, 8vw, 2.6rem) !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .tpb-list-item {
    grid-template-columns: 1fr auto !important;
    gap: 10px 12px !important;
  }

  .tpb-list-item__date {
    grid-column: 1 / -1;
  }

  .tpb-list-item__title {
    font-size: clamp(1.25rem, 6.4vw, 1.7rem) !important;
    text-transform: none !important;
  }

  .tpb-single__title {
    font-size: clamp(2rem, 9vw, 3.2rem) !important;
  }
}

.tpb-archive-head {
  margin-bottom: clamp(32px, 5vh, 56px);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.tpb-archive-head.tpb-sec-head {
  border-bottom: 1px solid var(--rule);
}

.tpb-archive__query {
  margin: 0.4em 0 0;
  font-family: var(--f-text);
  font-style: italic;
  color: var(--grey);
  font-size: 1.15rem;
}

/* ---------- featured ---------- */
.tpb-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(36px, 5vh, 56px);
  border-bottom: 1px solid var(--rule);
}

.tpb-featured:not(:has(.tpb-featured__media)) {
  grid-template-columns: 1fr;
  max-width: 48rem;
}

.tpb-kicker {
  display: inline-block;
  margin-bottom: 0.85em;
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eraser-deep);
  border-bottom: 1px solid transparent;
}

.tpb-kicker:hover {
  border-bottom-color: var(--lacquer);
  color: var(--ink);
}

.tpb-featured__title {
  margin: 0 0 0.45em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.tpb-featured__title a:hover {
  color: var(--eraser-deep);
}

.tpb-meta {
  margin: 0 0 1.1em;
  font-family: var(--f-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--grey);
}

.tpb-meta a {
  color: var(--grey);
  border-bottom: 1px solid transparent;
}

.tpb-meta a:hover {
  color: var(--ink);
  border-bottom-color: var(--lacquer);
}

.tpb-excerpt {
  margin: 0 0 1.25em;
  font-family: var(--f-text);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: var(--grey);
  max-width: 36ch;
}

.tpb-read {
  display: inline-flex;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 2px solid var(--lacquer);
  padding-bottom: 0.08em;
  transition: color 0.25s, border-color 0.25s;
}

.tpb-read:hover {
  color: var(--eraser-deep);
  border-bottom-color: var(--eraser);
}

.tpb-featured__media {
  display: block;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--paper-2);
}

.tpb-featured__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 820px) {
  .tpb-featured {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tpb-featured__media {
    order: -1;
  }
}

/* ---------- post list (come-in / facts rhythm) ---------- */
.tpb-more {
  margin-top: clamp(8px, 2vh, 20px);
}

.tpb-post-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.tpb-list-item {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr) auto;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: baseline;
  padding: clamp(20px, 3vh, 34px) 0;
  border-bottom: 1px solid var(--rule);
}

.tpb-list-item__date {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 0.28em;
}

.tpb-list-item__title {
  margin: 0 0 0.35em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.tpb-list-item__title a:hover {
  color: var(--eraser-deep);
}

.tpb-list-item .tpb-excerpt {
  margin: 0;
  font-size: 1.05rem;
  max-width: 42ch;
  font-style: italic;
}

.tpb-list-item__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--grey);
  transition: color 0.3s, transform 0.35s var(--ease-out);
}

.tpb-list-item__go svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.tpb-list-item:hover .tpb-list-item__go {
  color: var(--lacquer);
  transform: translate(3px, -3px);
}

@media (max-width: 640px) {
  .tpb-list-item {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
  }

  .tpb-list-item__date {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

/* ---------- single ---------- */
.tpb-main--single {
  background: var(--paper);
}

.tpb-single {
  max-width: none;
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.tpb-single__header {
  margin-bottom: clamp(22px, 3.4vh, 36px);
}

.tpb-single__header .tpb-kicker {
  margin-bottom: 0.9em;
}

.tpb-single__title {
  margin: 0 0 0.4em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 5.6vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.tpb-single__deck {
  margin: 0 0 1.35em;
  max-width: 42ch;
  font-family: var(--f-text);
  font-style: italic;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.5;
  color: var(--grey);
}

.tpb-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.tpb-byline__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: var(--ink);
}

.tpb-byline__img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.tpb-byline__name {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tpb-byline__name:hover {
  color: var(--eraser-deep);
}

.tpb-byline__meta {
  margin: 0.18em 0 0;
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
}

.tpb-byline__meta a {
  color: var(--grey);
  border-bottom: 1px solid transparent;
}

.tpb-byline__meta a:hover {
  color: var(--ink);
  border-bottom-color: var(--lacquer);
}

.tpb-byline__dot {
  margin: 0 0.45em;
  opacity: 0.55;
}

.tpb-single__media {
  margin: 0 0 clamp(32px, 5vh, 52px);
}

.tpb-single__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--ink);
}

.tpb-single__media figcaption {
  margin-top: 0.7em;
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--grey);
}

.tpb-single__body {
  max-width: none;
  font-family: var(--f-text);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.15vw, 1.16rem);
  line-height: 1.68;
  color: var(--ink);
}

.tpb-toc {
  margin: 0 0 1.6em;
  padding: 1.05em 1.15em 1.15em;
  border: 1px solid var(--rule);
  background: rgba(24, 26, 28, 0.035);
}

.tpb-toc__label {
  margin: 0 0 0.7em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.tpb-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35em;
}

.tpb-toc__list a {
  display: inline;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-bottom: 1px solid var(--lacquer);
}

.tpb-toc__list a:hover {
  color: var(--eraser-deep);
  border-bottom-color: var(--eraser);
}

.tpb-single__body h2[id],
.tpb-single__body h3[id],
.tpb-author {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.tpb-share {
  color: var(--ink);
}

.tpb-share__label {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.tpb-share__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.tpb-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.tpb-share__btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.tpb-share__btn:hover,
.tpb-share__btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.tpb-share__btn.is-copied {
  background: var(--lacquer);
  border-color: var(--lacquer);
  color: var(--ink);
}

.tpb-share--float {
  display: none;
}

.tpb-share--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: clamp(28px, 4vh, 44px) 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule);
}

.tpb-share--inline .tpb-share__list {
  gap: 8px;
}

.tpb-author {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: clamp(28px, 4vh, 40px);
  padding: clamp(22px, 3vh, 32px) 0 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 1100px) {
  .tpb-share--float {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: max(16px, calc((100vw - 920px) / 4 - 28px));
    top: 42vh;
    z-index: 20;
  }

  .tpb-share--float .tpb-share__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .tpb-share--float .tpb-share__list {
    flex-direction: column;
    gap: 8px;
  }

  .tpb-share--inline {
    display: none;
  }

  .tpb-author {
    margin-top: clamp(40px, 7vh, 72px);
  }
}

.tpb-author__avatar {
  width: 88px;
  height: 88px;
  overflow: hidden;
  background: var(--ink);
}

.tpb-author__img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
}

.tpb-author__copy .tpb-tick {
  margin-bottom: 0.35em;
}

.tpb-author__name {
  margin: 0 0 0.45em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
}

.tpb-author__bio {
  margin: 0;
  max-width: 42ch;
  font-family: var(--f-text);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--grey);
}

@media (max-width: 560px) {
  .tpb-author {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .tpb-author__avatar,
  .tpb-author__img {
    width: 64px;
    height: 64px;
  }
}

.tpb-single__body > *:first-child {
  margin-top: 0;
}

.tpb-single__body p {
  margin: 0 0 1.1em;
}

.tpb-single__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--lacquer);
}

.tpb-single__body a:hover {
  color: var(--eraser-deep);
  border-bottom-color: var(--eraser);
}

.tpb-single__body h2,
.tpb-single__body h3,
.tpb-single__body h4 {
  margin: 1.7em 0 0.55em;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.tpb-single__body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
}

.tpb-single__body blockquote {
  margin: 1.7em 0;
  padding: 0.15em 0 0.15em 1.1em;
  border-left: 3px solid var(--lacquer);
  color: var(--grey);
  font-style: italic;
}

.tpb-single__body ul,
.tpb-single__body ol {
  padding-left: 1.2em;
  margin: 0 0 1.15em;
}

.tpb-single__body figure {
  margin: 1.6em 0;
}

.tpb-single__body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

/* about-pager style */
.tpb-pager {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--rule);
}

.tpb-pager__a {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  max-width: 42%;
  min-width: 0;
  transition: color 0.3s;
}

.tpb-pager__a--next {
  text-align: right;
  margin-left: auto;
}

.tpb-pager__l {
  font-family: var(--f-text);
  font-style: italic;
  color: var(--grey);
  font-size: 1rem;
}

.tpb-pager__t {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.05;
  color: var(--ink);
}

.tpb-pager__a--next .tpb-pager__t {
  justify-content: flex-end;
}

.tpb-pager__a:hover {
  color: var(--eraser-deep);
}

.tpb-pager__a:hover .tpb-pager__t {
  color: var(--eraser-deep);
}

.tpb-pager__t span {
  font-size: 0.7em;
  transition: transform 0.35s var(--ease-out);
}

.tpb-pager__a--next:hover .tpb-pager__t span {
  transform: translateX(7px);
}

.tpb-pager__a--prev:hover .tpb-pager__t span {
  transform: translateX(-7px);
}

@media (max-width: 560px) {
  .tpb-pager {
    flex-direction: column;
  }

  .tpb-pager__a,
  .tpb-pager__a--next {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }

  .tpb-pager__a--next .tpb-pager__t {
    justify-content: flex-start;
  }
}

.tpb-comments {
  margin-top: clamp(36px, 6vh, 64px);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.tpb-empty {
  padding: clamp(40px, 8vh, 80px) 0;
  max-width: 36rem;
}

.tpb-empty .tpb-read {
  margin-top: 1.2em;
}

/* ---------- brand pagination ---------- */
.tpb-pagination {
  margin-top: clamp(36px, 5vh, 56px);
}

.tpb-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 600;
}

.tpb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4em;
  padding: 0.55em 0.85em;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  font-size: 0.9rem;
}

.tpb-pagination .page-numbers.current,
.tpb-pagination a.page-numbers:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- legacy Astra article soften (if any template falls through) ---------- */
body.tpb-blog .ast-separate-container .ast-article-post,
body.tpb-blog .ast-separate-container .ast-article-single,
body.tpb-blog .ast-separate-container .ast-archive-description,
body.tpb-blog .ast-plain-container .ast-article-post,
body.tpb-blog .ast-plain-container .ast-article-single {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: clamp(36px, 6vh, 72px);
}

body.tpb-blog .ast-archive-description {
  margin-bottom: clamp(28px, 5vh, 56px);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

body.tpb-blog .ast-archive-description .ast-archive-title,
body.tpb-blog .page-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 0.35em;
}

body.tpb-blog .ast-archive-description p {
  color: var(--grey);
  font-size: 1.1rem;
  max-width: 48ch;
}

body.tpb-blog article.ast-article-post {
  padding-bottom: clamp(28px, 4vh, 48px) !important;
  border-bottom: 1px solid var(--rule) !important;
}

body.tpb-blog .entry-title,
body.tpb-blog .ast-blog-single-element.ast-blog-single-title .entry-title {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  margin: 0 0 0.4em;
}

body.tpb-blog .entry-title a:hover {
  color: var(--eraser-deep);
}

body.tpb-blog .entry-meta,
body.tpb-blog .posted-on,
body.tpb-blog .ast-blog-single-element.ast-blog-meta-element {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--grey);
  text-transform: none;
}

body.tpb-blog .entry-meta a {
  color: var(--grey);
  border-bottom: 1px solid transparent;
}

body.tpb-blog .entry-meta a:hover {
  color: var(--ink);
  border-bottom-color: var(--lacquer);
}

body.tpb-blog .entry-content,
body.tpb-blog .ast-excerpt-container,
body.tpb-blog .ast-blog-featured-section + * {
  color: var(--grey);
  font-size: 1.08rem;
  line-height: 1.68;
  max-width: 70ch;
}

body.tpb-blog .ast-read-more a,
body.tpb-blog .more-link,
body.tpb-blog a.read-more {
  display: inline-flex;
  margin-top: 0.85em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 2px solid var(--lacquer);
  padding-bottom: 0.08em;
}

body.tpb-blog .ast-read-more a:hover,
body.tpb-blog .more-link:hover {
  color: var(--eraser-deep);
  border-bottom-color: var(--eraser);
}

body.tpb-blog .post-thumb img,
body.tpb-blog .ast-blog-featured-section img {
  border-radius: 0;
  border: 1px solid var(--rule);
}

body.tpb-blog.single .tpb-single,
body.tpb-blog.single .ast-article-single {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

body.tpb-blog.single .entry-header {
  margin-bottom: clamp(24px, 4vh, 40px);
}

body.tpb-blog.single .entry-header .entry-title {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  margin-bottom: 0.45em;
}

body.tpb-blog.single .entry-content {
  max-width: none;
  font-family: var(--f-text);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.15vw, 1.16rem);
  line-height: 1.68;
  color: var(--ink);
}

body.tpb-blog.single .entry-content p {
  margin: 0 0 1.15em;
}

body.tpb-blog.single .entry-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--lacquer);
}

body.tpb-blog.single .entry-content a:hover {
  color: var(--eraser-deep);
  border-bottom-color: var(--eraser);
}

body.tpb-blog.single .entry-content h2,
body.tpb-blog.single .entry-content h3,
body.tpb-blog.single .entry-content h4 {
  margin: 1.6em 0 0.55em;
}

body.tpb-blog.single .entry-content blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 3px solid var(--lacquer);
  color: var(--grey);
  font-style: italic;
}

body.tpb-blog.single .entry-content ul,
body.tpb-blog.single .entry-content ol {
  padding-left: 1.2em;
  margin: 0 0 1.15em;
}

body.tpb-blog.single .entry-content code,
body.tpb-blog.single .entry-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(24, 26, 28, 0.06);
}

body.tpb-blog.single .entry-content pre {
  padding: 1em 1.1em;
  overflow: auto;
  border: 1px solid var(--rule);
}

body.tpb-blog .ast-single-related-posts-container,
body.tpb-blog .comments-area,
body.tpb-blog .ast-author-box {
  max-width: none;
  border-top: 1px solid var(--rule);
  margin-top: clamp(36px, 6vh, 64px);
  padding-top: 1.5rem;
}

body.tpb-blog .comment-respond .comment-reply-title,
body.tpb-blog .related-posts-title {
  font-family: var(--f-display);
  font-weight: 800;
}

body.tpb-blog input[type="text"],
body.tpb-blog input[type="email"],
body.tpb-blog input[type="url"],
body.tpb-blog textarea,
body.tpb-blog select {
  background: #f7f1e6;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--f-text);
}

body.tpb-blog .ast-button,
body.tpb-blog button.submit,
body.tpb-blog input[type="submit"] {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 100px;
  font-family: var(--f-display);
  font-weight: 600;
  padding: 0.7em 1.35em;
  cursor: pointer;
}

body.tpb-blog .ast-button:hover,
body.tpb-blog button.submit:hover,
body.tpb-blog input[type="submit"]:hover {
  background: var(--lacquer);
  color: var(--ink);
}

body.tpb-blog .ast-pagination,
body.tpb-blog .navigation.pagination {
  margin-top: 2rem;
  font-family: var(--f-display);
  font-weight: 600;
}

body.tpb-blog .ast-pagination .page-numbers,
body.tpb-blog .navigation.pagination .page-numbers {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
}

body.tpb-blog .ast-pagination .page-numbers.current,
body.tpb-blog .navigation.pagination .page-numbers.current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- footer (matches main site ink band) ---------- */
.tpb-footer.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: clamp(44px, 7vh, 90px) 0 0;
  padding: 28px var(--pad) 40px;
  background: var(--ink);
  color: var(--dim-2);
  border-top: 1px solid var(--rule-on-ink);
  font-size: 0.95rem;
}

.site-footer__brand,
.tpb-footer.site-footer .site-footer__brand,
.tpb-footer.site-footer .site-footer__brand .lockup,
.tpb-footer.site-footer .site-footer__brand .wordmark {
  font-size: 1.05rem;
  color: var(--paper) !important;
}

.site-footer__legal {
  max-width: 52ch;
  line-height: 1.5;
  color: var(--dim-2);
}

@media (max-width: 700px) {
  .tpb-footer.site-footer {
    gap: 16px;
    font-size: 0.92rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- widgets / sidebar soften ---------- */
body.tpb-blog .widget-title,
body.tpb-blog .wp-block-heading {
  font-family: var(--f-display);
  font-weight: 800;
}

body.tpb-blog .widget,
body.tpb-blog .sidebar-main .widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

body.tpb-blog .search-field {
  background: #f7f1e6;
  border: 1px solid var(--rule);
}
