/* dixon.cx: navy identity panel, white content, Bristol blue accent. */
:root {
	--ink: #111318;
	--ink-2: #3a3f47;
	--muted: #646b78;
	--line: #e1e4e9;
	--ground: #f4f6f9;
	--panel: #fff;
	--navy: #0f1f3d;
	--navy-2: #16305e;
	--blue: #1b4192;
	--blue-dark: #12306e;
	--blue-tint: #e9eef8;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--display: "Poppins", "Inter", system-ui, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--measure: 68ch;
	--side-home: 440px;
	--side-inner: 230px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); 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.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3rem); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4, h5, h6 { font-size: 1.05rem; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; }
h2.display { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 0.6em; }
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(--blue-tint); 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; background: #fff; }
strong { font-weight: 600; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
.muted { color: var(--muted); }

/* Shell: sidebar plus content */
.shell { display: grid; grid-template-columns: var(--side-inner) 1fr; min-height: 100vh; }
body.home .shell { grid-template-columns: var(--side-home) 1fr; }
.side { min-width: 0; background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; position: sticky; top: 0; height: 100vh; overflow: auto; padding: 36px 28px; display: flex; flex-direction: column; }
.content { padding: 56px clamp(24px, 5vw, 80px) 40px; max-width: 1100px; width: 100%; min-width: 0; counter-reset: sec; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; color: #fff; text-decoration: none; letter-spacing: -0.02em; margin-bottom: 36px; }
.brand span { color: #9db4e8; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { color: rgba(255,255,255,0.78); text-decoration: none; padding: 9px 12px; border-radius: 6px; font-weight: 500; font-size: 0.95rem; border-left: 2px solid transparent; }
.side-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.side-nav a[aria-current] { color: #fff; background: rgba(255,255,255,0.1); border-left-color: #9db4e8; }
.side-foot { margin-top: auto; color: rgba(255,255,255,0.55); font-size: 0.8rem; line-height: 1.5; }

/* Home identity panel */
.identity { margin: auto 0; text-align: center; }
.portrait { width: 200px; height: 200px; border-radius: 28px; object-fit: cover; border: 5px solid var(--blue); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.name { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.6rem); text-transform: uppercase; line-height: 0.95; letter-spacing: -0.03em; margin: 28px 0 10px; color: #fff; }
.role { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: #9db4e8; margin-bottom: 28px; }
.social { list-style: none; padding: 0; margin: 0 0 36px; display: flex; justify-content: center; gap: 10px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: rgba(255,255,255,0.08); color: #fff; }
.social a:hover { background: var(--blue); }
.identity .side-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; }
.identity .side-nav a { border-left: 0; padding: 7px 12px; font-size: 0.9rem; }
.identity .side-nav a[aria-current] { box-shadow: inset 0 -2px 0 #9db4e8; background: none; }

/* Sections and eyebrows */
.section { margin-bottom: 72px; counter-increment: sec; }
.section:last-of-type { margin-bottom: 0; }
.eyebrow { position: relative; padding-left: 44px; color: var(--blue); font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; margin-bottom: 18px; }
.eyebrow::after { content: ""; position: absolute; left: 0; top: 50%; width: 30px; height: 2px; background: var(--blue); }
.eyebrow::before { content: counter(sec, decimal-leading-zero) "  "; }
.page-head .eyebrow::before { content: none; }
.page-head .eyebrow { padding-left: 44px; }
.eyebrow a { text-decoration: none; }
.page-head { margin-bottom: 40px; max-width: var(--measure); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); }
.section p, .section li, .section-box p, .section-box li { max-width: var(--measure); }
.stats { list-style: none; padding: 0; margin: 32px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.stats strong { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stats span { color: var(--muted); font-size: 0.85rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 24px 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.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }

/* Numbered lists (also worth a look, extensions) */
.numbered { list-style: none; padding: 0; margin: 0; counter-reset: item; }
.numbered li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); counter-increment: item; }
.numbered li::before { content: counter(item, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: #c5cddb; }
.numbered li > h3, .numbered li > p { grid-column: 2; }
.numbered h3 { margin: 0 0 4px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0; font-size: 1.05rem; }
.numbered h3 a { color: var(--ink); text-decoration: none; }
.numbered h3 a:hover { color: var(--blue); }
.numbered p { color: var(--ink-2); font-size: 0.95rem; }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card-cover { display: block; border-radius: 8px; overflow: hidden; background: var(--ground); margin-bottom: 14px; }
.card-cover img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; }
.card-tag { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin: 0 0 4px; }
.card h3 { margin-bottom: 6px; font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0; }
.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.93rem; }

/* Buttons */
.button, a.button { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 20px; border-radius: 8px; border: 2px solid var(--blue); font-size: 0.93rem; 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); background: #fff; }
.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: var(--navy); color: #e8ecf4; 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; }
.site-footer { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.site-footer a { color: var(--muted); margin-left: 12px; }

@media (max-width: 900px) {
	.shell, body.home .shell { grid-template-columns: 1fr; }
	.side { position: static; height: auto; padding: 20px 20px 12px; }
	.brand { margin-bottom: 14px; font-size: 1.2rem; }
	.brand br { display: none; }
	.side-nav { flex-direction: row; flex-wrap: wrap; gap: 2px; }
	.side-nav a { border-left: 0; padding: 7px 10px; font-size: 0.9rem; }
	.side-nav a[aria-current] { box-shadow: inset 0 -2px 0 #9db4e8; background: none; }
	.side-foot { display: none; }
	.identity { display: grid; grid-template-columns: 96px 1fr; gap: 16px 20px; text-align: left; align-items: center; }
	.portrait { width: 96px; height: 96px; border-radius: 16px; border-width: 3px; }
	.name { font-size: 1.9rem; margin: 0; }
	.name br { display: none; }
	.role { margin-bottom: 0; grid-column: 1 / -1; letter-spacing: 0.12em; }
	.social { grid-column: 1 / -1; justify-content: flex-start; margin: 4px 0 8px; }
	.identity .side-nav { grid-column: 1 / -1; justify-content: flex-start; }
	.content { padding: 32px 20px 24px; }
	body { font-size: 16px; }
	.section { margin-bottom: 48px; }
	.stats { gap: 24px; }
	.numbered li { grid-template-columns: 44px 1fr; }
}
/* Legacy markup imported from dixon.cx: the old template's classes, re-skinned. */
.section-box { margin-top: 56px; }
.section-box:has(> .title-heading), .section-box:has(> :is(h2, h6).mono-heading:first-child) { counter-increment: sec; }
.section-box > .title-heading::before, .section-box > :is(h2, h6).mono-heading:first-child::before { content: counter(sec, decimal-leading-zero) "  "; }
.section-box > .title-heading, .section-box > :is(h2, h6).mono-heading:first-child { position: relative; padding-left: 44px; }
.section-box > .title-heading::after, .section-box > :is(h2, h6).mono-heading:first-child::after { content: ""; position: absolute; left: 0; top: 0.55em; width: 30px; height: 2px; background: var(--blue); }
.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.74rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; margin-bottom: 18px; }
.mono-heading { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
h2.mono-heading { color: var(--blue); font-size: 0.74rem; letter-spacing: 0.2em; margin-bottom: 18px; }
h3.h5, .h5 { font-size: 1.15rem; } .h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 0.6em; } .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; }
}

/* Blog */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.post-list h2 { font-size: 1.25rem; margin: 4px 0 6px; }
.post-list h2 a { color: var(--ink); text-decoration: none; } .post-list h2 a:hover { color: var(--blue); }
.post-list p { color: var(--ink-2); font-size: 0.95rem; }
.post-list time { margin-left: 10px; color: var(--muted); }
.pager { display: flex; gap: 20px; align-items: center; margin-top: 32px; color: var(--muted); }
.post-body { max-width: var(--measure); }
.post-body h2 { margin-top: 1.6em; }
.post-body pre { background: var(--navy); color: #e8ecf4; border-radius: 8px; padding: 16px 20px; font-size: 0.85rem; line-height: 1.5; overflow-x: auto; }
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body img { border-radius: 8px; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.post-body td, .post-body th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
/* Ported guides and docs rendered in the shell */
.sections-wrapper .contents ol, .sections-wrapper ol.mb-0 { padding-left: 1.3em; }
.sections-wrapper .table-wrap { overflow-x: auto; }
.sections-wrapper table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.sections-wrapper td, .sections-wrapper th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.sections-wrapper pre { background: var(--navy); color: #e8ecf4; border-radius: 8px; padding: 16px 20px; font-size: 0.85rem; line-height: 1.5; overflow-x: auto; }
.sections-wrapper pre code { background: none; color: inherit; padding: 0; }
.lead-ish { font-size: 1.15rem; color: var(--ink-2); }

/* Blog listing rows, the homepage latest block, and the side-quests catalogue share one list style. */
.post-list, .services-list { list-style: none; padding: 0; margin: 0; }
.post-list > li, .services-item { padding: 20px 0; border-top: 1px solid var(--line); max-width: none; }
.post-list h2, .post-list h3, .services-title h2 { font-size: 1.15rem; margin: 0 0 6px; font-family: var(--font); text-transform: none; letter-spacing: 0; font-weight: 600; }
.post-list h2 a, .post-list h3 a, .services-title h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover, .services-title h2 a:hover { color: var(--blue); }
.post-list p, .services-item p { color: var(--ink-2); font-size: 0.95rem; max-width: var(--measure); }
.post-list time, .post-meta { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); }
.post-list.compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.post-list.compact > li { padding: 12px 0; }
.post-list.compact h3 { font-size: 1rem; margin: 0; }
.pager { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.services-title h2.mono-heading { color: var(--ink); font-family: var(--font); font-size: 1.15rem; letter-spacing: 0; text-transform: none; padding-left: 0; }
.services-title h2.mono-heading::before, .services-title h2.mono-heading::after { content: none; }

/* Article and long-form prose */
.post-body, article.section-box { max-width: var(--measure); }
.sections-wrapper h2:not(.mono-heading):not(.h1):not(.display) { font-size: 1.35rem; margin-top: 1.6em; }
.sections-wrapper h3:not(.h5) { font-size: 1.1rem; margin-top: 1.3em; }
.sections-wrapper pre, .post-body pre { background: var(--navy); color: #e8ecf4; border-radius: 8px; padding: 16px 20px; font-size: 0.85rem; line-height: 1.5; overflow-x: auto; max-width: none; }
.sections-wrapper pre code, .post-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.sections-wrapper blockquote { border-left: 3px solid var(--blue); margin: 1em 0; padding: 0.2em 1em; color: var(--ink-2); }
.sections-wrapper .table-wrap { overflow-x: auto; }
.sections-wrapper table { border-collapse: collapse; width: 100%; font-size: 0.93rem; margin-bottom: 1em; }
.sections-wrapper td, .sections-wrapper th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.sections-wrapper th { font-weight: 600; color: var(--ink); }
.sections-wrapper img { border-radius: 8px; }
.sections-wrapper .contents ol, .sections-wrapper ol.mb-0 { padding-left: 1.3em; }
.lead-ish { font-size: 1.15rem; color: var(--ink-2); }
figure.media-hero img { width: 100%; }

/* Forms (contact page) */
.contact-form input, .contact-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfd6e1; border-radius: 8px; background: #fff; color: var(--ink); margin-bottom: 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.contact-form button, button.button { font: inherit; cursor: pointer; }
.phone-reveal { font: inherit; background: none; border: 0; color: var(--blue); text-decoration: underline; padding: 0; cursor: pointer; }
.phone-reveal-note, .hint { font-size: 0.85rem; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.list-inline-pills li { max-width: none; }

/* Career timeline and stat rows carried over from the old home page */
.resume-wrapper, .resume-box { max-width: none; }
.resume-box { padding: 16px 0; border-top: 1px solid var(--line); }
.resume-box h5 { font-size: 1.05rem; margin-bottom: 4px; }
.resume-box p { color: var(--ink-2); font-size: 0.95rem; }
.resume-date { display: inline-block; margin-bottom: 4px; }
.stroke-text { color: var(--blue); }
.counter { font-family: var(--display); font-weight: 800; }
.font-family-mono { font-family: var(--display); }
.h4, h4.line-height-100 { font-size: 1.2rem; }
.icon-xl i, .services-title i { display: none; }
.link-decoration.mono-heading { color: var(--blue); }
