@import url("./typography.css");
:root {
  color-scheme: dark;
  --bg: #101820;
  --ink: #f0f0e9;
  --muted: #a4afb6;
  --line: #334047;
  --accent: #c5f477;
  --pointer-x: 70%;
  --pointer-y: 20%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
.wrap {
  width: min(1240px, calc(100% - 112px));
  margin-inline: auto;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 700px 600px at var(--pointer-x) var(--pointer-y),
      #29444a40,
      transparent 75%
    ),
    linear-gradient(115deg, transparent 55%, #233a3720);
  opacity: 0.8;
}
.site-header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.accent {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 38px;
  font-size: 14px;
}
nav a {
  padding: 10px 0;
}
nav a:hover {
  color: var(--accent);
}
nav a:last-child span {
  color: var(--accent);
  margin-left: 8px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 144px);
  padding: 112px 0 80px;
}
.home-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  text-shadow: 0 1px 12px #0009;
}
.hero-copy > :is(.eyebrow, h1, .hero-note, .pill) {
  position: relative;
}
.hero-copy h1 {
  max-width: 600px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #101820d9, #10182088 42%, #10182010 75%),
    linear-gradient(180deg, #10182070, transparent 25%, transparent 70%, #10182099);
}
.hero .eyebrow,
.hero .hero-note,
.hero .hero-bottom {
  color: var(--ink);
}
.hero .pill {
  background: #10182066;
  border-color: #f0f0e980;
}
.hero .pill:hover {
  background: var(--accent);
}
.eyebrow {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--project-color, var(--accent));
  background: color-mix(in srgb, var(--project-color, var(--accent)) 12%, transparent);
  border-left: 2px solid var(--project-color, var(--accent));
  width: fit-content;
  padding: 4px 9px;
  margin: 0 0 24px;
}
body:not(.projects-page) .eyebrow,
.projects-page .section-heading .eyebrow {
  color: var(--muted);
  background: none;
  border-left: 0;
  padding: 0;
  font-weight: 400;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: var(--accent);
  margin-right: 10px;
  box-shadow: 0 0 15px #c5f44460;
}
.hero h1 {
  font-size: clamp(42px, 4vw, 60px);
  line-height: 1.13;
  letter-spacing: -3px;
  font-weight: 500;
  margin: 20px 0 0;
  text-shadow: 0 2px 16px #0005;
}
.typed-line {
  display: block;
  min-height: 2.3em;
  color: var(--accent);
}
.cursor {
  font-weight: 200;
  animation: blink 1s steps(1) infinite;
  margin-left: 3px;
}
#projects-title .cursor {
  color: var(--ink);
}
.hero-note {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0 20px;
}
.pill {
  display: inline-flex;
  gap: 38px;
  align-items: center;
  border: 1px solid #75816b;
  border-radius: 30px;
  padding: 16px 23px;
  font-size: 13px;
  transition:
    background 0.2s,
    color 0.2s;
}
.pill:hover {
  background: var(--accent);
  color: var(--bg);
}
.pill span {
  font-size: 20px;
}
.portrait {
  margin: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 58% 0%, #7798a9 0%, transparent 62%),
    radial-gradient(ellipse at 58% 70%, #36596b 0%, transparent 65%),
    linear-gradient(120deg, #101820, #203642 52%, #608297);
}
.portrait img {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #0000001a 5%,
    #00000066 12%,
    #000000cc 20%,
    #000 28%
  );
}
.portrait figcaption {
  position: absolute;
  z-index: 1;
  pointer-events: auto;
  right: max(56px, calc((100% - 1240px) / 2));
  bottom: 20px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 1.7px;
  padding: 0 6px;
}
.portrait figcaption > span + span {
  font-size: 22px;
}
.hero-bottom {
  position: absolute;
  inset: auto 0 20px;
  display: flex;
  justify-content: space-between;
  padding: 0;
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.hero-bottom a span {
  margin-left: 16px;
  color: var(--accent);
  font-size: 17px;
}
.about {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 110px;
  padding: 28px 0 100px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 0 0 27px;
  font-weight: 500;
}
.bio > p:not(.eyebrow),
.contact > p:not(.eyebrow),
.current-list {
  color: #bdc6ca;
  font-size: 16px;
  line-height: 1.85;
}
.bio .currently {
  margin-bottom: 10px;
}
.current-list {
  padding: 0;
  list-style: none;
}
.current-list li {
  position: relative;
  padding-left: 20px;
  margin: 10px 0;
}
.current-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.current-list a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #839264;
}
.current-list strong {
  font-weight: 500;
  color: var(--ink);
}
.contact {
  border-left: 1px solid var(--line);
  padding-left: 50px;
}
.contact h2 {
  font-size: 37px;
}
.contact .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
}
.socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0 20px;
}
.socials a:not(.email) {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #48545a;
  border-radius: 50%;
  transition:
    background 0.2s,
    transform 0.2s;
}
.socials a:not(.email):hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-3px);
}
.socials svg {
  width: 21px;
  fill: currentColor;
}
.socials .stroke-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.email {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  padding-block: 10px;
  overflow-wrap: anywhere;
}
.email span {
  color: var(--accent);
  margin-left: 10px;
}
.projects {
  padding-top: 72px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 42px;
}
.section-heading :is(h1, h2) {
  font-size: 43px;
  max-width: 580px;
  margin-bottom: 0;
}
.interaction-hint {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.interaction-hint span {
  color: var(--accent);
  font-size: 20px;
  margin-left: 12px;
}
.project {
  border-top: 1px solid var(--line);
  transition: background 0.3s;
}
.project:last-child {
  border-bottom: 1px solid var(--line);
}
.project-toggle {
  color: var(--ink);
  border: 0;
  background: none;
  display: grid;
  grid-template-columns: 55px 1fr 35px;
  gap: 15px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 33px 12px;
  cursor: pointer;
}
.project-number {
  font:
    12px Consolas,
    monospace;
  color: var(--muted);
}
.project-question {
  font-size: clamp(20px, 2.1vw, 29px);
  letter-spacing: -0.6px;
  transition: color 0.3s;
}
.project-plus {
  font-size: 28px;
  color: var(--muted);
  text-align: right;
  transition: transform 0.35s;
}
.project.open {
  background: #ffffff03;
}
.project-question .question-keyword {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.project.open .project-question {
  color: var(--project-color);
}
.project.open .project-plus {
  transform: rotate(45deg);
  color: var(--project-color);
}
.project-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.4s ease,
    opacity 0.3s ease;
}
.project.open .project-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}
.detail-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 38px;
  padding-inline: 82px 32px;
}
.thumbnail {
  color: var(--project-color);
  background: color-mix(in srgb, var(--project-color) 8%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--project-color) 28%, var(--bg));
  align-self: start;
  display: block;
  margin-bottom: 32px;
  transition: background 0.2s;
}
.thumbnail:hover {
  background: color-mix(in srgb, var(--project-color) 17%, var(--bg));
}
.thumbnail > svg {
  width: 100%;
  display: block;
}
.thumbnail > span {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  text-align: right;
  padding: 14px 16px;
  border-top: 1px solid #ffffff15;
  font:
    10px Consolas,
    monospace;
  letter-spacing: 1.5px;
}
.thumbnail .github-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}
.project-copy {
  padding-bottom: 35px;
}
.project-copy .eyebrow {
  font-size: 10px;
  color: var(--project-color);
  margin-bottom: 8px;
}
h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.project-copy h3 a {
  transition: color 0.25s ease;
}
.project-copy h3 a:hover,
.project-copy h3 a:focus-visible {
  color: var(--project-color);
}
.project-copy > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.7;
  color: #bdc6ca;
  margin: 10px 0;
}
.project-copy .project-facts {
  font-size: 12px !important;
  color: var(--muted) !important;
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 18px 0 0;
}
.tags li {
  border: 1px solid #445157;
  border-radius: 4px;
  padding: 5px 9px;
  font:
    12px Consolas,
    monospace;
  color: #c4cdd1;
}
.closing {
  padding: 110px 0 95px;
}
.closing > p:last-child {
  font-size: clamp(35px, 4.7vw, 65px);
  letter-spacing: -2px;
  line-height: 1.2;
  margin: 0;
}
.closing a {
  color: var(--accent);
}
.closing a:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
}
.closing a span {
  display: inline-block;
  transition: transform 0.2s;
}
.closing a:hover span {
  transform: translate(4px, -4px);
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 35px;
  color: var(--muted);
  font-size: 11px;
}
footer a:hover {
  color: var(--accent);
}
.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;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: var(--accent);
  color: var(--bg);
  padding: 15px;
}
.skip-link:focus {
  top: 10px;
}
.not-found {
  padding: 28px 0 100px;
}
.not-found h1 {
  font-size: 70px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (min-width: 1001px) and (max-height: 760px) {
  .site-header {
    height: 88px;
  }
  .hero h1 {
    font-size: 52px;
    letter-spacing: -2px;
    margin-top: 20px;
  }
  .hero-note {
    margin-bottom: 16px;
  }
  .hero { padding-block: 100px 72px; }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero h1 {
    font-size: 45px;
    letter-spacing: -2px;
  }
  .portrait figcaption { right: 32px; }
  .about {
    gap: 45px;
  }
  .contact {
    padding-left: 30px;
  }
  .detail-inner {
    padding-left: 30px;
    grid-template-columns: 230px 1fr;
    gap: 25px;
  }
  .section-heading :is(h1, h2) {
    font-size: 36px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 86px;
  }
    nav {
    gap: 22px;
    font-size: 12px;
  }
  .hero {
    padding: 100px 0 80px;
    min-height: calc(100svh - 132px);
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .hero h1 {
    font-size: clamp(32px, 8.5vw, 48px);
    letter-spacing: -1.5px;
    margin-top: 20px;
  }
  .typed-line {
    min-height: 3.4em;
  }
  .hero-note {
    font-size: 14px;
  }
  .portrait img {
    width: 100%;
    object-fit: cover;
    object-position: 55% 65%;
    mask-image: none;
  }
  .portrait figcaption {
    font-size: 8px;
    right: 20px;
    bottom: 8px;
  }
  .hero-bottom {
    bottom: 8px;
    min-height: 43px;
    align-items: center;
    gap: 18px;
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .hero-bottom a {
    max-width: 140px;
    text-align: right;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 24px 0 65px;
  }
  .bio > p:not(.eyebrow),
  .contact > p:not(.eyebrow),
  .current-list {
    font-size: 15px;
  }
  .contact {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 34px 0 0;
  }
  .contact h2 {
    font-size: 34px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 19px;
  }
  h2 {
    font-size: 42px;
  }
  .projects {
    padding-top: 48px;
  }
  .section-heading {
    display: block;
    margin-bottom: 25px;
  }
  .section-heading :is(h1, h2) {
    font-size: 36px;
    max-width: 350px;
  }
  .interaction-hint {
    margin-top: 22px;
  }
  .project-toggle {
    grid-template-columns: 25px 1fr 20px;
    gap: 12px;
    padding: 27px 0;
  }
  .project-question {
    font-size: 22px;
    line-height: 1.25;
  }
  .project-number {
    font-size: 10px;
  }
  .detail-inner {
    grid-template-columns: 1fr;
    padding: 0 0 0 37px;
    gap: 22px;
  }
  .thumbnail {
    width: min(100%, 330px);
    margin-bottom: 0;
  }
  .project-copy {
    padding-right: 10px;
  }
  h3 {
    font-size: 24px;
  }
  .closing {
    padding: 72px 0;
  }
  .closing > p:last-child {
    font-size: 38px;
    letter-spacing: -1.5px;
  }
  .closing .eyebrow {
    font-size: 8px;
  }
  footer {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 19px;
  }
  footer > a:last-child {
    margin-left: auto;
  }
}
.skip-link {
  visibility: hidden;
  top: 10px;
}
.skip-link:focus {
  visibility: visible;
}
html:not(.js) .project-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}
html:not(.js) .project-plus {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .ambient {
    display: none;
  }
}

.projects-page .projects { padding-bottom: 100px; }
.section-heading h1 { font-weight: 500; line-height: 1.15; letter-spacing: -2px; margin-top: 0; }
nav a[aria-current="page"] { color: var(--accent); }

.portrait figcaption a {
  display: flex;
  align-items: center;
  min-height: 43px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.portrait figcaption a:focus-visible { outline-color: var(--accent); }
.gallery { padding-block: 12px 100px; }
.gallery-intro { color: var(--muted); line-height: 1.7; margin-top: 20px; }
.gallery-grid { columns: 3; column-gap: 28px; }
.gallery-item { margin: 0 0 28px; break-inside: avoid; }
.gallery-item a { display: block; }
.gallery-item img { display: block; width: 100%; height: auto; background: #1e292e; }
@media (max-width: 1000px) { .gallery-grid { columns: 2; } }
@media (max-width: 700px) {
  .gallery { padding-block: 16px 64px; }
  .gallery-grid { columns: 1; }
}
