*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans, "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: var(--text-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif, "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif); font-weight: var(--weight-regular); letter-spacing: var(--tracking-display); }
p, ul, ol { margin: 0; }

.blog-eyebrow { margin-bottom: 16px; color: var(--cobalt, var(--accent)); font-size: var(--text-sm); line-height: 1.4; }
.blog-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

.blog-head { padding: clamp(56px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.blog-head h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.07; }
.blog-lede { max-width: var(--measure-narrow); margin-top: 20px; color: var(--ink-soft); font-size: var(--text-lg); line-height: 1.55; }

.blog-index { padding-bottom: var(--section-y); }
.blog-index__title { margin-bottom: 24px; font-size: var(--text-2xl); line-height: 1.2; }

.post-list { padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.post-list__item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 10px 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.post-list__meta { grid-row: span 2; display: flex; flex-direction: column; gap: 2px; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; font-variant-numeric: tabular-nums; }
.post-list__meta a:hover { color: var(--cobalt, var(--accent)); }
.post-list__title { max-width: 32ch; font-size: var(--text-2xl); line-height: 1.2; text-wrap: balance; }
.post-list__title a:hover { color: var(--cobalt, var(--accent)); }
.post-list__summary { max-width: var(--measure-narrow); color: var(--ink-soft); font-size: var(--text-md); line-height: 1.55; }

.guide { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 48px; align-items: start; padding-top: clamp(56px, 6vw, 88px); }
.guide-head { grid-column: 1 / -1; }
.guide-head h1 { max-width: 22ch; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; text-wrap: balance; }
.guide-lede { max-width: 36em; margin-top: 24px; color: var(--ink-soft); font-size: var(--text-lg); line-height: 1.6; }

.byline { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 64px; }
.byline__photo { position: relative; flex: none; width: 48px; height: 48px; overflow: clip; background: var(--line); }
.byline__photo img { position: absolute; top: -10%; left: -196%; width: 428%; max-width: none; filter: saturate(0.88) contrast(1.04); }
.byline p { display: flex; flex-direction: column; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; }
.byline a { color: var(--ink); }
.byline a:hover { color: var(--cobalt, var(--accent)); }

.guide-body { grid-column: 2; max-width: 34em; font-size: var(--text-lg); line-height: 1.7; }
.guide-body p, .guide-body li { text-wrap: pretty; }
.guide-body > * + * { margin-top: 20px; }
.guide-body > :first-child { margin-top: 64px; }
.guide-body h2 { margin-top: 64px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; text-wrap: balance; scroll-margin-top: calc(var(--nav-h) + 24px); }
.guide-body h3 { margin-top: 40px; font-size: var(--text-xl); line-height: 1.3; letter-spacing: -0.02em; }
.guide-body h2 + *, .guide-body h3 + * { margin-top: 14px; }
.guide-body h2 + h3 { margin-top: 28px; }
.guide-body a { color: var(--cobalt, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.guide-body ul, .guide-body ol { padding-left: 1.3em; }
.guide-body ul { list-style: disc; }
.guide-body ol { list-style: decimal; }
.guide-body li + li { margin-top: 10px; }
.guide-body li::marker { color: var(--ink-soft); }

.guide-body .guide-checklist { padding-left: 0; list-style: none; }
.guide-checklist li { position: relative; padding-left: 30px; }
.guide-checklist li::before { content: ""; position: absolute; top: 0.45em; left: 0; width: 13px; height: 13px; border: 1px solid var(--ink-soft); }

.guide-body .guide-table { margin-top: 28px; overflow-x: auto; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: var(--text-base); line-height: 1.5; }
.guide-table th, .guide-table td { padding: 12px 20px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table th { padding-top: 0; color: var(--ink-soft); font-size: var(--text-sm); font-weight: var(--weight-regular); vertical-align: bottom; }
.guide-table th:last-child, .guide-table td:last-child { padding-right: 0; }

.guide-cta { grid-column: 2; max-width: var(--measure-narrow); margin-top: 72px; }
.guide-cta p { font-family: var(--serif, "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif); font-size: var(--text-2xl); line-height: 1.25; letter-spacing: var(--tracking-display); text-wrap: balance; }
.guide-cta .button { margin-top: 24px; }

.related { padding: var(--section-y) 0; }
.related h2 { font-size: var(--text-2xl); line-height: 1.2; }
.related__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(28px, 3.5vw, 48px); margin-top: 28px; padding: 0; list-style: none; }
.related__list a { display: flex; flex-direction: column; gap: 10px; }
.related__kind { color: var(--cobalt, var(--accent)); font-size: var(--text-sm); line-height: 1.4; }
.related__title { font-family: var(--serif, "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif); font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.02em; }
.related__list a:hover .related__title { text-decoration: underline; text-underline-offset: 3px; }

.author-head { padding: clamp(56px, 6vw, 88px) 0 clamp(48px, 6vw, 72px); }
.author-head__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: end; }
.author-head__photo { aspect-ratio: 3 / 4; overflow: clip; background: var(--line); }
.author-head__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% 42%; filter: saturate(0.88) contrast(1.04); }
.author-head h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.07; }
.author-head__role { margin-top: 10px; color: var(--ink-soft); font-size: var(--text-md); }
.author-head__bio { max-width: var(--measure-narrow); margin-top: 20px; font-size: var(--text-lg); line-height: 1.6; }
.author-head__link { margin-top: 16px; font-size: var(--text-base); }
.author-head__link a { color: var(--cobalt, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .guide { grid-template-columns: 160px minmax(0, 1fr); column-gap: 32px; }
  .guide-body { font-size: var(--text-md); }
  .related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-list__item { grid-template-columns: 160px minmax(0, 1fr); gap: 10px 32px; }
}
@media (max-width: 720px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .byline { flex-direction: row; align-items: center; margin-top: 32px; }
  .guide-body, .guide-cta { grid-column: 1; }
  .post-list__item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 0; }
  .post-list__meta { grid-row: auto; flex-direction: row; flex-wrap: wrap; gap: 0 14px; }
  .related__list { grid-template-columns: minmax(0, 1fr); }
  .author-head__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .author-head__photo { width: min(100%, 200px); }
  .guide-table table { font-size: var(--text-sm); }
  .guide-table th, .guide-table td { padding-right: 12px; }
}
