@font-face { font-family: "Bricolage"; src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(fonts/source-serif-4-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(fonts/source-serif-4-latin-wght-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
	--bg: #f4f5f1; --surface: #e9ebe4; --ink: #12181c; --muted: #545d62; --line: #c9cdc4;
	--accent: #1a2bd8; --accent-ink: #fff; --mark: #ffe14d; --mark-ink: #12181c;
	--display: "Bricolage", "Segoe UI", system-ui, sans-serif;
	--text: "Source Serif", Georgia, serif;
	--mono: ui-monospace, "Cascadia Code", Consolas, monospace;
	--gutter: clamp(16px, 4vw, 48px);
	--end: clamp(56px, 8vw, 96px);
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1417; --surface: #192025; --ink: #eef0ea; --muted: #a3acb0; --line: #323b41;
		--accent: #9aa6ff; --accent-ink: #0f1417;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.6 var(--text); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; margin: 0; }
mark { background: var(--mark); color: var(--mark-ink); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { max-width: calc(44rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.page-end, .list-end { padding-bottom: var(--end); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.site-head { border-bottom: 1px solid var(--line); }
.site-head-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px 24px; flex-wrap: wrap; }
.brand { font: 700 1.2rem/1 var(--display); color: var(--ink); text-decoration: none; }
.site-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.site-nav a { font: 500 1rem/1 var(--display); color: var(--ink); text-decoration: none; padding: 8px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item a, .site-nav .current_page_parent a { border-bottom-color: var(--accent); }
.nav-toggle { display: none; font: 500 1rem/1 var(--display); background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; cursor: pointer; }
@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; flex-basis: 100%; padding-bottom: 12px; }
	.site-nav.open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav a { padding: 12px 0; display: block; }
}

.kicker { font: 500 .95rem/1.3 var(--display); color: var(--muted); margin: 0 0 18px; }
.kicker a { color: inherit; }
.hero { padding-block: clamp(56px, 10vw, 128px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: 32px; align-items: end; }
.hero-grid:has(img) { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.hero h1 { font-size: clamp(2.6rem, 7.6vw, 6.25rem); font-weight: 750; line-height: 1.02; max-width: 15ch; }
.hero-portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
@media (max-width: 720px) { .hero-grid:has(img) { grid-template-columns: 1fr; } .hero-portrait { max-width: 260px; } }
.lede { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; max-width: 36em; margin: 28px 0 0; }
.actions { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font: 600 1.05rem/1 var(--display); padding: 17px 24px; border: 0; border-radius: 4px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-quiet { font: 600 1.05rem/1 var(--display); }

.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--ink); }
.facts div { padding: 26px 20px 26px 0; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.facts dt { font: 700 clamp(1.9rem, 3.6vw, 3rem)/1 var(--display); letter-spacing: -.02em; }
.facts dd { margin: 10px 0 0; font-size: 1rem; line-height: 1.3; color: var(--muted); }
@media (max-width: 720px) {
	.facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts div:nth-child(odd) { border-left: 0; padding-left: 0; }
	.facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.band { padding-block: var(--end) 0; }
.band:last-of-type { padding-bottom: var(--end); }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 26px; }
.band-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
.band-head a { font: 500 1rem/1 var(--display); white-space: nowrap; }

.svc { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--ink); padding: 26px 0 0; }
.svc h3 { font-size: 1.5rem; margin-bottom: 12px; }
.svc p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; } }

.work-list, .post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.work-row { border-bottom: 1px solid var(--line); }
.work-row a { display: grid; grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1.6fr) 10rem; gap: 12px 24px; align-items: baseline; padding: 24px 0; color: var(--ink); text-decoration: none; transition: padding .18s ease, background .18s ease; }
.work-row a:hover { background: var(--surface); padding-inline: 14px; }
.work-title { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.work-meta, .work-kind { font: 500 .95rem/1.3 var(--display); color: var(--muted); }
.work-kind { text-align: right; }
.work-summary { font-size: 1.02rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 800px) {
	.work-row a { grid-template-columns: 1fr auto; }
	.work-title { grid-column: 1 / -1; grid-row: 2; }
	.work-summary { grid-column: 1 / -1; grid-row: 3; }
	.work-meta, .work-kind { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .work-row a { transition: none; } html { scroll-behavior: auto; } }

.post-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-row time { font: 500 .95rem/1.6 var(--display); color: var(--muted); }
.post-row h3 { font-size: 1.5rem; }
.post-row h3 a { color: var(--ink); text-decoration: none; }
.post-row h3 a:hover { text-decoration: underline; }
.post-row p { margin: 10px 0 0; color: var(--muted); max-width: 42em; }
@media (max-width: 600px) { .post-row { grid-template-columns: 1fr; } }

.page-top { padding-block: var(--end) 40px; }
.page-top.list-end { padding-bottom: var(--end); }
.page-top h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.post-head { padding-block: clamp(48px, 8vw, 88px) 32px; }
.post-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.75rem); }
.post-image, .about-portrait { width: 100%; border-radius: 4px; margin-bottom: 32px; }
.about-portrait { max-width: 320px; }
.prose { padding-bottom: 8px; }
.prose h2 { font-size: 1.85rem; margin: 2em 0 .55em; }
.prose h3 { font-size: 1.4rem; margin: 1.7em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: .4em; }
.prose code { font: .86em/1.5 var(--mono); background: var(--surface); padding: .12em .34em; border-radius: 3px; }
.prose pre { background: var(--surface); padding: 18px 20px; overflow-x: auto; border-radius: 4px; margin: 0 0 1.4em; }
.prose pre code { background: none; padding: 0; font-size: .86rem; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--accent); }
.post-end { margin: 32px 0 var(--end); padding-top: 22px; border-top: 1px solid var(--ink); font-size: 1.02rem; }
.project-facts { margin: 0 0 36px; border-top: 1px solid var(--ink); }
.project-facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { font: 500 .95rem/1.5 var(--display); color: var(--muted); }
.project-facts dd { margin: 0; }

.contact { margin-bottom: var(--end); }
.contact p { margin: 0 0 20px; }
.contact label { display: block; font: 600 1rem/1.3 var(--display); margin-bottom: 7px; }
.contact label span { font-weight: 400; color: var(--muted); }
.contact input, .contact textarea { width: 100%; font: inherit; color: inherit; background: transparent; border: 1px solid var(--muted); border-radius: 4px; padding: 13px 14px; }
.contact .hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; }
.form-status[data-state="error"] { color: #c0261f; }
@media (prefers-color-scheme: dark) { .form-status[data-state="error"] { color: #ff9a92; } }

.pagination { padding-top: 32px; font-family: var(--display); }
.nav-links { display: flex; gap: 18px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.site-foot { background: #12181c; color: #f4f5f1; padding-block: clamp(48px, 7vw, 80px) 32px; }
.site-foot a { color: inherit; }
.foot-cta { font: 700 clamp(1.8rem, 4.4vw, 3.5rem)/1.08 var(--display); letter-spacing: -.015em; margin: 0 0 clamp(40px, 7vw, 72px); max-width: 20ch; }
.foot-cta a { background: var(--mark); color: var(--mark-ink); text-decoration: none; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; font: 400 .98rem/1.4 var(--display); }
.foot-row p { margin: 0; }
.foot-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
