@font-face {
  font-family: "UM Mono";
  src: url("./assets/SourceCodePro-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "UM Mono";
  src: url("./assets/SourceCodePro-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #080808;
  --foreground: #efede6;
  --muted: #a09e98;
  --rule: #393833;
  font-family: "UM Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; background: var(--background); color: var(--foreground); -webkit-font-smoothing: antialiased; }
::selection { background: var(--foreground); color: var(--background); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
a:hover { color: #fff; }
a:focus-visible { outline: 1px solid var(--foreground); outline-offset: 6px; }
.page { position: relative; isolation: isolate; width: min(100%, 75rem); margin: auto; padding: 2.8rem 2.5rem 1.8rem; }
.greeting, .greeting-copy, .project, .project-copy { min-width: 0; }
.root-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.masthead { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 1.1rem; font-size: 0.875rem; line-height: 1.5; }
.wordmark { text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; }
.mobile-menu { display: none; }
.greeting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 30rem); align-items: center; gap: 1.5rem; min-height: 24rem; padding-block: 1.6rem 1.5rem; }
.greeting-copy { position: relative; }
h1 { margin: 0; font-size: clamp(2rem, 3.7vw, 3.1rem); line-height: 1.25; letter-spacing: -0.035em; font-weight: 400; text-wrap: balance; }
.description { display: inline-block; margin: 1.35rem 0 0; color: var(--foreground); font-size: 1.125rem; line-height: 1.7; }
.tree { position: relative; margin: 0; width: 100%; min-width: 0; aspect-ratio: 1; container-type: inline-size; contain: layout paint; overflow: hidden; user-select: none; }
.tree-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tree-fallback { position: absolute; inset: 0; margin: 0; color: #d9d6c9; font-family: inherit; font-weight: 400; font-size: calc(var(--tree-width, 280px) / 115.2); line-height: calc(var(--tree-width, 280px) / 168); letter-spacing: 0; white-space: pre; font-variant-ligatures: none; }
@supports (font-size: 1cqw) {
  .tree-fallback { font-size: calc(100cqw / 115.2); line-height: calc(100cqw / 168); }
}
.tree.is-ready .tree-fallback { visibility: hidden; }
.projects { position: relative; margin-top: 0.5rem; }
.section-title { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 1.8rem; color: var(--muted); font-size: 0.875rem; font-weight: 400; line-height: 1.6; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.project { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(15rem, 1fr); align-items: center; gap: 2.2rem; }
.project-preview { display: block; width: 100%; line-height: 0; }
.project-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; filter: grayscale(1); }
.project h3 { margin: 0 0 0.9rem; font-size: 1.75rem; line-height: 1.3; font-weight: 400; }
.project-description { margin: 0; max-width: 29ch; color: #b9b6ae; font-size: 0.9375rem; line-height: 1.8; }
.project-action { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; min-height: 44px; font-size: 1rem; }
.link-arrow { display: inline-block; transition: transform 160ms ease; }
a:hover .link-arrow { transform: translate(2px, -2px); }
.footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.75rem; line-height: 1.7; }
.footer-identity { margin: 0; }
.footer-identity span { white-space: nowrap; }
.footer .nav-links { font-size: 0.8125rem; gap: 1.4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .page { padding: 2rem 1.8rem 1.5rem; }
  .greeting { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); min-height: 23rem; gap: 1rem; }
  h1 { font-size: clamp(1.65rem, 3.9vw, 2.5rem); }
  .description { font-size: 1rem; }
  .project { grid-template-columns: minmax(0, 1.5fr) minmax(13rem, 1fr); gap: 1.8rem; }
  .project h3 { font-size: 1.4rem; }
}
@media (max-width: 600px) {
  .page { padding: 1.3rem 1.65rem 1.1rem; }
  .masthead { padding-bottom: 1rem; font-size: 0.8125rem; }
  .masthead > .nav-links { display: none; }
  .mobile-menu { display: block; position: relative; z-index: 2; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -0.65rem -0.65rem -0.65rem 0; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 1px; background: var(--muted); }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .mobile-menu[open] summary { color: var(--foreground); }
  .menu-links { position: absolute; top: calc(100% + 1rem); right: 0; display: grid; gap: 0; min-width: 10rem; padding: 0.4rem 0.8rem; border: 1px solid var(--rule); background: var(--background); }
  .menu-links a { display: flex; align-items: center; min-height: 44px; }
  .greeting { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; min-height: 0; padding-block: 2rem 0.8rem; }
  h1 { font-size: clamp(1.5rem, 6.8vw, 2.4rem); }
  .description { margin-top: 0.8rem; font-size: 0.9375rem; }
  .tree { width: min(100%, 21rem); margin: 0.35rem auto 0; }
  .section-title { font-size: 0.8125rem; margin-bottom: 1.15rem; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .project-preview img { aspect-ratio: 16 / 9; }
  .project h3 { margin-bottom: 0.65rem; font-size: 1.4rem; }
  .project-description { max-width: 100%; font-size: 0.875rem; line-height: 1.75; }
  .project-action { margin-top: 0.6rem; font-size: 0.9375rem; }
  .footer { align-items: flex-start; margin-top: 1.8rem; gap: 0.75rem; font-size: 0.6875rem; }
  .footer-identity span { display: block; }
  .footer .nav-links { display: grid; gap: 0; font-size: 0.75rem; }
  .footer .nav-links a { min-height: 36px; }
}
@media (max-width: 340px) {
  .page { padding-inline: 1.15rem; }
  .footer { flex-wrap: wrap; }
  .footer .nav-links { display: flex; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
