/* ============================================================
   Base reset & box model
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg:            #ffffff;
  --text:          #1a1a1a;
  --muted:         #666666;
  --link:          #1a1a1a;
  --link-hover:    #000000;
  --border:        #e8e8e8;
  --accent:        #4a90a4;

  /* PG-style prose typography */
  --font-prose:    Verdana, Geneva, Tahoma, sans-serif;
  --font-serif:    Georgia, 'Times New Roman', Times, serif;
  --font-mono:     'Courier New', Courier, monospace;

  /* PG-style link colours inside prose */
  --link-prose:         #0000ee;
  --link-prose-visited: #551a8b;

  /* Sidebar width + gap */
  --sidebar-w:     160px;
  --sidebar-gap:   3rem;

  /* Main prose column — PG uses ~520px readable width */
  --prose-w:       560px;

  /* Sidenote column hanging off the right of prose */
  --sidenote-w:    200px;
  --sidenote-gap:  2rem;

  --line-height:   1.75;
  --font-size:     18px;
}

/* ============================================================
   Dark mode tokens
   ============================================================ */
[data-theme="dark"] {
  --bg:            #141414;
  --text:          #e8e8e8;
  --muted:         #888888;
  --link:          #e8e8e8;
  --link-hover:    #ffffff;
  --border:        #2e2e2e;
  --accent:        #5ba3b8;
  --link-prose:         #7ab3f5;
  --link-prose-visited: #b08fe0;
}

/* ============================================================
   Typography
   ============================================================ */
html {
  font-size: var(--font-size);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height);
}

/* ============================================================
   Page shell — sidebar + content grid
   ============================================================ */
.page {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  column-gap: var(--sidebar-gap);
  min-height: 100vh;
  max-width: calc(var(--sidebar-w) + var(--sidebar-gap) + var(--prose-w) + var(--sidenote-gap) + var(--sidenote-w));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.content {
  grid-column: 2;
  padding-top: 3rem;
  padding-bottom: 6rem;
  overflow: visible;
}

/* ============================================================
   Sidebar internals
   ============================================================ */
.sidebar-inner {
  position: sticky;
  top: 3rem;
  display: flex;
  flex-direction: column;
}

/*
  On desktop, .sidebar-top uses display:contents so its children
  (site-name, theme-toggle, hamburger) participate directly in
  .sidebar-inner's flex column — letting us reorder them freely.
  site-name → order 1, nav → order 2, nav-social → order 3,
  theme-toggle → order 4, hamburger stays hidden.
*/
.sidebar-top     { display: contents; }
.site-name       { order: 1; margin-bottom: 2rem; }
nav              { order: 2; }
.nav-social      { order: 3; }
.theme-toggle    { order: 4; margin-top: 1.6rem; }
.hamburger       { display: none; }

.site-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: normal;
}

.site-name a {
  color: var(--text);
  text-decoration: none;
}

.site-name a:hover {
  text-decoration: underline;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

nav a {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.3;
}

nav a:hover,
nav a.active {
  color: var(--text);
  text-decoration: underline;
}

/* Social links block below nav */
.nav-social {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nav-social a {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.3;
}

.nav-social a:hover {
  color: var(--text);
  text-decoration: underline;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text);
}

.hamburger svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Dark/light mode toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  margin-top: 1.6rem;
  text-align: left;
  line-height: 1;
}

.theme-toggle:hover { color: var(--text); }

.theme-toggle svg {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }


/* ============================================================
   Links (non-prose default)
   ============================================================ */
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover  { color: var(--link-hover); }
a:visited { color: var(--muted); }

/* ============================================================
   Headings
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.3;
}

h1 { font-size: 1.5rem;  margin-bottom: 0.5rem; }
h2 { font-size: 1.15rem; margin-bottom: 0.8rem; margin-top: 2.5rem; }
h3 { font-size: 1rem;    margin-bottom: 0.4rem; margin-top: 1.8rem; }

/* ============================================================
   Homepage
   ============================================================ */
.bio {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.bio a { color: var(--muted); }

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

/* Post list (homepage + listing pages) */
.post-list {
  list-style: none;
}

.post-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.post-list li:hover {
  border-bottom-color: var(--border);
}

.post-list .post-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 88px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.post-list .post-title a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

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

/* Tag badge */
.post-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.05em 0.35em;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  letter-spacing: 0.04em;
}

/* ============================================================
   Listing-page search + tag filter
   ============================================================ */
.search-wrap {
  margin-bottom: 2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

#search-input {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.35rem 0.6rem;
  width: 100%;
  max-width: 340px;
  outline: none;
  color: var(--text);
  background: var(--bg);
}

#search-input:focus { border-color: var(--muted); }

/* ============================================================
   About page
   ============================================================ */
.about-body p {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.about-body ul {
  margin: 0 0 1.2rem 1.2rem;
  font-size: 0.95rem;
}

.about-body ul li { margin-bottom: 0.4rem; }

.social-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ============================================================
   Essay / post page header
   ============================================================ */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  /* PG uses plain sans-serif for essay titles too */
  font-family: var(--font-prose);
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.post-meta {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.post-meta .post-meta-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.05em 0.35em;
  margin-left: 0.5em;
  letter-spacing: 0.04em;
}

/* ============================================================
   Post body — Paul Graham prose style
   ============================================================ */
.post-body {
  /* PG aesthetic: Verdana, ~15px, tight line-height, narrow column */
  font-family: var(--font-prose);
  font-size: 0.88rem;       /* ~15.8px at 18px base */
  line-height: 1.6;
  color: var(--text);
  max-width: var(--prose-w);
  position: relative;
  counter-reset: sidenote-counter;
}

/* PG-style link colours inside prose */
.post-body a          { color: var(--link-prose); }
.post-body a:visited  { color: var(--link-prose-visited); }
.post-body a:hover    { text-decoration: underline; }

.post-body p {
  margin-bottom: 0.9rem;
}

/* PG doesn't use bold headings in the old style — keep them restrained */
.post-body h2 {
  font-family: var(--font-prose);
  font-size: 1rem;
  font-weight: bold;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.post-body h3 {
  font-family: var(--font-prose);
  font-size: 0.93rem;
  font-weight: bold;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.post-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
  font-style: italic;
}

.post-body ul, .post-body ol {
  margin: 0 0 1.2rem 1.4rem;
}

.post-body li { margin-bottom: 0.35rem; }

.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

.post-body figure { margin: 2rem 0; }

.post-body figcaption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--interactive-bg, #f5f5f5);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

.post-body pre {
  background: var(--interactive-bg, #f5f5f5);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.2rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body .footnotes {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.post-body sup a {
  font-size: 0.75em;
  vertical-align: super;
  text-decoration: none;
}

.back-link {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.back-link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ============================================================
   Translate widget (Google Translate, in-page)
   ============================================================ */
.translate-widget {
  margin-top: 0.6rem;
  margin-bottom: 1.5rem;
}

.translate-toggle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.translate-toggle:hover {
  color: var(--text);
  text-decoration: underline;
}

#google_translate_element {
  margin-top: 0.5rem;
}

#google_translate_element .goog-te-gadget {
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  color: var(--muted) !important;
}

#google_translate_element .goog-te-gadget-simple {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 2px !important;
  padding: 0.3rem 0.55rem !important;
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value {
  color: var(--text) !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
  color: var(--text) !important;
  border-color: var(--border) !important;
}

#google_translate_element img { display: none !important; }

/* Hide Google's injected top banner that shifts the page down. */
body { top: 0 !important; }
.skiptranslate.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }

/* ============================================================
   Sidenotes
   ============================================================ */

/*
  Pattern (inside .post-body):
    <p>
      Sentence text.<label for="sn-1" class="sn-toggle"></label>
      <input type="checkbox" id="sn-1" class="sn-checkbox">
      <span class="sidenote">Note text.</span>
      Rest of sentence.
    </p>
  CSS auto-numbers via counter. Increment id/for for each note.
*/

.sn-toggle {
  display: inline-block;
  cursor: pointer;
  font-size: 0.7rem;
  vertical-align: super;
  line-height: 0;
  color: var(--muted);
  margin-left: 0.1em;
  font-style: normal;
  user-select: none;
  font-family: var(--font-mono);
}

.sn-checkbox { display: none; }

.sidenote {
  float: right;
  clear: right;
  margin-right: calc(-1 * (var(--sidenote-w) + var(--sidenote-gap)));
  width: var(--sidenote-w);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: var(--font-serif);
  margin-top: 0.2rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--border);
}

.sn-toggle::before {
  counter-increment: sidenote-counter;
  content: counter(sidenote-counter);
}

.sidenote::before {
  content: counter(sidenote-counter) " ";
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* Mobile-only sidenote footer — hidden on desktop, shown in media query */
.sn-footer { display: none; }

/* ============================================================
   Interactive JS components
   ============================================================ */
.interactive {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--interactive-bg, #fafafa);
  /* inherit prose font so labels read consistently */
  font-family: var(--font-prose);
}

[data-theme="dark"] { --interactive-bg: #1e1e1e; }

.interactive label {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 0.4rem;
}

.interactive input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.interactive input[type="number"],
.interactive input[type="text"] {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid var(--border);
  padding: 0.25rem 0.4rem;
  border-radius: 2px;
  width: 80px;
  color: var(--text);
  background: var(--bg);
}

.interactive .output {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  margin-top: 0.75rem;
}

.interactive canvas {
  display: block;
  width: 100%;
  margin-top: 1rem;
}

/* ============================================================
   Buttondown signup form
   ============================================================ */
.bd-form {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--interactive-bg, #fafafa);
}

.bd-form p.bd-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.9rem;
}

.bd-form .bd-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.bd-form input[type="email"] {
  font-family: var(--font-prose);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.42rem 0.65rem;
  flex: 1 1 200px;
  min-width: 0;
  color: var(--text);
  background: var(--bg);
  outline: none;
}

.bd-form input[type="email"]:focus { border-color: var(--muted); }

.bd-form input[type="submit"] {
  font-family: var(--font-prose);
  font-size: 0.85rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: 2px;
  padding: 0.42rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.bd-form input[type="submit"]:hover {
  background: #333;
  border-color: #333;
}

/* Footer variant */
.bd-form.bd-form--footer {
  margin: 0;
  padding: 1.2rem 0;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.bd-form.bd-form--footer .bd-label { margin-bottom: 0.7rem; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  margin-top: 4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ============================================================
   Manifesto page — card grid + category filters
   ============================================================ */
.manifesto-intro {
  max-width: var(--prose-w);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.manifesto-intro p { margin-bottom: 1rem; }

.manifesto-page .content {
  /* allow grid to use full content width, not just prose column */
  max-width: none;
}

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.cat-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.cat-chip:hover {
  color: var(--text);
  border-color: var(--muted);
}

.cat-chip.active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.1rem 1.2rem;
  background: var(--bg);
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.card:hover {
  border-color: var(--muted);
}

.card:visited { color: inherit; }

.card:hover .card-title { text-decoration: underline; }

.card-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1;
}

.card:hover .card-arrow { color: var(--text); }

.card-cat {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-prose);
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-desc {
  font-family: var(--font-prose);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0.9rem;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.05em 0.4em;
  letter-spacing: 0.04em;
}

.cat-section {
  margin-top: 2.5rem;
}

.cat-section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.card[hidden] { display: none; }

/* ============================================================
   Responsive — collapse sidebar at ≤ 780px
   ============================================================ */
@media (max-width: 780px) {
  :root { --font-size: 17px; }

  .page {
    display: block;
    padding: 0 1.2rem;
  }

  .sidebar {
    padding-top: 1.2rem;
    padding-bottom: 0;
    position: relative;
  }

  .sidebar-inner { position: static; }

  /* Undo display:contents so .sidebar-top is a real flex row */
  .sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  /* Reset order/margin overrides set for desktop */
  .site-name    { order: 0; margin-bottom: 0; }
  nav           { order: 0; }
  .nav-social   { order: 0; }
  .theme-toggle { order: 0; margin-top: 0; flex: 1; justify-content: center; font-size: 0.72rem; }
  .hamburger    { order: 0; display: block; }

  nav {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding-bottom: 0.8rem;
  }

  nav.is-open { display: flex; }

  nav a { font-size: 0.92rem; }

  .nav-social {
    /* Show inline after nav links when open, hidden otherwise */
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  nav.is-open + .nav-social { display: flex; }

  .content {
    padding-top: 2rem;
    padding-bottom: 4rem;
    overflow: hidden;
  }

  /* Sidenotes: hidden inline on mobile — JS moves them to .sn-footer-list */
  .sidenote {
    float: none;
    display: none;
    width: auto;
    margin-right: 0;
  }

  /* Mobile sidenote footer block */
  .sn-footer {
    display: block;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .sn-footer-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.75rem;
  }

  .sn-footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  .sn-footer-list li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    font-family: var(--font-serif);
    line-height: 1.5;
  }

  .sn-footer-list li .sn-footer-num {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted);
    flex-shrink: 0;
    padding-top: 0.1em;
  }

  /* Buttondown form: stack on mobile */
  .bd-form .bd-row { flex-direction: column; align-items: stretch; }
  .bd-form input[type="submit"] { width: 100%; }

  /* Post list */
  .post-list li { flex-wrap: wrap; gap: 0.2rem; }
  .post-list .post-date { min-width: unset; }
}
