/* Kidinjury Law Blog — site stylesheet.
   Shared foundation copied from petepearsonlaw.com (tokens, base, buttons, header, action bar, closing band, footer)
   so the blog matches the firm site; blog-specific styles follow at the end. */

/* ---------- Tokens ---------- */
:root {
  /* Grounds */
  --paper:        #f5f3ee;
  --white:        #ffffff;
  --ink-band:     #1b1b18;
  --footer:       #141412;
  --slate:        #395165;
  --slate-hover:  #2a3d4c;

  /* Text */
  --ink:          #1b1b18;
  --muted:        #5a5750;
  --on-dark:      #f5f3ee;
  --on-dark-soft: #cacacd;
  --on-ink-body:  #d9d5cc;
  --on-ink-muted: #b8b3a8;
  --on-slate-soft:#e3e9ee;

  /* Accents */
  --terracotta:        #9a4318;
  --terracotta-on-dark:#e0a07a;

  /* Lines */
  --hairline:       #d6d2c8;
  --hairline-ink:   #1b1b18;
  --hairline-dark:  #5a5750;
  --hairline-footer:#3a3a35;

  /* Type */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Radius */
  --radius-btn:   6px;
  --radius-panel: 10px;

  /* Layout */
  --page-max:     1440px;
  --gutter-desk:  120px;
  --gutter-mob:   20px;
  --col-gap:      24px;
  --section-desk: 96px;
  --section-mob:  44px;

  /* Controls */
  --btn-h:        54px;
  --btn-h-sm:     46px;
  --btn-h-lg:     60px;
  --tap-min:      44px;

  /* Derived */
  --gutter: var(--gutter-mob);
  --sticky-bar-h: 72px;
}
@media (min-width: 768px) {
  :root { --gutter: clamp(40px, 8.3333vw, var(--gutter-desk)); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, blockquote, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--slate); text-underline-offset: 4px; }
a:hover { color: var(--slate-hover); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius-btn);
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout: a 1440 max container with full-bleed bands. */
.band { position: relative; }
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* 12-column grid (desktop). Each section opts in at its own breakpoint; below it, sections stack. */
@media (min-width: 1000px) {
  .grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
}
.band--paper { background: var(--paper); }
.band--white { background: var(--white); }
.band--slate { background: var(--slate); color: var(--on-dark); }
.band--ink   { background: var(--ink-band); color: var(--on-dark); }
.band--rule  { border-top: 1px solid var(--hairline); }

.section-pad { padding-block: clamp(44px, 24.69px + 4.952vw, 96px); }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 400; }
.h2 {
  font-family: var(--font-display); font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(32px, 27.54px + 1.143vw, 44px); line-height: 1.12;
}
.mono-label {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 13px; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase;
}
.rule-accent { width: 40px; height: 3px; background: var(--terracotta-on-dark); }
.rule-accent--light-ground { background: var(--terracotta); }
@media (min-width: 768px) { .rule-accent { width: 56px; } }

/* ---------- Icons ---------- */
.ic {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.ic--sm { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 10px 26px;
  border: 1.5px solid transparent; border-radius: var(--radius-btn);
  font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.3;
  text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: var(--btn-h-sm); padding: 0 18px; font-size: 16px; }
.btn--lg { min-height: var(--btn-h-lg); padding: 10px 28px; font-size: 18px; }

/* Light grounds */
.btn--primary { background: var(--slate); color: var(--white); }
.btn--primary:hover { background: var(--slate-hover); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
/* On slate */
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--white); color: var(--ink); }
.btn--outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-white:hover { background: var(--white); color: var(--slate); }
/* Text link style */
.btn--text { gap: 8px; padding-inline: 12px; color: inherit; }
.btn--text:hover { color: var(--white); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--hairline); position: relative; z-index: 20; }
.site-header__inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-right: 8px;
}
.site-header__logo { display: flex; align-items: center; min-height: var(--tap-min); flex-shrink: 0; }
.site-header__logo img { height: 30px; width: auto; }
.site-nav { display: none; }
.site-header__actions { display: none; }
.site-header__icons { display: flex; gap: 2px; }
.icon-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--slate); background: transparent; border: 0; padding: 0; border-radius: var(--radius-btn); cursor: pointer;
}
.icon-btn--menu { color: var(--ink); }
.icon-btn:hover { background: rgba(27, 27, 24, .06); }
.icon-btn .ic-close { display: none; }
.icon-btn[aria-expanded="true"] .ic-open { display: none; }
.icon-btn[aria-expanded="true"] .ic-close { display: block; }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--hairline);
  box-shadow: 0 16px 24px -16px rgba(27, 27, 24, .25);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { padding-block: 8px 16px; }
.mobile-menu li + li { border-top: 1px solid var(--hairline); }
.mobile-menu a {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-display); font-size: 24px; color: var(--ink); text-decoration: none;
}
.mobile-menu a[aria-current="page"] { text-decoration: underline 2px var(--terracotta); text-underline-offset: 8px; }
.mobile-menu a:hover { color: var(--slate); }

@media (max-width: 359px) {
  .site-header__logo img { height: 24px; }
  .site-header__inner { gap: 8px; }
}
@media (min-width: 768px) {
  .site-header__inner { padding-right: calc(var(--gutter) - 12px); }
}
@media (min-width: 1200px) {
  .site-header__inner { height: 88px; padding-right: var(--gutter); }
  .site-header__logo img { height: 40px; }
  .site-nav { display: flex; gap: clamp(24px, 2.5vw, 36px); align-items: center; }
  .site-nav a {
    display: flex; align-items: center; min-height: var(--tap-min);
    color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500;
  }
  .site-nav a:hover { color: var(--slate); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--terracotta); }
  .site-header__actions { display: flex; gap: 10px; }
  .site-header__icons { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Mobile sticky action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  min-height: var(--sticky-bar-h);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  background: var(--white); border-top: 1px solid var(--hairline);
  box-shadow: 0 -8px 24px -12px rgba(27, 27, 24, .3);
}
.action-bar .btn { min-height: 52px; padding: 0 12px; gap: 8px; font-size: 16px; }
.action-bar .btn--outline { background: var(--white); }
.action-bar .btn--outline:hover { background: var(--ink); }
/* With JS, the bar starts hidden and slides in on scroll (see site.js). Without JS it's always shown. */
.js .action-bar {
  transform: translateY(100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.js .action-bar.is-visible {
  transform: none; visibility: visible;
  transition: transform .25s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .js .action-bar, .js .action-bar.is-visible { transition: none; }
}
body { padding-bottom: calc(var(--sticky-bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Closing CTA (slate) ---------- */
.closing { color: var(--white); text-align: center; }
.closing .wrap {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding-block: clamp(52px, 32.69px + 4.952vw, 104px);
}
.closing__title {
  text-wrap: balance;
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(34px, 25.83px + 2.095vw, 56px); line-height: 1.12; max-width: 1000px;
}
.closing__sub {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(22px, 19.77px + 0.571vw, 28px); line-height: 1.3; color: var(--on-slate-soft);
  margin-top: -6px;
}
.closing__para {
  font-size: clamp(18px, 16.51px + 0.381vw, 22px); line-height: 1.6; max-width: 680px; color: var(--on-slate-soft);
}
.closing__para a { color: var(--white); font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
.closing__actions { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; width: 100%; }
.closing__actions .btn { min-height: 56px; padding: 10px 20px; font-size: 16px; line-height: 1.4; }
.closing__actions .btn--paper { font-size: 17px; }
@media (min-width: 768px) {
  .closing .wrap { gap: 28px; }
  .closing__title { line-height: 1.08; }
  .closing__para { line-height: 1.55; }
  .closing__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; width: auto; }
  .closing__actions .btn { min-height: var(--btn-h-lg); padding: 10px 28px; font-size: 18px; line-height: 1.3; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--on-ink-body); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 24px; padding-block: 40px; }
.site-footer__row { display: flex; flex-direction: column; gap: 24px; }
.site-footer__logo { height: 34px; width: auto; align-self: flex-start; }
.site-footer__nav { display: flex; flex-direction: column; }
.site-footer a {
  display: inline-flex; align-items: center; min-height: var(--tap-min);
  color: var(--on-ink-body); text-decoration: none; font-size: 16px;
}
.site-footer a:hover { color: var(--white); }
.site-footer__social { display: flex; gap: 24px; }
.site-footer__social a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__fine {
  border-top: 1px solid var(--hairline-footer); padding-top: 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; line-height: 1.8; color: var(--on-ink-muted);
  display: flex; flex-direction: column; gap: 8px;
}
.site-footer__fine p { max-width: 960px; }
@media (min-width: 1000px) {
  .site-footer .wrap { gap: 32px; padding-block: 56px; }
  .site-footer__row { flex-direction: row; justify-content: space-between; align-items: center; }
  .site-footer__logo { height: 40px; }
  .site-footer__nav { flex-direction: row; gap: 32px; }
  .site-footer__fine { padding-top: 24px; }
}


/* =====================================================================
   Blog
   ===================================================================== */
.measure { max-width: 720px; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--hairline); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--slate); text-decoration: underline; }
.band--slate .crumbs, .band--slate .crumbs a { color: var(--on-dark-soft); }
.band--slate .crumbs li + li::before { color: rgba(255,255,255,.35); }

/* ---------- Blog index hero (slate) ---------- */
.blog-hero .wrap { padding-block: clamp(44px, 24.69px + 4.952vw, 96px); }
.blog-hero__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; color: var(--on-dark);
  font-size: clamp(44px, 33.6px + 2.667vw, 72px); line-height: 1;
}
.blog-hero__deck { font-family: var(--font-display); font-size: clamp(22px, 19.77px + 0.571vw, 28px); line-height: 1.4; max-width: 640px; }
.blog-hero__by { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); max-width: 640px; }
.blog-hero__by img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.blog-hero__by .nm { font-weight: 600; color: var(--white); }
/* lighter than the usual helper grey: this sits on the photo overlay, not flat slate (keeps ≥ 4.5:1 over the brightest pixels) */
.blog-hero__by .cr { font-size: 15px; line-height: 1.5; color: var(--on-slate-soft); }
.blog-hero__by a { color: var(--white); }
.blog-hero__by .meet { margin-top: 6px; font-size: 15px; }
.blog-hero__by .meet a { display: inline-flex; align-items: center; min-height: 32px; text-underline-offset: 4px; }

/* ---------- Post list (ledger) ---------- */
.post-list { border-top: 1px solid var(--hairline-ink); }
.post-row { padding: 26px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 10px; }
.post-row__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); }
.post-row__meta a { color: var(--muted); text-decoration: none; }
.post-row__meta a:hover { color: var(--slate); text-decoration: underline; }
.post-row__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(23px, 20.4px + 0.667vw, 30px); line-height: 1.25; }
.post-row__title a { color: var(--ink); text-decoration: none; }
.post-row__title a:hover { color: var(--slate); text-decoration: underline; text-decoration-thickness: 1px; }
.post-row__excerpt { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 760px; }
@media (min-width: 768px) {
  .post-row { grid-template-columns: 180px minmax(0, 1fr); column-gap: 32px; padding: 32px 0; }
  .post-row__meta { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; gap: 8px; padding-top: 8px; }
  .post-row__title, .post-row__excerpt { grid-column: 2; }
}

.blog-index .wrap { display: grid; gap: 48px; }
@media (min-width: 1100px) {
  .blog-index .wrap { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 64px; align-items: start; }
}
.topic-list h2 { margin-bottom: 14px; color: var(--slate); }
.topic-list ul { border-top: 1px solid var(--hairline-ink); }
.topic-list li { border-bottom: 1px solid var(--hairline); }
.topic-list a { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 16px; }
.topic-list a:hover { color: var(--slate); text-decoration: underline; }
.topic-list .n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.pager .btn { min-height: 52px; }
.pager span { flex: 1; }

/* ---------- Archive hero (paper) ---------- */
.archive-hero .wrap { padding-block: clamp(36px, 24.69px + 2.9vw, 72px) clamp(28px, 20px + 2vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.archive-hero__label { color: var(--terracotta); }
.archive-hero__title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; font-size: clamp(36px, 30.06px + 1.524vw, 52px); line-height: 1.08; }
.archive-hero__count { color: var(--muted); }

/* ---------- Post hero ---------- */
.post-hero { border-bottom: 1px solid var(--hairline); }
.post-hero .wrap { padding-block: clamp(28px, 20px + 2.2vw, 64px) clamp(32px, 22px + 2.5vw, 56px); display: grid; gap: 32px; }
.post-hero__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.post-hero__eyebrow { color: var(--terracotta); }
.post-hero__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance;
  font-size: clamp(34px, 26.57px + 1.905vw, 54px); line-height: 1.08;
}
.byline { display: flex; align-items: flex-start; gap: 16px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.byline picture { flex: none; }
.byline img { width: 64px; height: 64px; border-radius: 50%; display: block; }
.byline__name { font-weight: 600; font-size: 17px; color: var(--ink); }
.byline__name a { color: inherit; text-decoration: none; }
.byline__name a:hover { color: var(--slate); text-decoration: underline; }
.byline__creds { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.byline__creds span + span::before { content: " · "; }
.byline__dates { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-top: 8px; }

.qa-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-panel); padding: 22px 24px; align-self: start; }
.qa-card h2 { color: var(--slate); margin-bottom: 10px; }
.qa-card ol { counter-reset: q; }
.qa-card li { counter-increment: q; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.qa-card li:first-child { border-top: 0; }
.qa-card li::before { content: counter(q, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--terracotta); padding-top: 4px; }
.qa-card a { color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.4; }
.qa-card a:hover { color: var(--slate); text-decoration: underline; }
@media (min-width: 1100px) {
  .post-hero .wrap { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 64px; }
}

/* ---------- Post body ---------- */
.post-body .wrap { padding-block: clamp(32px, 22px + 2.5vw, 64px) clamp(44px, 24.69px + 4.952vw, 96px); display: grid; gap: 40px; justify-content: center; grid-template-columns: minmax(0, 720px); }
.toc { display: none; }
@media (min-width: 1100px) {
  .post-body--toc .wrap { grid-template-columns: 220px minmax(0, 720px); column-gap: 64px; }
  .toc { display: block; position: sticky; top: 24px; align-self: start; }
  .toc p { color: var(--muted); margin-bottom: 10px; font-size: 12px; }
  .toc ol { border-left: 2px solid var(--hairline); }
  .toc a { display: block; padding: 8px 0 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35; }
  .toc a:hover { color: var(--ink); }
  .toc a.is-active { color: var(--ink); border-left-color: var(--terracotta); }
}

.short-answer {
  position: relative; margin: 0 0 32px; padding: 22px 24px 24px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-panel);
}
.short-answer::before { content: ""; position: absolute; top: -1px; left: 24px; width: 56px; height: 3px; background: var(--terracotta); }
.short-answer__label { display: block; color: var(--slate); margin-bottom: 8px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.short-answer p { font-family: var(--font-display); font-size: clamp(20px, 18.89px + 0.286vw, 23px); line-height: 1.45; color: var(--ink); margin: 0; }
.prose .short-answer { margin: 8px 0 28px; }

/* WordPress post content */
.prose { font-size: clamp(18px, 17.63px + 0.095vw, 19px); line-height: 1.7; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose pre { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin-top: 1.8em; scroll-margin-top: 24px; }
.prose h1, .prose h2 { font-size: clamp(26px, 23.03px + 0.762vw, 34px); }
.prose h3 { font-size: clamp(22px, 20.51px + 0.381vw, 26px); }
.prose h4 { font-size: 21px; }
.prose a { color: var(--slate); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--slate-hover); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--terracotta); }
.prose blockquote { padding: 4px 0 4px 22px; border-left: 2px solid var(--hairline-ink); font-family: var(--font-display); font-size: 1.1em; line-height: 1.55; }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin-block: 2em; }
.prose img { height: auto; border-radius: 4px; }
.prose .aligncenter { margin-inline: auto; display: block; }
.prose .alignleft { float: left; margin: 0.3em 1.4em 1em 0; max-width: 45%; }
.prose .alignright { float: right; margin: 0.3em 0 1em 1.4em; max-width: 45%; }
.prose .wp-caption { max-width: 100% !important; width: auto !important; }
.prose .wp-caption-text, .prose figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 8px; text-align: center; }
.prose iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }
.prose .embed-youtube { display: block !important; }
.prose pre { white-space: pre-wrap; font-family: var(--font-mono); font-size: 15px; background: var(--white); padding: 16px; border: 1px solid var(--hairline); border-radius: 6px; }
.prose::after { content: ""; display: block; clear: both; }

.post-tax { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline-ink); display: grid; gap: 14px; }
.post-tax h2 { color: var(--muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: 15px; }
.chips a:hover { border-color: var(--ink); }

/* ---------- FAQ ---------- */
.faq .wrap { padding-block: clamp(44px, 24.69px + 4.952vw, 96px); display: grid; gap: 28px; grid-template-columns: minmax(0, 860px); justify-content: center; }
.faq__title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; font-size: clamp(30px, 24.8px + 1.333vw, 44px); line-height: 1.12; }
.faq__list { border-top: 1px solid var(--hairline-ink); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 56px; padding: 18px 0; font-family: var(--font-display); font-size: clamp(20px, 18.89px + 0.286vw, 23px); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -6px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq summary:hover { color: var(--slate); }
.faq details > div { padding: 0 0 22px; font-size: 18px; line-height: 1.65; color: var(--ink); max-width: 760px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Comments ---------- */
.comments { margin-top: 56px; }
.comments h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin-bottom: 8px; }
.comments__note { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.comment { padding: 20px 0; border-top: 1px solid var(--hairline); }
.comment--reply { margin-left: 28px; }
.comment__who { font-weight: 600; }
.comment__when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-left: 8px; }
.comment__body { margin-top: 8px; font-size: 17px; line-height: 1.65; }
.comment__body p + p { margin-top: 0.8em; }

/* ---------- Related ---------- */
.related .wrap { padding-block: clamp(44px, 24.69px + 4.952vw, 96px); display: grid; gap: 24px; }
.related__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 24.29px + 0.952vw, 38px); line-height: 1.12; }
.related__grid { display: grid; border-top: 1px solid var(--hairline-ink); }
.related__item { padding: 22px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 8px; }
.related__item a { font-family: var(--font-display); font-size: 22px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.related__item a:hover { color: var(--slate); text-decoration: underline; }
.related__item .mono { color: var(--terracotta); font-size: 12px; }
@media (min-width: 1000px) {
  .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related__item { padding: 28px 28px 28px 0; border-bottom: 0; }
  .related__item + .related__item { padding-left: 28px; border-left: 1px solid var(--hairline); }
}

/* ---------- Simple page (About, 404) ---------- */
.page-body .wrap { padding-block: clamp(32px, 22px + 2.5vw, 64px) clamp(44px, 24.69px + 4.952vw, 96px); display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; }
/* Old WordPress inline font sizes inside post text shouldn't override the reading size. */
.prose span[style] { font-size: inherit !important; line-height: inherit !important; }

/* Blog home hero: the blog's banner photo fills the background; a slate overlay keeps the text readable. */
.blog-hero { position: relative; overflow: hidden; isolation: isolate; }
.blog-hero__bg { position: absolute; inset: 0; z-index: -2; }
.blog-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.blog-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(57, 81, 101, .92) 0%, rgba(57, 81, 101, .88) 100%);
}
.blog-hero .wrap { min-height: clamp(440px, 300px + 22vw, 620px); display: flex; align-items: center; }
.blog-hero__text { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.blog-hero__page { display: block; font-size: 0.45em; color: var(--on-dark-soft); margin-top: 8px; }
@media (min-width: 1000px) {
  /* Shorter hero = less upscaling of the 1000px-wide photo, and the face can sit to the right of the text. */
  .blog-hero .wrap { min-height: 480px; padding-block: 64px; }
  .blog-hero__bg img { object-position: 100% 32%; }
  .blog-hero::before {
    background: linear-gradient(90deg, rgba(57, 81, 101, .96) 0%, rgba(57, 81, 101, .92) 44%, rgba(57, 81, 101, .30) 66%, rgba(57, 81, 101, .06) 100%);
  }
}

/* Footer has a fourth link on the blog ("Meet Pete & His Family"): keep labels on one line and only use the
   single-row footer once there's room for it. */
.site-footer__nav a { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer__nav { flex-wrap: wrap; column-gap: 32px; }
}
