:root {
  --bg: #fafaf7;
  --bg-soft: #f2f1ec;
  --ink: #0a0a0a;
  --ink-soft: #2c2c28;
  --muted: #6b6b66;
  --line: #e5e3dc;
  --white: #ffffff;
  --card: #ffffff;
  --lime: oklch(0.88 0.22 130);
  --accent: oklch(0.88 0.22 130);
  --accent-ink: #0a0a0a;
  --bg-2: #f2f1ec;
  --line-2: #d4d1c7;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 1px rgba(10, 10, 10, 0.03);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Fraunces, Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

.hero-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 64px;
  align-items: end;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-editorial h1 {
  max-width: 12ch;
  margin: 16px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-editorial h1 em {
  color: var(--muted);
  font-style: italic;
}

.hero-editorial .lede {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.blog-counter-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "dot label number";
  gap: 12px;
  align-items: center;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.counter-dot {
  grid-area: dot;
  width: 8px;
  height: 8px;
  background: var(--accent, #c6f24a);
  border-radius: 50%;
}

.counter-label {
  grid-area: label;
  max-width: 20ch;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-counter-card strong {
  grid-area: number;
  display: block;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 18px;
  border-bottom: 0;
}

.search-box {
  width: min(100%, 320px);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
}

.search-box span {
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 40px 0 96px;
}

.blog-filter-sidebar {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.filter-label {
  display: block;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-filter-group {
  display: grid;
  gap: 6px;
}

.side-filter-button {
  min-height: 48px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.side-filter-button:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.side-filter-button.is-active {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.blog-list-area {
  min-width: 0;
}

.blog-list-area .section-head {
  position: static;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(36px, 4vw, 62px);
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--accent, #c6f24a);
}

.post-card {
  min-height: auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 110px;
  gap: 32px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.post-card:nth-child(12n) {
  border-bottom: 2px solid var(--accent, #c6f24a);
}

.post-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.post-topline {
  display: grid;
  gap: 8px;
  align-content: start;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.post-card h3 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
}

.post-card p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  padding: 4px 7px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.post-foot {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 28px;
  border-top: 2px solid var(--accent, #c6f24a);
}

.page-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.page-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.page-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.page-button.is-active:hover {
  color: var(--white);
}

.pagination-gap {
  min-width: 20px;
  color: var(--muted);
  text-align: center;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.reader-dialog {
  width: min(900px, calc(100vw - 32px));
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
}

.reader-dialog::backdrop {
  background: rgba(10, 10, 10, 0.42);
}

.reader-article {
  padding: 34px;
}

.reader-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.reader-body {
  max-width: 70ch;
  margin-top: 34px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.reader-body p {
  margin: 0 0 22px;
}

@media (max-width: 980px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-counter-card {
    max-width: 520px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-filter-sidebar {
    position: static;
  }

  .side-filter-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .side-filter-button {
    min-width: 120px;
    text-align: center;
  }
}

@media (max-width: 760px) {
  main {
    padding: 0 20px 72px;
  }

  .site-header {
    padding: 18px 20px;
  }

  .hero-editorial {
    padding: 56px 0 48px;
  }

  .hero-editorial h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .content-grid {
    padding: 40px 0 64px;
  }

  .post-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-foot {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .blog-counter-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "dot label"
      "number number";
    padding: 18px;
  }

  .blog-counter-card strong {
    margin-top: 6px;
  }

  h2 {
    font-size: 36px;
  }
}

/* Single open blog page */

.blog-reader-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 56px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--ink);
}

.open-blog {
  max-width: 860px;
}

.blog-content-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.2vw, 30px);
}

.blog-content-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}

.section-number {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
}

.blog-content-heading .eyebrow {
  margin: 0 0 8px;
}

.open-blog h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.012em;
}

.blog-content-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 42px);
}

.reader-body {
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.7;
}

.reader-body p {
  margin: 0 0 28px;
}

.reader-body h2,
.reader-body h3,
.reader-body h4,
.reader-body h5,
.reader-body h6 {
  margin: 1.8em 0 .65em;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
}

.reader-body ul,
.reader-body ol {
  margin: 0 0 28px;
  padding-left: 1.4em;
}

.reader-body li {
  margin: .35em 0;
}

.reader-body a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

.reader-body blockquote {
  margin: 0 0 28px;
  padding-left: 1em;
  border-left: 3px solid var(--accent);
}

.reader-body pre {
  overflow-x: auto;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 15px;
}

.reader-body :not(pre) > code {
  padding: .1em .3em;
  border-radius: 8px;
  background: var(--bg-2);
  font-size: .9em;
}

.reader-body img,
.blog-inline-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 10px;
}

.blog-inline-figure {
  margin: 0 0 28px;
}

.blog-inline-figure img {
  width: 100%;
  margin-top: 0;
}

.blog-inline-figure figcaption {
  margin-top: -12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.blog-author-card--editorial img {
  padding: 9px;
  background: #fff;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Blog writing page */

.blog-admin-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.admin-hero {
  max-width: 820px;
  margin-bottom: 56px;
}

.admin-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 400;
  line-height: 0.98;
}

.blog-form {
  display: grid;
  gap: 22px;
  max-width: 820px;
  padding-top: 40px;
  border-top: 2px solid var(--accent);
}

.blog-form label {
  display: grid;
  gap: 10px;
}

.blog-form label span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blog-form input,
.blog-form select,
.blog-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  padding: 16px 18px;
}

.blog-form textarea {
  min-height: 360px;
  resize: vertical;
  line-height: 1.65;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-builder {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.section-builder__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.section-builder__head p {
  margin: 0;
}

.section-builder__head p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section-builder__list {
  display: grid;
  gap: 16px;
}

.section-editor {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
}

.section-editor .section-number {
  grid-row: span 5;
}

.section-editor textarea {
  min-height: 180px;
}

.secondary-button,
.remove-section-button {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
}

.remove-section-button {
  justify-self: start;
  color: var(--muted);
}

@media (max-width: 720px) {
  .blog-reader-page,
  .blog-admin-page {
    padding-top: 48px;
  }

  .open-blog h1,
  .admin-hero h1 {
    font-size: 46px;
  }

  .reader-body {
    font-size: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
  margin-top: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 2px solid var(--accent, #c6f24a);
  border-bottom: 2px solid var(--accent, #c6f24a);
}

.post-card {
  display: block;
  grid-template-columns: none;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: default;
  transition: border-color 150ms ease, transform 150ms ease;
}

.post-card:nth-child(12n) {
  border-bottom: 1px solid var(--line);
}

.post-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.post-card__link {
  display: flex;
  min-height: 100%;
  color: inherit;
  flex-direction: column;
  text-decoration: none;
}

.post-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.post-card__image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.post-card:hover .post-card__image > img {
  transform: scale(1.015);
}

.post-card__image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .45), transparent),
    var(--bg-2);
}

.post-card__image-fallback img {
  width: 34px;
  height: 34px;
  opacity: .6;
}

.post-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 18px 20px 20px;
  flex-direction: column;
}

.post-card .post-card__type {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 8px 0 0;
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}

.post-card .post-card__locality {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.post-card .post-card__summary {
  max-width: none;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.post-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
}

.post-card__signals {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.post-card__tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.post-card__arrow {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  transition: transform 150ms ease;
}

.post-card:hover .post-card__arrow {
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}
/* Advisor card copied from the opened Top Picks/property page */

.blog-advisor-shell {
  margin-top: 72px;
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

.blog-advisor-shell.advisor-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.blog-advisor-shell .advisor-grid {
  display: grid;
  gap: 16px;
}

.blog-advisor-shell .evidence-card,
.blog-advisor-shell .advisor-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.blog-advisor-shell .advisor-card {
  margin: 16px;
  overflow: hidden;
  padding: 0;
}

.blog-advisor-shell .advisor-main {
  position: relative;
  min-height: 320px;
  padding: 28px;
  overflow: hidden;
}

.blog-advisor-shell .advisor-copy {
  position: relative;
  z-index: 1;
  max-width: 58%;
}

.blog-advisor-shell .section-eyebrow,
.blog-advisor-shell .metric-label {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-advisor-shell .advisor-card h2 {
  margin: 8px 0 0;
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.01em;
}

.blog-advisor-shell .metric-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.blog-advisor-shell .advisor-contact {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
}

.blog-advisor-shell .advisor-contact a {
  display: flex;
  min-height: 34px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.blog-advisor-shell .advisor-contact svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-right: 9px;
}

.blog-advisor-shell .advisor-action {
  margin-top: 18px;
}

.blog-advisor-shell .advisor-action svg {
  width: 16px;
  height: 16px;
}

.blog-advisor-shell .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.blog-advisor-shell .btn:hover {
  transform: translateY(-1px);
}

.blog-advisor-shell .btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.blog-advisor-shell .advisor-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  height: 82%;
  object-fit: contain;
  object-position: bottom;
}

.blog-advisor-shell .advisor-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.blog-advisor-shell .advisor-meta div {
  padding: 20px;
}

.blog-advisor-shell .advisor-meta div + div {
  border-left: 1px solid var(--line);
}

.blog-advisor-shell .fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .blog-advisor-shell .advisor-main {
    min-height: 0;
    padding-bottom: 0;
  }

  .blog-advisor-shell .advisor-copy {
    max-width: none;
    padding-bottom: 18px;
  }

  .blog-advisor-shell .advisor-photo {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 260px;
  }

  .blog-advisor-shell .advisor-meta {
    grid-template-columns: 1fr;
  }

  .blog-advisor-shell .advisor-meta div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

.blog-hero-media {
  overflow: hidden;
  min-height: 260px;
  margin-bottom: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
}

.blog-hero-media img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.blog-hero-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}

.blog-author-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
}

.blog-author-card img {
  display: block;
  width: 70px;
  height: 70px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2);
  object-fit: cover;
  object-position: center;
}

.blog-author-card p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.blog-author-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.blog-subheading-card {
  margin-top: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.blog-subheading-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.35;
}

.blog-story-frame {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.blog-section-card {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.2vw, 30px);
}

.blog-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}

.blog-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(27px, 2.3vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.012em;
}

.blog-extra-cards {
  display: grid;
  gap: 20px;
}

.blog-extra-card {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 32px);
}

.blog-extra-card img {
  display: block;
  width: 100%;
  max-height: 420px;
  margin-top: 16px;
  border-radius: 8px;
  object-fit: cover;
}

.blog-extra-card h3 {
  margin: 8px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.blog-visual-card {
  padding: clamp(18px, 2.5vw, 28px);
}

.blog-visual-card img {
  max-height: none;
  margin-top: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  object-fit: contain;
}

.blog-graph-placeholder {
  display: grid;
  min-height: 320px;
  margin-top: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-calculation-card {
  padding: 0;
  overflow: hidden;
}

.blog-calculation-lines {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.blog-calculation-lines div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .45fr);
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 16px 18px;
  background: #fff;
}

.blog-calculation-lines dt {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-calculation-lines dd {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

@media (max-width: 720px) {
  .blog-intro-grid {
    grid-template-columns: 1fr;
  }

  .blog-author-card {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .blog-hero-media img {
    height: 240px;
  }
}

@media (max-width: 760px) {
  main {
    padding-inline: 36px;
  }

  .site-header {
    gap: 16px;
  }

  .brand {
    font-size: 20px;
  }

  .hero-editorial {
    gap: 28px;
    padding: 44px 0 36px;
  }

  .hero-editorial h1 {
    max-width: 100%;
    font-size: clamp(40px, 15vw, 58px);
    line-height: .98;
  }

  .hero-editorial .lede {
    max-width: 100%;
    font-size: 17px;
  }

  .blog-counter-card {
    min-height: auto;
    padding: 16px;
  }

  .content-grid {
    gap: 28px;
    padding: 32px 0 72px;
  }

  .blog-filter-sidebar {
    top: auto;
  }

  .side-filter-group {
    display: flex;
    gap: 8px;
    margin-inline: -36px;
    padding-inline: 36px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side-filter-group::-webkit-scrollbar {
    display: none;
  }

  .side-filter-button {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 44px;
    text-align: center;
  }

  .toolbar {
    justify-content: stretch;
    padding-bottom: 14px;
  }

  .search-box {
    width: 100%;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .post-card {
    display: block;
    gap: 0;
    grid-template-columns: none;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius);
  }

  .post-card:hover {
    transform: none;
  }

  .post-card__image {
    aspect-ratio: 16 / 10;
  }

  .post-card__body {
    display: flex;
    flex: 1;
    min-width: 0;
    padding: 18px 20px 20px;
    flex-direction: column;
  }

  .post-card h3 {
    margin-top: 0;
    font-size: 25px;
    line-height: 1.08;
  }

  .post-card .post-card__summary {
    margin-top: 18px;
    padding-top: 16px;
    font-size: 15px;
    line-height: 1.55;
  }

  .post-card__footer {
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
  }

  .post-card__signals {
    display: flex;
  }

  .blog-reader-page,
  .blog-admin-page {
    padding: 42px 18px 72px;
  }

  .back-link {
    margin-bottom: 28px;
  }

  .open-blog {
    max-width: none;
  }

  .blog-content-frame,
  .blog-section-card {
    border-radius: 16px;
    padding: 14px;
  }

  .blog-hero-media {
    min-height: 180px;
    margin-bottom: 18px;
    border-radius: 12px;
  }

  .blog-hero-media img,
  .blog-hero-placeholder {
    height: 190px;
    min-height: 190px;
  }

  .blog-content-frame {
    display: flex;
    flex-direction: column;
  }

  .blog-intro-grid {
    display: contents;
    gap: 16px;
  }

  .blog-intro-grid > div {
    order: 1;
  }

  .open-blog .eyebrow {
    gap: 8px;
    margin-bottom: 14px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .open-blog h1 {
    font-size: clamp(38px, 12vw, 48px);
    line-height: 1;
  }

  .blog-author-card {
    order: 3;
    width: 100%;
    margin-top: 10px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .blog-author-card img {
    width: 48px;
    height: 48px;
    border-width: 2px;
  }

  .blog-author-card p {
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
  }

  .blog-author-card span {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
  }

  .blog-subheading-card {
    order: 2;
    margin-top: 14px;
    padding: 10px 12px;
  }

  .blog-subheading-card p {
    font-size: 16px;
  }

  .blog-story-frame {
    gap: 16px;
    margin-top: 28px;
  }

  .blog-section-heading {
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .blog-section-heading h2 {
    font-size: 28px;
  }

  .blog-content-card,
  .blog-extra-card {
    padding: 18px;
    border-radius: 12px;
  }

  .reader-body {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.65;
  }

  .blog-graph-placeholder {
    min-height: 220px;
    padding: 18px;
    text-align: center;
  }

  .blog-calculation-lines div {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 14px;
  }

  .blog-calculation-lines dd {
    text-align: left;
  }

  .blog-form {
    gap: 18px;
    padding-top: 28px;
  }

  .section-builder {
    padding: 14px;
  }

  .section-builder__head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-editor {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .section-editor .section-number {
    grid-row: auto;
  }
}

@media (max-width: 420px) {
  main {
    padding-inline: 36px;
  }

  .hero-editorial h1 {
    font-size: clamp(36px, 14vw, 48px);
  }

  .side-filter-group {
    margin-inline: -36px;
    padding-inline: 36px;
  }

  .post-card__footer {
    padding-top: 16px;
  }

  .post-card__arrow {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .blog-reader-page,
  .blog-admin-page {
    padding-inline: 14px;
  }

  .blog-content-frame,
  .blog-section-card {
    padding: 12px;
  }
}
