/* Personal palette and identity, with the Claude candidate’s reading layout. */
:root {
  color-scheme: light;
  --paper: #f7f5ed;
  --wash: #e7ece5;
  --ink: #23332c;
  --text: #303e35;
  --muted: #536157;
  --line: #c5cdc2;
  --accent: #843f29;
  --serif: 'Iowan Old Style', 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(22px, 6vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 19px/1.62 var(--serif);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; hanging-punctuation: first; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* One column, about 66 characters wide at this size. */
.col { width: min(100% - 2 * var(--gutter), 38rem); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 12px; font: 15px var(--sans); z-index: 10; }
.skip:focus { top: 12px; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-block: 22px 18px; }
.name { color: var(--ink); text-decoration: none; font-size: 1.28rem; font-weight: 600; letter-spacing: -.012em; white-space: nowrap; }
.masthead nav { display: flex; gap: 22px; font: 500 15.5px/1 var(--sans); }
.masthead nav a { color: var(--text); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.masthead nav a:hover { color: var(--accent); }
.masthead nav a[aria-current] { border-bottom-color: var(--ink); color: var(--ink); }

main { padding-block: clamp(40px, 8vw, 84px) clamp(56px, 9vw, 104px); }
.meta { font: 400 14.5px/1.5 var(--sans); color: var(--muted); font-variant-numeric: normal; }

/* Home */
.intro h1 { font-size: clamp(1.7rem, 5.4vw, 2.35rem); line-height: 1.2; letter-spacing: -.018em; font-weight: 500; }
.intro p { margin-top: 22px; }
.block { margin-top: clamp(52px, 9vw, 84px); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.block-head h2 { font: 600 15px/1.2 var(--sans); letter-spacing: .01em; color: var(--ink); }
.block-head a { font: 500 14.5px/1.2 var(--sans); }
.entries { list-style: none; padding: 0; }
.entry { padding-block: 24px; border-bottom: 1px solid var(--line); }
.entry h3 { font-size: 1.42rem; line-height: 1.22; letter-spacing: -.012em; }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.entry p { margin-top: 8px; }
.entry .meta { margin-top: 10px; }
.entries-full { border-top: 1px solid var(--ink); margin-top: 36px; }
.empty { padding-block: 24px; border-bottom: 1px solid var(--line); color: var(--muted); }
.background div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.background dt { font: 600 14.5px/1.9 var(--sans); color: var(--ink); }
.background dd { font-size: 17.5px; line-height: 1.55; }

/* Page heads */
.page-head h1, .article-head h1 { font-size: clamp(2rem, 7vw, 2.9rem); line-height: 1.1; letter-spacing: -.022em; }
.page-head p { margin-top: 18px; }

/* Article */
.back { font: 500 14.5px/1 var(--sans); margin-bottom: clamp(24px, 5vw, 40px); }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--accent); }
.dek { margin-top: 16px; font-size: 1.24rem; line-height: 1.42; color: var(--muted); font-style: italic; }
.article-head .meta { margin-top: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.prose { margin-top: clamp(28px, 5vw, 40px); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.012em; margin-top: 2em; }
.prose h3 { font-size: 1.18rem; line-height: 1.3; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); }
.prose blockquote { padding-left: 1.1em; border-left: 2px solid var(--ink); font-style: italic; }
.prose code { font: .86em/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--wash); padding: .1em .3em; border-radius: 3px; }
.prose pre { overflow-x: auto; background: var(--wash); padding: 16px; font-size: 15px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }
.prose img { max-width: 100%; height: auto; }
.article-image { margin: 28px 0; }
.article-image img { display: block; width: 100%; height: auto; }
.post-video { display: block; width: auto; height: auto; max-width: 100%; max-height: 78vh; margin-inline: auto; }
.prose table { width: 100%; border-collapse: collapse; font: 15.5px/1.45 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); }
.prose th { border-bottom-color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose-about h2 { font: 600 15px/1.2 var(--sans); letter-spacing: .01em; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-top: 2.8em; }
.prose-about h2 + * { margin-top: 1em; }
.prose-about h3 { margin-top: 1.3em; }
.article-foot { margin-top: clamp(40px, 7vw, 60px); padding: 22px 24px; background: var(--wash); border-top: 2px solid var(--ink); font-size: 17.5px; line-height: 1.55; }
.article-foot p + p { margin-top: 12px; }
.article-foot .more { font: 500 15px/1.4 var(--sans); margin-top: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 26px 40px; font: 400 14.5px/1.5 var(--sans); color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer nav a:hover { color: var(--accent); text-decoration: underline; }
.footer p { margin-top: 12px; }

@media (max-width: 520px) {
  body { font-size: 18px; line-height: 1.6; }
  .background div { grid-template-columns: 1fr; gap: 2px; }
  .background dt { line-height: 1.4; }
  .article-foot { padding: 18px; }
  .masthead nav { gap: 18px; }
}
@media (max-width: 350px) {
  .name { font-size: 1.12rem; }
  .masthead nav { gap: 14px; font-size: 15px; }
}
@media print {
  .masthead nav, .footer nav, .back, .skip { display: none; }
  body { background: #fff; font-size: 11.5pt; }
  .article-foot { background: none; }
}

/* Local-review integration: restrained personal masthead and on-site reading. */
.shell { width: min(100% - 2 * var(--gutter), 68rem); margin-inline: auto; }
.col.home { width: min(100% - 2 * var(--gutter), 56rem); }
.name { display: inline-flex; align-items: center; gap: 16px; font-size: 19px; }
.monogram { font-size: 29px; font-weight: 600; letter-spacing: -.08em; }
.monogram span, .intro h1 > span { color: var(--accent); }
.masthead-row { align-items: center; padding-block: 18px; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; }
.eyebrow { color: var(--muted); font: 500 12px/1.5 var(--sans); letter-spacing: .065em; text-transform: uppercase; }
.intro { max-width: 43rem; }
.intro .eyebrow { margin-top: 0; }
.intro h1 { font-size: clamp(3rem, 7vw, 4.7rem); font-weight: 500; line-height: 1.07; letter-spacing: -.035em; margin-top: 16px; }
.intro p { max-width: 36rem; }
.intro .intro-lead { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.4; margin-top: 24px; color: var(--ink); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; margin-top: 28px; font: 500 15px/1.4 var(--sans); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 13px 20px; background: var(--ink); color: var(--paper); text-decoration: none; }
.button:hover { background: #405b49; }
.text-link { color: var(--ink); }
.background dd { max-width: 38rem; }
.page-head .eyebrow, .article-head .eyebrow { margin: 0 0 14px; }
.writing-empty { margin-top: 40px; padding-block: 28px; border-block: 1px solid var(--line); color: var(--muted); }
.writing-empty p + p { margin-top: 12px; }
.entry .entry-kind { margin: 0 0 8px; }
.article-foot .more:first-child { margin-top: 0; }
.footer-row { display: flex; gap: 20px 32px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 520px) {
  .name { gap: 10px; }
  .wordmark { font-size: 16px; }
  .masthead nav { gap: 18px; font-size: 14px; }
  main { padding-top: 42px; }
  .intro h1 { font-size: clamp(2.7rem, 10vw, 3.5rem); }
  .intro-actions { gap: 18px 22px; }
  .block { margin-top: 52px; }
  .footer-row { flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
  .wordmark { display: none; }
  .name { min-width: 44px; }
  .block-head { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
