@font-face {
  font-family: "Pixelify Sans";
  src: url("/assets/fonts/pixelify-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #000;
  --surface: #080e09;
  --text: #f5f7f5;
  --muted: #b1c3b4;
  --link: #7cff6b;
  --line: #284b2b;
  --pixel-shadow: #254e20;
  --font: "Pixelify Sans", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  border-top: 4px solid var(--link);
  background: var(--background);
  color: var(--text);
  font: 20px/1.55 var(--font);
}
::selection { color: #000; background: var(--link); }
a { color: var(--link); text-decoration: none; text-underline-offset: 5px; text-decoration-thickness: 2px; }
a:hover { color: #fff; text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}
main:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; text-wrap: balance; }
h1 { color: var(--link); font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 22px; text-shadow: 3px 3px 0 var(--pixel-shadow); }
h2 { color: var(--link); font-size: 1.75rem; margin-bottom: 22px; }
h3 { color: var(--text); font-size: 1.375rem; margin-bottom: 8px; }
p + p { margin-top: 16px; }
ul { margin: 16px 0 0; padding-left: 24px; list-style-type: square; }
li + li { margin-top: 10px; }
li::marker { color: var(--link); }
img, video { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
.shell { width: min(920px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px 16px; background: #000; border: 2px solid var(--link); z-index: 2; }
.skip-link:focus { top: 12px; }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0 24px; border-bottom: 2px solid var(--line); }
.site-name { display: inline-flex; align-items: center; gap: 14px; font-size: 1.375rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.site-name::before { content: ""; width: 10px; height: 10px; background: var(--link); box-shadow: 4px 4px 0 var(--pixel-shadow); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-header nav a { padding: 5px 10px; font-size: 1.125rem; color: var(--text); border: 1px solid transparent; }
.site-header nav a:hover { border-color: var(--link); color: var(--link); text-decoration: none; }
.site-header nav a[aria-current="page"] { color: #000; background: var(--link); border-color: var(--link); box-shadow: 3px 3px 0 var(--pixel-shadow); }
main { padding-top: 52px; padding-bottom: 64px; }

.introduction { display: grid; grid-template-columns: minmax(0, 1fr) 176px; align-items: start; gap: 44px; }
.eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 1rem; letter-spacing: .07em; }
.portrait-frame { margin-top: 5px; }
.portrait { width: 176px; height: 202px; object-fit: cover; object-position: 64% 54%; border: 2px solid var(--link); padding: 5px; background: #000; box-shadow: 6px 6px 0 var(--pixel-shadow); }
.portrait-frame figcaption { margin-top: 18px; color: var(--muted); font-size: .9375rem; }
.profile-links, .project-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.profile-links { margin-top: 25px; gap: 12px; }
.profile-links a { display: inline-block; padding: 6px 17px; border: 2px solid var(--link); box-shadow: 3px 3px 0 var(--pixel-shadow); font-size: 1.125rem; }
.profile-links a:first-child { color: #000; background: var(--link); }
.profile-links a:hover { color: #000; background: #fff; border-color: #fff; text-decoration: none; }
.profile-links a:active, .button:active { transform: translate(2px, 2px); box-shadow: none; }

.content-section { margin-top: 42px; padding-top: 28px; border-top: 1px dashed var(--line); }
.content-section > h2, main > section > h2, .list-heading { display: flex; align-items: baseline; gap: 12px; }
.content-section > h2::before, main > section > h2::before, .list-heading::before { content: ""; flex: 0 0 8px; height: 8px; background: var(--link); box-shadow: 3px 3px 0 var(--pixel-shadow); }
.project-entry { margin-bottom: 28px; border-left: 2px solid var(--line); padding-left: 20px; }
.project-entry:hover { border-left-color: var(--link); }
.project-entry:last-child { margin-bottom: 0; }
.project-entry h2 { font-size: 1.5rem; margin-bottom: 8px; }
.project-entry h3 a { font-weight: 600; }
.project-entry .meta { margin-top: 0; margin-bottom: 10px; }
.project-links { font-size: 1.0625rem; margin-top: 12px; }
.project-links a { text-decoration: underline; }
.meta, .date, figcaption, small { color: var(--muted); font-size: 1.0625rem; }
.dated-entry { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 28px; }
.dated-entry .date { padding-top: 2px; }
.dated-entry .meta { margin-top: 4px; }
.dated-entry h3 + p:not(.meta) { margin-top: 10px; }
.page-heading { margin-bottom: 32px; }
.page-heading > p:not(.breadcrumb) { margin-top: 16px; }
.page-heading h1 { margin-bottom: 0; }
.breadcrumb { font-size: 1.0625rem; margin-bottom: 18px; }
.content-section > h3 { margin-top: 26px; }
.content-section > h3 + p { margin-top: 10px; }
code { color: var(--text); font-size: .8em; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 1.125rem; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--link); font-weight: 600; }
td a { overflow-wrap: anywhere; }
.launch-video { max-width: 600px; margin-top: 20px; }
.launch-video video { width: 100%; border: 1px solid var(--line); }
figcaption { margin-top: 10px; }
.project-photo { max-width: 480px; margin: 28px auto 0; }
.project-photo > a { display: block; }
.project-photo img { width: 100%; border: 1px solid var(--line); }
.section { margin-top: 40px; }
.list-heading { font-size: 1.75rem; }
.credential-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; }
.credential { display: flex; gap: 18px; align-items: start; }
.credential img { width: 60px; height: 60px; object-fit: contain; }
.credential h3 { font-size: 1.25rem; }
.credential p, .credential a { font-size: 1.0625rem; }
.credential p { color: var(--muted); }
.credential a { display: inline-block; margin-top: 6px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { color: var(--text); font-size: 1.125rem; }
summary::marker { color: var(--link); }
.certificate-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.certificate-gallery img { width: 100%; border: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
.photo-grid img { width: 100%; height: 280px; object-fit: cover; border: 1px solid var(--line); }

form { max-width: 600px; }
.field { margin-bottom: 24px; }
.field label { display: block; color: var(--link); font-size: 1.125rem; margin-bottom: 8px; }
.field input, .field textarea { width: 100%; border: 2px solid #527957; border-radius: 0; padding: 11px 14px; color: var(--text); background: var(--surface); }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field textarea { min-height: 176px; resize: vertical; }
.button { display: inline-block; padding: 9px 18px; border: 2px solid var(--link); border-radius: 0; box-shadow: 4px 4px 0 var(--pixel-shadow); color: #000; background: var(--link); font-size: 1.125rem; font-weight: 600; }
.button:hover { background: #fff; border-color: #fff; }
.button:disabled { cursor: wait; opacity: .65; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.status { min-height: 28px; margin-top: 20px; font-size: 1.125rem; }
.success { color: var(--link); }
.error { color: #fff; border-left: 3px solid #fff; padding-left: 12px; }
.print-button { display: none; }
.js-enabled .print-button { display: inline-block; }
.resume-sheet section + section { margin-top: 32px; }
.resume-sheet h2 { font-size: 1.5rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.resume-sheet h3 { font-size: 1.25rem; }
.resume-item + .resume-item { margin-top: 24px; }
.resume-meta { color: var(--muted); font-size: 1.0625rem; margin-top: 6px; }
.resume-sheet p + p { margin-top: 10px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 36px; border-top: 2px solid var(--line); font-size: 1.0625rem; color: var(--muted); }
.site-footer nav { gap: 10px 24px; }

@media (max-width: 850px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 18px; }
  .site-header nav { gap: 8px 10px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 40px); }
  .site-header { padding-top: 22px; padding-bottom: 20px; }
  .site-header nav { gap: 8px 5px; }
  .site-header nav a { padding: 4px 8px; }
  main { padding-top: 32px; padding-bottom: 44px; }
  .introduction { grid-template-columns: minmax(0, 1fr) 132px; gap: 24px; }
  .portrait { width: 132px; height: 164px; }
  .portrait-frame figcaption { font-size: .875rem; }
  h1 { font-size: 2.5rem; }
  .dated-entry { grid-template-columns: 1fr; gap: 10px; }
  .credential-list { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img { height: auto; max-height: 420px; object-fit: cover; }
}
@media (max-width: 480px) {
  .introduction { display: block; }
  .portrait-frame { display: flex; align-items: flex-end; gap: 22px; margin-top: 28px; }
  .portrait { flex-shrink: 0; width: 112px; height: 128px; }
  .portrait-frame figcaption { max-width: 130px; font-size: 1rem; }
  .eyebrow { font-size: .875rem; letter-spacing: .04em; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.625rem; }
  .project-entry { padding-left: 14px; }
  .certificate-gallery { grid-template-columns: 1fr; }
  .site-footer { display: block; }
  .site-footer nav { margin-top: 14px; }
  th, td { padding-right: 8px; font-size: 1rem; }
}
@media (prefers-contrast: more) {
  :root { --muted: #fff; --line: #7cff6b; }
}

@media print {
  @page { size: letter; margin: .5in; }
  :root { color-scheme: light; --text: #000; --muted: #333; --link: #000; --line: #bbb; }
  body { border: 0; background: #fff; font: 9.5pt/1.3 Arial, sans-serif; color: #000; }
  h1, h2, h3 { color: #000; text-shadow: none; text-wrap: auto; }
  .site-header, .site-footer, .skip-link, .no-print, .js-enabled .print-button { display: none !important; }
  .shell { width: 100%; max-width: none; }
  main { padding: 0; }
  h1 { font-size: 24pt; margin-bottom: 8px; }
  .page-heading { margin-bottom: 14px; }
  .page-heading > p:not(.breadcrumb) { margin-top: 5px; }
  .content-section { border: 0; padding-top: 0; }
  .content-section > h2::before, main > section > h2::before, .list-heading::before { display: none; }
  .profile-links a, .portrait { border: 0; box-shadow: none; }
  .profile-links a { padding: 0; background: none; }
  .resume-sheet h2 { font-size: 10pt; margin-bottom: 8px; padding-bottom: 5px; }
  .resume-sheet h3 { font-size: 10pt; }
  .resume-sheet p, .resume-sheet li, .resume-meta { font-size: 9pt; line-height: 1.3; }
  .resume-sheet section + section { margin-top: 14px; }
  .resume-item + .resume-item { margin-top: 10px; }
  .resume-item { break-inside: avoid; }
  .resume-sheet p + p { margin-top: 4px; }
  ul { margin-top: 5px; }
  li + li { margin-top: 4px; }
  a { color: #000; }
  h2, h3 { break-after: avoid; }
}
