@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --background: #111112;
  --foreground: #eeedf0;
  --muted: #99979f;
  --quiet: #69676f;
  --line: #2a292e;
  --accent: #ad91f5;
  --mono: "DM Mono", Consolas, monospace;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(120, 94, 171, 0.075), transparent 34rem),
    var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.page-width { width: min(900px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  justify-self: start;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.wordmark span { color: var(--accent); }
.site-header nav { display: flex; gap: 27px; }
.site-header nav a,
.availability {
  color: #aaa8b0;
  font-family: var(--mono);
  font-size: 10px;
  transition: color 160ms ease;
}
.site-header nav a:hover,
.availability:hover { color: var(--accent); }
.site-header nav a[aria-current="page"] { color: var(--foreground); }
.availability { justify-self: end; }
.availability span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 9px rgba(167, 139, 250, 0.5);
}

.hello {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  padding: 46px 0 40px;
}

.tiny-intro {
  margin: 0 0 12px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.035em;
}

.hello h1 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", var(--sans);
  font-size: clamp(42px, 7vw, 58px);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 1;
}

.hello h1 span { color: #d7d0e7; }
.hello h1 i { color: var(--accent); font-style: normal; }
.hello-description {
  max-width: 485px;
  margin: 0 0 7px;
  color: #b7b5bc;
  font-size: 13px;
  line-height: 1.8;
}
.hello-note { margin: 0; color: var(--muted); font-size: 11px; }

.hello-github {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 3px;
  color: #aaa8b0;
  font-family: var(--mono);
  font-size: 9px;
  transition: color 160ms ease;
}
.hello-github:hover { color: var(--accent); }
.hello-github b { margin-left: 4px; color: var(--accent); font-weight: 400; }
.github-mark { color: var(--accent); font-size: 17px; }
.github-mark { font-family: "Space Grotesk", var(--sans); font-weight: 700; letter-spacing: -0.08em; }

.projects { padding: 22px 0 34px; }
.section-title,
.about-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}
.section-title h2,
.about-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.section-title > span,
.about-heading > span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}

.project-list { border-top: 1px solid var(--line); }
.project-entry {
  --project-accent: #bb9cff;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 17px;
  min-height: 127px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease, padding 180ms ease;
}
.project-entry:hover {
  padding-inline: 13px;
  background: rgba(255, 255, 255, 0.018);
}
.project-entry.vendetta { --project-accent: #bb9cff; }
.project-entry.elude { --project-accent: #91a6e9; }
.project-entry.chimera { --project-accent: #d4a0c9; }
.project-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-accent) 42%, #302e34);
  background: linear-gradient(145deg, color-mix(in srgb, var(--project-accent) 10%, #171719), #131315 72%);
  color: var(--project-accent);
  font-family: "Space Grotesk", var(--sans);
  font-size: 25px;
  font-weight: 500;
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--project-accent) 5%, transparent);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.project-mark:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--project-accent) 75%, #302e34);
  box-shadow: 0 5px 18px color-mix(in srgb, var(--project-accent) 12%, transparent), inset 0 0 18px color-mix(in srgb, var(--project-accent) 8%, transparent);
}
.project-mark i {
  position: absolute;
  right: 4px;
  bottom: 3px;
  color: var(--project-accent);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  opacity: 0.8;
}
.vendetta .project-mark { border-radius: 3px; }
.vendetta .project-mark > span { transform: translate(-2px, -1px); }
.elude .project-mark {
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, color-mix(in srgb, var(--project-accent) 17%, #171719), #131315 72%);
}
.elude .project-mark > span { transform: translate(-1px, -1px); font-style: italic; }
.elude .project-mark i,
.project-page.elude .detail-mark i {
  width: 9px;
  height: 9px;
  border: 1px solid color-mix(in srgb, var(--project-accent) 32%, transparent);
  border-top-color: var(--project-accent);
  border-right-color: var(--project-accent);
  border-radius: 50%;
  animation: elude-spin 1.8s linear infinite;
}
.elude .project-mark i { right: 3px; bottom: 3px; }
.project-page.elude .detail-mark i { top: -4px; right: -4px; }
@keyframes elude-spin {
  to { transform: rotate(360deg); }
}
.chimera .project-mark {
  border-radius: 50% 50% 4px 50%;
  transform: rotate(-8deg);
}
.chimera .project-mark > span { transform: rotate(8deg); }
.chimera .project-mark:hover { transform: rotate(-3deg) translateY(-2px); }
.project-title-line { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.project-title-line h3 {
  margin: 0;
  font-family: "Space Grotesk", var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.project-title-line h3 a { transition: color 160ms ease; }
.project-title-line h3 a:hover { color: var(--project-accent); }
.project-kind {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}
.project-copy > p {
  max-width: 490px;
  margin: 6px 0 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.project-meta { display: flex; gap: 12px; }
.project-meta span {
  color: color-mix(in srgb, var(--project-accent) 75%, #a9a7af);
  font-family: var(--mono);
  font-size: 9px;
}
.project-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: #aaa8b0;
  font-family: var(--mono);
  font-size: 9px;
}
.project-actions a { transition: color 160ms ease; }
.project-actions a:hover { color: var(--project-accent); }

.about {
  padding: 20px 0 27px;
  border-top: 1px solid var(--line);
}
.about-heading { margin-bottom: 13px; }
.about-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: 38px;
  row-gap: 14px;
}
.about-body > p {
  max-width: 420px;
  margin: 0;
  color: #b7b5bc;
  font-size: 11px;
  line-height: 1.8;
}
.skill-list {
  display: flex;
  align-content: start;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-list li {
  padding: 5px 8px;
  border: 1px solid #302e34;
  color: #c3c0c9;
  font-family: var(--mono);
  font-size: 8px;
  transition: border-color 150ms ease, color 150ms ease;
}
.skill-list li:hover { border-color: #675482; color: var(--accent); }
.tester-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: start;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid #232226;
}
.tester-spark { color: var(--accent); font-size: 12px; }
.tester-note p { max-width: 580px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.tester-note strong { color: #d3d0d8; font-weight: 600; }
.tester-note a { color: #d3c5f6; border-bottom: 1px solid #56496d; }

.contact {
  display: grid;
  grid-template-columns: 1fr 255px;
  align-items: end;
  gap: 32px;
  padding: 21px 0 25px;
  border-top: 1px solid var(--line);
}
.contact h2 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.contact > div:first-child > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.contact-links { border-top: 1px solid var(--line); }
.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
}
.contact-handle {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
}
.contact-handle span { color: var(--quiet); }
.contact-handle b { color: #d0cdd4; font-weight: 400; }
.contact-links a span { color: var(--quiet); }
.contact-links a b { color: #d0cdd4; font-weight: 400; transition: color 160ms ease; }
.contact-links a:hover b { color: var(--accent); }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 53px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}
.site-footer .wordmark { color: var(--foreground); font-family: var(--sans); font-size: 12px; }
.site-footer > span a { margin-left: 8px; color: var(--accent); }

/* Navigation pages keep the same compact layout as project details. */
.home-shortcuts {
  width: min(590px, 100%);
  align-self: center;
  border-top: 1px solid var(--line);
}
.home-shortcut {
  border-bottom: 1px solid var(--line);
}
.home-shortcut summary {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 5px;
  color: #c6c3cc;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  list-style: none;
  transition: color 160ms ease, padding 160ms ease;
}
.home-shortcut summary::-webkit-details-marker { display: none; }
.home-shortcut summary:hover { padding-inline: 10px; color: var(--accent); }
.home-shortcut summary > span { color: var(--quiet); font-size: 8px; }
.home-shortcut summary > b {
  color: var(--accent);
  font-size: 15px;
  font-weight: 400;
  transition: transform 160ms ease;
}
.home-shortcut[open] summary > b { transform: rotate(45deg); }
.shortcut-content {
  padding: 0 34px 14px 52px;
  text-align: left;
  animation: reveal 180ms ease-out;
}
.shortcut-content p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.shortcut-content a {
  color: #d3c5f6;
  font-family: var(--mono);
  font-size: 9px;
  transition: color 160ms ease;
}
.shortcut-content a:hover { color: var(--accent); }
.shortcut-content a span { margin-left: 4px; color: var(--accent); }
@keyframes reveal {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.home-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-page .hello {
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 34px 0 26px;
  text-align: center;
}
.home-page .hello-description { margin-inline: auto; }
.home-page .hello-github { margin: 0; }
.home-page .site-footer { margin-top: 0; }
.subpage-intro {
  max-width: 610px;
  padding: 28px 0 15px;
}
.subpage-intro h1 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", var(--sans);
  font-size: clamp(42px, 7vw, 58px);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 1;
}
.subpage-intro h1 span { color: var(--accent); }
.subpage-intro > p:last-child {
  max-width: 510px;
  margin: 0;
  color: #b7b5bc;
  font-size: 12px;
  line-height: 1.8;
}
.subpage-projects { padding-top: 12px; }
.about-page-section { margin-top: 8px; }
.about-page-body { grid-template-columns: 1fr 1fr; }
.outside-work { border-top: 1px solid var(--line); }
.contact-intro { padding-bottom: 25px; }
.contact-page-section { border-top: 1px solid var(--line); }
.page-next-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid #55496a;
  color: #d3d0d8;
  font-family: var(--mono);
  font-size: 10px;
  transition: color 160ms ease, border-color 160ms ease;
}
.page-next-link span { color: var(--accent); }
.page-next-link:hover { color: var(--accent); border-color: var(--accent); }

/* Project pages share the home page's small, personal visual language. */
.back-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  transition: color 160ms ease;
}
.back-link:hover,
.back-home:hover { color: var(--accent); }
.detail {
  max-width: 690px;
  margin: 52px auto 68px;
}
.project-page.vendetta { --project-accent: #bb9cff; }
.project-page.elude { --project-accent: #91a6e9; }
.project-page.chimera { --project-accent: #d4a0c9; }
.detail-head { display: flex; align-items: center; gap: 20px; }
.detail-mark {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-accent) 40%, transparent);
  color: var(--project-accent);
  font-family: "Space Grotesk", var(--sans);
  font-size: 36px;
}
.detail-mark i { position: absolute; top: -8px; right: -9px; font-size: 16px; font-style: normal; }
.project-page.elude .detail-mark span { font-style: italic; }
.project-page.chimera .detail-mark { border-radius: 50% 50% 3px 50%; }
.detail h1 {
  margin: 0;
  font-family: "Space Grotesk", var(--sans);
  font-size: clamp(38px, 7vw, 55px);
  font-weight: 500;
  letter-spacing: -0.08em;
}
.detail h1 span { color: var(--project-accent); }
.detail-description {
  max-width: 525px;
  margin: 24px 0 30px;
  color: #b7b5bc;
  font-size: 13px;
  line-height: 1.9;
}
.detail-facts { border-top: 1px solid var(--line); }
.detail-facts > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.detail-facts span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}
.detail-facts strong,
.detail-facts a,
.fact-muted { color: #d0cdd4; font-size: 11px; font-weight: 500; }
.detail-facts a { width: fit-content; transition: color 160ms ease; }
.detail-facts a:hover { color: var(--project-accent); }
.fact-muted { color: var(--quiet); }
.back-home {
  display: inline-block;
  margin-top: 27px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  transition: color 160ms ease;
}
.project-page .site-footer { margin-top: 0; }
.footer-dot { color: var(--accent); }

@media (max-width: 650px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { height: auto; min-height: 61px; grid-template-columns: 1fr auto; padding: 12px 0 10px; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; justify-self: start; gap: 19px; margin-top: 12px; }
  .availability { font-size: 9px; }
  .hello { align-items: start; flex-direction: column; gap: 18px; padding: 38px 0 28px; }
  .hello h1 { font-size: 46px; }
  .hello-description { max-width: 470px; }
  .home-page .hello { padding: 28px 0 23px; }
  .home-shortcut summary { padding-block: 12px; }
  .project-entry { grid-template-columns: 43px minmax(0, 1fr); gap: 13px; padding: 16px 3px; }
  .project-mark { width: 37px; height: 37px; font-size: 20px; }
  .project-actions { grid-column: 2; display: flex; justify-items: start; gap: 14px; }
  .about-body { grid-template-columns: 1fr; gap: 12px; }
  .tester-note { grid-column: 1; }
  .contact { grid-template-columns: 1fr; gap: 15px; }
  .contact-links { max-width: 350px; width: 100%; }
  .detail { margin-top: 42px; }
  .about-page-body { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .page-width { width: calc(100% - 28px); }
  .project-title-line { gap: 5px 9px; }
  .project-title-line h3 { font-size: 18px; }
  .project-kind { font-size: 7px; }
  .detail-facts > div { grid-template-columns: 92px 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .elude .project-mark i,
  .project-page.elude .detail-mark i { animation: none; }
}
