/* new.dixon.cx: white, near-black, Bristol blue, grey. */
:root {
	--ink: #111318;
	--ink-2: #3a3f47;
	--muted: #5f6672;
	--line: #e3e6ea;
	--panel: #f5f6f8;
	--blue: #1b4192;
	--blue-dark: #12306e;
	--blue-tint: #e9eef8;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--wrap: 1120px;
	--measure: 72ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: 1.6rem; margin-top: 0; }
h3 { font-size: 1.2rem; }
h4, h5, h6 { font-size: 1.05rem; }
p, ul, ol, dl, pre, figure { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--panel); padding: 0.1em 0.35em; border-radius: 4px; }
kbd { font-family: var(--mono); font-size: 0.85em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.35em; }
strong { font-weight: 650; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
.muted { color: var(--muted); }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--blue); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { background: var(--panel); color: var(--ink); }
.site-nav a[aria-current] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 6px 6px 0 0; }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row a { color: var(--muted); margin-right: 16px; }

/* Page structure */
main { padding-top: 40px; }
.page-head { margin-bottom: 32px; max-width: var(--measure); }
.eyebrow { color: var(--blue); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.eyebrow a { text-decoration: none; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); }
.section { margin-top: 48px; }
.section > h2, .section-box > h2, .section-head h2 { padding-bottom: 10px; border-bottom: 2px solid var(--blue); display: inline-block; margin-bottom: 20px; }
.section p, .section li, .section-box p, .section-box li { max-width: var(--measure); }
.section-head { margin-bottom: 20px; }
.sub { margin-top: 40px; color: var(--ink-2); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { min-width: 180px; }
.facts dt { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.hero-portrait img { border-radius: 50%; width: 200px; height: 200px; object-fit: cover; border: 4px solid var(--blue-tint); }
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stats span { color: var(--muted); font-size: 0.9rem; }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.card-cover { display: block; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.card-cover img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-tag { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 4px; }
.card h3 { margin-bottom: 6px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.card p { color: var(--ink-2); font-size: 0.95rem; }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.linklist li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.linklist a { font-weight: 600; text-decoration: none; }
.linklist span { color: var(--ink-2); font-size: 0.95rem; }
.linklist.compact { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 32px; }
.linklist.compact li { grid-template-columns: 170px 1fr; }

/* Buttons */
.button, a.button { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 6px; border: 2px solid var(--blue); font-size: 0.95rem; margin: 4px 8px 4px 0; }
.button:hover, a.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button-outline, a.button-outline { background: transparent; color: var(--blue); }
.button-outline:hover, a.button-outline:hover { background: var(--blue-tint); color: var(--blue-dark); }

/* Blocks */
.figure { margin: 28px 0; }
.figure img, .shot { display: block; border-radius: 8px; border: 1px solid var(--line); }
.figure-narrow img, .shot-narrow { max-width: 560px; }
.figure figcaption, .shot-figure figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }
pre.code-block { background: #16171a; color: #e8e8e8; border-radius: 8px; padding: 16px 20px; font-size: 0.85rem; line-height: 1.5; overflow-x: auto; }
pre.code-block code { background: none; color: inherit; padding: 0; font-size: inherit; }
.rich-text ul, .rich-text ol { padding-left: 1.3em; }

/* Legacy markup imported from dixon.cx: the old template's classes, re-skinned. */
.section-box { margin-top: 48px; }
.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.row > [class*="col-"] { grid-column: span 12; }
@media (min-width: 720px) {
	.row > .col-md-6 { grid-column: span 6; }
	.row > .col-lg-6 { grid-column: span 6; }
	.row > .col-6 { grid-column: span 6; }
	.row > .col-lg-4 { grid-column: span 4; }
}
@media (min-width: 1000px) {
	.row > .col-xl-4 { grid-column: span 4; }
	.row > .col-xl-8 { grid-column: span 8; }
	.row > .col-xl-6 { grid-column: span 6; }
	.row > .col-md-10, .row > .col-xl-8.col-md-10 { grid-column: span 12; }
}
.title-heading { color: var(--blue); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 8px; }
.mono-heading { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
h2.mono-heading { color: var(--ink); font-size: 1.1rem; letter-spacing: 0.04em; border-bottom: 2px solid var(--blue); display: inline-block; padding-bottom: 6px; margin-bottom: 16px; }
h3.h5, .h5 { font-size: 1.15rem; } .h1 { font-size: 1.6rem; } .h6 { font-size: 1rem; }
.fw-medium { font-weight: 600; } .fw-normal { font-weight: 400; } .fw-semi-bold { font-weight: 600; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 20px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 14px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 40px; } .m-0 { margin: 0; }
.ms-2 { margin-left: 0; } .ps-2 { padding-left: 8px; } .pt-3 { padding-top: 12px; }
.text-end { text-align: right; } .d-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .d-inline-block { display: inline-block; } .align-items-center { align-items: center; }
.link-decoration { color: var(--blue); }
.list-inline-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.list-inline-pills li { background: var(--blue-tint); color: var(--blue-dark); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; font-weight: 500; }
.list-circle { padding-left: 1.2em; }
.qual-list, .services-list { list-style: none; padding: 0; margin: 0; }
.qual-item, .services-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.qual-item:last-child, .services-item:last-child { border-bottom: 0; }
.qual-item h5, .services-item h6 { margin-bottom: 4px; }
.qual-badge img { max-width: 160px; float: right; margin: 0 0 12px 20px; }
.resume-date { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.services-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.services-title i { display: none; }
.services-title h6 { margin: 0; font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--ink); font-family: var(--font); }
.example-grid { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 0.95rem; }
.example-grid dt { font-weight: 600; margin: 0; } .example-grid dd { margin: 0; }
.shot-figure { margin: 24px 0; }
.stroke-text { color: var(--blue); }
.display-4 { font-size: 2.4rem; line-height: 1; }
.hero-avatar img { border-radius: 50%; width: 180px; height: 180px; object-fit: cover; }
.typer, .cursor { display: none; } .typer-static { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }
.line-height-100 { line-height: 1; }
.counter { font-weight: 800; }
.resume-item, .timeline-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.portfolio-caption h3 { font-size: 1.2rem; }
@media (max-width: 720px) {
	body { font-size: 16px; }
	.hero { grid-template-columns: 1fr; }
	.hero-portrait { order: -1; }
	.linklist li, .linklist.compact li { grid-template-columns: 1fr; gap: 4px; }
	.facts { gap: 8px 24px; }
	main { padding-top: 24px; }
}
