/* Gruvbox-inspired palette; system fonts, no external assets or JavaScript. */
:root {
  color-scheme:dark;
  --page-top:44px;
  --bg:#1d2021;
  --surface:#282828;
  --text:#ebdbb2;
  --muted:#bdae93;
  --dim:#a89984;
  --line:#504945;
  --orange:#fe8019;
  --green:#b8bb26;
  --mono:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  --sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
* {
  box-sizing:border-box
}
html {
  background:var(--bg);
  scroll-padding-top:2rem
}
body {
  margin:0;
  color:var(--text);
  font-family:var(--mono);
  font-size:15px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased
}
::selection {
  background:#665c54;
  color:#fbf1c7
}
a {
  color:inherit;
  text-underline-offset:.25em;
  text-decoration-thickness:1px
}
a:hover {
  color:var(--orange)
}
a:focus-visible,summary:focus-visible {
  outline:2px solid var(--orange);
  outline-offset:6px;
  border-radius:2px
}
.shell {
  max-width:1120px;
  padding:0 40px;
  margin:28px auto;
  background:var(--bg);
  border:1px solid var(--line);
  box-shadow:0 18px 60px #0003
}
.site-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:86px;
  border-bottom:1px solid var(--line)
}
.wordmark {
  font:700 21px var(--mono);
  letter-spacing:-1px;
  text-decoration:none;
  white-space:nowrap
}
.wordmark>span:first-child {
  color:var(--dim);
  font-weight:400;
  margin-right:5px
}
.cursor,.accent {
  color:var(--orange)
}
.site-header .main-nav {
  display:flex;
  flex-wrap:wrap;
  max-width:100%;
  gap:30px;
  font:14px var(--mono)
}
.site-header .main-nav a {
  text-decoration:none;
  padding:10px 0
}
.site-header .main-nav a[aria-current] {
  color:var(--orange);
  text-decoration:underline;
  text-underline-offset:8px
}
.site-header .main-nav a span {
  color:var(--dim)
}
.hero {
  position:relative;
  padding:var(--page-top) 0 64px
}
.eyebrow {
  font:12px/1.8 var(--mono);
  letter-spacing:.075em;
  text-transform:uppercase;
  color:var(--muted)
}
/* The wordmark is the root of the current page path. */
.breadcrumbs {
  font:13px/1.8 var(--mono);
  color:var(--muted);
  min-width:0;
  flex:1
}
.breadcrumbs ol {
  display:flex;
  align-items:center;
  list-style:none;
  padding:0;
  margin:0;
  min-width:0
}
.breadcrumbs li {
  display:flex;
  align-items:center;
  min-width:0;
  flex-shrink:0
}
.breadcrumbs li+li::before {
  content:"/";
  color:var(--dim);
  margin:0 9px
}
.breadcrumbs .current-crumb {
  flex-shrink:1;
  overflow:hidden
}
.crumb-label {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.breadcrumbs a {
  text-decoration:none
}
.breadcrumbs a:hover {
  color:var(--orange)
}
.breadcrumbs .cursor {
  font-size:21px;
  font-weight:700;
  flex-shrink:0
}
.site-header .main-nav {
  flex-shrink:0
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0
}
h1,h2,h3,p {
  margin-top:0
}
.hero h1 {
  font-size:clamp(40px,6vw,68px);
  line-height:1.12;
  letter-spacing:-.06em;
  font-weight:600;
  margin:24px 0
}
.role {
  font:16px/1.6 var(--mono);
  color:var(--green);
  margin-bottom:24px
}
.intro {
  font-size:16px;
  color:var(--muted);
  line-height:1.8;
  max-width:650px
}
.hero .intro {
  max-width:780px;
  margin-bottom:24px
}
.text-link {
  font:14px/1.8 var(--mono);
  text-decoration:none;
  border-bottom:1px solid var(--line);
  padding-bottom:5px
}
.text-link span {
  color:var(--orange);
  margin-left:10px
}
.section-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:20px;
  padding:0 0 20px;
  border-bottom:1px dashed var(--line)
}
.section-heading h2 {
  font-size:20px;
  letter-spacing:-.03em;
  margin:0;
  font-weight:550
}
.section-heading h2.command-heading {
  font:14px/1.8 var(--mono);
  letter-spacing:normal
}
.section-heading>a {
  font:12px var(--mono);
  text-decoration:none;
  white-space:nowrap
}
.post-row {
  display:grid;
  grid-template-columns:165px minmax(0,1fr);
  gap:32px;
  padding:30px 0 34px;
  border-bottom:1px solid var(--line)
}
.post-meta {
  font:12px/1.7 var(--mono);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  color:var(--dim)
}
.preview-label {
  color:var(--green)
}
.post-row h3 {
  font-size:19px;
  line-height:1.5;
  letter-spacing:-.025em;
  margin-bottom:12px;
  font-weight:550
}
.post-row h3 a {
  text-decoration:none
}
.post-row h3 span {
  color:var(--orange);
  font-size:19px;
  white-space:nowrap
}
.post-row p {
  color:var(--muted);
  font-size:14px;
  margin-bottom:16px;
  max-width:610px
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  font:11px/1.7 var(--mono);
  color:var(--dim)
}
.tags span::before {
  content:"#";
  color:var(--green);
  margin-right:3px
}
.colophon {
  display:grid;
  grid-template-columns:165px minmax(0,1fr);
  gap:32px;
  padding:44px 0 70px
}
.colophon .eyebrow {
  font-size:10px;
  margin-top:4px
}
.colophon p {
  color:var(--dim);
  font-size:15px;
  max-width:580px;
  margin:0
}
.page-heading {
  padding:var(--page-top) 0 32px
}
.page-heading h1 {
  font-size:clamp(30px,4.5vw,46px);
  line-height:1.13;
  letter-spacing:-.045em;
  font-weight:600;
  margin:24px 0
}
.page-heading .intro p {
  margin:0
}
main {
  min-height:65vh
}
main>section:last-child {
  margin-bottom:65px
}
.article {
  margin:0 0 70px
}
.article>.prose,.article>.toc,.article>.article-end {
  max-width:none
}
.article .intro {
  max-width:none
}
.article .page-heading {
  padding-bottom:20px
}
.article h1 {
  font-size:clamp(28px,4vw,42px)
}
.legal-nav {
  display:flex;
  flex-wrap:wrap;
  gap:12px 28px;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  font:12px/1.8 var(--mono)
}
.legal-nav a {
  text-decoration:none
}
.legal-nav a span {
  color:var(--orange);
  margin-right:6px
}
.legal-contact {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  padding:28px;
  margin:24px 0;
  background:var(--surface);
  border:1px solid var(--line)
}
.prose .legal-contact h3 {
  margin:0 0 12px;
  font:12px/1.8 var(--mono);
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted)
}
.prose .legal-contact h3::before {
  content:none
}
.legal-contact address {
  font-style:normal
}
.prose .legal-contact p:last-child {
  margin-bottom:0
}
.legal-muted {
  color:var(--muted);
  font-size:13px
}
@media(max-width:600px) {
  .legal-contact {
    grid-template-columns:1fr;
    padding:20px;
    gap:24px
  }
}
.prose .certifications {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  padding:0;
  margin:24px 0 40px;
  list-style:none
}
.prose .certification {
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:28px 20px;
  margin:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-top:2px solid var(--green);
  text-align:center
}
.prose .certification img {
  display:block;
  width:144px;
  height:144px;
  object-fit:contain;
  margin:0 0 20px
}
.certification-copy {
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:center
}
.prose .certification h3 {
  margin:0 0 8px;
  font:600 22px/1.3 var(--mono);
  color:var(--text)
}
.prose .certification h3::before {
  content:none
}
.prose .certification-name {
  margin:0 0 20px;
  color:var(--muted);
  font:14px/1.6 var(--sans)
}
.prose .certification a {
  margin-top:auto;
  font-size:11px
}
@media(max-width:700px) {
  .prose .certifications {
    grid-template-columns:1fr
  }
  .prose .certification {
    flex-direction:row;
    gap:20px;
    padding:20px;
    text-align:left
  }
  .prose .certification img {
    width:96px;
    height:96px;
    flex-shrink:0;
    margin:0
  }
  .certification-copy {
    align-items:flex-start
  }
  .prose .certification-name {
    margin-bottom:12px
  }
}
.article-meta {
  font:12px/1.8 var(--mono);
  color:var(--dim);
  margin-top:22px
}
.article-meta span {
  color:var(--orange);
  margin:0 12px
}
.preview-notice {
  background:var(--surface);
  border-left:2px solid var(--green);
  padding:12px 16px;
  font:12px/1.8 var(--mono);
  color:var(--muted);
  margin-top:25px
}
.toc {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:18px 0;
  margin:10px 0 36px;
  font:13px/1.9 var(--mono)
}
.toc summary {
  cursor:pointer;
  color:var(--green)
}
.toc nav>ul {
  padding-left:20px;
  margin-bottom:0
}
.toc li {
  padding:3px 0
}
.toc a {
  text-decoration:none;
  color:var(--muted)
}
.toc a:hover {
  color:var(--orange)
}
.prose {
  font-size:15px;
  line-height:1.9;
  overflow-wrap:anywhere
}
.prose p,.prose ul,.prose ol {
  margin-bottom:24px
}
.prose h2 {
  font-size:24px;
  line-height:1.3;
  letter-spacing:-.025em;
  margin:44px 0 20px;
  font-weight:600
}
.prose h3 {
  font-size:19px;
  margin:30px 0 15px
}
.prose li {
  padding-left:5px;
  margin-bottom:8px
}
.prose a {
  color:var(--green)
}
.prose strong {
  color:#fbf1c7;
  font-weight:650
}
.prose blockquote {
  margin:30px 0;
  padding:12px 24px;
  border-left:2px solid var(--orange);
  background:var(--surface);
  color:var(--muted)
}
.prose blockquote p:last-child {
  margin-bottom:0
}
.prose code {
  font-family:var(--mono);
  font-size:.83em;
  background:var(--surface);
  padding:3px 5px;
  border-radius:3px;
  color:#fabd2f
}
.prose pre {
  max-width:100%;
  overflow-x:auto;
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:0;
  font-size:14px;
  line-height:1.75;
  tab-size:2
}
.prose pre code {
  padding:0;
  background:transparent;
  font-size:inherit;
  color:inherit;
  overflow-wrap:normal
}
.prose table {
  display:block;
  overflow-x:auto;
  border-collapse:collapse;
  max-width:100%;
  font-size:15px;
  margin:28px 0
}
.prose th,.prose td {
  padding:12px 16px;
  border:1px solid var(--line);
  text-align:left;
  min-width:160px
}
.prose th {
  background:var(--surface);
  font-weight:550;
  color:var(--green)
}
.prose hr {
  border:0;
  border-top:1px solid var(--line);
  margin:35px 0
}
.prose img {
  max-width:100%;
  height:auto
}
.article-end {
  margin-top:45px;
  border-top:1px solid var(--line);
  padding-top:25px;
  display:flex;
  justify-content:space-between;
  font:13px var(--mono)
}
.article-end>span {
  color:var(--orange)
}
.empty {
  padding:30px 0;
  color:var(--muted)
}
.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  padding:10px 20px;
  background:var(--text);
  color:var(--bg);
  z-index:10
}
.skip-link:focus {
  top:10px
}
@media(max-width:900px) {
  :root {
    --page-top:38px
  }
  .shell {
    padding:0 28px;
    margin:16px
  }
}
@media(max-width:600px) {
  :root {
    --page-top:30px
  }
  body {
    font-size:14px
  }
  .shell {
    padding:0 18px;
    margin:0;
    border:0;
    box-shadow:none
  }
  .site-header {
    min-height:100px;
    flex-wrap:wrap;
    gap:12px;
    padding:20px 0
  }
  .breadcrumbs {
    flex-basis:100%;
    width:100%
  }
  .wordmark {
    font-size:19px
  }
  .site-header .main-nav {
    gap:22px;
    font-size:12px
  }
  .hero {
    padding:var(--page-top) 0 48px
  }
  .eyebrow {
    font-size:10px
  }
  .hero h1 {
    font-size:44px
  }
  .role {
    font-size:14px
  }
  .intro {
    font-size:15px
  }
  .section-heading h2 {
    font-size:18px
  }
  .post-row {
    grid-template-columns:1fr;
    gap:14px;
    padding:24px 0
  }
  .post-meta {
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px 16px;
    font-size:11px
  }
  .post-row h3 {
    font-size:18px
  }
  .colophon {
    grid-template-columns:1fr;
    gap:10px;
    padding:32px 0 45px
  }
  .prose {
    font-size:14px
  }
  .prose h2 {
    font-size:21px
  }
  .prose pre {
    padding:18px 14px;
    font-size:12px
  }
  .prose blockquote {
    padding:12px 18px
  }
  .article {
    margin-bottom:45px
  }
  .section-heading>a {
    font-size:11px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
}
/* Terminal furniture surrounds ordinary, accessible document navigation. */
.command-line {
  font:13px/1.8 var(--mono);
  color:var(--text);
  margin:0 0 22px;
  overflow-wrap:anywhere
}
.prompt {
  color:var(--green);
  margin-right:12px;
  font-weight:700
}
.command-flag {
  color:#d3869b
}
.command-path {
  color:#83a598
}
.writing>.section-heading {
  border-top:1px solid var(--line);
  padding-top:28px
}
.main-nav a::before {
  content:"[";
  color:var(--dim);
  margin-right:5px
}
.main-nav a::after {
  content:"]";
  color:var(--dim);
  margin-left:5px
}
.site-header .main-nav a[aria-current] {
  text-decoration:none
}
.site-header .main-nav a[aria-current]::before,.site-header .main-nav a[aria-current]::after {
  color:var(--orange)
}
.post-row {
  border-bottom-style:dashed
}
.post-row h3::before {
  content:"↳ ";
  color:var(--green);
  font-size:.85em
}
.prose h2::before {
  content:"## ";
  color:var(--orange);
  font-size:.8em
}
.prose h3::before {
  content:"### ";
  color:var(--orange);
  font-size:.8em
}
.prose blockquote {
  border-left-style:solid;
  background:transparent
}
.toc {
  background:var(--surface);
  padding:16px 20px;
  border:1px solid var(--line)
}
.terminal-status {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:24px -40px 0;
  padding:7px 20px;
  background:var(--surface);
  border-top:1px solid var(--line);
  font:11px/1.7 var(--mono);
  color:var(--muted)
}
.status-links {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:flex-end
}
.status-links a {
  padding:4px 0;
  white-space:nowrap;
  text-decoration:none
}
@media(max-width:900px) {
  .terminal-status {
    margin-left:-28px;
    margin-right:-28px
  }
  .site-header .main-nav {
    gap:16px
  }
}
@media(max-width:600px) {
  .terminal-status {
    margin-left:-18px;
    margin-right:-18px;
    padding:7px 18px;
    font-size:11px
  }
  .command-line {
    font-size:12px
  }
  .colophon p {
    font-size:13px
  }
  .post-row p {
    font-size:13px
  }
  .prose table {
    font-size:12px
  }
  .prose th,.prose td {
    min-width:130px;
    padding:10px
  }
}
.pagination {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  padding:28px 0;
  font:12px var(--mono)
}
.prose pre:focus-visible {
  outline:2px solid var(--orange);
  outline-offset:4px
}

/* Photography keeps each image's full composition in a shared preview frame. */
.gallery-page {
  margin-bottom:70px
}
.gallery-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:40px 24px
}
.gallery-photo {
  min-width:0;
  margin:0
}
.gallery-image {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  aspect-ratio:4/3;
  padding:16px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  cursor:zoom-in
}
.gallery-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain
}
.gallery-image:hover {
  border-color:var(--orange)
}
.gallery-image:focus-visible,
.gallery-lightbox button:focus-visible {
  outline:2px solid var(--orange);
  outline-offset:5px
}
.gallery-zoom {
  position:absolute;
  right:10px;
  bottom:10px;
  padding:2px 8px;
  background:var(--bg);
  color:var(--orange);
  font:18px var(--mono)
}
.gallery-photo figcaption {
  padding:16px 0 0
}
.gallery-photo h2 {
  margin:0 0 8px;
  font-size:18px;
  line-height:1.5
}
.gallery-photo p,
.gallery-lightbox>p {
  margin:0 0 12px;
  color:var(--muted);
  font:14px/1.7 var(--sans)
}
.gallery-original {
  font-size:11px;
  color:var(--green)
}
.gallery-lightbox {
  width:min(1200px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:20px;
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--text);
  overflow:auto
}
.gallery-lightbox::backdrop {
  background:rgb(0 0 0 / 85%)
}
.gallery-lightbox-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px
}
.gallery-lightbox h2 {
  margin:0;
  font-size:16px;
  line-height:1.5
}
.gallery-lightbox button {
  flex-shrink:0;
  padding:8px 12px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  font:12px var(--mono);
  cursor:pointer
}
.gallery-lightbox img {
  display:block;
  width:100%;
  height:auto;
  max-height:calc(100dvh - 180px);
  object-fit:contain
}
.gallery-lightbox>p {
  margin:16px 0 0
}
.gallery-empty {
  margin:8px 0 48px;
  padding:40px;
  border:1px dashed var(--line);
  background:var(--surface)
}
.gallery-empty h2 {
  font-size:22px;
  line-height:1.5
}
.gallery-empty>p:last-child {
  margin-bottom:0;
  color:var(--muted)
}
@media(max-width:700px) {
  .gallery-grid {
    grid-template-columns:1fr;
    gap:32px
  }
  .gallery-empty {
    padding:24px
  }
  .gallery-lightbox {
    padding:12px
  }
}
/* CV: dates alongside roles, with a compact document layout for printing. */
.cv-page .page-heading h1 {
  max-width:850px;
  margin:16px 0
}
.cv-page .cv-role-title {
  color:var(--green);
  margin:0 0 20px
}
.cv-contact {
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
  list-style:none;
  padding:0;
  margin:0;
  font-size:12px;
  color:var(--muted)
}
.cv-tools {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:16px 0;
  margin-bottom:28px
}
.cv-tools nav {
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
  font-size:12px
}
.cv-tools p {
  margin:12px 0 0;
  font:12px/1.6 var(--sans);
  color:var(--muted)
}
.cv-entry {
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  gap:28px;
  padding:26px 0;
  border-bottom:1px dashed var(--line)
}
.prose .cv-period {
  margin:3px 0 0;
  font:12px/1.8 var(--mono);
  color:var(--dim)
}
.cv-period time {
  white-space:nowrap
}
.cv-present {
  color:var(--green)
}
.prose .cv-entry h3 {
  margin:0 0 8px;
  font-size:18px;
  line-height:1.5
}
.prose .cv-entry h3::before {
  content:none
}
.prose .cv-employer {
  margin:0 0 18px;
  font-size:13px;
  color:var(--green)
}
.cv-employer span {
  color:var(--dim)
}
.cv-details {
  font-size:14px
}
.cv-details ul {
  padding-left:20px
}
.cv-details>:last-child,
.cv-details li:last-child {
  margin-bottom:0
}
@media(max-width:700px) {
  .cv-entry {
    grid-template-columns:1fr;
    gap:10px;
    padding:22px 0
  }
  .cv-page .page-heading h1 {
    font-size:clamp(28px,7vw,40px)
  }
}
@media print {
  @page {
    size:A4;
    margin:14mm 16mm
  }
  html {
    background:white;
    color-scheme:light
  }
  body.cv-document {
    --text:#111;
    --muted:#444;
    --dim:#444;
    --green:#111;
    --orange:#111;
    --line:#ccc;
    background:white;
    color:#111;
    font:10pt/1.35 var(--sans)
  }
  .cv-document .site-header,
  .cv-document .terminal-status,
  .cv-document .skip-link,
  .cv-page .command-line,
  .cv-tools {
    display:none
  }
  .cv-document .shell {
    max-width:none;
    margin:0;
    padding:0;
    border:0;
    background:white;
    box-shadow:none
  }
  .cv-document main {
    min-height:0
  }
  .cv-page {
    margin:0
  }
  .cv-page .page-heading {
    padding:0 0 12pt
  }
  .cv-page .eyebrow {
    font-size:8pt;
    margin:0
  }
  .cv-page .page-heading h1 {
    font-size:24pt;
    margin:6pt 0
  }
  .cv-page .cv-role-title {
    font-size:12pt;
    margin:0 0 8pt
  }
  .cv-contact {
    gap:6pt 16pt;
    font-size:9pt
  }
  .cv-page .prose,
  .cv-page .cv-details {
    font:10pt/1.35 var(--sans)
  }
  .cv-page .prose p,
  .cv-page .prose ul {
    margin:0 0 6pt
  }
  .cv-page .prose h2 {
    margin:12pt 0 6pt;
    font-size:14pt;
    break-after:avoid
  }
  .cv-page .prose h2::before,
  .cv-page .prose h3::before {
    content:none
  }
  .cv-page .prose h3 {
    font-size:11pt;
    margin:10pt 0 6pt;
    break-after:avoid
  }
  .cv-entry {
    grid-template-columns:30mm minmax(0,1fr);
    gap:6mm;
    padding:8pt 0;
    break-inside:avoid
  }
  .cv-page .cv-period {
    font:8.5pt/1.5 var(--sans)
  }
  .cv-page .cv-entry h3 {
    font-size:11pt;
    margin:0 0 3pt
  }
  .cv-page .cv-employer {
    font-size:9pt;
    margin:0 0 6pt
  }
  .cv-page .prose li {
    margin-bottom:3pt
  }
  .cv-page .prose strong,
  .cv-page a {
    color:#111
  }
  .cv-page a {
    text-decoration:none
  }
  .cv-page p,
  .cv-page li {
    orphans:3;
    widows:3
  }
}
