@font-face{font-family:'JetBrains Mono';src:url('/assets/fonts/JetBrainsMono-latin-ext.woff2') format('woff2');font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';src:url('/assets/fonts/JetBrainsMono-latin.woff2') format('woff2');font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';src:url('/assets/fonts/JetBrainsMono-symbols.woff2') format('woff2');font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+2190-21FF,U+25A0-25FF}
@font-face{font-family:'JetBrains Mono Fallback';src:local('SFMono-Regular'),local('Menlo'),local('Consolas'),local('Liberation Mono');size-adjust:100%;ascent-override:102%;descent-override:30%;line-gap-override:0%}
@font-face{font-family:'Departure Mono';src:url('/assets/fonts/DepartureMono-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}

:root {
  color-scheme: dark;
  --void: #050806;
  --panel: #0A100C;
  --hair: #14261B;
  --body: #9DBFAC;
  --bright: #D0E9D8;
  --muted: #82A890;
  --phosphor: #3DF07A;
  --mono: "JetBrains Mono", "JetBrains Mono Fallback", monospace;
  --display: "Departure Mono", var(--mono);
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .65, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-block: 16px 84px; }

body {
  margin: 0;
  background: var(--void);
  color: var(--body);
  font: 400 16px/1.55 var(--mono);
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--phosphor); text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:is(:hover, :focus-visible) { color: var(--bright); }
img, video, svg { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 4px;
}

.shell {
  width: calc(100% - var(--gutter) * 2);
  max-width: 1200px;
  margin-inline: auto;
}

.wordmark, .display {
  color: var(--bright);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
}

.wordmark { font-size: clamp(32px, 8vw, 112px); }
.intro { max-width: 51ch; }
.section-title { color: var(--body); font-size: 16px; font-weight: 500; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: var(--gutter);
  z-index: 20;
  display: grid;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--panel);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus { transform: none; }

.site-header, .site-footer { border-color: var(--hair); border-style: solid; }
.site-header { border-width: 0 0 1px; }
.site-footer { border-width: 1px 0 0; }

.header-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.avatar img { border: 1px solid var(--hair); border-radius: 50%; }
.avatar { border-radius: 50%; flex: none; }

.header-links, .footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(4px, 2vw, 24px);
}

.header-links a, .footer-inner a, .repo-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.header-links a {
  padding-inline: clamp(3px, 1vw, 10px);
  color: var(--body);
  text-decoration: none;
  font-size: 14px;
}

.header-links a:is(:hover, :focus-visible) { color: var(--phosphor); text-decoration: underline; }

.repo-line { display: block; }

.install {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 46px;
  padding-left: 12px;
  border: 1px solid var(--hair);
  background: var(--void);
  font-size: 13px;
}

.install code { padding-block: 6px; font: inherit; overflow-wrap: anywhere; }
.prompt { color: var(--phosphor); }

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.icon-button svg { width: 21px; height: 21px; }
.icon-button:is(:hover, :focus-visible), .icon-button.is-copied { color: var(--phosphor); }
.icon-button[aria-disabled="true"] { color: var(--muted); opacity: .55; cursor: default; }

.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  font-size: 13px;
}

.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram text {
  fill: var(--body);
  font: 500 9px var(--mono);
  text-anchor: middle;
}
.diagram :is(.wire, .shine) { fill: none; stroke: var(--muted); stroke-width: .8; }
.diagram .box { fill: var(--panel); stroke: var(--muted); stroke-width: .8; }
.diagram .active, .diagram .shine { stroke: var(--phosphor); }
.diagram :is(.lit, .spark) { fill: var(--phosphor); }

.trailer { position: relative; min-width: 0; background: var(--panel); }
.trailer video { width: 100%; aspect-ratio: 16 / 9; }
.trailer-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-color: var(--muted);
  background: var(--void);
  color: var(--phosphor);
}
.trailer-toggle:is(:hover, :focus-visible) { background: var(--phosphor); color: var(--void); }

.contributions, .friends { margin-top: clamp(44px, 7vw, 94px); }
.contributions .section-title, .friends .section-title { margin-bottom: 16px; }

.contribution-log { border-top: 1px solid var(--hair); }
.contribution-log a {
  display: grid;
  grid-template-columns: minmax(0, 27ch) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 46px;
  border-bottom: 1px solid var(--hair);
  padding: 8px 0;
  font-size: 13px;
  text-decoration: none;
}

.contribution-repo, .contribution-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contribution-title { color: var(--body); max-width: 70ch; }
.contribution-log a:is(:hover, :focus-visible) .contribution-title { text-decoration: underline; color: var(--bright); }

.friend-repos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
  gap: 1px;
  border: 1px solid var(--hair);
  background: var(--hair);
}

.friend-repo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
  background: var(--panel);
  font-size: 13px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.friend-repo:is(:hover, :focus-visible) { background: var(--void); text-decoration: underline; }
.friend-avatar img { width: 44px; height: 44px; filter: grayscale(1) brightness(.85); }
.friend-repo small { display: block; font-size: 13px; color: var(--muted); }

.site-footer { margin-top: clamp(48px, 7vw, 90px); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 20px;
  padding-block: 15px 84px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .friend-repos { grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)); }
}

@media (max-width: 600px) {
  .header-inner { min-height: 68px; }
  .header-links { justify-content: flex-end; }
  .header-links a { font-size: 13px; }
  .contribution-log a { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

.glyph-assemble { position: relative; isolation: isolate; }
/* Dot-matrix entrance: the canvas bleeds well past the wordmark so the spiral has room. The h1 waits hidden until the script reveals it; if the script never starts, a failsafe shows it after 6s. */
.glyph-assemble .glyph-field { position: absolute; inset: -90% auto auto -24px; width: calc(100% + 48px); height: 280%; pointer-events: none; z-index: -1; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .glyph-assemble:not(.is-assembled) .wordmark { opacity: 0; }
  .glyph-assemble:not(.is-assembled, .is-animating) .wordmark { animation: glyph-failsafe 0s 6s forwards; }
}
@keyframes glyph-failsafe { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .glyph-assemble .glyph-field { display: none; } }
