

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

:root {
  --bg:     #08090b;
  --bg-2:   #0d1013;
  --bg-3:   #12161a;
  --line:   #1b2025;
  --line-2: #2a323a;
  --fg:     #eef2f0;
  --dim:    #99a49e;
  --faint:  #75817b;
  --acc:    #57f2a3;

  --fs-title: clamp(2.25rem, 5vw, 3.5rem);
  --fs-lead:  clamp(1.125rem, 1.6vw, 1.3rem);
  --fs-base:  1.0625rem;
  --fs-sm:    0.9375rem;
  --fs-label: 0.8125rem;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: var(--fs-base); line-height: 1.65;
  letter-spacing: -.011em; -webkit-font-smoothing: antialiased;
}

#bg { position: fixed; inset: 0; z-index: 0; display: block;
      pointer-events: none; opacity: .40; }

#bg {
  -webkit-mask-image: linear-gradient(to right,
      #000 0, transparent calc(50% - 27rem), transparent calc(50% + 27rem), #000 100%);
          mask-image: linear-gradient(to right,
      #000 0, transparent calc(50% - 27rem), transparent calc(50% + 27rem), #000 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(75% 50% at 20% 0%, #57f2a314, transparent 70%);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(to bottom, #ffffff04 0 1px, transparent 1px 3px);
  opacity: .5;
}


.wrap { position: relative; z-index: 3; max-width: 88rem; margin: 0 auto;
        padding: clamp(1.5rem, 3vw, 3rem) clamp(1.2rem, 4vw, 3rem) 6rem; }
.wrap.list { max-width: 72rem; }

.label { font-family: var(--mono); font-size: var(--fs-label);
         letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }


.top { display: flex; gap: 1.4rem; align-items: center; margin: 0 0 3.5rem; }
.top a { color: var(--faint); text-decoration: none; font-family: var(--mono);
         font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase;
         border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.top a:hover, .top a:focus-visible { color: var(--acc); border-color: var(--acc); }
.top .sep { flex: 1; height: 1px; background: var(--line); }


.list-head { margin: 0 0 2.6rem; }
.list-head h1 { font-size: var(--fs-title); font-weight: 800;
                letter-spacing: -.045em; line-height: .95; margin: .6rem 0 0; }
.list-head p { color: var(--dim); font-size: var(--fs-lead); margin: 1rem 0 0; }

.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
         grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); }
.posts li a {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(13,16,19,.84);
  padding: 1.5rem 1.6rem; position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.posts li a:hover, .posts li a:focus-visible {
  border-color: var(--line-2); transform: translateY(-2px);
  box-shadow: 0 8px 30px -18px #57f2a344;
}

.posts li a::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 18px; height: 18px;
  border-top: 1px solid var(--acc); border-left: 1px solid var(--acc);
  border-radius: 12px 0 0 0; opacity: .5; transition: opacity .2s ease;
}
.posts li a:hover::before, .posts li a:focus-visible::before { opacity: 1; }
.posts .d { font-family: var(--mono); font-size: var(--fs-label); color: var(--faint);
            font-variant-numeric: tabular-nums; }
.posts .t { display: block; margin: .5rem 0 0; font-size: 1.35rem; font-weight: 600;
            letter-spacing: -.025em; line-height: 1.25; }
.posts li a:hover .t { color: var(--acc); }
.posts .s { display: block; margin: .55rem 0 0; color: var(--dim); font-size: var(--fs-sm); }
.empty { color: var(--faint); }


.post-head { margin: 0 0 3rem; }
.post-head h1 { font-size: var(--fs-title); font-weight: 800;
                letter-spacing: -.045em; line-height: 1.02; margin: .7rem 0 0;
                text-wrap: balance; }
.post-head .meta { display: flex; gap: .9rem; align-items: center;
                   font-family: var(--mono); font-size: var(--fs-label);
                   color: var(--faint); margin-top: 1.1rem;
                   font-variant-numeric: tabular-nums; }
.post-head .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

.post-body { display: grid; grid-template-columns: 14rem minmax(0, 54rem); gap: 3.5rem;
             align-items: start; justify-content: center; }

.rail { position: sticky; top: 7rem; max-height: calc(100vh - 10rem); overflow-y: auto;
        scrollbar-width: thin; }
.toc ol { list-style: none; margin: .9rem 0 0; padding: 0;
          border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .38rem 0 .38rem 1rem; margin-left: -1px;
         border-left: 1px solid transparent; color: var(--faint);
         font-size: var(--fs-sm); line-height: 1.35; text-decoration: none;
         transition: color .15s, border-color .15s; }
.toc a:hover, .toc a:focus-visible { color: var(--acc); border-left-color: var(--acc); }

.toc a.current { color: var(--fg); font-weight: 600; border-left-color: var(--acc); }


.prose h2 { scroll-margin-top: 6rem; position: relative; }


.prose h2 .anchor {
  position: absolute; left: -1.4rem; top: 0;
  color: var(--faint); border: 0; text-decoration: none;
  font-weight: 400; opacity: 0; transition: opacity .15s, color .15s;
}
.prose h2:hover .anchor { opacity: 1; }
.prose h2 .anchor:hover { color: var(--acc); }
.prose h2 .anchor:focus-visible { opacity: 1; }

@media (max-width: 64rem) {
  .prose h2 .anchor { display: none; }
}



.prose { font-size: var(--fs-base); }
.prose > * + * { margin-top: 1.35rem; }

@media (max-width: 64rem) {
  .post-body { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .rail { position: static; min-width: 0; }
  .prose { min-width: 0; }
  .toc ol { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; border-left: 0; }
  .toc a { padding: .2rem 0; border-left: 0; }
}
@media (max-width: 30rem) {
  .posts { grid-template-columns: minmax(0, 1fr); }
}
.prose h2 { font-size: 1.65rem; font-weight: 700; letter-spacing: -.03em;
            line-height: 1.25; margin: 3rem 0 0; padding-top: 1.6rem;
            border-top: 1px solid var(--line); text-wrap: balance; }
.prose h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.02em;
            margin: 2.2rem 0 0; }
.prose a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--faint); }
.prose a:hover { color: var(--acc); border-color: var(--acc); }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--faint); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: .2rem 0 .2rem 1.3rem;
  border-left: 2px solid var(--line-2); color: var(--dim);
}
.prose img { max-width: 100%; height: auto; display: block;
             border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.prose figure { margin: 2rem 0; }
.prose figcaption { margin-top: .7rem; color: var(--faint);
                    font-size: var(--fs-label); line-height: 1.5; }

.prose code {
  font-family: var(--mono); font-size: .89em;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 5px; padding: .12em .38em;
}
.prose pre {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.1rem 1.2rem; overflow-x: auto; line-height: 1.55;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: .875rem; }

.tbl { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: .6rem .8rem;
                       border-bottom: 1px solid var(--line); }
.prose th { color: var(--faint); font-family: var(--mono); font-size: var(--fs-label);
            letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.prose td { font-variant-numeric: tabular-nums; }

footer { margin-top: 5rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
         display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
footer, footer a { font-family: var(--mono); font-size: var(--fs-label);
                   letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
footer a { text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--acc); border-color: var(--acc); }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 3px; }


.hl .c, .hl .c1, .hl .cm, .hl .cs, .hl .cp { color: #5c6a63; font-style: italic; }
.hl .k, .hl .kd, .hl .kn, .hl .kr, .hl .kt, .hl .kc { color: #57f2a3; }
.hl .s, .hl .s1, .hl .s2, .hl .se, .hl .sc, .hl .sb { color: #ffb454; }
.hl .m, .hl .mi, .hl .mf, .hl .mh, .hl .il { color: #ffb454; }
.hl .nf, .hl .fm { color: #eef2f0; font-weight: 600; }
.hl .nc, .hl .nn { color: #9fe8c4; }
.hl .o, .hl .ow, .hl .p { color: #99a49e; }
.hl .nb, .hl .bp { color: #9fe8c4; }
.hl .err { color: #ff8f6b; }


@media (pointer: coarse) {
  .top a       { padding: .7rem 0; }
  .toc a       { padding: .8rem 0 .8rem 1rem; }
  footer a     { padding: .7rem 0; display: inline-block; }
  .posts li a  { padding: 1.7rem 1.6rem; }
}
@media (pointer: coarse) and (max-width: 64rem) {
  .toc a { padding: .7rem 0; }
}
