@font-face {
  font-family:Geist;
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('/fonts/geist-latin.woff2') format('woff2');
}

:root {
  color-scheme:dark;
  --canvas:#1a191c;
  --terminal-black:#2d2b30;
  --surface-1:#222125;
  --surface-2:#333138;
  --surface-3:#67656f;
  --foreground:#e2e2e3;
  --muted:#8b8792;
  --red:#fc808f;
  --green:#bcf092;
  --yellow:#f9d677;
  --blue:#9be3ed;
  --purple:#b4befe;
  --orange:#ffac72;
  font-family:Geist,ui-sans-serif,system-ui,sans-serif;
  font-size:16px;
  line-height:1.5;
  background:var(--canvas);
  color:var(--muted);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

html {
  overflow-y:scroll;
  scrollbar-gutter:stable both-edges;
}

::selection {
  background:var(--purple);
  color:var(--canvas);
}

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

button {
  font:inherit;
}

h1,h2,h3,p,ul,ol,figure,pre,blockquote {
  margin:0;
}

img,video {
  display:block;
  max-width:100%;
  height:auto;
}

svg {
  display:block;
}

a,button {
  touch-action:manipulation;
}

a:focus-visible,button:focus-visible {
  outline:2px solid var(--purple);
  outline-offset:5px;
}

#main:focus {
  outline:none;
}

.page {
  min-height:100vh;
}

.container {
  max-width:768px;
  margin:0 auto;
  padding:48px 24px 128px;
}

main {
  margin-bottom:80px;
  min-width:0;
}

.quiet {
  color:var(--surface-3);
}

.skip-link {
  position:fixed;
  top:8px;
  left:8px;
  transform:translateY(-200%);
  padding:8px 16px;
  background:var(--foreground);
  color:var(--canvas);
  z-index:50;
}

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

.top-nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:64px;
  gap:16px;
}

.brand {
  font-size:18px;
  font-weight:700;
  white-space:nowrap;
}

.top-nav a {
  color:var(--surface-3);
  transition:color .15s;
}

.top-nav a:not([aria-current=page]):hover {
  color:var(--foreground);
  text-decoration:underline;
}

.top-nav a[aria-current=page] {
  color:var(--foreground);
  cursor:default;
}

.nav-right {
  display:flex;
  align-items:center;
  gap:24px;
}

.nav-right nav {
  display:flex;
  gap:16px;
  font-size:18px;
}

.social-links {
  display:flex;
  align-items:center;
  gap:12px;
}

.social-links a {
  display:inline-flex;
  align-items:center;
  height:28px;
}

.social-links .github:hover {
  color:var(--blue);
}

.social-links .twitter:hover {
  color:var(--purple);
}

.social-links .linkedin:hover {
  color:var(--red);
}

.social-links .email:hover {
  color:var(--orange);
}

.short-name {
  display:none;
}

.post-list {
  list-style:none;
  padding:0;
}

.post-list li+li {
  margin-top:12px;
}

.post-list a {
  display:flex;
  align-items:center;
  gap:16px;
}

.post-year {
  width:40px;
  flex-shrink:0;
  color:var(--surface-2);
}

.post-title {
  flex:1;
  transition:color .15s;
}

.post-list a:hover .post-title {
  color:var(--foreground);
  text-decoration:underline;
}

.post-views {
  color:var(--surface-2);
  min-width:24px;
  text-align:right;
}

.post-header {
  margin-bottom:32px;
}

.post-header h1 {
  color:var(--foreground);
  font-size:30px;
  line-height:1.2;
  font-weight:500;
  margin-bottom:8px;
}

.post-meta {
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--surface-2);
  font-size:14px;
}

.profile {
  width:144px;
  height:144px;
  object-fit:cover;
  border-radius:50%;
  margin:0 auto 32px;
}

.about-copy {
  line-height:1.625;
}

.about-copy p+p {
  margin-top:24px;
}

.project {
  display:block;
  border-bottom:1px solid var(--surface-2);
  padding-bottom:32px;
  margin-bottom:32px;
}

.project:last-child {
  border:0;
}

.project-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:8px;
}

.project h3 {
  color:var(--foreground);
  font-size:16px;
  font-weight:500;
}

.project-heading span {
  font-size:12px;
  white-space:nowrap;
  color:var(--surface-2);
}

.project p {
  color:var(--surface-3);
  transition:color .15s;
}

.project:hover h3 {
  text-decoration:underline;
}

.project:hover p {
  color:var(--muted);
}

.prose {
  overflow-wrap:break-word;
}

.prose h1,.prose h2,.prose h3 {
  color:var(--foreground);
  font-weight:500;
  text-wrap:balance;
}

.prose h1 {
  font-size:24px;
  line-height:32px;
  margin:24px 0 12px;
}

.prose h2 {
  font-size:20px;
  line-height:28px;
  margin:24px 0 12px;
}

.prose h3 {
  font-size:18px;
  line-height:28px;
  margin:16px 0 8px;
}

.prose p {
  margin:20px 0;
  line-height:28px;
}

.prose ul,.prose ol {
  margin-bottom:12px;
  padding-left:24px;
  list-style-position:outside;
}

.prose li {
  margin-bottom:4px;
}

.prose li>p {
  margin:8px 0;
}

.prose a {
  color:var(--foreground);
  border-bottom:1px solid var(--surface-3);
  transition:border-color .15s;
}

.prose a:hover {
  border-color:var(--foreground);
}

.prose strong {
  color:var(--foreground);
  font-weight:600;
}

.prose blockquote {
  border-left:4px solid var(--purple);
  padding-left:12px;
  margin:20px 0;
}

.prose hr {
  /* The smaller golden-ratio segment of the article width. */
  width:38.1966%;
  border:0;
  border-top:1px solid var(--surface-2);
  margin:40px auto;
}

.prose code,.prose pre {
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:14px;
}

.prose :not(pre)>code {
  background:var(--surface-1);
  color:var(--foreground);
  border-radius:2px;
  padding:2px 4px;
}

.prose pre {
  position:relative;
  background:var(--surface-1);
  color:var(--foreground);
  overflow-x:auto;
  border-radius:4px;
  padding:16px;
  line-height:21px;
  margin-bottom:12px;
  scrollbar-width:thin;
  scrollbar-color:var(--surface-3) var(--surface-1);
}

.code-block {
  position:relative;
}

.copy-code {
  position:absolute;
  right:8px;
  top:8px;
  z-index:1;
  background:var(--canvas);
  color:var(--muted);
  border:0;
  border-radius:4px;
  padding:4px;
  line-height:1;
  cursor:pointer;
}

.copy-code:hover {
  opacity:.8;
}

.copy-code svg {
  width:14px;
  height:14px;
}

.copy-code[data-copied=true] {
  color:var(--green);
}

.prose figure {
  margin:24px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.media-frame {
  width:100%;
  padding:8px;
  border:1px solid var(--surface-3);
  background:var(--surface-2);
  border-radius:8px;
}

.media-frame img,.media-frame video {
  width:100%;
  border-radius:6px;
}

.prose figcaption {
  display:block;
  width:100%;
  color:var(--surface-3);
  text-align:center;
  font-family:ui-monospace,monospace;
  font-size:12px;
  line-height:20px;
  text-wrap:balance;
}

.table-scroll {
  overflow-x:auto;
  margin:24px 0;
}

.prose table {
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--surface-3);
  margin-bottom:12px;
}

.prose thead {
  background:var(--surface-2);
  border-bottom:2px solid var(--surface-3);
}

.prose tr {
  border-bottom:1px solid var(--surface-3);
}

.prose th,.prose td {
  border-right:1px solid var(--surface-3);
  padding:8px 16px;
  text-align:left;
}

.prose th {
  color:var(--foreground);
  font-weight:600;
}

.prose th:last-child,.prose td:last-child {
  border-right:0;
}

.prose .footnotes {
  font-size:14px;
}

.prose .footnote-ref {
  color:var(--purple);
}

#footer {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:20;
  transition:opacity .3s;
}

.footer-inner {
  background:var(--canvas);
  max-width:768px;
  margin:0 auto;
  padding:32px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:14px;
}

.footer-inner p {
  font-style:italic;
}

#footer.is-hidden {
  opacity:0;
  pointer-events:none;
}

#triangle-link {
  display:block;
}

#triangle {
  transition:transform .12s ease-out;
}

.not-found {
  min-height:calc(100svh - 17rem);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.error-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:32px;
}

.status {
  font-family:ui-monospace,monospace;
  font-size:14px;
  color:var(--purple);
  margin-bottom:8px;
}

.error-heading h1 {
  max-width:512px;
  font-size:36px;
  line-height:40px;
  font-weight:500;
  letter-spacing:-.025em;
  color:var(--foreground);
}

.error-number {
  color:var(--surface-2);
  font-family:ui-monospace,monospace;
  font-size:72px;
  font-weight:700;
  line-height:1;
}

.terminal {
  border:1px solid var(--surface-2);
  background:var(--surface-1);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 25px 50px -12px #0000001a;
}

.terminal-bar {
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:1px solid var(--surface-2);
  padding:12px 16px;
}

.terminal-bar i {
  flex-shrink:0;
  width:10px;
  height:10px;
  background:var(--red);
  border-radius:50%;
}

.terminal-bar i:nth-child(2) {
  background:var(--yellow);
}

.terminal-bar i:nth-child(3) {
  background:var(--green);
}

.terminal-bar span {
  margin-left:8px;
  color:var(--surface-3);
  font:12px/16px ui-monospace,monospace;
  overflow-wrap:anywhere;
  min-width:0;
}

.terminal-content {
  padding:24px 16px;
  font-family:ui-monospace,monospace;
  font-size:15px;
  line-height:24px;
  overflow-wrap:anywhere;
}

.terminal-content > * + * {
  margin-top:12px;
}

.terminal-prompt > * + * {
  margin-top:4px;
}

.terminal-location {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}

.terminal-branch {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--surface-3);
}

.terminal-branch svg {
  width:16px;
  height:16px;
}

.terminal-input {
  display:flex;
  align-items:center;
  min-height:1lh;
  gap:1ch;
}

.terminal-input .command {
  min-width:0;
}

.prompt {
  align-self:flex-start;
  margin-top:calc((24px - .8lh) / 2);
  color:var(--purple);
  font-size:18px;
  font-weight:bold;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1ch;
  height:.8lh;
  flex-shrink:0;
  line-height:1;
}

.command {
  color:var(--foreground);
}

.error-message {
  color:var(--red);
}

.cursor {
  display:inline-block;
  width:1ch;
  height:.8lh;
  background:var(--foreground);
  flex-shrink:0;
}

@keyframes cursor-pulse {
  50% { opacity:.5; }
}

@media(prefers-reduced-motion:no-preference) {
  .cursor {
    animation:cursor-pulse 2s cubic-bezier(.4,0,.6,1) infinite;
  }
}

.error-explanation {
  margin-top:24px;
  max-width:576px;
  line-height:28px;
}

@media(max-width:767px) {
  .short-name {
    display:inline;
  }
  .full-name {
    display:none;
  }
  .top-nav {
    margin-bottom:32px;
    gap:8px;
  }
  .top-nav a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
  }
  .brand {
    font-size:20px;
    min-width:44px;
  }
  .nav-right {
    gap:8px;
  }
  .nav-right nav {
    gap:12px;
    font-size:18px;
  }
  .social-links {
    gap:0;
  }
  .social-links a {
    width:32px;
    height:44px;
  }
  .social-links svg {
    width:22px;
    height:22px;
  }
}

@media(max-width:480px) {
  .error-number {
    display:none;
  }
  .error-heading h1 {
    font-size:30px;
    line-height:36px;
  }
}

@media(max-width:374px) {
  .top-nav {
    align-items:flex-start;
  }
  .nav-right {
    flex-wrap:wrap;
    justify-content:flex-end;
    max-width:calc(100% - 52px);
    row-gap:4px;
  }
  .social-links a {
    width:40px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

.copy-code .check-icon {
  display:none;
}

.copy-code[data-copied=true] .copy-icon {
  display:none;
}

.copy-code[data-copied=true] .check-icon {
  display:block;
}
