:root {
  color-scheme: light;
  --ink: #202823;
  --muted: #667169;
  --line: #dce3dd;
  --paper: #fbfcfa;
  --accent: #315e4b;
  --accent-soft: #eaf1eb;
  --measure: 44rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 1.0625rem; line-height: 1.75; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #173e2e; }
a:focus-visible { outline: 3px solid #83b69a; outline-offset: 4px; border-radius: 2px; }
.site-shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .6rem 1rem; background: white; z-index: 2; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.035em; font-size: 1.16rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.35rem; font-size: .9rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
.intro { padding: clamp(4.5rem, 12vw, 8.5rem) 0 5rem; max-width: 53rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.045em; }
.intro h1 { max-width: 12ch; margin: 0; font-size: clamp(2.65rem, 7vw, 5.2rem); font-weight: 680; }
.intro-copy { max-width: 37rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.2rem; }
.post-list, .archive { max-width: var(--measure); margin: 0 auto; padding-bottom: 5rem; }
.section-heading { margin: 0 0 1.5rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-summary { padding: 1.35rem 0 1.5rem; border-top: 1px solid var(--line); }
.post-date { margin: 0 0 .35rem; color: var(--muted); font-size: .82rem; }
.post-summary h3 { margin: 0; font-size: 1.35rem; }
.post-summary h3 a { color: var(--ink); text-decoration: none; }
.post-summary h3 a:hover { color: var(--accent); }
.post-summary > p:last-child { margin: .5rem 0 0; color: var(--muted); font-size: .96rem; line-height: 1.65; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9rem; }
.pagination span { color: var(--muted); }
.article { max-width: var(--measure); margin: 0 auto; padding: clamp(3.5rem, 9vw, 6rem) 0 6rem; }
.article-header { margin-bottom: 2.5rem; }
.article-header h1, .archive h1 { margin: .25rem 0 1rem; font-size: clamp(2.3rem, 6vw, 3.8rem); }
.article-description { color: var(--muted); font-size: 1.2rem; }
.article-content { overflow-wrap: anywhere; }
.article-content > * { margin-block: 1.25em; }
.article-content h2 { margin-top: 2.5em; font-size: 1.65rem; }
.article-content h3 { margin-top: 2em; font-size: 1.3rem; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 2rem auto; border-radius: .25rem; }
.article-content figure { margin: 2rem 0; }
.article-content figcaption { color: var(--muted); font-size: .88rem; text-align: center; }
.article-content pre { overflow-x: auto; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: .35rem; background: #f1f4f1; font-size: .88rem; line-height: 1.55; }
.article-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.article-content :not(pre) > code { padding: .12em .3em; border-radius: .2rem; background: var(--accent-soft); }
.article-content blockquote { margin-inline: 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid #a2bca9; color: var(--muted); }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-content th, .article-content td { padding: .55rem .75rem; border: 1px solid var(--line); text-align: left; }
.article-content th { background: var(--accent-soft); }
.article-content iframe, .article-content video { max-width: 100%; }
.archive { padding-top: 4rem; }
.archive .post-summary:first-of-type { margin-top: 1rem; }
.site-footer { display: flex; justify-content: space-between; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer a { color: inherit; }
.empty-state { color: var(--muted); }
@media (max-width: 36rem) {
  body { font-size: 1rem; }
  .site-shell { width: min(100% - 2rem, 70rem); }
  .site-header { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .site-header nav { gap: .7rem 1rem; }
  .intro { padding: 4.2rem 0 3.6rem; }
  .pagination { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.profile img { width: min(100%, 13rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.project-list { display: grid; gap: 1.5rem; }
.project-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(16rem, .7fr); overflow: hidden; border: 1px solid var(--line); border-radius: .55rem; background: white; }
.project-image { margin: 0; background: #f1f4f1; }
.project-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.44; object-fit: cover; }
.project-image figcaption { padding: .55rem .9rem; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.project-details { align-self: center; padding: clamp(1.25rem, 3vw, 2.2rem); }
.project-details h2 { margin: .35rem 0 .75rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.project-details p { margin: .6rem 0; }
.project-type { color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-card-text { grid-template-columns: 1fr; }
@media (max-width: 48rem) {
  .project-card { grid-template-columns: 1fr; }
  .project-image img { aspect-ratio: 1.55; }
  .project-details { padding: 1.25rem 1.4rem 1.5rem; }
}
