:root {
  color-scheme: light dark;
  /* Solarized-light palette */
  --bg: #fdf6e3;
  --fg: #073642;
  --muted: #586e75;
  --rule: #eee8d5;
  --pre-bg: #eee8d5;
  --aside-bg: #f5efdc;
  --aside-rule: #e6dfc5;
  --footnote-fg: #586e75;
  --footer-fg: #93a1a1;
  --link: #268bd2;
  --accent: #b58900;
  --mono: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Solarized-dark palette */
    --bg: #002b36;
    --fg: #93a1a1;
    --muted: #586e75;
    --rule: #073642;
    --pre-bg: #073642;
    --aside-bg: #073642;
    --aside-rule: #0a4351;
    --footnote-fg: #839496;
    --footer-fg: #586e75;
    --link: #268bd2;
    --accent: #b58900;
  }
}
body {
  font-family: var(--mono);
  max-width: 44rem;
  margin: 2.5rem auto;
  padding: 0 1rem;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 0.95rem;
}
a { color: var(--link); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--mono); font-weight: 700; line-height: 1.3; color: var(--accent); }
h1::before { content: "# "; opacity: 0.6; }
h2::before { content: "## "; opacity: 0.6; }
h3::before { content: "### "; opacity: 0.6; }
h1 { font-size: 1.5rem; margin-top: 1.5rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; }
h3 { font-size: 1.05rem; }
header.site { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--rule); }
header.site a.brand { color: var(--accent); text-decoration: none; font-weight: 700; }
header.site a.brand::before { content: "$ "; opacity: 0.6; color: var(--muted); }
article header { margin-bottom: 1.5rem; }
article h1 { margin-bottom: 0.25rem; }
article .meta { color: var(--muted); font-size: 0.85em; }
article .meta::before { content: "// "; opacity: 0.7; }
blockquote { margin: 1rem 0; padding: 0 0 0 1rem; border-left: 2px solid var(--accent); color: var(--footnote-fg); }
blockquote::before { content: "> "; opacity: 0.6; color: var(--muted); }
pre { overflow-x: auto; padding: 0.75rem 1rem; background: var(--pre-bg); border-radius: 0; border-left: 2px solid var(--accent); font-size: 0.9em; }
code { font-family: var(--mono); }
p > code, li > code { padding: 0.05em 0.3em; background: var(--pre-bg); border-radius: 2px; }
footer.site { margin-top: 3rem; padding-top: 1rem; border-top: 1px dashed var(--rule); color: var(--footer-fg); font-size: 0.8em; }
footer.site::before { content: "-- "; opacity: 0.7; }
.profile-links__heading, .profile__links-heading { font-size: 1rem; margin: 0 0 0.35rem; }
/* Embeds plugin. */
.bragi-embed { margin: 1.5rem 0; }
.bragi-embed--youtube { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 0; overflow: hidden; border: 1px solid var(--rule); }
.bragi-embed--youtube iframe { width: 100%; height: 100%; border: 0; }
.bragi-embed--youtube-cto button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.bragi-embed--youtube-cto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bragi-embed--youtube-cto .bragi-embed-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 4rem; color: #fff; text-shadow: 0 0 12px rgba(0, 0, 0, 0.7); }
.bragi-embed--pending { padding: 0.75rem 1rem; background: var(--aside-bg); border-left: 2px solid var(--accent); }
.bragi-embed--pending a { word-break: break-all; }
/* Footnotes. */
sup.footnote-ref { font-size: 0.75em; line-height: 0; vertical-align: super; }
sup.footnote-ref a { text-decoration: none; }
sup.footnote-ref a::before { content: "["; }
sup.footnote-ref a::after { content: "]"; }
section.footnotes { margin-top: 3rem; padding-top: 1rem; border-top: 1px dashed var(--rule); font-size: 0.9em; color: var(--footnote-fg); }
section.footnotes ol { padding-left: 1.25rem; }
section.footnotes a.footnote-backref { text-decoration: none; margin-left: 0.25rem; }
/* Table of contents. */
.toc-wrapper { background: var(--aside-bg); border-left: 2px solid var(--accent); padding: 0.75rem 1rem; margin: 1.5rem 0; }
.toc-wrapper h2 { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--accent); }
.toc-wrapper h2::before { content: ""; }
.toc-wrapper ol.toc { margin: 0; padding-left: 1.5rem; }
.toc-wrapper ol.toc ol { padding-left: 1.25rem; }
.toc-wrapper ol.toc a { text-decoration: none; color: var(--link); }
.toc-wrapper ol.toc a:hover { text-decoration: underline; }
/* Post-index landing page: list reset. The page wraps each
   post in an <li> inside a <ul> with the post-list hook;
   suppress the default disc bullets and bullet-aligning
   padding so the title + meta + excerpt stack reads as
   cards, not as a bulleted list. Same applies to the
   tag-listing page (reuses the same hook). */
.post-list { list-style: none; padding-left: 0; }
/* Pinned carousel on the post-index landing page. */
.pinned { margin: 1.5rem 0; }
.pinned-label {
  font-size: 0.875rem; text-transform: uppercase;
  letter-spacing: 0.05em; margin: 0 0 0.5rem 0;
  color: var(--muted);
}
.pinned-strip {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.pinned-card {
  flex: 0 0 min(60%, 24rem);
  scroll-snap-align: start;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.pinned-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.pinned-card h3 { margin: 0.5rem 0.75rem 0.25rem; font-size: 1rem; }
.pinned-card h3 a { text-decoration: none; }
.pinned-card time { display: block; margin: 0 0.75rem; font-size: 0.85em; color: var(--muted); }
.pinned-card p.excerpt { margin: 0.5rem 0.75rem 0.75rem; font-size: 0.9em; }
.pinned-dots {
  display: flex; gap: 0.5rem; justify-content: center;
  margin-top: 0.75rem;
}
.pinned-dots a {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--rule);
  display: inline-block;
  transition: background 0.15s ease;
}
  /* Image size + alignment classes (see
   _claude/specs/2026-05-27-image-size-classes-design.md).
   Picker inserts these via markdown {.class} attrs; pictureify
   passes them through to the inner <img> of <picture>. */
img.size-small  { max-width: 33%; height: auto; }
img.size-medium { max-width: 66%; height: auto; }
img.size-full   { max-width: 100%; height: auto; }
img.align-left  { float: left;  margin: 0.5rem 1rem 0.5rem 0; }
img.align-right { float: right; margin: 0.5rem 0 0.5rem 1rem; }
img.align-center { display: block; margin: 0.5rem auto; clear: both; }
/* Full-width images can't sensibly float; collapse to a centered block. */
img.size-full.align-left,
img.size-full.align-right { float: none; display: block; margin: 0.5rem auto; }
/* Legacy images saved before the picker added these classes have
   no size-* class; fall back to full-width to match the prior
   behaviour. */
img:not(.size-small):not(.size-medium):not(.size-full) {
  max-width: 100%;
  height: auto;
}
/* Photographer credit caption shown beneath credited images
   (Unsplash etc.). Monospace font matches the terminal aesthetic;
   italic and muted to keep it visually subordinate to the image. */
.credit {
  font-size: 0.85em;
  color: var(--muted);
  font-style: italic;
  font-family: var(--mono);
  margin-top: 0.25rem;
}
.credit a {
  color: inherit;
  text-decoration: underline;
}
/* Callouts (admonitions): note / tip / info / warning / danger. */
.callout { margin: 1.5rem 0; padding: 0.75rem 1rem; background: var(--aside-bg); border: 1px solid var(--aside-rule); border-left: 4px solid var(--callout-accent, var(--aside-rule)); border-radius: 4px; }
.callout__title { margin: 0 0 0.25rem; font-weight: 700; color: var(--callout-accent, inherit); }
.callout__body > :first-child { margin-top: 0; }
.callout__body > :last-child { margin-bottom: 0; }
.callout--note { --callout-accent: #3b82f6; }
.callout--tip { --callout-accent: #10b981; }
.callout--info { --callout-accent: #06b6d4; }
.callout--warning { --callout-accent: #d97706; }
.callout--danger { --callout-accent: #ef4444; }
