/* James Flores — portfolio. */

:root {
  --bg: #0e0f11;
  --bg-soft: #15171a;
  --card: #17191d;
  --card-hover: #1c1f24;
  --line: #262a30;
  --line-strong: #353a42;
  --text: #ecedee;
  --muted: #9ba1a9;
  --faint: #6c727b;
  --accent: #f5a524;
  --accent-ink: #1a1204;
  --accent-soft: rgba(245, 165, 36, 0.12);
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1040px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

/* Light, when the system asks for it (unless dark was picked), or when picked. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f5f0;
    --bg-soft: #efece5;
    --card: #ffffff;
    --card-hover: #fffdf8;
    --line: #e3dfd6;
    --line-strong: #d3cec3;
    --text: #1b1c1e;
    --muted: #5d6168;
    --faint: #8a8e95;
    --accent: #b86e00;
    --accent-ink: #ffffff;
    --accent-soft: rgba(184, 110, 0, 0.1);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f5f0;
  --bg-soft: #efece5;
  --card: #ffffff;
  --card-hover: #fffdf8;
  --line: #e3dfd6;
  --line-strong: #d3cec3;
  --text: #1b1c1e;
  --muted: #5d6168;
  --faint: #8a8e95;
  --accent: #b86e00;
  --accent-ink: #ffffff;
  --accent-soft: rgba(184, 110, 0, 0.1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--mono); }

/* A faint grid behind the top of the page. */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

/* ─── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.monogram {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 15px var(--mono);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }

.theme-toggle {
  appearance: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: none; }
}

/* ─── Intro ──────────────────────────────────────────────────────────── */

.intro { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 7vw, 88px); }
.intro .prompt { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-bottom: 22px; }
.intro .prompt .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.intro h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 600; margin-bottom: 22px; }
.intro h1 span { color: var(--muted); font-weight: 400; }
.intro .lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40em; margin-bottom: 30px; }
.intro .lead strong { color: var(--text); font-weight: 500; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; padding: 0; list-style: none; }
.facts li {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 11px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--card);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { border-color: var(--accent); filter: brightness(1.06); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ─── Sections ───────────────────────────────────────────────────────── */

section { padding: clamp(40px, 7vw, 80px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; }
.section-head p { color: var(--muted); font-size: 15px; }
.section-head .label { font-family: var(--mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: 0; }

/* ─── Projects: a timeline, oldest first ─────────────────────────────── */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--line-strong), var(--line) 85%, transparent);
}

.project { position: relative; padding-left: 40px; }
.project + .project { margin-top: 18px; }
.project::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 22px 24px 20px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.project-card:hover { border-color: var(--line-strong); background: var(--card-hover); }

.project-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.project time { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.project h3 { font-size: 21px; font-weight: 600; font-family: var(--mono); letter-spacing: -0.02em; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.project p { color: var(--muted); font-size: 16px; }

.project-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.tags li.lang { color: var(--text); }
.tags li.lang::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--dot, var(--faint));
  vertical-align: 0;
}

.links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.links svg { width: 15px; height: 15px; flex: none; }

/* ─── Writing ────────────────────────────────────────────────────────── */

.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  padding: 18px 4px;
  text-decoration: none;
  transition: background 0.2s ease, padding 0.2s ease;
  border-radius: 8px;
}
.posts a:hover { background: var(--bg-soft); padding-left: 14px; padding-right: 14px; }
.posts strong { font-weight: 500; font-size: 17px; }
.posts span { grid-column: 1; color: var(--muted); font-size: 15px; }
.posts .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--faint); transition: color 0.2s ease, transform 0.2s ease; }
.posts a:hover .arrow { color: var(--accent); transform: translateX(3px); }
.more { margin-top: 22px; }
.more a { font-weight: 500; color: var(--accent); text-underline-offset: 4px; }

/* ─── Footer ─────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: clamp(24px, 5vw, 56px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p { color: var(--faint); font-size: 14px; font-family: var(--mono); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { color: var(--accent); }

/* ─── Motion and small screens ───────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .intro .prompt .cursor { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a.hide-sm { display: none; }
  .project { padding-left: 30px; }
  .timeline::before { left: 5px; }
  .project::before { width: 12px; height: 12px; top: 28px; }
  .project-card { padding: 18px 18px 16px; }
  .buttons .btn { flex: 1 1 auto; justify-content: center; }
}

/* ═══ Blog ═════════════════════════════════════════════════════════════ */

:root {
  --code-bg: #121417;
  --code-text: #d8dadd;
  --tok-comment: #6c727b;
  --tok-keyword: #f5a524;
  --tok-string: #8fcf8a;
  --tok-number: #e7a5ff;
  --tok-name: #7cc4ff;
  --tok-builtin: #f28b82;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --code-bg: #f1eee7;
    --code-text: #24262a;
    --tok-comment: #8a8e95;
    --tok-keyword: #a35f00;
    --tok-string: #2f7d32;
    --tok-number: #8a3fb3;
    --tok-name: #1f63b5;
    --tok-builtin: #b3342c;
  }
}
:root[data-theme="light"] {
  --code-bg: #f1eee7;
  --code-text: #24262a;
  --tok-comment: #8a8e95;
  --tok-keyword: #a35f00;
  --tok-string: #2f7d32;
  --tok-number: #8a3fb3;
  --tok-name: #1f63b5;
  --tok-builtin: #b3342c;
}

.nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }

.blog-head, .post-head { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.blog-head .prompt { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-bottom: 18px; }
.blog-head h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 600; margin-bottom: 18px; }
.blog-head .lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); max-width: 38em; }

.blog-list { padding-top: 8px; }
.blog-list .cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.post-card:hover { border-color: var(--line-strong); background: var(--card-hover); transform: translateY(-2px); }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--line); display: block; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card time { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.post-card h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.post-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.post-card .tags { margin-top: auto; padding-top: 6px; }

/* A post */
.wrap.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.post-head .back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.post-head .back:hover { color: var(--accent); }
.post-head h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 600; margin-bottom: 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.post-meta time { color: var(--accent); }
.post-banner { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 36px; display: block; }

.prose { font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 2em; margin-bottom: -0.2em; font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: 80px; }
.prose h2 { font-size: 27px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li > ul, .prose li > ol { margin-top: 0.35em; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; margin: 0 auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 600; }

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.prose code.filepath { color: var(--accent); }
.prose pre code { padding: 0; border: 0; background: none; font-size: 14px; }

.prose div.highlighter-rouge, .prose figure.highlight {
  position: relative;
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--code-bg);
  overflow: hidden;
}
.prose .highlight pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: var(--code-text);
  line-height: 1.6;
}
/* The file a block came from ({: file='…'}), above the code. */
.prose div.highlighter-rouge[file]::before {
  content: attr(file);
  display: block;
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .cp, .highlight .ch, .highlight .cd { color: var(--tok-comment); font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kc, .highlight .kt, .highlight .ow { color: var(--tok-keyword); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .sr, .highlight .ss, .highlight .sc, .highlight .dl { color: var(--tok-string); }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo, .highlight .il { color: var(--tok-number); }
.highlight .nf, .highlight .fm, .highlight .nc, .highlight .nn, .highlight .na, .highlight .nt, .highlight .nv, .highlight .vi, .highlight .vg { color: var(--tok-name); }
.highlight .nb, .highlight .bp, .highlight .no, .highlight .ne { color: var(--tok-builtin); }
.highlight .gp { color: var(--tok-comment); user-select: none; }
.highlight .err { color: inherit; background: none; }

/* Quotes, and the callouts ({: .prompt-info } and friends). */
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--line-strong);
  border-radius: 0 10px 10px 0;
  background: var(--bg-soft);
  color: var(--muted);
}
.prose blockquote > * + * { margin-top: 0.7em; }
.prose blockquote p { color: inherit; }
.prose blockquote[class*="prompt-"] { color: var(--text); padding-left: 48px; position: relative; }
.prose blockquote[class*="prompt-"]::before {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px var(--mono);
  color: #fff;
}
.prose blockquote.prompt-info { border-left-color: #3b82f6; background: color-mix(in srgb, #3b82f6 10%, var(--bg)); }
.prose blockquote.prompt-info::before { content: "i"; background: #3b82f6; }
.prose blockquote.prompt-tip { border-left-color: #22a06b; background: color-mix(in srgb, #22a06b 10%, var(--bg)); }
.prose blockquote.prompt-tip::before { content: "✓"; background: #22a06b; }
.prose blockquote.prompt-warning { border-left-color: #e8a317; background: color-mix(in srgb, #e8a317 12%, var(--bg)); }
.prose blockquote.prompt-warning::before { content: "!"; background: #d48a00; }
.prose blockquote.prompt-danger { border-left-color: #e5484d; background: color-mix(in srgb, #e5484d 10%, var(--bg)); }
.prose blockquote.prompt-danger::before { content: "×"; background: #e5484d; }

.prose .footnotes { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 15px; }
.prose .footnotes p, .prose .footnotes li { color: var(--muted); }
.prose sup a.footnote { text-decoration: none; font-family: var(--mono); font-size: 0.8em; padding: 0 2px; }

.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  background: var(--card);
  transition: border-color 0.2s ease;
}
.post-nav a:hover { border-color: var(--accent); }
.post-nav a span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.post-nav a strong { font-weight: 500; }
.post-nav .next { text-align: right; grid-column: 2; }

@media (max-width: 760px) {
  .blog-list .cards { grid-template-columns: minmax(0, 1fr); }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav .next { grid-column: 1; }
  .prose { font-size: 16px; }
}

/* The home page's latest post */
.see-all { color: var(--accent); font-weight: 500; text-decoration: none; }
.see-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.latest-post {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.latest-post:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.latest-post img { width: 100%; height: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.latest-post-body { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.latest-post time { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.latest-post h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
.latest-post p { color: var(--muted); }
.latest-post .read { margin-top: 6px; font-weight: 500; color: var(--accent); }
@media (max-width: 760px) { .latest-post { grid-template-columns: minmax(0, 1fr); } }

/* Footnotes as markdown-it writes them */
.prose .footnotes-sep { display: none; }
.prose .footnotes-list { padding-left: 1.4em; }
.prose .footnote-ref a { text-decoration: none; font-family: var(--mono); font-size: 0.8em; }
.prose .footnote-backref { text-decoration: none; }
