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

:root {
  color-scheme: dark;
  --ink: #fff;
  --link: #a3a3a3;
  --muted-ink: #848484;
  --cyan: #22d3ee;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font: 400 16px/24px "Geist Mono", ui-monospace, monospace;
}

h1, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; }
::selection { background-color: #22d3ee33; }

.home {
  display: grid;
  place-items: center;
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding: 48px 24px;
  background-image: radial-gradient(circle closest-side, #22d3ee08, transparent 70%);
  background-position: center;
  background-size: 600px 600px;
  background-repeat: no-repeat;
}

.home-index { width: min(100%, 320px); }
.home-header { margin-block-end: 64px; }
h1 { font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: -.025em; }
.home-header p { margin-block-start: 4px; color: var(--muted-ink); font-size: 14px; line-height: 20px; }

.entry {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  color: var(--link);
  transition: color 200ms;
}
.featured { margin-block-end: 8px; color: var(--ink); }
.entry::after {
  content: "";
  position: absolute;
  inset: auto 0 8px;
  height: 1px;
  background: #22d3ee66;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease-out;
}
.entry:is(.external, .onward)::before {
  content: "";
  order: 1;
  flex: 0 0 14px;
  block-size: 14px;
  background: var(--muted-ink);
  mask: var(--icon) center / contain no-repeat;
  opacity: 0;
  transition: opacity 200ms, transform 200ms;
}
.entry.external { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.6 2.2h5.2v5.2m0-5.2-6.5 6.5M6 3.8H2.7v9.5h9.5V10' fill='none' stroke='black' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.entry.onward { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m6 4 4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.entry:is(:hover, :focus-visible) { color: var(--ink); }
.entry:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.entry:is(:hover, :focus-visible)::before { opacity: 1; transform: translateX(2px); }

.home-footer {
  margin-block-start: 64px;
  padding-block-start: 24px;
  border-block-start: 1px solid #ffffff0d;
  color: var(--muted-ink);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .05em;
}
.home-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.home-footer a:is(:hover, :focus-visible), .back a:is(:hover, :focus-visible) { color: var(--ink); }

.blog { width: min(100%, 896px); margin-inline: auto; padding: 64px 24px 48px; }
.blog header { margin-block-end: 56px; }
.blog h1 { font-size: 24px; line-height: 1.4; }
.empty { color: var(--muted-ink); font-size: 14px; }
.back { margin-block-start: 48px; text-align: center; color: var(--muted-ink); font-size: 14px; }
.back a { display: inline-flex; align-items: center; min-block-size: 44px; }
.post-row { align-items: baseline; gap: 16px; }
.post-row > span { min-width: 0; overflow-wrap: anywhere; }
.blog time { flex: none; color: var(--muted-ink); font-size: 14px; }
.article { width: min(100%, 720px); }
.article header { margin-block-end: 32px; }
.article header time { display: inline-block; margin-block-start: 8px; }
.prose { line-height: 1.8; overflow-wrap: anywhere; }
.prose :where(p, ul, ol, pre, blockquote, table) { margin-block: 0 1em; }
.prose :where(h2, h3, h4) { line-height: 1.4; margin-block: 1.8em .65em; }
.prose :where(ul, ol) { padding-inline-start: 1.5rem; }
.prose ul { list-style: disc; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: .2em; }
.prose img { display: block; height: auto; max-width: 100%; }
.prose pre { overflow-x: auto; padding: 1em; font-size: .875rem; }
.prose code { font-family: inherit; }
.prose blockquote { border-inline-start: 1px solid var(--muted-ink); margin-inline: 0; padding-inline-start: 1em; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose :where(th, td) { border-block-end: 1px solid #ffffff36; padding: .35em .65em; text-align: start; }

@media (hover: none) {
  .entry:is(.external, .onward)::before { opacity: 1; }
  .home-footer a { display: grid; align-items: center; min-block-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .entry, .entry::before, .entry::after { transition: none; }
}
@media (max-width: 480px) {
  .blog { padding-block-start: 48px; }
  .blog header { margin-block-end: 36px; }
}
