/* Shared, dependency-free styles for the clean refresh. */
:root { color-scheme: light; --paper: #faf9f6; --ink: #262d2b; --muted: #616963; --accent: #28634f; --line: #dedfd7; }
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
.book-promo { border: 1px solid #b8b4aa; }
p { margin: 0 0 1.1rem; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }
h1 { font: 400 clamp(2.4rem, 6vw, 3.8rem)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin: 0 0 1.5rem; }
h2 { font-size: 1.35rem; font-weight: 600; margin: 0 0 1.2rem; }
h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 .5rem; }
h4 { font-size: 1.12rem; }
main, .site-header, .site-footer { width: min(1000px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.site-name { font-size: 1.2rem; font-weight: 650; color: var(--ink); text-decoration: none; line-height: 1.3; }
.site-name span { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); letter-spacing: .03em; }
nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .9rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }
main > section { padding-block: 2.6rem; border-bottom: 1px solid var(--line); }
main > section:last-child { border: 0; }
main > .intro { padding-block: 3.5rem 3rem; }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; color: var(--accent); font-weight: 600; margin-bottom: 1.2rem; }
.intro-copy { max-width: 660px; font-size: 1.1rem; color: var(--muted); }
.intro h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.intro-location { color: var(--muted); font-size: .9rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; }
.section-heading > a, .section-heading > span { font-size: .85rem; }
.muted, time, .date { color: var(--muted); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.feature { display: flex; flex-direction: column; border-top: 2px solid var(--accent); padding-top: 1.4rem; }
/* Small color accents borrowed from the book covers and benchmark's golf palette. */
.deep-learning { --feature-accent: #4b1765; }
.hiring { --feature-accent: #955024; }
.benchmark { --feature-accent: #28634f; }
.feature { border-color: var(--feature-accent, var(--accent)); }
.feature .eyebrow, .feature-link { color: var(--feature-accent, var(--accent)); }
.feature h3 { font: 400 1.5rem/1.2 Georgia, "Times New Roman", serif; margin-bottom: 1rem; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; }
.feature p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.feature-link { margin-top: auto; font-size: .85rem; }
.feature-art { display: flex; align-items: center; width: fit-content; height: 112px; margin-bottom: 1.25rem; }
.feature-art img { display: block; height: 112px; width: auto; }
.hiring .feature-art img { outline: 1px solid #b8b4aa; }
.golf-art img { width: 160px; object-fit: cover; object-position: center bottom; border-radius: 3px; }
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list li { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }
.entry-list li:first-child { padding-top: 0; }
.entry-list li:last-child { padding-bottom: 0; }
.entry-list h3 a { color: var(--ink); text-decoration: none; }
.entry-list h3 a:hover { text-decoration: underline; }
.entry-list p { color: var(--muted); font-size: .95rem; margin: 0; }
time, .date { font-size: .8rem; white-space: nowrap; }
.about p { max-width: 68ch; }
.rss-note { margin-top: 2rem; padding: 1rem 1.25rem; border-left: 3px solid #b86122; background: #f2f0e9; }
.rss-note > a { font-size: .95rem; }
a[href$="/rss.xml"]::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .35em; vertical-align: -.12em; background: url("../images/rss.svg") center / contain no-repeat; }
.rss-note p { max-width: 68ch; color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.7rem 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); }
.site-footer nav { gap: 1rem; font-size: .8rem; }
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 1; }
.skip-link:focus { top: 1rem; }
.page-intro { padding-block: 3.5rem 2rem; }
.page-intro h1 { margin-bottom: 1rem; }
.page-intro p { color: var(--muted); max-width: 62ch; }
.blog-post-item { padding-block: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.writing-list { padding-bottom: 3rem; }
.prose { max-width: 68ch; padding-block: 3.5rem; overflow-wrap: break-word; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.3rem; border-left: 2px solid var(--line); color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
pre { overflow-x: auto; padding: 1rem; background: #eeeee8; font-size: .85rem; }
code { font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.project-entry { padding-block: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 200px; align-items: start; gap: 2rem; }
.project-entry h2 { font-size: 1.2rem; }
.project-entry p, .project-entry ul { font-size: .95rem; }
.project-entry img { width: 100%; }
.project-image-frame { display: block; padding: 10px; background: #fff; border: 1px solid #d3cfc5; }
@media (max-width: 700px) {
  body { font-size: 17px; }
  .site-header { align-items: start; padding-block: 1.4rem; }
  .site-header nav { gap: 1rem; font-size: .85rem; }
  main > .intro { padding-block: 2.5rem; }
  .featured-grid, .project-entry { grid-template-columns: 1fr; }
  .featured-grid { gap: 2rem; }
  .project-entry img { max-width: 280px; }
  .section-heading { flex-wrap: wrap; gap: .5rem; }
  .blog-post-item { flex-direction: column; gap: .25rem; }
  .entry-list li { gap: .75rem; }
}
@media (max-width: 480px) { .site-header { flex-direction: column; gap: 1rem; } }
