:root {
  color-scheme: dark;
  --ink: #ececec;
  --muted: #b4b4b4;
  --dim: #8f8f8f;
  --paper: #141414;
  --panel: #1d1d1d;
  --header: #1d1d1d;
  --line: #3a3a3a;
  --accent: #c9c9c9;
  --accent-dark: #3a3a3a;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--mono);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

[data-theme="light"] {
  color-scheme: light;
  --ink: #1f1f1f;
  --muted: #505050;
  --dim: #6b6b6b;
  --paper: #f2f2f2;
  --panel: #ffffff;
  --header: #e6e6e6;
  --line: #cfcfcf;
  --accent: #3d3d3d;
  --accent-dark: #dcdcdc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -.035em;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-wrap {
  width: min(100% - 64px, 1080px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 64px, 1080px);
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.06em;
}

.identity-mark {
  width: 39px;
  height: 39px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.identity-dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle svg {
  display: block;
}

.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.intro {
  min-height: 510px;
  padding-top: 86px;
  padding-bottom: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 70px;
}

.intro-copy {
  max-width: 760px;
}

.eyebrow,
.section-index {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
}

.eyebrow {
  margin-bottom: 20px;
}

.eyebrow span {
  padding-inline: 5px;
  color: var(--dim);
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 700;
  line-height: 1.1;
}

.intro-description {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 18px;
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 45px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
}

.button-primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--accent);
  color: var(--paper);
}

.button-secondary {
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.text-link {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.text-link span {
  padding-left: 4px;
}



.content-section {
  padding-top: 66px;
  padding-bottom: 66px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.section-index {
  flex: 0 0 auto;
}

.heading-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.about-grid h2,
.work-intro h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 46px);
}

.accent {
  color: var(--accent);
}

.about-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.section-title {
  margin-bottom: 27px;
  font-size: 29px;
}

.experience-list {
  border-top: 1px solid var(--line);
}

.experience-item {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.experience-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 22px;
}

.experience-heading h3 {
  margin: 0;
  font-size: 19px;
}

.experience-heading>span,
.experience-org {
  color: var(--dim);
  font-size: 14px;
}

.experience-org {
  margin-left: 8px;
  font-weight: 400;
  letter-spacing: 0;
}

.experience-item p {
  max-width: 850px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.experience-item .text-link {
  margin-top: 8px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-group {
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.skill-group h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.skill-group p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.education-copy h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.education-copy>p {
  margin-bottom: 9px;
  color: var(--muted);
}

.coursework strong {
  color: var(--ink);
}

.work-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.work-intro>p {
  max-width: 360px;
  margin: 0 0 3px;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-inline: auto;
}

.project-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.project-image-link {
  width: calc(100% - 32px);
  aspect-ratio: 16 / 10;
  margin: 16px auto 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

button.project-image-link {
  padding: 0;
  color: inherit;
  cursor: zoom-in;
}

.project-image-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.project-image-link[data-project-slideshow] {
  position: relative;
  display: block;
}

.project-image-link[data-project-slideshow] img {
  position: absolute;
  inset: 0;
  animation: project-slide-arrive .4s ease both;
}

.project-image-link[data-project-slideshow] img[hidden] {
  display: none;
}

@keyframes project-slide-arrive {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.project-image-placeholder {
  min-height: 100%;
  padding: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.project-content {
  padding: 18px 20px 20px;
}

.project-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.project-heading h3 {
  margin: 0;
  font-size: 21px;
}

.project-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}

.project-content>p {
  margin: 13px 0;
  color: var(--muted);
  font-size: 14px;
}

.project-content .project-stack {
  color: var(--dim);
  font-size: 13px;
}

.nova-viewer[hidden] {
  display: none;
}

.nova-viewer {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .92);
}

.nova-viewer-panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  justify-items: center;
  gap: 14px;
}

.nova-viewer-image {
  width: 100%;
  height: 100%;
  max-width: calc(100vw - 180px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.nova-viewer-close,
.nova-viewer-control {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(20, 20, 20, .85);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.nova-viewer-close {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
}

.nova-viewer-control {
  position: relative;
  z-index: 1;
}

.nova-viewer-close:hover,
.nova-viewer-control:hover,
.nova-viewer-close:focus-visible,
.nova-viewer-control:focus-visible {
  border-color: #fff;
  background: #333;
}

.nova-viewer-counter {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.maps-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 20px;
}

.maps-intro h2 {
  margin-bottom: 6px;
  font-size: 30px;
}

.maps-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.map-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.map-counter {
  min-width: 58px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.map-control {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.map-control:hover,
.map-control:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.map-gallery {
  max-width: 700px;
  margin: 0 auto;
}

.map-slide {
  margin: 0;
}

.map-slide[hidden] {
  display: none;
}

.map-slide a {
  min-height: 160px;
  max-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8f8f6;
}

.map-slide a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.map-slide img {
  width: 100%;
  max-height: 320px;
  display: block;
  object-fit: contain;
}

.map-slide figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 18px;
  padding: 12px 0;
  color: var(--ink);
  font-size: 14px;
}

.map-slide figcaption span {
  color: var(--muted);
}

.web3-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.web3-grid h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 46px);
}

.web3-copy {
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}

.social-link span {
  color: var(--accent);
}

.contact-section {
  margin-bottom: 34px;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.5vw, 50px);
}

.contact-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

.contact-bottom p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.email-fallback {
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
}

.contact-channel>span:last-child {
  color: var(--accent);
}

.channel-detail {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  min-height: 93px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.site-footer .identity-mark {
  width: 32px;
  height: 32px;
}

.site-footer .identity {
  font-size: 16px;
}

.footer-year {
  color: var(--dim);
  font-size: 13px;
  white-space: nowrap;
}

.detail-main {
  padding-top: 52px;
  padding-bottom: 72px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 14px;
}

.detail-header {
  max-width: 850px;
  margin-bottom: 30px;
}

.detail-header h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 52px);
}

.detail-header>p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.detail-status {
  display: inline-flex;
  margin-top: 14px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--accent);
  font-size: 13px;
}

.detail-hero {
  min-height: 150px;
  max-height: 430px;
  margin: 0 0 38px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.detail-hero img {
  width: 100%;
  max-height: 430px;
  display: block;
  object-fit: contain;
  background: #f8f8f6;
}

.detail-hero-placeholder {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
}

.detail-sections section {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.detail-sections h2,
.detail-gallery h2 {
  margin-bottom: 9px;
  font-size: 20px;
}

.detail-sections p,
.detail-sections ul {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.detail-sections ul {
  padding-left: 20px;
}

.detail-sections li+li {
  margin-top: 5px;
}

.detail-sections a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.detail-gallery {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-gallery figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.detail-gallery figure a {
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f8f8f6;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.detail-gallery figcaption {
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  :root {
    scroll-padding-top: 68px;
  }

  .section-wrap,
  .header-inner {
    width: min(100% - 40px, 620px);
  }

  .header-inner {
    height: 68px;
  }

  .identity {
    font-size: 17px;
  }

  .identity-mark {
    width: 35px;
    height: 35px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-icon {
    width: 21px;
    display: grid;
    gap: 5px;
  }

  .menu-icon i {
    width: 21px;
    height: 2px;
    background: currentColor;
    transition: transform .18s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    padding: 7px 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--header);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .intro {
    min-height: 0;
    padding-top: 58px;
    padding-bottom: 54px;
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: clamp(26px, 7.2vw, 34px);
  }

  .intro-description {
    font-size: 14px;
  }


  .content-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-grid h2 {
    font-size: 27px;
  }

  .experience-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .experience-heading h3 {
    font-size: 18px;
  }

  .experience-org {
    display: block;
    margin: 3px 0 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body {
    font-size: 15px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .section-title,
  .maps-intro h2 {
    font-size: 22px;
  }

  .web3-grid h2,
  .contact-section h2 {
    font-size: 27px;
  }

  .education-copy h2 {
    font-size: 20px;
  }

  .skill-group h3 {
    font-size: 16px;
  }

  .experience-item p,
  .about-copy,
  .web3-copy {
    font-size: 14px;
  }

  .contact-channel {
    overflow-wrap: anywhere;
  }

  .header-inner {
    gap: 6px;
  }

  .identity {
    margin-right: auto;
  }

  .theme-toggle {
    order: 2;
  }

  .menu-toggle {
    order: 3;
  }

  .work-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .project-image-link {
    width: calc(100% - 24px);
    aspect-ratio: 2 / 1;
    margin-top: 12px;
  }

  .nova-viewer {
    padding: 12px;
  }

  .nova-viewer-panel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 5px;
  }

  .nova-viewer-image {
    max-width: calc(100vw - 110px);
    max-height: calc(100vh - 75px);
  }

  .nova-viewer-close,
  .nova-viewer-control {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .project-content {
    padding: 14px;
  }

  .project-heading h3 {
    font-size: 18px;
  }

  .project-content>p {
    font-size: 13px;
  }

  .web3-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .maps-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .map-controls {
    align-self: flex-end;
  }

  .map-slide a {
    min-height: 150px;
    max-height: 240px;
  }

  .map-slide img {
    max-height: 240px;
  }

  .contact-section {
    padding: 25px 20px;
  }

  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .site-footer {
    flex-wrap: wrap;
    padding-block: 17px;
  }

  .detail-main {
    padding-top: 36px;
  }

  .detail-sections {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 420px) {

  .section-wrap,
  .header-inner {
    width: calc(100% - 32px);
  }

  .intro {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: 25px;
  }


  .intro-actions {
    align-items: flex-start;
  }

  .intro-actions .button {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 13px;
  }

  .intro-actions .text-link {
    padding: 10px 2px;
  }

  .skills-grid,
  .detail-gallery-grid {
    grid-template-columns: 1fr;
  }

  .map-slide figcaption {
    flex-direction: column;
  }

  .project-status {
    font-size: 11px;
  }

}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}